diff --git a/.eslintrc.js b/.eslintrc.js index 54117781..6fe121f0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,7 +9,12 @@ module.exports = { ], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', + 'no-unused-vars': 'off', + 'no-undef': 'off', + 'no-use-before-define': 'off', + 'no-redeclare': 'off', + 'no-shadow': 'off', }, parserOptions: { parser: 'babel-eslint' diff --git a/dist/vue-grid-layout.common.js b/dist/hz-grid-layout.common.js similarity index 96% rename from dist/vue-grid-layout.common.js rename to dist/hz-grid-layout.common.js index ac6e4a73..05a4b3f7 100644 --- a/dist/vue-grid-layout.common.js +++ b/dist/hz-grid-layout.common.js @@ -1,4 +1,4 @@ -/*! vue-grid-layout - 3.0.0-beta1 | (c) 2015, 2021 Gustavo Santos (JBay Solutions) (http://www.jbaysolutions.com) | https://github.com/jbaysolutions/vue-grid-layout */ +/*! hz-grid-layout - 0.0.1 | (c) 2015, 2024 pirate6 | https://github.com/jbaysolutions/vue-grid-layout */ module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache @@ -205,13 +205,13 @@ module.exports = function (S, index, unicode) { /***/ }), -/***/ "083e": -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "07e3": +/***/ (function(module, exports) { -"use strict"; -/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_46ff2fc8_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c541"); -/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_46ff2fc8_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_46ff2fc8_lang_css__WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ +var hasOwnProperty = {}.hasOwnProperty; +module.exports = function (it, key) { + return hasOwnProperty.call(it, key); +}; /***/ }), @@ -594,6 +594,50 @@ detector.isLegacyOpera = function() { }; +/***/ }), + +/***/ "1bc3": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__("f772"); +// instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string +module.exports = function (it, S) { + if (!isObject(it)) return it; + var fn, val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + throw TypeError("Can't convert object to primitive value"); +}; + + +/***/ }), + +/***/ "1bca": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_2f667182_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("aa51"); +/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_2f667182_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_2f667182_lang_css__WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + + +/***/ }), + +/***/ "1ec9": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("f772"); +var document = __webpack_require__("e53d").document; +// typeof document.createElement is 'object' in old IE +var is = isObject(document) && isObject(document.createElement); +module.exports = function (it) { + return is ? document.createElement(it) : {}; +}; + + /***/ }), /***/ "214f": @@ -851,6 +895,20 @@ function toComment(sourceMap) { exports.f = Object.getOwnPropertySymbols; +/***/ }), + +/***/ "294c": +/***/ (function(module, exports) { + +module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } +}; + + /***/ }), /***/ "2aba": @@ -1033,6 +1091,21 @@ module.exports = __webpack_require__("9e1e") ? function (object, key, value) { }; +/***/ }), + +/***/ "35e8": +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__("d9f6"); +var createDesc = __webpack_require__("aebd"); +module.exports = __webpack_require__("8e60") ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; + + /***/ }), /***/ "38fd": @@ -1074,6 +1147,18 @@ module.exports = function (Constructor, NAME, next) { }; +/***/ }), + +/***/ "454f": +/***/ (function(module, exports, __webpack_require__) { + +__webpack_require__("46a7"); +var $Object = __webpack_require__("584a").Object; +module.exports = function defineProperty(it, key, desc) { + return $Object.defineProperty(it, key, desc); +}; + + /***/ }), /***/ "456d": @@ -1118,6 +1203,16 @@ module.exports = function (bitmap, value) { }; +/***/ }), + +/***/ "46a7": +/***/ (function(module, exports, __webpack_require__) { + +var $export = __webpack_require__("63b6"); +// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) +$export($export.S + $export.F * !__webpack_require__("8e60"), 'Object', { defineProperty: __webpack_require__("d9f6").f }); + + /***/ }), /***/ "4917": @@ -1166,20 +1261,6 @@ __webpack_require__("214f")('match', 1, function (defined, MATCH, $match, maybeC }); -/***/ }), - -/***/ "493e": -/***/ (function(module, exports, __webpack_require__) { - -// Imports -var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb"); -exports = ___CSS_LOADER_API_IMPORT___(false); -// Module -exports.push([module.i, ".vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item,.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url(\"data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+\");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}", ""]); -// Exports -module.exports = exports; - - /***/ }), /***/ "499e": @@ -1728,6 +1809,15 @@ $export($export.P + $export.F * (fails(function () { }); +/***/ }), + +/***/ "584a": +/***/ (function(module, exports) { + +var core = module.exports = { version: '2.6.12' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + + /***/ }), /***/ "5be5": @@ -1927,13 +2017,71 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { /***/ }), -/***/ "6521": -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "63b6": +/***/ (function(module, exports, __webpack_require__) { -"use strict"; -/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_fc5948f6_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("92bf"); -/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_fc5948f6_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_fc5948f6_lang_css__WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ +var global = __webpack_require__("e53d"); +var core = __webpack_require__("584a"); +var ctx = __webpack_require__("d864"); +var hide = __webpack_require__("35e8"); +var has = __webpack_require__("07e3"); +var PROTOTYPE = 'prototype'; + +var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var IS_WRAP = type & $export.W; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE]; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; + var key, own, out; + if (IS_GLOBAL) source = name; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + if (own && has(exports, key)) continue; + // export native or passed + out = own ? target[key] : source[key]; + // prevent global pollution for namespaces + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] + // bind timers to global for call from export context + : IS_BIND && own ? ctx(out, global) + // wrap global constructors for prevent change them in library + : IS_WRAP && target[key] == out ? (function (C) { + var F = function (a, b, c) { + if (this instanceof C) { + switch (arguments.length) { + case 0: return new C(); + case 1: return new C(a); + case 2: return new C(a, b); + } return new C(a, b, c); + } return C.apply(this, arguments); + }; + F[PROTOTYPE] = C[PROTOTYPE]; + return F; + // make static versions for prototype methods + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% + if (IS_PROTO) { + (exports.virtual || (exports.virtual = {}))[key] = out; + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); + } + } +}; +// type bitmap +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe +$export.R = 128; // real proto method for `library` +module.exports = $export; /***/ }), @@ -1981,48 +2129,32 @@ module.exports = function (it, S) { /***/ }), -/***/ "7333": +/***/ "6b0d": /***/ (function(module, exports, __webpack_require__) { "use strict"; -// 19.1.2.1 Object.assign(target, source, ...) -var DESCRIPTORS = __webpack_require__("9e1e"); -var getKeys = __webpack_require__("0d58"); -var gOPS = __webpack_require__("2621"); -var pIE = __webpack_require__("52a7"); -var toObject = __webpack_require__("4bf8"); -var IObject = __webpack_require__("626a"); -var $assign = Object.assign; - -// should work with symbols and should have deterministic property order (V8 bug) -module.exports = !$assign || __webpack_require__("79e5")(function () { - var A = {}; - var B = {}; - // eslint-disable-next-line no-undef - var S = Symbol(); - var K = 'abcdefghijklmnopqrst'; - A[S] = 7; - K.split('').forEach(function (k) { B[k] = k; }); - return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; -}) ? function assign(target, source) { // eslint-disable-line no-unused-vars - var T = toObject(target); - var aLen = arguments.length; - var index = 1; - var getSymbols = gOPS.f; - var isEnum = pIE.f; - while (aLen > index) { - var S = IObject(arguments[index++]); - var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); - var length = keys.length; - var j = 0; - var key; - while (length > j) { - key = keys[j++]; - if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; +Object.defineProperty(exports, "__esModule", { value: true }); +// runtime helper for setting properties on components +// in a tree-shakable way +exports.default = (sfc, props) => { + const target = sfc.__vccOpts || sfc; + for (const [key, val] of props) { + target[key] = val; } - } return T; -} : $assign; + return target; +}; + + +/***/ }), + +/***/ "765b": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_17d5e425_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d516"); +/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_17d5e425_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_17d5e425_lang_css__WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ /***/ }), @@ -2052,6 +2184,27 @@ module.exports = function (index, length) { }; +/***/ }), + +/***/ "794b": +/***/ (function(module, exports, __webpack_require__) { + +module.exports = !__webpack_require__("8e60") && !__webpack_require__("294c")(function () { + return Object.defineProperty(__webpack_require__("1ec9")('div'), 'a', { get: function () { return 7; } }).a != 7; +}); + + +/***/ }), + +/***/ "79aa": +/***/ (function(module, exports) { + +module.exports = function (it) { + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); + return it; +}; + + /***/ }), /***/ "79e5": @@ -2091,25 +2244,18 @@ if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), -/***/ "848e": -/***/ (function(module, exports, __webpack_require__) { +/***/ "84f2": +/***/ (function(module, exports) { -// Imports -var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb"); -exports = ___CSS_LOADER_API_IMPORT___(false); -// Module -exports.push([module.i, ".vue-grid-layout{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}", ""]); -// Exports -module.exports = exports; +module.exports = {}; /***/ }), -/***/ "84f2": -/***/ (function(module, exports) { - -module.exports = {}; +/***/ "85f2": +/***/ (function(module, exports, __webpack_require__) { +module.exports = __webpack_require__("454f"); /***/ }), @@ -2258,6 +2404,17 @@ module.exports = { module.exports = require("vue"); +/***/ }), + +/***/ "8e60": +/***/ (function(module, exports, __webpack_require__) { + +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__("294c")(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; +}); + + /***/ }), /***/ "8e6e": @@ -2301,21 +2458,6 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { }; -/***/ }), - -/***/ "92bf": -/***/ (function(module, exports, __webpack_require__) { - -// style-loader: Adds some css to the DOM by adding a \n\n","// @flow\nexport type LayoutItemRequired = {w: number, h: number, x: number, y: number, i: string};\nexport type LayoutItem = LayoutItemRequired &\n {minW?: number, minH?: number, maxW?: number, maxH?: number,\n moved?: boolean, static?: boolean,\n isDraggable?: ?boolean, isResizable?: ?boolean};\nexport type Layout = Array;\n// export type Position = {left: number, top: number, width: number, height: number};\n/*\nexport type DragCallbackData = {\n node: HTMLElement,\n x: number, y: number,\n deltaX: number, deltaY: number,\n lastX: number, lastY: number\n};\n*/\n// export type DragEvent = {e: Event} & DragCallbackData;\nexport type Size = {width: number, height: number};\n// export type ResizeEvent = {e: Event, node: HTMLElement, size: Size};\n\n// const isProduction = process.env.NODE_ENV === 'production';\n/**\n * Return the bottom coordinate of the layout.\n *\n * @param {Array} layout Layout array.\n * @return {Number} Bottom coordinate.\n */\nexport function bottom(layout: Layout): number {\n let max = 0, bottomY;\n for (let i = 0, len = layout.length; i < len; i++) {\n bottomY = layout[i]. y + layout[i].h;\n if (bottomY > max) max = bottomY;\n }\n return max;\n}\n\nexport function cloneLayout(layout: Layout): Layout {\n const newLayout = Array(layout.length);\n for (let i = 0, len = layout.length; i < len; i++) {\n newLayout[i] = cloneLayoutItem(layout[i]);\n }\n return newLayout;\n}\n\n// Fast path to cloning, since this is monomorphic\nexport function cloneLayoutItem(layoutItem: LayoutItem): LayoutItem {\n /*return {\n w: layoutItem.w, h: layoutItem.h, x: layoutItem.x, y: layoutItem.y, i: layoutItem.i,\n minW: layoutItem.minW, maxW: layoutItem.maxW, minH: layoutItem.minH, maxH: layoutItem.maxH,\n moved: Boolean(layoutItem.moved), static: Boolean(layoutItem.static),\n // These can be null\n isDraggable: layoutItem.isDraggable, isResizable: layoutItem.isResizable\n };*/\n return JSON.parse(JSON.stringify(layoutItem));\n}\n\n/**\n * Given two layoutitems, check if they collide.\n *\n * @return {Boolean} True if colliding.\n */\nexport function collides(l1: LayoutItem, l2: LayoutItem): boolean {\n if (l1 === l2) return false; // same element\n if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2\n if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2\n if (l1.y + l1.h <= l2.y) return false; // l1 is above l2\n if (l1.y >= l2.y + l2.h) return false; // l1 is below l2\n return true; // boxes overlap\n}\n\n/**\n * Given a layout, compact it. This involves going down each y coordinate and removing gaps\n * between items.\n *\n * @param {Array} layout Layout.\n * @param {Boolean} verticalCompact Whether or not to compact the layout\n * vertically.\n * @return {Array} Compacted Layout.\n */\nexport function compact(layout: Layout, verticalCompact: Boolean): Layout {\n // Statics go in the compareWith array right away so items flow around them.\n const compareWith = getStatics(layout);\n // We go through the items by row and column.\n const sorted = sortLayoutItemsByRowCol(layout);\n // Holding for new items.\n const out = Array(layout.length);\n\n for (let i = 0, len = sorted.length; i < len; i++) {\n let l = sorted[i];\n\n // Don't move static elements\n if (!l.static) {\n l = compactItem(compareWith, l, verticalCompact);\n\n // Add to comparison array. We only collide with items before this one.\n // Statics are already in this array.\n compareWith.push(l);\n }\n\n // Add to output array to make sure they still come out in the right order.\n out[layout.indexOf(l)] = l;\n\n // Clear moved flag, if it exists.\n l.moved = false;\n }\n\n return out;\n}\n\n/**\n * Compact an item in the layout.\n */\nexport function compactItem(compareWith: Layout, l: LayoutItem, verticalCompact: boolean): LayoutItem {\n if (verticalCompact) {\n // Move the element up as far as it can go without colliding.\n while (l.y > 0 && !getFirstCollision(compareWith, l)) {\n l.y--;\n }\n }\n\n // Move it down, and keep moving it down if it's colliding.\n let collides;\n while((collides = getFirstCollision(compareWith, l))) {\n l.y = collides.y + collides.h;\n }\n return l;\n}\n\n/**\n * Given a layout, make sure all elements fit within its bounds.\n *\n * @param {Array} layout Layout array.\n * @param {Number} bounds Number of columns.\n */\nexport function correctBounds(layout: Layout, bounds: {cols: number}): Layout {\n const collidesWith = getStatics(layout);\n for (let i = 0, len = layout.length; i < len; i++) {\n const l = layout[i];\n // Overflows right\n if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;\n // Overflows left\n if (l.x < 0) {\n l.x = 0;\n l.w = bounds.cols;\n }\n if (!l.static) collidesWith.push(l);\n else {\n // If this is static and collides with other statics, we must move it down.\n // We have to do something nicer than just letting them overlap.\n while(getFirstCollision(collidesWith, l)) {\n l.y++;\n }\n }\n }\n return layout;\n}\n\n/**\n * Get a layout item by ID. Used so we can override later on if necessary.\n *\n * @param {Array} layout Layout array.\n * @param {String} id ID\n * @return {LayoutItem} Item at ID.\n */\nexport function getLayoutItem(layout: Layout, id: string): ?LayoutItem {\n for (let i = 0, len = layout.length; i < len; i++) {\n if (layout[i].i === id) return layout[i];\n }\n}\n\n/**\n * Returns the first item this layout collides with.\n * It doesn't appear to matter which order we approach this from, although\n * perhaps that is the wrong thing to do.\n *\n * @param {Object} layoutItem Layout item.\n * @return {Object|undefined} A colliding layout item, or undefined.\n */\nexport function getFirstCollision(layout: Layout, layoutItem: LayoutItem): ?LayoutItem {\n for (let i = 0, len = layout.length; i < len; i++) {\n if (collides(layout[i], layoutItem)) return layout[i];\n }\n}\n\nexport function getAllCollisions(layout: Layout, layoutItem: LayoutItem): Array {\n return layout.filter((l) => collides(l, layoutItem));\n}\n\n/**\n * Get all static elements.\n * @param {Array} layout Array of layout objects.\n * @return {Array} Array of static layout items..\n */\nexport function getStatics(layout: Layout): Array {\n //return [];\n return layout.filter((l) => l.static);\n}\n\n/**\n * Move an element. Responsible for doing cascading movements of other elements.\n *\n * @param {Array} layout Full layout to modify.\n * @param {LayoutItem} l element to move.\n * @param {Number} [x] X position in grid units.\n * @param {Number} [y] Y position in grid units.\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is\n * being dragged/resized by th euser.\n */\nexport function moveElement(layout: Layout, l: LayoutItem, x: Number, y: Number, isUserAction: Boolean, preventCollision: Boolean): Layout {\n if (l.static) return layout;\n\n // Short-circuit if nothing to do.\n //if (l.y === y && l.x === x) return layout;\n\n const oldX = l.x;\n const oldY = l.y;\n\n const movingUp = y && l.y > y;\n // This is quite a bit faster than extending the object\n if (typeof x === 'number') l.x = x;\n if (typeof y === 'number') l.y = y;\n l.moved = true;\n\n // If this collides with anything, move it.\n // When doing this comparison, we have to sort the items we compare with\n // to ensure, in the case of multiple collisions, that we're getting the\n // nearest collision.\n let sorted = sortLayoutItemsByRowCol(layout);\n if (movingUp) sorted = sorted.reverse();\n const collisions = getAllCollisions(sorted, l);\n\n if (preventCollision && collisions.length) {\n l.x = oldX;\n l.y = oldY;\n l.moved = false;\n return layout;\n }\n\n // Move each item that collides away from this element.\n for (let i = 0, len = collisions.length; i < len; i++) {\n const collision = collisions[i];\n // console.log('resolving collision between', l.i, 'at', l.y, 'and', collision.i, 'at', collision.y);\n\n // Short circuit so we can't infinite loop\n if (collision.moved) continue;\n\n // This makes it feel a bit more precise by waiting to swap for just a bit when moving up.\n if (l.y > collision.y && l.y - collision.y > collision.h / 4) continue;\n\n // Don't move static items - we have to move *this* element away\n if (collision.static) {\n layout = moveElementAwayFromCollision(layout, collision, l, isUserAction);\n } else {\n layout = moveElementAwayFromCollision(layout, l, collision, isUserAction);\n }\n }\n\n return layout;\n}\n\n/**\n * This is where the magic needs to happen - given a collision, move an element away from the collision.\n * We attempt to move it up if there's room, otherwise it goes below.\n *\n * @param {Array} layout Full layout to modify.\n * @param {LayoutItem} collidesWith Layout item we're colliding with.\n * @param {LayoutItem} itemToMove Layout item we're moving.\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is being dragged/resized\n * by the user.\n */\nexport function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem,\n itemToMove: LayoutItem, isUserAction: ?boolean): Layout {\n\n const preventCollision = false // we're already colliding\n // If there is enough space above the collision to put this element, move it there.\n // We only do this on the main collision as this can get funky in cascades and cause\n // unwanted swapping behavior.\n if (isUserAction) {\n // Make a mock item so we don't modify the item here, only modify in moveElement.\n const fakeItem: LayoutItem = {\n x: itemToMove.x,\n y: itemToMove.y,\n w: itemToMove.w,\n h: itemToMove.h,\n i: '-1'\n };\n fakeItem.y = Math.max(collidesWith.y - itemToMove.h, 0);\n if (!getFirstCollision(layout, fakeItem)) {\n return moveElement(layout, itemToMove, undefined, fakeItem.y, preventCollision);\n }\n }\n\n // Previously this was optimized to move below the collision directly, but this can cause problems\n // with cascading moves, as an item may actually leapflog a collision and cause a reversal in order.\n return moveElement(layout, itemToMove, undefined, itemToMove.y + 1, preventCollision);\n}\n\n/**\n * Helper to convert a number to a percentage string.\n *\n * @param {Number} num Any number\n * @return {String} That number as a percentage.\n */\nexport function perc(num: number): string {\n return num * 100 + '%';\n}\n\nexport function setTransform(top, left, width, height): Object {\n // Replace unitless items with px\n const translate = \"translate3d(\" + left + \"px,\" + top + \"px, 0)\";\n return {\n transform: translate,\n WebkitTransform: translate,\n MozTransform: translate,\n msTransform: translate,\n OTransform: translate,\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n/**\n * Just like the setTransform method, but instead it will return a negative value of right.\n *\n * @param top\n * @param right\n * @param width\n * @param height\n * @returns {{transform: string, WebkitTransform: string, MozTransform: string, msTransform: string, OTransform: string, width: string, height: string, position: string}}\n */\nexport function setTransformRtl(top, right, width, height): Object {\n // Replace unitless items with px\n const translate = \"translate3d(\" + right * -1 + \"px,\" + top + \"px, 0)\";\n return {\n transform: translate,\n WebkitTransform: translate,\n MozTransform: translate,\n msTransform: translate,\n OTransform: translate,\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n\nexport function setTopLeft(top, left, width, height): Object {\n return {\n top: top + \"px\",\n left: left + \"px\",\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n/**\n * Just like the setTopLeft method, but instead, it will return a right property instead of left.\n *\n * @param top\n * @param right\n * @param width\n * @param height\n * @returns {{top: string, right: string, width: string, height: string, position: string}}\n */\nexport function setTopRight(top, right, width, height): Object {\n return {\n top: top + \"px\",\n right: right+ \"px\",\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n\n\n/**\n * Get layout items sorted from top left to right and down.\n *\n * @return {Array} Array of layout objects.\n * @return {Array} Layout, sorted static items first.\n */\nexport function sortLayoutItemsByRowCol(layout: Layout): Layout {\n return [].concat(layout).sort(function(a, b) {\n if (a.y === b.y && a.x === b.x) {\n return 0;\n }\n\n if (a.y > b.y || (a.y === b.y && a.x > b.x)) {\n return 1;\n }\n\n return -1;\n });\n}\n\n/**\n * Generate a layout using the initialLayout and children as a template.\n * Missing entries will be added, extraneous ones will be truncated.\n *\n * @param {Array} initialLayout Layout passed in through props.\n * @param {String} breakpoint Current responsive breakpoint.\n * @param {Boolean} verticalCompact Whether or not to compact the layout vertically.\n * @return {Array} Working layout.\n */\n/*\nexport function synchronizeLayoutWithChildren(initialLayout: Layout, children: Array|React.Element,\n cols: number, verticalCompact: boolean): Layout {\n // ensure 'children' is always an array\n if (!Array.isArray(children)) {\n children = [children];\n }\n initialLayout = initialLayout || [];\n\n // Generate one layout item per child.\n let layout: Layout = [];\n for (let i = 0, len = children.length; i < len; i++) {\n let newItem;\n const child = children[i];\n\n // Don't overwrite if it already exists.\n const exists = getLayoutItem(initialLayout, child.key || \"1\" /!* FIXME satisfies Flow *!/);\n if (exists) {\n newItem = exists;\n } else {\n const g = child.props._grid;\n\n // Hey, this item has a _grid property, use it.\n if (g) {\n if (!isProduction) {\n validateLayout([g], 'ReactGridLayout.children');\n }\n // Validated; add it to the layout. Bottom 'y' possible is the bottom of the layout.\n // This allows you to do nice stuff like specify {y: Infinity}\n if (verticalCompact) {\n newItem = cloneLayoutItem({...g, y: Math.min(bottom(layout), g.y), i: child.key});\n } else {\n newItem = cloneLayoutItem({...g, y: g.y, i: child.key});\n }\n }\n // Nothing provided: ensure this is added to the bottom\n else {\n newItem = cloneLayoutItem({w: 1, h: 1, x: 0, y: bottom(layout), i: child.key || \"1\"});\n }\n }\n layout[i] = newItem;\n }\n\n // Correct the layout.\n layout = correctBounds(layout, {cols: cols});\n layout = compact(layout, verticalCompact);\n\n return layout;\n}\n*/\n\n/**\n * Validate a layout. Throws errors.\n *\n * @param {Array} layout Array of layout items.\n * @param {String} [contextName] Context name for errors.\n * @throw {Error} Validation error.\n */\nexport function validateLayout(layout: Layout, contextName: string): void {\n contextName = contextName || \"Layout\";\n const subProps = ['x', 'y', 'w', 'h'];\n let keyArr = [];\n if (!Array.isArray(layout)) throw new Error(contextName + \" must be an array!\");\n for (let i = 0, len = layout.length; i < len; i++) {\n const item = layout[i];\n for (let j = 0; j < subProps.length; j++) {\n if (typeof item[subProps[j]] !== 'number') {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].' + subProps[j] + ' must be a number!');\n }\n }\n\n if (item.i === undefined || item.i === null) {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i cannot be null!');\n }\n\n if (typeof item.i !== 'number' && typeof item.i !== 'string') {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be a string or number!');\n }\n\n if (keyArr.indexOf(item.i) >= 0) {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be unique!');\n }\n keyArr.push(item.i);\n\n if (item.static !== undefined && typeof item.static !== 'boolean') {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].static must be a boolean!');\n }\n }\n}\n\n// Flow can't really figure this out, so we just use Object\nexport function autoBindHandlers(el: Object, fns: Array): void {\n fns.forEach((key) => el[key] = el[key].bind(el));\n}\n\n\n\n/**\n * Convert a JS object to CSS string. Similar to React's output of CSS.\n * @param obj\n * @returns {string}\n */\nexport function createMarkup(obj) {\n var keys = Object.keys(obj);\n if (!keys.length) return '';\n var i, len = keys.length;\n var result = '';\n\n for (i = 0; i < len; i++) {\n var key = keys[i];\n var val = obj[key];\n result += hyphenate(key) + ':' + addPx(key, val) + ';';\n }\n\n return result;\n}\n\n\n/* The following list is defined in React's core */\nexport var IS_UNITLESS = {\n animationIterationCount: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n flex: true,\n flexGrow: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n flexOrder: true,\n gridRow: true,\n gridColumn: true,\n fontWeight: true,\n lineClamp: true,\n lineHeight: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n\n // SVG-related properties\n fillOpacity: true,\n stopOpacity: true,\n strokeDashoffset: true,\n strokeOpacity: true,\n strokeWidth: true\n};\n\n\n/**\n * Will add px to the end of style values which are Numbers.\n * @param name\n * @param value\n * @returns {*}\n */\nexport function addPx(name, value) {\n if(typeof value === 'number' && !IS_UNITLESS[ name ]) {\n return value + 'px';\n } else {\n return value;\n }\n}\n\n\n/**\n * Hyphenate a camelCase string.\n *\n * @param {String} str\n * @return {String}\n */\n\nexport var hyphenateRE = /([a-z\\d])([A-Z])/g;\n\nexport function hyphenate(str) {\n return str.replace(hyphenateRE, '$1-$2').toLowerCase();\n}\n\n\nexport function findItemInArray(array, property, value) {\n for (var i=0; i < array.length; i++)\n if (array[i][property] == value)\n return true;\n\n return false;\n}\n\nexport function findAndRemove(array, property, value) {\n array.forEach(function (result, index) {\n if (result[property] === value) {\n //Remove from array\n array.splice(index, 1);\n }\n });\n}\n","// Get {x, y} positions from event.\nexport function getControlPosition(e) {\n return offsetXYFromParentOf(e);\n}\n\n\n// Get from offsetParent\nexport function offsetXYFromParentOf(evt) {\n const offsetParent = evt.target.offsetParent || document.body;\n const offsetParentRect = evt.offsetParent === document.body ? {left: 0, top: 0} : offsetParent.getBoundingClientRect();\n\n const x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left;\n const y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top;\n\n /*const x = Math.round(evt.clientX + offsetParent.scrollLeft - offsetParentRect.left);\n const y = Math.round(evt.clientY + offsetParent.scrollTop - offsetParentRect.top);*/\n\n\n return {x, y};\n}\n\n\n// Create an data object exposed by 's events\nexport function createCoreData(lastX, lastY, x, y) {\n // State changes are often (but not always!) async. We want the latest value.\n const isStart = !isNum(lastX);\n\n if (isStart) {\n // If this is our first move, use the x and y as last coords.\n return {\n deltaX: 0, deltaY: 0,\n lastX: x, lastY: y,\n x: x, y: y\n };\n } else {\n // Otherwise calculate proper values.\n return {\n deltaX: x - lastX, deltaY: y - lastY,\n lastX: lastX, lastY: lastY,\n x: x, y: y\n };\n }\n}\n\n\nfunction isNum(num) {\n return typeof num === 'number' && !isNaN(num);\n}\n\n","// @flow\n\nimport {cloneLayout, compact, correctBounds} from './utils';\n\nimport type {Layout} from './utils';\nexport type ResponsiveLayout = {lg?: Layout, md?: Layout, sm?: Layout, xs?: Layout, xxs?: Layout};\ntype Breakpoint = string;\ntype Breakpoints = {lg?: number, md?: number, sm?: number, xs?: number, xxs?: number};\n\n/**\n * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).\n *\n * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})\n * @param {Number} width Screen width.\n * @return {String} Highest breakpoint that is less than width.\n */\nexport function getBreakpointFromWidth(breakpoints: Breakpoints, width: number): Breakpoint {\n const sorted = sortBreakpoints(breakpoints);\n let matching = sorted[0];\n for (let i = 1, len = sorted.length; i < len; i++) {\n const breakpointName = sorted[i];\n if (width > breakpoints[breakpointName]) matching = breakpointName;\n }\n return matching;\n}\n\n\n/**\n * Given a breakpoint, get the # of cols set for it.\n * @param {String} breakpoint Breakpoint name.\n * @param {Object} cols Map of breakpoints to cols.\n * @return {Number} Number of cols.\n */\nexport function getColsFromBreakpoint(breakpoint: Breakpoint, cols: Breakpoints): number {\n if (!cols[breakpoint]) {\n throw new Error(\"ResponsiveGridLayout: `cols` entry for breakpoint \" + breakpoint + \" is missing!\");\n }\n return cols[breakpoint];\n}\n\n/**\n * Given existing layouts and a new breakpoint, find or generate a new layout.\n *\n * This finds the layout above the new one and generates from it, if it exists.\n *\n * @param {Array} orgLayout Original layout.\n * @param {Object} layouts Existing layouts.\n * @param {Array} breakpoints All breakpoints.\n * @param {String} breakpoint New breakpoint.\n * @param {String} breakpoint Last breakpoint (for fallback).\n * @param {Number} cols Column count at new breakpoint.\n * @param {Boolean} verticalCompact Whether or not to compact the layout\n * vertically.\n * @return {Array} New layout.\n */\nexport function findOrGenerateResponsiveLayout(orgLayout: Layout, layouts: ResponsiveLayout, breakpoints: Breakpoints,\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\n cols: number, verticalCompact: boolean): Layout {\n // If it already exists, just return it.\n if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\n // Find or generate the next layout\n let layout = orgLayout;\n\n const breakpointsSorted = sortBreakpoints(breakpoints);\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\n const b = breakpointsAbove[i];\n if (layouts[b]) {\n layout = layouts[b];\n break;\n }\n }\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\n}\n\nexport function generateResponsiveLayout(layout: Layout, breakpoints: Breakpoints,\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\n cols: number, verticalCompact: boolean): Layout {\n // If it already exists, just return it.\n /*if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\n // Find or generate the next layout\n let layout = layouts[lastBreakpoint];*/\n /*const breakpointsSorted = sortBreakpoints(breakpoints);\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\n const b = breakpointsAbove[i];\n if (layouts[b]) {\n layout = layouts[b];\n break;\n }\n }*/\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\n}\n\n/**\n * Given breakpoints, return an array of breakpoints sorted by width. This is usually\n * e.g. ['xxs', 'xs', 'sm', ...]\n *\n * @param {Object} breakpoints Key/value pair of breakpoint names to widths.\n * @return {Array} Sorted breakpoints.\n */\nexport function sortBreakpoints(breakpoints: Breakpoints): Array {\n const keys: Array = Object.keys(breakpoints);\n return keys.sort(function(a, b) {\n return breakpoints[a] - breakpoints[b];\n });\n}\n","let currentDir: \"ltr\" | \"rtl\" | \"auto\" = \"auto\";\n// let currentDir = \"auto\";\n\nfunction hasDocument(){\n return (typeof document !== \"undefined\");\n}\n\nfunction hasWindow(){\n return (typeof window !== \"undefined\");\n}\n\nexport function getDocumentDir(){\n if(!hasDocument()){\n return currentDir;\n }\n const direction = (typeof document.dir !== \"undefined\") ?\n document.dir :\n document.getElementsByTagName(\"html\")[0].getAttribute(\"dir\");\n return direction;\n}\n\nexport function setDocumentDir(dir: \"ltr\" | \"rtl\" | \"auto\"){\n// export function setDocumentDir(dir){\n if(!hasDocument){\n currentDir = dir;\n return;\n }\n\n const html = document.getElementsByTagName(\"html\")[0];\n html.setAttribute(\"dir\", dir);\n}\n\nexport function addWindowEventListener(event:string, callback: () => mixed){\n if(!hasWindow){\n\n callback();\n return;\n }\n window.addEventListener(event, callback);\n}\n\nexport function removeWindowEventListener(event:string, callback: () => mixed){\n if(!hasWindow){\n return;\n }\n window.removeEventListener(event, callback);\n}\n\n\n\n","const domObjects = {\n init,\n document: null,\n DocumentFragment: null,\n SVGElement: null,\n SVGSVGElement: null,\n SVGElementInstance: null,\n Element: null,\n HTMLElement: null,\n Event: null,\n Touch: null,\n PointerEvent: null\n};\n\nfunction blank() {}\n\nexport default domObjects;\n\nfunction init(window) {\n const win = window;\n domObjects.document = win.document;\n domObjects.DocumentFragment = win.DocumentFragment || blank;\n domObjects.SVGElement = win.SVGElement || blank;\n domObjects.SVGSVGElement = win.SVGSVGElement || blank;\n domObjects.SVGElementInstance = win.SVGElementInstance || blank;\n domObjects.Element = win.Element || blank;\n domObjects.HTMLElement = win.HTMLElement || domObjects.Element;\n domObjects.Event = win.Event;\n domObjects.Touch = win.Touch || blank;\n domObjects.PointerEvent = win.PointerEvent || win.MSPointerEvent;\n}\n//# sourceMappingURL=domObjects.js.map","export default (thing => !!(thing && thing.Window) && thing instanceof thing.Window);\n//# sourceMappingURL=isWindow.js.map","import isWindow from \"./isWindow.js\";\nexport let realWindow = undefined;\nlet win = undefined;\nexport { win as window };\nexport function init(window) {\n // get wrapped window if using Shadow DOM polyfill\n realWindow = window; // create a TextNode\n\n const el = window.document.createTextNode(''); // check if it's wrapped by a polyfill\n\n if (el.ownerDocument !== window.document && typeof window.wrap === 'function' && window.wrap(el) === el) {\n // use wrapped window\n window = window.wrap(window);\n }\n\n win = window;\n}\n\nif (typeof window !== 'undefined' && !!window) {\n init(window);\n}\n\nexport function getWindow(node) {\n if (isWindow(node)) {\n return node;\n }\n\n const rootNode = node.ownerDocument || node;\n return rootNode.defaultView || win.window;\n}\n//# sourceMappingURL=window.js.map","import isWindow from \"./isWindow.js\";\nimport * as win from \"./window.js\";\n\nconst window = thing => thing === win.window || isWindow(thing);\n\nconst docFrag = thing => object(thing) && thing.nodeType === 11;\n\nconst object = thing => !!thing && typeof thing === 'object';\n\nconst func = thing => typeof thing === 'function';\n\nconst number = thing => typeof thing === 'number';\n\nconst bool = thing => typeof thing === 'boolean';\n\nconst string = thing => typeof thing === 'string';\n\nconst element = thing => {\n if (!thing || typeof thing !== 'object') {\n return false;\n } // eslint-disable-next-line import/no-named-as-default-member\n\n\n const _window = win.getWindow(thing) || win.window;\n\n return /object|function/.test(typeof _window.Element) ? thing instanceof _window.Element // DOM2\n : thing.nodeType === 1 && typeof thing.nodeName === 'string';\n};\n\nconst plainObject = thing => object(thing) && !!thing.constructor && /function Object\\b/.test(thing.constructor.toString());\n\nconst array = thing => object(thing) && typeof thing.length !== 'undefined' && func(thing.splice);\n\nexport default {\n window,\n docFrag,\n object,\n func,\n number,\n bool,\n string,\n element,\n plainObject,\n array\n};\n//# sourceMappingURL=is.js.map","import domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nconst browser = {\n init,\n supportsTouch: null,\n supportsPointerEvent: null,\n isIOS7: null,\n isIOS: null,\n isIe9: null,\n isOperaMobile: null,\n prefixedMatchesSelector: null,\n pEventTypes: null,\n wheelEvent: null\n};\n\nfunction init(window) {\n const Element = domObjects.Element;\n const navigator = win.window.navigator; // Does the browser support touch input?\n\n browser.supportsTouch = 'ontouchstart' in window || is.func(window.DocumentTouch) && domObjects.document instanceof window.DocumentTouch; // Does the browser support PointerEvents\n\n browser.supportsPointerEvent = navigator.pointerEnabled !== false && !!domObjects.PointerEvent;\n browser.isIOS = /iP(hone|od|ad)/.test(navigator.platform); // scrolling doesn't change the result of getClientRects on iOS 7\n\n browser.isIOS7 = /iP(hone|od|ad)/.test(navigator.platform) && /OS 7[^\\d]/.test(navigator.appVersion);\n browser.isIe9 = /MSIE 9/.test(navigator.userAgent); // Opera Mobile must be handled differently\n\n browser.isOperaMobile = navigator.appName === 'Opera' && browser.supportsTouch && /Presto/.test(navigator.userAgent); // prefix matchesSelector\n\n browser.prefixedMatchesSelector = 'matches' in Element.prototype ? 'matches' : 'webkitMatchesSelector' in Element.prototype ? 'webkitMatchesSelector' : 'mozMatchesSelector' in Element.prototype ? 'mozMatchesSelector' : 'oMatchesSelector' in Element.prototype ? 'oMatchesSelector' : 'msMatchesSelector';\n browser.pEventTypes = browser.supportsPointerEvent ? domObjects.PointerEvent === window.MSPointerEvent ? {\n up: 'MSPointerUp',\n down: 'MSPointerDown',\n over: 'mouseover',\n out: 'mouseout',\n move: 'MSPointerMove',\n cancel: 'MSPointerCancel'\n } : {\n up: 'pointerup',\n down: 'pointerdown',\n over: 'pointerover',\n out: 'pointerout',\n move: 'pointermove',\n cancel: 'pointercancel'\n } : null; // because Webkit and Opera still use 'mousewheel' event type\n\n browser.wheelEvent = 'onmousewheel' in domObjects.document ? 'mousewheel' : 'wheel';\n}\n\nexport default browser;\n//# sourceMappingURL=browser.js.map","export const contains = (array, target) => array.indexOf(target) !== -1;\nexport const remove = (array, target) => array.splice(array.indexOf(target), 1);\nexport const merge = (target, source) => {\n for (const item of source) {\n target.push(item);\n }\n\n return target;\n};\nexport const from = source => merge([], source);\nexport const findIndex = (array, func) => {\n for (let i = 0; i < array.length; i++) {\n if (func(array[i], i, array)) {\n return i;\n }\n }\n\n return -1;\n};\nexport const find = (array, func) => array[findIndex(array, func)];\n//# sourceMappingURL=arr.js.map","import * as arr from \"./arr.js\";\nimport is from \"./is.js\"; // tslint:disable-next-line ban-types\n\nexport default function clone(source) {\n const dest = {};\n\n for (const prop in source) {\n const value = source[prop];\n\n if (is.plainObject(value)) {\n dest[prop] = clone(value);\n } else if (is.array(value)) {\n dest[prop] = arr.from(value);\n } else {\n dest[prop] = value;\n }\n }\n\n return dest;\n}\n//# sourceMappingURL=clone.js.map","export default function extend(dest, source) {\n for (const prop in source) {\n dest[prop] = source[prop];\n }\n\n const ret = dest;\n return ret;\n}\n//# sourceMappingURL=extend.js.map","let lastTime = 0;\nlet request;\nlet cancel;\n\nfunction init(window) {\n request = window.requestAnimationFrame;\n cancel = window.cancelAnimationFrame;\n\n if (!request) {\n const vendors = ['ms', 'moz', 'webkit', 'o'];\n\n for (const vendor of vendors) {\n request = window[`${vendor}RequestAnimationFrame`];\n cancel = window[`${vendor}CancelAnimationFrame`] || window[`${vendor}CancelRequestAnimationFrame`];\n }\n }\n\n request = request && request.bind(window);\n cancel = cancel && cancel.bind(window);\n\n if (!request) {\n request = callback => {\n const currTime = Date.now();\n const timeToCall = Math.max(0, 16 - (currTime - lastTime)); // eslint-disable-next-line node/no-callback-literal\n\n const token = window.setTimeout(() => {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return token;\n };\n\n cancel = token => clearTimeout(token);\n }\n}\n\nexport default {\n request: callback => request(callback),\n cancel: token => cancel(token),\n init\n};\n//# sourceMappingURL=raf.js.map","import extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport default function normalize(type, listeners, result) {\n result = result || {};\n\n if (is.string(type) && type.search(' ') !== -1) {\n type = split(type);\n }\n\n if (is.array(type)) {\n return type.reduce((acc, t) => extend(acc, normalize(t, listeners, result)), result);\n } // ({ type: fn }) -> ('', { type: fn })\n\n\n if (is.object(type)) {\n listeners = type;\n type = '';\n }\n\n if (is.func(listeners)) {\n result[type] = result[type] || [];\n result[type].push(listeners);\n } else if (is.array(listeners)) {\n for (const l of listeners) {\n normalize(type, l, result);\n }\n } else if (is.object(listeners)) {\n for (const prefix in listeners) {\n const combinedTypes = split(prefix).map(p => `${type}${p}`);\n normalize(combinedTypes, listeners[prefix], result);\n }\n }\n\n return result;\n}\n\nfunction split(type) {\n return type.trim().split(/ +/);\n}\n//# sourceMappingURL=normalizeListeners.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport normalize from \"../utils/normalizeListeners.js\";\n\nfunction fireUntilImmediateStopped(event, listeners) {\n for (const listener of listeners) {\n if (event.immediatePropagationStopped) {\n break;\n }\n\n listener(event);\n }\n}\n\nexport class Eventable {\n constructor(options) {\n this.options = void 0;\n this.types = {};\n this.propagationStopped = false;\n this.immediatePropagationStopped = false;\n this.global = void 0;\n this.options = extend({}, options || {});\n }\n\n fire(event) {\n let listeners;\n const global = this.global; // Interactable#on() listeners\n // tslint:disable no-conditional-assignment\n\n if (listeners = this.types[event.type]) {\n fireUntilImmediateStopped(event, listeners);\n } // interact.on() listeners\n\n\n if (!event.propagationStopped && global && (listeners = global[event.type])) {\n fireUntilImmediateStopped(event, listeners);\n }\n }\n\n on(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n this.types[type] = arr.merge(this.types[type] || [], listeners[type]);\n }\n }\n\n off(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n const eventList = this.types[type];\n\n if (!eventList || !eventList.length) {\n continue;\n }\n\n for (const subListener of listeners[type]) {\n const index = eventList.indexOf(subListener);\n\n if (index !== -1) {\n eventList.splice(index, 1);\n }\n }\n }\n }\n\n getRect(_element) {\n return null;\n }\n\n}\n//# sourceMappingURL=Eventable.js.map","import browser from \"./browser.js\";\nimport domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nexport function nodeContains(parent, child) {\n if (parent.contains) {\n return parent.contains(child);\n }\n\n while (child) {\n if (child === parent) {\n return true;\n }\n\n child = child.parentNode;\n }\n\n return false;\n}\nexport function closest(element, selector) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return element;\n }\n\n element = parentNode(element);\n }\n\n return null;\n}\nexport function parentNode(node) {\n let parent = node.parentNode;\n\n if (is.docFrag(parent)) {\n // skip past #shado-root fragments\n // tslint:disable-next-line\n while ((parent = parent.host) && is.docFrag(parent)) {\n continue;\n }\n\n return parent;\n }\n\n return parent;\n}\nexport function matchesSelector(element, selector) {\n // remove /deep/ from selectors if shadowDOM polyfill is used\n if (win.window !== win.realWindow) {\n selector = selector.replace(/\\/deep\\//g, ' ');\n }\n\n return element[browser.prefixedMatchesSelector](selector);\n}\n\nconst getParent = el => el.parentNode || el.host; // Test for the element that's \"above\" all other qualifiers\n\n\nexport function indexOfDeepestElement(elements) {\n let deepestNodeParents = [];\n let deepestNodeIndex;\n\n for (let i = 0; i < elements.length; i++) {\n const currentNode = elements[i];\n const deepestNode = elements[deepestNodeIndex]; // node may appear in elements array multiple times\n\n if (!currentNode || i === deepestNodeIndex) {\n continue;\n }\n\n if (!deepestNode) {\n deepestNodeIndex = i;\n continue;\n }\n\n const currentNodeParent = getParent(currentNode);\n const deepestNodeParent = getParent(deepestNode); // check if the deepest or current are document.documentElement/rootElement\n // - if the current node is, do nothing and continue\n\n if (currentNodeParent === currentNode.ownerDocument) {\n continue;\n } // - if deepest is, update with the current node and continue to next\n else if (deepestNodeParent === currentNode.ownerDocument) {\n deepestNodeIndex = i;\n continue;\n } // compare zIndex of siblings\n\n\n if (currentNodeParent === deepestNodeParent) {\n if (zIndexIsHigherThan(currentNode, deepestNode)) {\n deepestNodeIndex = i;\n }\n\n continue;\n } // populate the ancestry array for the latest deepest node\n\n\n deepestNodeParents = deepestNodeParents.length ? deepestNodeParents : getNodeParents(deepestNode);\n let ancestryStart; // if the deepest node is an HTMLElement and the current node is a non root svg element\n\n if (deepestNode instanceof domObjects.HTMLElement && currentNode instanceof domObjects.SVGElement && !(currentNode instanceof domObjects.SVGSVGElement)) {\n // TODO: is this check necessary? Was this for HTML elements embedded in SVG?\n if (currentNode === deepestNodeParent) {\n continue;\n }\n\n ancestryStart = currentNode.ownerSVGElement;\n } else {\n ancestryStart = currentNode;\n }\n\n const currentNodeParents = getNodeParents(ancestryStart, deepestNode.ownerDocument);\n let commonIndex = 0; // get (position of closest common ancestor) + 1\n\n while (currentNodeParents[commonIndex] && currentNodeParents[commonIndex] === deepestNodeParents[commonIndex]) {\n commonIndex++;\n }\n\n const parents = [currentNodeParents[commonIndex - 1], currentNodeParents[commonIndex], deepestNodeParents[commonIndex]];\n let child = parents[0].lastChild;\n\n while (child) {\n if (child === parents[1]) {\n deepestNodeIndex = i;\n deepestNodeParents = currentNodeParents;\n break;\n } else if (child === parents[2]) {\n break;\n }\n\n child = child.previousSibling;\n }\n }\n\n return deepestNodeIndex;\n}\n\nfunction getNodeParents(node, limit) {\n const parents = [];\n let parent = node;\n let parentParent;\n\n while ((parentParent = getParent(parent)) && parent !== limit && parentParent !== parent.ownerDocument) {\n parents.unshift(parent);\n parent = parentParent;\n }\n\n return parents;\n}\n\nfunction zIndexIsHigherThan(higherNode, lowerNode) {\n const higherIndex = parseInt(win.getWindow(higherNode).getComputedStyle(higherNode).zIndex, 10) || 0;\n const lowerIndex = parseInt(win.getWindow(lowerNode).getComputedStyle(lowerNode).zIndex, 10) || 0;\n return higherIndex >= lowerIndex;\n}\n\nexport function matchesUpTo(element, selector, limit) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return true;\n }\n\n element = parentNode(element);\n\n if (element === limit) {\n return matchesSelector(element, selector);\n }\n }\n\n return false;\n}\nexport function getActualElement(element) {\n return element.correspondingUseElement || element;\n}\nexport function getScrollXY(relevantWindow) {\n relevantWindow = relevantWindow || win.window;\n return {\n x: relevantWindow.scrollX || relevantWindow.document.documentElement.scrollLeft,\n y: relevantWindow.scrollY || relevantWindow.document.documentElement.scrollTop\n };\n}\nexport function getElementClientRect(element) {\n const clientRect = element instanceof domObjects.SVGElement ? element.getBoundingClientRect() : element.getClientRects()[0];\n return clientRect && {\n left: clientRect.left,\n right: clientRect.right,\n top: clientRect.top,\n bottom: clientRect.bottom,\n width: clientRect.width || clientRect.right - clientRect.left,\n height: clientRect.height || clientRect.bottom - clientRect.top\n };\n}\nexport function getElementRect(element) {\n const clientRect = getElementClientRect(element);\n\n if (!browser.isIOS7 && clientRect) {\n const scroll = getScrollXY(win.getWindow(element));\n clientRect.left += scroll.x;\n clientRect.right += scroll.x;\n clientRect.top += scroll.y;\n clientRect.bottom += scroll.y;\n }\n\n return clientRect;\n}\nexport function getPath(node) {\n const path = [];\n\n while (node) {\n path.push(node);\n node = parentNode(node);\n }\n\n return path;\n}\nexport function trySelector(value) {\n if (!is.string(value)) {\n return false;\n } // an exception will be raised if it is invalid\n\n\n domObjects.document.querySelector(value);\n return true;\n}\n//# sourceMappingURL=domUtils.js.map","import { closest, getElementRect, parentNode } from \"./domUtils.js\";\nimport extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport function getStringOptionResult(value, target, element) {\n if (value === 'parent') {\n return parentNode(element);\n }\n\n if (value === 'self') {\n return target.getRect(element);\n }\n\n return closest(element, value);\n}\nexport function resolveRectLike(value, target, element, functionArgs) {\n let returnValue = value;\n\n if (is.string(returnValue)) {\n returnValue = getStringOptionResult(returnValue, target, element);\n } else if (is.func(returnValue)) {\n returnValue = returnValue(...functionArgs);\n }\n\n if (is.element(returnValue)) {\n returnValue = getElementRect(returnValue);\n }\n\n return returnValue;\n}\nexport function rectToXY(rect) {\n return rect && {\n x: 'x' in rect ? rect.x : rect.left,\n y: 'y' in rect ? rect.y : rect.top\n };\n}\nexport function xywhToTlbr(rect) {\n if (rect && !('left' in rect && 'top' in rect)) {\n rect = extend({}, rect);\n rect.left = rect.x || 0;\n rect.top = rect.y || 0;\n rect.right = rect.right || rect.left + rect.width;\n rect.bottom = rect.bottom || rect.top + rect.height;\n }\n\n return rect;\n}\nexport function tlbrToXywh(rect) {\n if (rect && !('x' in rect && 'y' in rect)) {\n rect = extend({}, rect);\n rect.x = rect.left || 0;\n rect.y = rect.top || 0;\n rect.width = rect.width || (rect.right || 0) - rect.x;\n rect.height = rect.height || (rect.bottom || 0) - rect.y;\n }\n\n return rect;\n}\nexport function addEdges(edges, rect, delta) {\n if (edges.left) {\n rect.left += delta.x;\n }\n\n if (edges.right) {\n rect.right += delta.x;\n }\n\n if (edges.top) {\n rect.top += delta.y;\n }\n\n if (edges.bottom) {\n rect.bottom += delta.y;\n }\n\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n}\n//# sourceMappingURL=rect.js.map","import { rectToXY, resolveRectLike } from \"./rect.js\";\nexport default function (target, element, actionName) {\n const actionOptions = target.options[actionName];\n const actionOrigin = actionOptions && actionOptions.origin;\n const origin = actionOrigin || target.options.origin;\n const originRect = resolveRectLike(origin, target, element, [target && element]);\n return rectToXY(originRect) || {\n x: 0,\n y: 0\n };\n}\n//# sourceMappingURL=getOriginXY.js.map","export default ((x, y) => Math.sqrt(x * x + y * y));\n//# sourceMappingURL=hypot.js.map","export class BaseEvent {\n constructor(interaction) {\n this.type = void 0;\n this.target = void 0;\n this.currentTarget = void 0;\n this.interactable = void 0;\n this._interaction = void 0;\n this.timeStamp = void 0;\n this.immediatePropagationStopped = false;\n this.propagationStopped = false;\n this._interaction = interaction;\n }\n\n preventDefault() {}\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n\n} // defined outside of class definition to avoid assignment of undefined during\n// construction\n\n// getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\nObject.defineProperty(BaseEvent.prototype, 'interaction', {\n get() {\n return this._interaction._proxy;\n },\n\n set() {}\n\n});\n//# sourceMappingURL=BaseEvent.js.map","// eslint-disable-next-line @typescript-eslint/no-empty-interface\n// export interface Options extends BaseDefaults, PerActionDefaults {}\nexport const defaults = {\n base: {\n preventDefault: 'auto',\n deltaSource: 'page'\n },\n perAction: {\n enabled: false,\n origin: {\n x: 0,\n y: 0\n }\n },\n actions: {}\n};\n//# sourceMappingURL=defaultOptions.js.map","import extend from \"../utils/extend.js\";\nimport getOriginXY from \"../utils/getOriginXY.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { BaseEvent } from \"./BaseEvent.js\";\nimport { defaults } from \"./defaultOptions.js\";\nexport class InteractEvent extends BaseEvent {\n // resize\n\n /** */\n constructor(interaction, event, actionName, phase, element, preEnd, type) {\n super(interaction);\n this.target = void 0;\n this.currentTarget = void 0;\n this.relatedTarget = null;\n this.screenX = void 0;\n this.screenY = void 0;\n this.button = void 0;\n this.buttons = void 0;\n this.ctrlKey = void 0;\n this.shiftKey = void 0;\n this.altKey = void 0;\n this.metaKey = void 0;\n this.page = void 0;\n this.client = void 0;\n this.delta = void 0;\n this.rect = void 0;\n this.x0 = void 0;\n this.y0 = void 0;\n this.t0 = void 0;\n this.dt = void 0;\n this.duration = void 0;\n this.clientX0 = void 0;\n this.clientY0 = void 0;\n this.velocity = void 0;\n this.speed = void 0;\n this.swipe = void 0;\n this.timeStamp = void 0;\n this.axes = void 0;\n this.preEnd = void 0;\n element = element || interaction.element;\n const target = interaction.interactable;\n const deltaSource = (target && target.options || defaults).deltaSource;\n const origin = getOriginXY(target, element, actionName);\n const starting = phase === 'start';\n const ending = phase === 'end';\n const prevEvent = starting ? this : interaction.prevEvent;\n const coords = starting ? interaction.coords.start : ending ? {\n page: prevEvent.page,\n client: prevEvent.client,\n timeStamp: interaction.coords.cur.timeStamp\n } : interaction.coords.cur;\n this.page = extend({}, coords.page);\n this.client = extend({}, coords.client);\n this.rect = extend({}, interaction.rect);\n this.timeStamp = coords.timeStamp;\n\n if (!ending) {\n this.page.x -= origin.x;\n this.page.y -= origin.y;\n this.client.x -= origin.x;\n this.client.y -= origin.y;\n }\n\n this.ctrlKey = event.ctrlKey;\n this.altKey = event.altKey;\n this.shiftKey = event.shiftKey;\n this.metaKey = event.metaKey;\n this.button = event.button;\n this.buttons = event.buttons;\n this.target = element;\n this.currentTarget = element;\n this.preEnd = preEnd;\n this.type = type || actionName + (phase || '');\n this.interactable = target;\n this.t0 = starting ? interaction.pointers[interaction.pointers.length - 1].downTime : prevEvent.t0;\n this.x0 = interaction.coords.start.page.x - origin.x;\n this.y0 = interaction.coords.start.page.y - origin.y;\n this.clientX0 = interaction.coords.start.client.x - origin.x;\n this.clientY0 = interaction.coords.start.client.y - origin.y;\n\n if (starting || ending) {\n this.delta = {\n x: 0,\n y: 0\n };\n } else {\n this.delta = {\n x: this[deltaSource].x - prevEvent[deltaSource].x,\n y: this[deltaSource].y - prevEvent[deltaSource].y\n };\n }\n\n this.dt = interaction.coords.delta.timeStamp;\n this.duration = this.timeStamp - this.t0; // velocity and speed in pixels per second\n\n this.velocity = extend({}, interaction.coords.velocity[deltaSource]);\n this.speed = hypot(this.velocity.x, this.velocity.y);\n this.swipe = ending || phase === 'inertiastart' ? this.getSwipe() : null;\n }\n\n getSwipe() {\n const interaction = this._interaction;\n\n if (interaction.prevEvent.speed < 600 || this.timeStamp - interaction.prevEvent.timeStamp > 150) {\n return null;\n }\n\n let angle = 180 * Math.atan2(interaction.prevEvent.velocityY, interaction.prevEvent.velocityX) / Math.PI;\n const overlap = 22.5;\n\n if (angle < 0) {\n angle += 360;\n }\n\n const left = 135 - overlap <= angle && angle < 225 + overlap;\n const up = 225 - overlap <= angle && angle < 315 + overlap;\n const right = !left && (315 - overlap <= angle || angle < 45 + overlap);\n const down = !up && 45 - overlap <= angle && angle < 135 + overlap;\n return {\n up,\n down,\n left,\n right,\n angle,\n speed: interaction.prevEvent.speed,\n velocity: {\n x: interaction.prevEvent.velocityX,\n y: interaction.prevEvent.velocityY\n }\n };\n }\n\n preventDefault() {}\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n\n} // getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\n\nObject.defineProperties(InteractEvent.prototype, {\n pageX: {\n get() {\n return this.page.x;\n },\n\n set(value) {\n this.page.x = value;\n }\n\n },\n pageY: {\n get() {\n return this.page.y;\n },\n\n set(value) {\n this.page.y = value;\n }\n\n },\n clientX: {\n get() {\n return this.client.x;\n },\n\n set(value) {\n this.client.x = value;\n }\n\n },\n clientY: {\n get() {\n return this.client.y;\n },\n\n set(value) {\n this.client.y = value;\n }\n\n },\n dx: {\n get() {\n return this.delta.x;\n },\n\n set(value) {\n this.delta.x = value;\n }\n\n },\n dy: {\n get() {\n return this.delta.y;\n },\n\n set(value) {\n this.delta.y = value;\n }\n\n },\n velocityX: {\n get() {\n return this.velocity.x;\n },\n\n set(value) {\n this.velocity.x = value;\n }\n\n },\n velocityY: {\n get() {\n return this.velocity.y;\n },\n\n set(value) {\n this.velocity.y = value;\n }\n\n }\n});\n//# sourceMappingURL=InteractEvent.js.map","export default function isNonNativeEvent(type, actions) {\n if (actions.phaselessTypes[type]) {\n return true;\n }\n\n for (const name in actions.map) {\n if (type.indexOf(name) === 0 && type.substr(name.length) in actions.phases) {\n return true;\n }\n }\n\n return false;\n}\n//# sourceMappingURL=isNonNativeEvent.js.map","/* eslint-disable no-dupe-class-members */\nimport * as arr from \"../utils/arr.js\";\nimport browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport { getElementRect, matchesUpTo, nodeContains, trySelector } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport normalizeListeners from \"../utils/normalizeListeners.js\";\nimport { getWindow } from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\n\n/** */\nexport class Interactable {\n /** @internal */\n get _defaults() {\n return {\n base: {},\n perAction: {},\n actions: {}\n };\n }\n\n /** */\n constructor(target, options, defaultContext, scopeEvents) {\n this.options = void 0;\n this._actions = void 0;\n this.target = void 0;\n this.events = new Eventable();\n this._context = void 0;\n this._win = void 0;\n this._doc = void 0;\n this._scopeEvents = void 0;\n this._rectChecker = void 0;\n this._actions = options.actions;\n this.target = target;\n this._context = options.context || defaultContext;\n this._win = getWindow(trySelector(target) ? this._context : target);\n this._doc = this._win.document;\n this._scopeEvents = scopeEvents;\n this.set(options);\n }\n\n setOnEvents(actionName, phases) {\n if (is.func(phases.onstart)) {\n this.on(`${actionName}start`, phases.onstart);\n }\n\n if (is.func(phases.onmove)) {\n this.on(`${actionName}move`, phases.onmove);\n }\n\n if (is.func(phases.onend)) {\n this.on(`${actionName}end`, phases.onend);\n }\n\n if (is.func(phases.oninertiastart)) {\n this.on(`${actionName}inertiastart`, phases.oninertiastart);\n }\n\n return this;\n }\n\n updatePerActionListeners(actionName, prev, cur) {\n if (is.array(prev) || is.object(prev)) {\n this.off(actionName, prev);\n }\n\n if (is.array(cur) || is.object(cur)) {\n this.on(actionName, cur);\n }\n }\n\n setPerAction(actionName, options) {\n const defaults = this._defaults; // for all the default per-action options\n\n for (const optionName_ in options) {\n const optionName = optionName_;\n const actionOptions = this.options[actionName];\n const optionValue = options[optionName]; // remove old event listeners and add new ones\n\n if (optionName === 'listeners') {\n this.updatePerActionListeners(actionName, actionOptions.listeners, optionValue);\n } // if the option value is an array\n\n\n if (is.array(optionValue)) {\n actionOptions[optionName] = arr.from(optionValue);\n } // if the option value is an object\n else if (is.plainObject(optionValue)) {\n // copy the object\n actionOptions[optionName] = extend(actionOptions[optionName] || {}, clone(optionValue)); // set anabled field to true if it exists in the defaults\n\n if (is.object(defaults.perAction[optionName]) && 'enabled' in defaults.perAction[optionName]) {\n actionOptions[optionName].enabled = optionValue.enabled !== false;\n }\n } // if the option value is a boolean and the default is an object\n else if (is.bool(optionValue) && is.object(defaults.perAction[optionName])) {\n actionOptions[optionName].enabled = optionValue;\n } // if it's anything else, do a plain assignment\n else {\n actionOptions[optionName] = optionValue;\n }\n }\n }\n /**\n * The default function to get an Interactables bounding rect. Can be\n * overridden using {@link Interactable.rectChecker}.\n *\n * @param {Element} [element] The element to measure.\n * @return {Rect} The object's bounding rectangle.\n */\n\n\n getRect(element) {\n element = element || (is.element(this.target) ? this.target : null);\n\n if (is.string(this.target)) {\n element = element || this._context.querySelector(this.target);\n }\n\n return getElementRect(element);\n }\n /**\n * Returns or sets the function used to calculate the interactable's\n * element's rectangle\n *\n * @param {function} [checker] A function which returns this Interactable's\n * bounding rectangle. See {@link Interactable.getRect}\n * @return {function | object} The checker function or this Interactable\n */\n\n\n rectChecker(checker) {\n if (is.func(checker)) {\n this._rectChecker = checker;\n\n this.getRect = element => {\n const rect = extend({}, this._rectChecker(element));\n\n if (!('width' in rect)) {\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n return rect;\n };\n\n return this;\n }\n\n if (checker === null) {\n delete this.getRect;\n delete this._rectChecker;\n return this;\n }\n\n return this.getRect;\n }\n\n _backCompatOption(optionName, newValue) {\n if (trySelector(newValue) || is.object(newValue)) {\n this.options[optionName] = newValue;\n\n for (const action in this._actions.map) {\n this.options[action][optionName] = newValue;\n }\n\n return this;\n }\n\n return this.options[optionName];\n }\n /**\n * Gets or sets the origin of the Interactable's element. The x and y\n * of the origin will be subtracted from action event coordinates.\n *\n * @param {Element | object | string} [origin] An HTML or SVG Element whose\n * rect will be used, an object eg. { x: 0, y: 0 } or string 'parent', 'self'\n * or any CSS selector\n *\n * @return {object} The current origin or this Interactable\n */\n\n\n origin(newValue) {\n return this._backCompatOption('origin', newValue);\n }\n /**\n * Returns or sets the mouse coordinate types used to calculate the\n * movement of the pointer.\n *\n * @param {string} [newValue] Use 'client' if you will be scrolling while\n * interacting; Use 'page' if you want autoScroll to work\n * @return {string | object} The current deltaSource or this Interactable\n */\n\n\n deltaSource(newValue) {\n if (newValue === 'page' || newValue === 'client') {\n this.options.deltaSource = newValue;\n return this;\n }\n\n return this.options.deltaSource;\n }\n /**\n * Gets the selector context Node of the Interactable. The default is\n * `window.document`.\n *\n * @return {Node} The context Node of this Interactable\n */\n\n\n context() {\n return this._context;\n }\n\n inContext(element) {\n return this._context === element.ownerDocument || nodeContains(this._context, element);\n }\n\n testIgnoreAllow(options, targetNode, eventTarget) {\n return !this.testIgnore(options.ignoreFrom, targetNode, eventTarget) && this.testAllow(options.allowFrom, targetNode, eventTarget);\n }\n\n testAllow(allowFrom, targetNode, element) {\n if (!allowFrom) {\n return true;\n }\n\n if (!is.element(element)) {\n return false;\n }\n\n if (is.string(allowFrom)) {\n return matchesUpTo(element, allowFrom, targetNode);\n } else if (is.element(allowFrom)) {\n return nodeContains(allowFrom, element);\n }\n\n return false;\n }\n\n testIgnore(ignoreFrom, targetNode, element) {\n if (!ignoreFrom || !is.element(element)) {\n return false;\n }\n\n if (is.string(ignoreFrom)) {\n return matchesUpTo(element, ignoreFrom, targetNode);\n } else if (is.element(ignoreFrom)) {\n return nodeContains(ignoreFrom, element);\n }\n\n return false;\n }\n /**\n * Calls listeners for the given InteractEvent type bound globally\n * and directly to this Interactable\n *\n * @param {InteractEvent} iEvent The InteractEvent object to be fired on this\n * Interactable\n * @return {Interactable} this Interactable\n */\n\n\n fire(iEvent) {\n this.events.fire(iEvent);\n return this;\n }\n\n _onOff(method, typeArg, listenerArg, options) {\n if (is.object(typeArg) && !is.array(typeArg)) {\n options = listenerArg;\n listenerArg = null;\n }\n\n const addRemove = method === 'on' ? 'add' : 'remove';\n const listeners = normalizeListeners(typeArg, listenerArg);\n\n for (let type in listeners) {\n if (type === 'wheel') {\n type = browser.wheelEvent;\n }\n\n for (const listener of listeners[type]) {\n // if it is an action event type\n if (isNonNativeEvent(type, this._actions)) {\n this.events[method](type, listener);\n } // delegated event\n else if (is.string(this.target)) {\n this._scopeEvents[`${addRemove}Delegate`](this.target, this._context, type, listener, options);\n } // remove listener from this Interactable's element\n else {\n this._scopeEvents[addRemove](this.target, type, listener, options);\n }\n }\n }\n\n return this;\n }\n /**\n * Binds a listener for an InteractEvent, pointerEvent or DOM event.\n *\n * @param {string | array | object} types The types of events to listen\n * for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * addEventListener\n * @return {Interactable} This Interactable\n */\n\n\n on(types, listener, options) {\n return this._onOff('on', types, listener, options);\n }\n /**\n * Removes an InteractEvent, pointerEvent or DOM event listener.\n *\n * @param {string | array | object} types The types of events that were\n * listened for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * removeEventListener\n * @return {Interactable} This Interactable\n */\n\n\n off(types, listener, options) {\n return this._onOff('off', types, listener, options);\n }\n /**\n * Reset the options of this Interactable\n *\n * @param {object} options The new settings to apply\n * @return {object} This Interactable\n */\n\n\n set(options) {\n const defaults = this._defaults;\n\n if (!is.object(options)) {\n options = {};\n }\n\n this.options = clone(defaults.base);\n\n for (const actionName_ in this._actions.methodDict) {\n const actionName = actionName_;\n const methodName = this._actions.methodDict[actionName];\n this.options[actionName] = {};\n this.setPerAction(actionName, extend(extend({}, defaults.perAction), defaults.actions[actionName]));\n this[methodName](options[actionName]);\n }\n\n for (const setting in options) {\n if (is.func(this[setting])) {\n this[setting](options[setting]);\n }\n }\n\n return this;\n }\n /**\n * Remove this interactable from the list of interactables and remove it's\n * action capabilities and event listeners\n */\n\n\n unset() {\n if (is.string(this.target)) {\n // remove delegated events\n for (const type in this._scopeEvents.delegatedEvents) {\n const delegated = this._scopeEvents.delegatedEvents[type];\n\n for (let i = delegated.length - 1; i >= 0; i--) {\n const {\n selector,\n context,\n listeners\n } = delegated[i];\n\n if (selector === this.target && context === this._context) {\n delegated.splice(i, 1);\n }\n\n for (let l = listeners.length - 1; l >= 0; l--) {\n this._scopeEvents.removeDelegate(this.target, this._context, type, listeners[l][0], listeners[l][1]);\n }\n }\n }\n } else {\n this._scopeEvents.remove(this.target, 'all');\n }\n }\n\n}\n//# sourceMappingURL=Interactable.js.map","import * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nexport class InteractableSet {\n // all set interactables\n constructor(scope) {\n this.list = [];\n this.selectorMap = {};\n this.scope = void 0;\n this.scope = scope;\n scope.addListeners({\n 'interactable:unset': ({\n interactable\n }) => {\n const {\n target,\n _context: context\n } = interactable;\n const targetMappings = is.string(target) ? this.selectorMap[target] : target[this.scope.id];\n const targetIndex = arr.findIndex(targetMappings, m => m.context === context);\n\n if (targetMappings[targetIndex]) {\n // Destroying mappingInfo's context and interactable\n targetMappings[targetIndex].context = null;\n targetMappings[targetIndex].interactable = null;\n }\n\n targetMappings.splice(targetIndex, 1);\n }\n });\n }\n\n new(target, options) {\n options = extend(options || {}, {\n actions: this.scope.actions\n });\n const interactable = new this.scope.Interactable(target, options, this.scope.document, this.scope.events);\n const mappingInfo = {\n context: interactable._context,\n interactable\n };\n this.scope.addDocument(interactable._doc);\n this.list.push(interactable);\n\n if (is.string(target)) {\n if (!this.selectorMap[target]) {\n this.selectorMap[target] = [];\n }\n\n this.selectorMap[target].push(mappingInfo);\n } else {\n if (!interactable.target[this.scope.id]) {\n Object.defineProperty(target, this.scope.id, {\n value: [],\n configurable: true\n });\n }\n\n target[this.scope.id].push(mappingInfo);\n }\n\n this.scope.fire('interactable:new', {\n target,\n options,\n interactable,\n win: this.scope._win\n });\n return interactable;\n }\n\n get(target, options) {\n const context = options && options.context || this.scope.document;\n const isSelector = is.string(target);\n const targetMappings = isSelector ? this.selectorMap[target] : target[this.scope.id];\n\n if (!targetMappings) {\n return null;\n }\n\n const found = arr.find(targetMappings, m => m.context === context && (isSelector || m.interactable.inContext(target)));\n return found && found.interactable;\n }\n\n forEachMatch(node, callback) {\n for (const interactable of this.list) {\n let ret;\n\n if ((is.string(interactable.target) // target is a selector and the element matches\n ? is.element(node) && domUtils.matchesSelector(node, interactable.target) : // target is the element\n node === interactable.target) && // the element is in context\n interactable.inContext(node)) {\n ret = callback(interactable);\n }\n\n if (ret !== undefined) {\n return ret;\n }\n }\n }\n\n}\n//# sourceMappingURL=InteractableSet.js.map","function pointerExtend(dest, source) {\n for (const prop in source) {\n const prefixedPropREs = pointerExtend.prefixedPropREs;\n let deprecated = false; // skip deprecated prefixed properties\n\n for (const vendor in prefixedPropREs) {\n if (prop.indexOf(vendor) === 0 && prefixedPropREs[vendor].test(prop)) {\n deprecated = true;\n break;\n }\n }\n\n if (!deprecated && typeof source[prop] !== 'function') {\n dest[prop] = source[prop];\n }\n }\n\n return dest;\n}\n\npointerExtend.prefixedPropREs = {\n webkit: /(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,\n moz: /(Pressure)$/\n};\nexport default pointerExtend;\n//# sourceMappingURL=pointerExtend.js.map","import browser from \"./browser.js\";\nimport dom from \"./domObjects.js\";\nimport * as domUtils from \"./domUtils.js\";\nimport hypot from \"./hypot.js\";\nimport is from \"./is.js\";\nimport pointerExtend from \"./pointerExtend.js\";\nexport function copyCoords(dest, src) {\n dest.page = dest.page || {};\n dest.page.x = src.page.x;\n dest.page.y = src.page.y;\n dest.client = dest.client || {};\n dest.client.x = src.client.x;\n dest.client.y = src.client.y;\n dest.timeStamp = src.timeStamp;\n}\nexport function setCoordDeltas(targetObj, prev, cur) {\n targetObj.page.x = cur.page.x - prev.page.x;\n targetObj.page.y = cur.page.y - prev.page.y;\n targetObj.client.x = cur.client.x - prev.client.x;\n targetObj.client.y = cur.client.y - prev.client.y;\n targetObj.timeStamp = cur.timeStamp - prev.timeStamp;\n}\nexport function setCoordVelocity(targetObj, delta) {\n const dt = Math.max(delta.timeStamp / 1000, 0.001);\n targetObj.page.x = delta.page.x / dt;\n targetObj.page.y = delta.page.y / dt;\n targetObj.client.x = delta.client.x / dt;\n targetObj.client.y = delta.client.y / dt;\n targetObj.timeStamp = dt;\n}\nexport function setZeroCoords(targetObj) {\n targetObj.page.x = 0;\n targetObj.page.y = 0;\n targetObj.client.x = 0;\n targetObj.client.y = 0;\n}\nexport function isNativePointer(pointer) {\n return pointer instanceof dom.Event || pointer instanceof dom.Touch;\n} // Get specified X/Y coords for mouse or event.touches[0]\n\nexport function getXY(type, pointer, xy) {\n xy = xy || {};\n type = type || 'page';\n xy.x = pointer[type + 'X'];\n xy.y = pointer[type + 'Y'];\n return xy;\n}\nexport function getPageXY(pointer, page) {\n page = page || {\n x: 0,\n y: 0\n }; // Opera Mobile handles the viewport and scrolling oddly\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n getXY('screen', pointer, page);\n page.x += window.scrollX;\n page.y += window.scrollY;\n } else {\n getXY('page', pointer, page);\n }\n\n return page;\n}\nexport function getClientXY(pointer, client) {\n client = client || {};\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n // Opera Mobile handles the viewport and scrolling oddly\n getXY('screen', pointer, client);\n } else {\n getXY('client', pointer, client);\n }\n\n return client;\n}\nexport function getPointerId(pointer) {\n return is.number(pointer.pointerId) ? pointer.pointerId : pointer.identifier;\n}\nexport function setCoords(dest, pointers, timeStamp) {\n const pointer = pointers.length > 1 ? pointerAverage(pointers) : pointers[0];\n getPageXY(pointer, dest.page);\n getClientXY(pointer, dest.client);\n dest.timeStamp = timeStamp;\n}\nexport function getTouchPair(event) {\n const touches = []; // array of touches is supplied\n\n if (is.array(event)) {\n touches[0] = event[0];\n touches[1] = event[1];\n } // an event\n else {\n if (event.type === 'touchend') {\n if (event.touches.length === 1) {\n touches[0] = event.touches[0];\n touches[1] = event.changedTouches[0];\n } else if (event.touches.length === 0) {\n touches[0] = event.changedTouches[0];\n touches[1] = event.changedTouches[1];\n }\n } else {\n touches[0] = event.touches[0];\n touches[1] = event.touches[1];\n }\n }\n\n return touches;\n}\nexport function pointerAverage(pointers) {\n const average = {\n pageX: 0,\n pageY: 0,\n clientX: 0,\n clientY: 0,\n screenX: 0,\n screenY: 0\n };\n\n for (const pointer of pointers) {\n for (const prop in average) {\n average[prop] += pointer[prop];\n }\n }\n\n for (const prop in average) {\n average[prop] /= pointers.length;\n }\n\n return average;\n}\nexport function touchBBox(event) {\n if (!event.length) {\n return null;\n }\n\n const touches = getTouchPair(event);\n const minX = Math.min(touches[0].pageX, touches[1].pageX);\n const minY = Math.min(touches[0].pageY, touches[1].pageY);\n const maxX = Math.max(touches[0].pageX, touches[1].pageX);\n const maxY = Math.max(touches[0].pageY, touches[1].pageY);\n return {\n x: minX,\n y: minY,\n left: minX,\n top: minY,\n right: maxX,\n bottom: maxY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nexport function touchDistance(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[0][sourceX] - touches[1][sourceX];\n const dy = touches[0][sourceY] - touches[1][sourceY];\n return hypot(dx, dy);\n}\nexport function touchAngle(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[1][sourceX] - touches[0][sourceX];\n const dy = touches[1][sourceY] - touches[0][sourceY];\n const angle = 180 * Math.atan2(dy, dx) / Math.PI;\n return angle;\n}\nexport function getPointerType(pointer) {\n return is.string(pointer.pointerType) ? pointer.pointerType : is.number(pointer.pointerType) ? [undefined, undefined, 'touch', 'pen', 'mouse'][pointer.pointerType] // if the PointerEvent API isn't available, then the \"pointer\" must\n // be either a MouseEvent, TouchEvent, or Touch object\n : /touch/.test(pointer.type) || pointer instanceof dom.Touch ? 'touch' : 'mouse';\n} // [ event.target, event.currentTarget ]\n\nexport function getEventTargets(event) {\n const path = is.func(event.composedPath) ? event.composedPath() : event.path;\n return [domUtils.getActualElement(path ? path[0] : event.target), domUtils.getActualElement(event.currentTarget)];\n}\nexport function newCoords() {\n return {\n page: {\n x: 0,\n y: 0\n },\n client: {\n x: 0,\n y: 0\n },\n timeStamp: 0\n };\n}\nexport function coordsToEvent(coords) {\n const event = {\n coords,\n\n get page() {\n return this.coords.page;\n },\n\n get client() {\n return this.coords.client;\n },\n\n get timeStamp() {\n return this.coords.timeStamp;\n },\n\n get pageX() {\n return this.coords.page.x;\n },\n\n get pageY() {\n return this.coords.page.y;\n },\n\n get clientX() {\n return this.coords.client.x;\n },\n\n get clientY() {\n return this.coords.client.y;\n },\n\n get pointerId() {\n return this.coords.pointerId;\n },\n\n get target() {\n return this.coords.target;\n },\n\n get type() {\n return this.coords.type;\n },\n\n get pointerType() {\n return this.coords.pointerType;\n },\n\n get buttons() {\n return this.coords.buttons;\n },\n\n preventDefault() {}\n\n };\n return event;\n}\nexport { pointerExtend };\n//# sourceMappingURL=pointerUtils.js.map","import { Scope } from \"./scope.js\";\nimport * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport pExtend from \"../utils/pointerExtend.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\n\nfunction install(scope) {\n const targets = [];\n const delegatedEvents = {};\n const documents = [];\n const eventsMethods = {\n add,\n remove,\n addDelegate,\n removeDelegate,\n delegateListener,\n delegateUseCapture,\n delegatedEvents,\n documents,\n targets,\n supportsOptions: false,\n supportsPassive: false\n }; // check if browser supports passive events and options arg\n\n scope.document.createElement('div').addEventListener('test', null, {\n get capture() {\n return eventsMethods.supportsOptions = true;\n },\n\n get passive() {\n return eventsMethods.supportsPassive = true;\n }\n\n });\n scope.events = eventsMethods;\n\n function add(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n let target = arr.find(targets, t => t.eventTarget === eventTarget);\n\n if (!target) {\n target = {\n eventTarget,\n events: {}\n };\n targets.push(target);\n }\n\n if (!target.events[type]) {\n target.events[type] = [];\n }\n\n if (eventTarget.addEventListener && !arr.contains(target.events[type], listener)) {\n eventTarget.addEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n target.events[type].push(listener);\n }\n }\n\n function remove(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const targetIndex = arr.findIndex(targets, t => t.eventTarget === eventTarget);\n const target = targets[targetIndex];\n\n if (!target || !target.events) {\n return;\n }\n\n if (type === 'all') {\n for (type in target.events) {\n if (target.events.hasOwnProperty(type)) {\n remove(eventTarget, type, 'all');\n }\n }\n\n return;\n }\n\n let typeIsEmpty = false;\n const typeListeners = target.events[type];\n\n if (typeListeners) {\n if (listener === 'all') {\n for (let i = typeListeners.length - 1; i >= 0; i--) {\n remove(eventTarget, type, typeListeners[i], options);\n }\n\n return;\n } else {\n for (let i = 0; i < typeListeners.length; i++) {\n if (typeListeners[i] === listener) {\n eventTarget.removeEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n typeListeners.splice(i, 1);\n\n if (typeListeners.length === 0) {\n delete target.events[type];\n typeIsEmpty = true;\n }\n\n break;\n }\n }\n }\n }\n\n if (typeIsEmpty && !Object.keys(target.events).length) {\n targets.splice(targetIndex, 1);\n }\n }\n\n function addDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n\n if (!delegatedEvents[type]) {\n delegatedEvents[type] = []; // add delegate listener functions\n\n for (const doc of documents) {\n add(doc, type, delegateListener);\n add(doc, type, delegateUseCapture, true);\n }\n }\n\n const delegates = delegatedEvents[type];\n let delegate = arr.find(delegates, d => d.selector === selector && d.context === context);\n\n if (!delegate) {\n delegate = {\n selector,\n context,\n listeners: []\n };\n delegates.push(delegate);\n }\n\n delegate.listeners.push([listener, options]);\n }\n\n function removeDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const delegates = delegatedEvents[type];\n let matchFound = false;\n let index;\n\n if (!delegates) {\n return;\n } // count from last index of delegated to 0\n\n\n for (index = delegates.length - 1; index >= 0; index--) {\n const cur = delegates[index]; // look for matching selector and context Node\n\n if (cur.selector === selector && cur.context === context) {\n const {\n listeners\n } = cur; // each item of the listeners array is an array: [function, capture, passive]\n\n for (let i = listeners.length - 1; i >= 0; i--) {\n const [fn, {\n capture,\n passive\n }] = listeners[i]; // check if the listener functions and capture and passive flags match\n\n if (fn === listener && capture === options.capture && passive === options.passive) {\n // remove the listener from the array of listeners\n listeners.splice(i, 1); // if all listeners for this target have been removed\n // remove the target from the delegates array\n\n if (!listeners.length) {\n delegates.splice(index, 1); // remove delegate function from context\n\n remove(context, type, delegateListener);\n remove(context, type, delegateUseCapture, true);\n } // only remove one listener\n\n\n matchFound = true;\n break;\n }\n }\n\n if (matchFound) {\n break;\n }\n }\n }\n } // bound to the interactable context when a DOM event\n // listener is added to a selector interactable\n\n\n function delegateListener(event, optionalArg) {\n const options = getOptions(optionalArg);\n const fakeEvent = new FakeEvent(event);\n const delegates = delegatedEvents[event.type];\n const [eventTarget] = pointerUtils.getEventTargets(event);\n let element = eventTarget; // climb up document tree looking for selector matches\n\n while (is.element(element)) {\n for (let i = 0; i < delegates.length; i++) {\n const cur = delegates[i];\n const {\n selector,\n context\n } = cur;\n\n if (domUtils.matchesSelector(element, selector) && domUtils.nodeContains(context, eventTarget) && domUtils.nodeContains(context, element)) {\n const {\n listeners\n } = cur;\n fakeEvent.currentTarget = element;\n\n for (const [fn, {\n capture,\n passive\n }] of listeners) {\n if (capture === options.capture && passive === options.passive) {\n fn(fakeEvent);\n }\n }\n }\n }\n\n element = domUtils.parentNode(element);\n }\n }\n\n function delegateUseCapture(event) {\n return delegateListener.call(this, event, true);\n } // for type inferrence\n\n\n return eventsMethods;\n}\n\nclass FakeEvent {\n constructor(originalEvent) {\n this.currentTarget = void 0;\n this.originalEvent = void 0;\n this.type = void 0;\n this.originalEvent = originalEvent; // duplicate the event so that currentTarget can be changed\n\n pExtend(this, originalEvent);\n }\n\n preventOriginalDefault() {\n this.originalEvent.preventDefault();\n }\n\n stopPropagation() {\n this.originalEvent.stopPropagation();\n }\n\n stopImmediatePropagation() {\n this.originalEvent.stopImmediatePropagation();\n }\n\n}\n\nfunction getOptions(param) {\n if (!is.object(param)) {\n return {\n capture: !!param,\n passive: false\n };\n }\n\n const options = extend({}, param);\n options.capture = !!param.capture;\n options.passive = !!param.passive;\n return options;\n}\n\nexport default {\n id: 'events',\n install\n};\n//# sourceMappingURL=events.js.map","import { window } from \"./window.js\";\nexport function warnOnce(method, message) {\n let warned = false;\n return function () {\n if (!warned) {\n window.console.warn(message);\n warned = true;\n }\n\n return method.apply(this, arguments);\n };\n}\nexport function copyAction(dest, src) {\n dest.name = src.name;\n dest.axis = src.axis;\n dest.edges = src.edges;\n return dest;\n}\n//# sourceMappingURL=misc.js.map","/** @module interact */\nimport browser from \"../utils/browser.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport { warnOnce } from \"../utils/misc.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\nexport function createInteractStatic(scope) {\n /**\n * ```js\n * interact('#draggable').draggable(true)\n *\n * var rectables = interact('rect')\n * rectables\n * .gesturable(true)\n * .on('gesturemove', function (event) {\n * // ...\n * })\n * ```\n *\n * The methods of this variable can be used to set elements as interactables\n * and also to change various default settings.\n *\n * Calling it as a function and passing an element or a valid CSS selector\n * string returns an Interactable object which has various methods to configure\n * it.\n *\n * @global\n *\n * @param {Element | string} target The HTML or SVG Element to interact with\n * or CSS selector\n * @return {Interactable}\n */\n const interact = (target, options) => {\n let interactable = scope.interactables.get(target, options);\n\n if (!interactable) {\n interactable = scope.interactables.new(target, options);\n interactable.events.global = interact.globalEvents;\n }\n\n return interactable;\n }; // expose the functions used to calculate multi-touch properties\n\n\n interact.getPointerAverage = pointerUtils.pointerAverage;\n interact.getTouchBBox = pointerUtils.touchBBox;\n interact.getTouchDistance = pointerUtils.touchDistance;\n interact.getTouchAngle = pointerUtils.touchAngle;\n interact.getElementRect = domUtils.getElementRect;\n interact.getElementClientRect = domUtils.getElementClientRect;\n interact.matchesSelector = domUtils.matchesSelector;\n interact.closest = domUtils.closest;\n interact.globalEvents = {}; // eslint-disable-next-line no-undef\n\n interact.version = \"1.10.2\";\n interact.scope = scope;\n /**\n * Use a plugin\n *\n * @alias module:interact.use\n *\n */\n\n interact.use = function (plugin, options) {\n this.scope.usePlugin(plugin, options);\n return this;\n };\n /**\n * Check if an element or selector has been set with the {@link interact}\n * function\n *\n * @alias module:interact.isSet\n *\n * @param {Target} target The Element or string being searched for\n * @param {object} options\n * @return {boolean} Indicates if the element or CSS selector was previously\n * passed to interact\n */\n\n\n interact.isSet = function (target, options) {\n return !!this.scope.interactables.get(target, options && options.context);\n };\n /**\n * @deprecated\n * Add a global listener for an InteractEvent or adds a DOM event to `document`\n *\n * @alias module:interact.on\n *\n * @param {string | array | object} type The types of events to listen for\n * @param {function} listener The function event (s)\n * @param {object | boolean} [options] object or useCapture flag for\n * addEventListener\n * @return {object} interact\n */\n\n\n interact.on = warnOnce(function on(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.on(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.on(prop, type[prop], listener);\n }\n\n return this;\n } // if it is an InteractEvent type, add listener to globalEvents\n\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n // if this type of event was never bound\n if (!this.globalEvents[type]) {\n this.globalEvents[type] = [listener];\n } else {\n this.globalEvents[type].push(listener);\n }\n } // If non InteractEvent type, addEventListener to document\n else {\n this.scope.events.add(this.scope.document, type, listener, {\n options\n });\n }\n\n return this;\n }, 'The interact.on() method is being deprecated');\n /**\n * @deprecated\n * Removes a global InteractEvent listener or DOM event from `document`\n *\n * @alias module:interact.off\n *\n * @param {string | array | object} type The types of events that were listened\n * for\n * @param {function} listener The listener function to be removed\n * @param {object | boolean} options [options] object or useCapture flag for\n * removeEventListener\n * @return {object} interact\n */\n\n interact.off = warnOnce(function off(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.off(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.off(prop, type[prop], listener);\n }\n\n return this;\n }\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n let index;\n\n if (type in this.globalEvents && (index = this.globalEvents[type].indexOf(listener)) !== -1) {\n this.globalEvents[type].splice(index, 1);\n }\n } else {\n this.scope.events.remove(this.scope.document, type, listener, options);\n }\n\n return this;\n }, 'The interact.off() method is being deprecated');\n\n interact.debug = function () {\n return this.scope;\n };\n /**\n * @alias module:interact.supportsTouch\n *\n * @return {boolean} Whether or not the browser supports touch input\n */\n\n\n interact.supportsTouch = function () {\n return browser.supportsTouch;\n };\n /**\n * @alias module:interact.supportsPointerEvent\n *\n * @return {boolean} Whether or not the browser supports PointerEvents\n */\n\n\n interact.supportsPointerEvent = function () {\n return browser.supportsPointerEvent;\n };\n /**\n * Cancels all interactions (end events are not fired)\n *\n * @alias module:interact.stop\n *\n * @return {object} interact\n */\n\n\n interact.stop = function () {\n for (const interaction of this.scope.interactions.list) {\n interaction.stop();\n }\n\n return this;\n };\n /**\n * Returns or sets the distance the pointer must be moved before an action\n * sequence occurs. This also affects tolerance for tap events.\n *\n * @alias module:interact.pointerMoveTolerance\n *\n * @param {number} [newValue] The movement from the start position must be greater than this value\n * @return {interact | number}\n */\n\n\n interact.pointerMoveTolerance = function (newValue) {\n if (is.number(newValue)) {\n this.scope.interactions.pointerMoveTolerance = newValue;\n return this;\n }\n\n return this.scope.interactions.pointerMoveTolerance;\n };\n\n interact.addDocument = function (doc, options) {\n this.scope.addDocument(doc, options);\n };\n\n interact.removeDocument = function (doc) {\n this.scope.removeDocument(doc);\n };\n\n return interact;\n}\n//# sourceMappingURL=interactStatic.js.map","export class PointerInfo {\n constructor(id, pointer, event, downTime, downTarget) {\n this.id = void 0;\n this.pointer = void 0;\n this.event = void 0;\n this.downTime = void 0;\n this.downTarget = void 0;\n this.id = id;\n this.pointer = pointer;\n this.event = event;\n this.downTime = downTime;\n this.downTarget = downTarget;\n }\n\n}\n//# sourceMappingURL=PointerInfo.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { warnOnce, copyAction } from \"../utils/misc.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { PointerInfo } from \"./PointerInfo.js\";\nexport let _ProxyValues;\n\n(function (_ProxyValues) {\n _ProxyValues[\"interactable\"] = \"\";\n _ProxyValues[\"element\"] = \"\";\n _ProxyValues[\"prepared\"] = \"\";\n _ProxyValues[\"pointerIsDown\"] = \"\";\n _ProxyValues[\"pointerWasMoved\"] = \"\";\n _ProxyValues[\"_proxy\"] = \"\";\n})(_ProxyValues || (_ProxyValues = {}));\n\nexport let _ProxyMethods;\n\n(function (_ProxyMethods) {\n _ProxyMethods[\"start\"] = \"\";\n _ProxyMethods[\"move\"] = \"\";\n _ProxyMethods[\"end\"] = \"\";\n _ProxyMethods[\"stop\"] = \"\";\n _ProxyMethods[\"interacting\"] = \"\";\n})(_ProxyMethods || (_ProxyMethods = {}));\n\nlet idCounter = 0;\nexport class Interaction {\n // current interactable being interacted with\n // the target element of the interactable\n // action that's ready to be fired on next move event\n // keep track of added pointers\n // pointerdown/mousedown/touchstart event\n // previous action event\n\n /** @internal */\n get pointerMoveTolerance() {\n return 1;\n }\n /**\n * @alias Interaction.prototype.move\n */\n\n\n /** */\n constructor({\n pointerType,\n scopeFire\n }) {\n this.interactable = null;\n this.element = null;\n this.rect = void 0;\n this._rects = void 0;\n this.edges = void 0;\n this._scopeFire = void 0;\n this.prepared = {\n name: null,\n axis: null,\n edges: null\n };\n this.pointerType = void 0;\n this.pointers = [];\n this.downEvent = null;\n this.downPointer = {};\n this._latestPointer = {\n pointer: null,\n event: null,\n eventTarget: null\n };\n this.prevEvent = null;\n this.pointerIsDown = false;\n this.pointerWasMoved = false;\n this._interacting = false;\n this._ending = false;\n this._stopped = true;\n this._proxy = null;\n this.simulation = null;\n this.doMove = warnOnce(function (signalArg) {\n this.move(signalArg);\n }, 'The interaction.doMove() method has been renamed to interaction.move()');\n this.coords = {\n // Starting InteractEvent pointer coordinates\n start: pointerUtils.newCoords(),\n // Previous native pointer move event coordinates\n prev: pointerUtils.newCoords(),\n // current native pointer move event coordinates\n cur: pointerUtils.newCoords(),\n // Change in coordinates and time of the pointer\n delta: pointerUtils.newCoords(),\n // pointer velocity\n velocity: pointerUtils.newCoords()\n };\n this._id = idCounter++;\n this._scopeFire = scopeFire;\n this.pointerType = pointerType;\n const that = this;\n this._proxy = {};\n\n for (const key in _ProxyValues) {\n Object.defineProperty(this._proxy, key, {\n get() {\n return that[key];\n }\n\n });\n }\n\n for (const key in _ProxyMethods) {\n Object.defineProperty(this._proxy, key, {\n value: (...args) => that[key](...args)\n });\n }\n\n this._scopeFire('interactions:new', {\n interaction: this\n });\n }\n\n pointerDown(pointer, event, eventTarget) {\n const pointerIndex = this.updatePointer(pointer, event, eventTarget, true);\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:down', {\n pointer,\n event,\n eventTarget,\n pointerIndex,\n pointerInfo,\n type: 'down',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable({\n * // disable the default drag start by down->move\n * manualStart: true\n * })\n * // start dragging after the user holds the pointer down\n * .on('hold', function (event) {\n * var interaction = event.interaction\n *\n * if (!interaction.interacting()) {\n * interaction.start({ name: 'drag' },\n * event.interactable,\n * event.currentTarget)\n * }\n * })\n * ```\n *\n * Start an action with the given Interactable and Element as tartgets. The\n * action must be enabled for the target Interactable and an appropriate\n * number of pointers must be held down - 1 for drag/resize, 2 for gesture.\n *\n * Use it with `interactable.able({ manualStart: false })` to always\n * [start actions manually](https://github.com/taye/interact.js/issues/114)\n *\n * @param {object} action The action to be performed - drag, resize, etc.\n * @param {Interactable} target The Interactable to target\n * @param {Element} element The DOM Element to target\n * @return {Boolean} Whether the interaction was successfully started\n */\n\n\n start(action, interactable, element) {\n if (this.interacting() || !this.pointerIsDown || this.pointers.length < (action.name === 'gesture' ? 2 : 1) || !interactable.options[action.name].enabled) {\n return false;\n }\n\n copyAction(this.prepared, action);\n this.interactable = interactable;\n this.element = element;\n this.rect = interactable.getRect(element);\n this.edges = this.prepared.edges ? extend({}, this.prepared.edges) : {\n left: true,\n right: true,\n top: true,\n bottom: true\n };\n this._stopped = false;\n this._interacting = this._doPhase({\n interaction: this,\n event: this.downEvent,\n phase: 'start'\n }) && !this._stopped;\n return this._interacting;\n }\n\n pointerMove(pointer, event, eventTarget) {\n if (!this.simulation && !(this.modification && this.modification.endResult)) {\n this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const duplicateMove = 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;\n let dx;\n let dy; // register movement greater than pointerMoveTolerance\n\n if (this.pointerIsDown && !this.pointerWasMoved) {\n dx = this.coords.cur.client.x - this.coords.start.client.x;\n dy = this.coords.cur.client.y - this.coords.start.client.y;\n this.pointerWasMoved = hypot(dx, dy) > this.pointerMoveTolerance;\n }\n\n const pointerIndex = this.getPointerIndex(pointer);\n const signalArg = {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n type: 'move',\n eventTarget,\n dx,\n dy,\n duplicate: duplicateMove,\n interaction: this\n };\n\n if (!duplicateMove) {\n // set pointer coordinate, time changes and velocity\n pointerUtils.setCoordVelocity(this.coords.velocity, this.coords.delta);\n }\n\n this._scopeFire('interactions:move', signalArg);\n\n if (!duplicateMove && !this.simulation) {\n // if interacting, fire an 'action-move' signal etc\n if (this.interacting()) {\n signalArg.type = null;\n this.move(signalArg);\n }\n\n if (this.pointerWasMoved) {\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n }\n }\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('dragmove', function (event) {\n * if (someCondition) {\n * // change the snap settings\n * event.interactable.draggable({ snap: { targets: [] }})\n * // fire another move event with re-calculated snap\n * event.interaction.move()\n * }\n * })\n * ```\n *\n * Force a move of the current action at the same coordinates. Useful if\n * snap/restrict has been changed and you want a movement with the new\n * settings.\n */\n\n\n move(signalArg) {\n if (!signalArg || !signalArg.event) {\n pointerUtils.setZeroCoords(this.coords.delta);\n }\n\n signalArg = extend({\n pointer: this._latestPointer.pointer,\n event: this._latestPointer.event,\n eventTarget: this._latestPointer.eventTarget,\n interaction: this\n }, signalArg || {});\n signalArg.phase = 'move';\n\n this._doPhase(signalArg);\n } // End interact move events and stop auto-scroll unless simulation is running\n\n\n pointerUp(pointer, event, eventTarget, curEventTarget) {\n let pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n pointerIndex = this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const type = /cancel$/i.test(event.type) ? 'cancel' : 'up';\n\n this._scopeFire(`interactions:${type}`, {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n eventTarget,\n type: type,\n curEventTarget,\n interaction: this\n });\n\n if (!this.simulation) {\n this.end(event);\n }\n\n this.removePointer(pointer, event);\n }\n\n documentBlur(event) {\n this.end(event);\n\n this._scopeFire('interactions:blur', {\n event,\n type: 'blur',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('move', function (event) {\n * if (event.pageX > 1000) {\n * // end the current action\n * event.interaction.end()\n * // stop all further listeners from being called\n * event.stopImmediatePropagation()\n * }\n * })\n * ```\n *\n * @param {PointerEvent} [event]\n */\n\n\n end(event) {\n this._ending = true;\n event = event || this._latestPointer.event;\n let endPhaseResult;\n\n if (this.interacting()) {\n endPhaseResult = this._doPhase({\n event,\n interaction: this,\n phase: 'end'\n });\n }\n\n this._ending = false;\n\n if (endPhaseResult === true) {\n this.stop();\n }\n }\n\n currentAction() {\n return this._interacting ? this.prepared.name : null;\n }\n\n interacting() {\n return this._interacting;\n }\n /** */\n\n\n stop() {\n this._scopeFire('interactions:stop', {\n interaction: this\n });\n\n this.interactable = this.element = null;\n this._interacting = false;\n this._stopped = true;\n this.prepared.name = this.prevEvent = null;\n }\n\n getPointerIndex(pointer) {\n const pointerId = pointerUtils.getPointerId(pointer); // mouse and pen interactions may have only one pointer\n\n return this.pointerType === 'mouse' || this.pointerType === 'pen' ? this.pointers.length - 1 : arr.findIndex(this.pointers, curPointer => curPointer.id === pointerId);\n }\n\n getPointerInfo(pointer) {\n return this.pointers[this.getPointerIndex(pointer)];\n }\n\n updatePointer(pointer, event, eventTarget, down) {\n const id = pointerUtils.getPointerId(pointer);\n let pointerIndex = this.getPointerIndex(pointer);\n let pointerInfo = this.pointers[pointerIndex];\n down = down === false ? false : down || /(down|start)$/i.test(event.type);\n\n if (!pointerInfo) {\n pointerInfo = new PointerInfo(id, pointer, event, null, null);\n pointerIndex = this.pointers.length;\n this.pointers.push(pointerInfo);\n } else {\n pointerInfo.pointer = pointer;\n }\n\n pointerUtils.setCoords(this.coords.cur, this.pointers.map(p => p.pointer), this._now());\n pointerUtils.setCoordDeltas(this.coords.delta, this.coords.prev, this.coords.cur);\n\n if (down) {\n this.pointerIsDown = true;\n pointerInfo.downTime = this.coords.cur.timeStamp;\n pointerInfo.downTarget = eventTarget;\n pointerUtils.pointerExtend(this.downPointer, pointer);\n\n if (!this.interacting()) {\n pointerUtils.copyCoords(this.coords.start, this.coords.cur);\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n this.downEvent = event;\n this.pointerWasMoved = false;\n }\n }\n\n this._updateLatestPointer(pointer, event, eventTarget);\n\n this._scopeFire('interactions:update-pointer', {\n pointer,\n event,\n eventTarget,\n down,\n pointerInfo,\n pointerIndex,\n interaction: this\n });\n\n return pointerIndex;\n }\n\n removePointer(pointer, event) {\n const pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n return;\n }\n\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:remove-pointer', {\n pointer,\n event,\n eventTarget: null,\n pointerIndex,\n pointerInfo,\n interaction: this\n });\n\n this.pointers.splice(pointerIndex, 1);\n this.pointerIsDown = false;\n }\n\n _updateLatestPointer(pointer, event, eventTarget) {\n this._latestPointer.pointer = pointer;\n this._latestPointer.event = event;\n this._latestPointer.eventTarget = eventTarget;\n }\n\n destroy() {\n this._latestPointer.pointer = null;\n this._latestPointer.event = null;\n this._latestPointer.eventTarget = null;\n }\n\n _createPreparedEvent(event, phase, preEnd, type) {\n return new InteractEvent(this, event, this.prepared.name, phase, this.element, preEnd, type);\n }\n\n _fireEvent(iEvent) {\n this.interactable.fire(iEvent);\n\n if (!this.prevEvent || iEvent.timeStamp >= this.prevEvent.timeStamp) {\n this.prevEvent = iEvent;\n }\n }\n\n _doPhase(signalArg) {\n const {\n event,\n phase,\n preEnd,\n type\n } = signalArg;\n const {\n rect\n } = this;\n\n if (rect && phase === 'move') {\n // update the rect changes due to pointer move\n rectUtils.addEdges(this.edges, rect, this.coords.delta[this.interactable.options.deltaSource]);\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n const beforeResult = this._scopeFire(`interactions:before-action-${phase}`, signalArg);\n\n if (beforeResult === false) {\n return false;\n }\n\n const iEvent = signalArg.iEvent = this._createPreparedEvent(event, phase, preEnd, type);\n\n this._scopeFire(`interactions:action-${phase}`, signalArg);\n\n if (phase === 'start') {\n this.prevEvent = iEvent;\n }\n\n this._fireEvent(iEvent);\n\n this._scopeFire(`interactions:after-action-${phase}`, signalArg);\n\n return true;\n }\n\n _now() {\n return Date.now();\n }\n\n}\nexport default Interaction;\nexport { PointerInfo };\n//# sourceMappingURL=Interaction.js.map","import { Interactable } from \"./Interactable.js\";\nimport { matchesSelector, nodeContains } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport { getWindow } from \"../utils/window.js\";\n\nfunction preventDefault(newValue) {\n if (/^(always|never|auto)$/.test(newValue)) {\n this.options.preventDefault = newValue;\n return this;\n }\n\n if (is.bool(newValue)) {\n this.options.preventDefault = newValue ? 'always' : 'never';\n return this;\n }\n\n return this.options.preventDefault;\n}\n\nfunction checkAndPreventDefault(interactable, scope, event) {\n const setting = interactable.options.preventDefault;\n\n if (setting === 'never') {\n return;\n }\n\n if (setting === 'always') {\n event.preventDefault();\n return;\n } // setting === 'auto'\n // if the browser supports passive event listeners and isn't running on iOS,\n // don't preventDefault of touch{start,move} events. CSS touch-action and\n // user-select should be used instead of calling event.preventDefault().\n\n\n if (scope.events.supportsPassive && /^touch(start|move)$/.test(event.type)) {\n const doc = getWindow(event.target).document;\n const docOptions = scope.getDocOptions(doc);\n\n if (!(docOptions && docOptions.events) || docOptions.events.passive !== false) {\n return;\n }\n } // don't preventDefault of pointerdown events\n\n\n if (/^(mouse|pointer|touch)*(down|start)/i.test(event.type)) {\n return;\n } // don't preventDefault on editable elements\n\n\n if (is.element(event.target) && matchesSelector(event.target, 'input,select,textarea,[contenteditable=true],[contenteditable=true] *')) {\n return;\n }\n\n event.preventDefault();\n}\n\nfunction onInteractionEvent({\n interaction,\n event\n}) {\n if (interaction.interactable) {\n interaction.interactable.checkAndPreventDefault(event);\n }\n}\n\nexport function install(scope) {\n /** @lends Interactable */\n const {\n Interactable\n } = scope;\n /**\n * Returns or sets whether to prevent the browser's default behaviour in\n * response to pointer events. Can be set to:\n * - `'always'` to always prevent\n * - `'never'` to never prevent\n * - `'auto'` to let interact.js try to determine what would be best\n *\n * @param {string} [newValue] `'always'`, `'never'` or `'auto'`\n * @return {string | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.preventDefault = preventDefault;\n\n Interactable.prototype.checkAndPreventDefault = function (event) {\n return checkAndPreventDefault(this, scope, event);\n }; // prevent native HTML5 drag on interact.js target elements\n\n\n scope.interactions.docEvents.push({\n type: 'dragstart',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n if (interaction.element && (interaction.element === event.target || nodeContains(interaction.element, event.target))) {\n interaction.interactable.checkAndPreventDefault(event);\n return;\n }\n }\n }\n\n });\n}\nexport default {\n id: 'core/interactablePreventDefault',\n install,\n listeners: ['down', 'move', 'up', 'cancel'].reduce((acc, eventType) => {\n acc[`interactions:${eventType}`] = onInteractionEvent;\n return acc;\n }, {})\n};\n//# sourceMappingURL=interactablePreventDefault.js.map","import * as dom from \"../utils/domUtils.js\";\nconst finder = {\n methodOrder: ['simulationResume', 'mouseOrPen', 'hasPointer', 'idle'],\n\n search(details) {\n for (const method of finder.methodOrder) {\n const interaction = finder[method](details);\n\n if (interaction) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // try to resume simulation with a new pointer\n simulationResume({\n pointerType,\n eventType,\n eventTarget,\n scope\n }) {\n if (!/down|start/i.test(eventType)) {\n return null;\n }\n\n for (const interaction of scope.interactions.list) {\n let element = eventTarget;\n\n if (interaction.simulation && interaction.simulation.allowResume && interaction.pointerType === pointerType) {\n while (element) {\n // if the element is the interaction element\n if (element === interaction.element) {\n return interaction;\n }\n\n element = dom.parentNode(element);\n }\n }\n }\n\n return null;\n },\n\n // if it's a mouse or pen interaction\n mouseOrPen({\n pointerId,\n pointerType,\n eventType,\n scope\n }) {\n if (pointerType !== 'mouse' && pointerType !== 'pen') {\n return null;\n }\n\n let firstNonActive;\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType) {\n // if it's a down event, skip interactions with running simulations\n if (interaction.simulation && !hasPointerId(interaction, pointerId)) {\n continue;\n } // if the interaction is active, return it immediately\n\n\n if (interaction.interacting()) {\n return interaction;\n } // otherwise save it and look for another active interaction\n else if (!firstNonActive) {\n firstNonActive = interaction;\n }\n }\n } // if no active mouse interaction was found use the first inactive mouse\n // interaction\n\n\n if (firstNonActive) {\n return firstNonActive;\n } // find any mouse or pen interaction.\n // ignore the interaction if the eventType is a *down, and a simulation\n // is active\n\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType && !(/down/i.test(eventType) && interaction.simulation)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get interaction that has this pointer\n hasPointer({\n pointerId,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n if (hasPointerId(interaction, pointerId)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get first idle interaction with a matching pointerType\n idle({\n pointerType,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n // if there's already a pointer held down\n if (interaction.pointers.length === 1) {\n const target = interaction.interactable; // don't add this pointer if there is a target interactable and it\n // isn't gesturable\n\n if (target && !(target.options.gesture && target.options.gesture.enabled)) {\n continue;\n }\n } // maximum of 2 pointers per interaction\n else if (interaction.pointers.length >= 2) {\n continue;\n }\n\n if (!interaction.interacting() && pointerType === interaction.pointerType) {\n return interaction;\n }\n }\n\n return null;\n }\n\n};\n\nfunction hasPointerId(interaction, pointerId) {\n return interaction.pointers.some(({\n id\n }) => id === pointerId);\n}\n\nexport default finder;\n//# sourceMappingURL=interactionFinder.js.map","import { Scope, SignalArgs } from \"./scope.js\";\nimport browser from \"../utils/browser.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { nodeContains } from \"../utils/domUtils.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport InteractionBase from \"./Interaction.js\";\nimport interactablePreventDefault from \"./interactablePreventDefault.js\";\nimport finder from \"./interactionFinder.js\";\nconst methodNames = ['pointerDown', 'pointerMove', 'pointerUp', 'updatePointer', 'removePointer', 'windowBlur'];\n\nfunction install(scope) {\n const listeners = {};\n\n for (const method of methodNames) {\n listeners[method] = doOnInteractions(method, scope);\n }\n\n const pEventTypes = browser.pEventTypes;\n let docEvents;\n\n if (domObjects.PointerEvent) {\n docEvents = [{\n type: pEventTypes.down,\n listener: releasePointersOnRemovedEls\n }, {\n type: pEventTypes.down,\n listener: listeners.pointerDown\n }, {\n type: pEventTypes.move,\n listener: listeners.pointerMove\n }, {\n type: pEventTypes.up,\n listener: listeners.pointerUp\n }, {\n type: pEventTypes.cancel,\n listener: listeners.pointerUp\n }];\n } else {\n docEvents = [{\n type: 'mousedown',\n listener: listeners.pointerDown\n }, {\n type: 'mousemove',\n listener: listeners.pointerMove\n }, {\n type: 'mouseup',\n listener: listeners.pointerUp\n }, {\n type: 'touchstart',\n listener: releasePointersOnRemovedEls\n }, {\n type: 'touchstart',\n listener: listeners.pointerDown\n }, {\n type: 'touchmove',\n listener: listeners.pointerMove\n }, {\n type: 'touchend',\n listener: listeners.pointerUp\n }, {\n type: 'touchcancel',\n listener: listeners.pointerUp\n }];\n }\n\n docEvents.push({\n type: 'blur',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n interaction.documentBlur(event);\n }\n }\n\n }); // for ignoring browser's simulated mouse events\n\n scope.prevTouchTime = 0;\n scope.Interaction = class extends InteractionBase {\n get pointerMoveTolerance() {\n return scope.interactions.pointerMoveTolerance;\n }\n\n set pointerMoveTolerance(value) {\n scope.interactions.pointerMoveTolerance = value;\n }\n\n _now() {\n return scope.now();\n }\n\n };\n scope.interactions = {\n // all active and idle interactions\n list: [],\n\n new(options) {\n options.scopeFire = (name, arg) => scope.fire(name, arg);\n\n const interaction = new scope.Interaction(options);\n scope.interactions.list.push(interaction);\n return interaction;\n },\n\n listeners,\n docEvents,\n pointerMoveTolerance: 1\n };\n\n function releasePointersOnRemovedEls() {\n // for all inactive touch interactions with pointers down\n for (const interaction of scope.interactions.list) {\n if (!interaction.pointerIsDown || interaction.pointerType !== 'touch' || interaction._interacting) {\n continue;\n } // if a pointer is down on an element that is no longer in the DOM tree\n\n\n for (const pointer of interaction.pointers) {\n if (!scope.documents.some(({\n doc\n }) => nodeContains(doc, pointer.downTarget))) {\n // remove the pointer from the interaction\n interaction.removePointer(pointer.pointer, pointer.event);\n }\n }\n }\n }\n\n scope.usePlugin(interactablePreventDefault);\n}\n\nfunction doOnInteractions(method, scope) {\n return function (event) {\n const interactions = scope.interactions.list;\n const pointerType = pointerUtils.getPointerType(event);\n const [eventTarget, curEventTarget] = pointerUtils.getEventTargets(event);\n const matches = []; // [ [pointer, interaction], ...]\n\n if (/^touch/.test(event.type)) {\n scope.prevTouchTime = scope.now(); // @ts-expect-error\n\n for (const changedTouch of event.changedTouches) {\n const pointer = changedTouch;\n const pointerId = pointerUtils.getPointerId(pointer);\n const searchDetails = {\n pointer,\n pointerId,\n pointerType,\n eventType: event.type,\n eventTarget,\n curEventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } else {\n let invalidPointer = false;\n\n if (!browser.supportsPointerEvent && /mouse/.test(event.type)) {\n // ignore mouse events while touch interactions are active\n for (let i = 0; i < interactions.length && !invalidPointer; i++) {\n invalidPointer = interactions[i].pointerType !== 'mouse' && interactions[i].pointerIsDown;\n } // try to ignore mouse events that are simulated by the browser\n // after a touch event\n\n\n invalidPointer = invalidPointer || scope.now() - scope.prevTouchTime < 500 || // on iOS and Firefox Mobile, MouseEvent.timeStamp is zero if simulated\n event.timeStamp === 0;\n }\n\n if (!invalidPointer) {\n const searchDetails = {\n pointer: event,\n pointerId: pointerUtils.getPointerId(event),\n pointerType,\n eventType: event.type,\n curEventTarget,\n eventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } // eslint-disable-next-line no-shadow\n\n\n for (const [pointer, eventTarget, curEventTarget, interaction] of matches) {\n interaction[method](pointer, event, eventTarget, curEventTarget);\n }\n };\n}\n\nfunction getInteraction(searchDetails) {\n const {\n pointerType,\n scope\n } = searchDetails;\n const foundInteraction = finder.search(searchDetails);\n const signalArg = {\n interaction: foundInteraction,\n searchDetails\n };\n scope.fire('interactions:find', signalArg);\n return signalArg.interaction || scope.interactions.new({\n pointerType\n });\n}\n\nfunction onDocSignal({\n doc,\n scope,\n options\n}, eventMethodName) {\n const {\n interactions: {\n docEvents\n },\n events\n } = scope;\n const eventMethod = events[eventMethodName];\n\n if (scope.browser.isIOS && !options.events) {\n options.events = {\n passive: false\n };\n } // delegate event listener\n\n\n for (const eventType in events.delegatedEvents) {\n eventMethod(doc, eventType, events.delegateListener);\n eventMethod(doc, eventType, events.delegateUseCapture, true);\n }\n\n const eventOptions = options && options.events;\n\n for (const {\n type,\n listener\n } of docEvents) {\n eventMethod(doc, type, listener, eventOptions);\n }\n}\n\nconst interactions = {\n id: 'core/interactions',\n install,\n listeners: {\n 'scope:add-document': arg => onDocSignal(arg, 'add'),\n 'scope:remove-document': arg => onDocSignal(arg, 'remove'),\n 'interactable:unset': ({\n interactable\n }, scope) => {\n // Stop and destroy related interactions when an Interactable is unset\n for (let i = scope.interactions.list.length - 1; i >= 0; i--) {\n const interaction = scope.interactions.list[i];\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interaction.stop();\n scope.fire('interactions:destroy', {\n interaction\n });\n interaction.destroy();\n\n if (scope.interactions.list.length > 2) {\n scope.interactions.list.splice(i, 1);\n }\n }\n }\n },\n onDocSignal,\n doOnInteractions,\n methodNames\n};\nexport default interactions;\n//# sourceMappingURL=interactions.js.map","import browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport extend from \"../utils/extend.js\";\nimport raf from \"../utils/raf.js\";\nimport * as win from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { Interactable as InteractableBase } from \"./Interactable.js\";\nimport { InteractableSet } from \"./InteractableSet.js\";\nimport { defaults } from \"./defaultOptions.js\";\nimport events from \"./events.js\";\nimport { createInteractStatic } from \"./interactStatic.js\";\nimport interactions from \"./interactions.js\";\nexport class Scope {\n // main window\n // main document\n // main window\n // all documents being listened to\n constructor() {\n this.id = `__interact_scope_${Math.floor(Math.random() * 100)}`;\n this.isInitialized = false;\n this.listenerMaps = [];\n this.browser = browser;\n this.defaults = clone(defaults);\n this.Eventable = Eventable;\n this.actions = {\n map: {},\n phases: {\n start: true,\n move: true,\n end: true\n },\n methodDict: {},\n phaselessTypes: {}\n };\n this.interactStatic = createInteractStatic(this);\n this.InteractEvent = InteractEvent;\n this.Interactable = void 0;\n this.interactables = new InteractableSet(this);\n this._win = void 0;\n this.document = void 0;\n this.window = void 0;\n this.documents = [];\n this._plugins = {\n list: [],\n map: {}\n };\n\n this.onWindowUnload = event => this.removeDocument(event.target);\n\n const scope = this;\n this.Interactable = class extends InteractableBase {\n get _defaults() {\n return scope.defaults;\n }\n\n set(options) {\n super.set(options);\n scope.fire('interactable:set', {\n options,\n interactable: this\n });\n return this;\n }\n\n unset() {\n super.unset();\n scope.interactables.list.splice(scope.interactables.list.indexOf(this), 1);\n scope.fire('interactable:unset', {\n interactable: this\n });\n }\n\n };\n }\n\n addListeners(map, id) {\n this.listenerMaps.push({\n id,\n map\n });\n }\n\n fire(name, arg) {\n for (const {\n map: {\n [name]: listener\n }\n } of this.listenerMaps) {\n if (!!listener && listener(arg, this, name) === false) {\n return false;\n }\n }\n }\n\n init(window) {\n return this.isInitialized ? this : initScope(this, window);\n }\n\n pluginIsInstalled(plugin) {\n return this._plugins.map[plugin.id] || this._plugins.list.indexOf(plugin) !== -1;\n }\n\n usePlugin(plugin, options) {\n if (!this.isInitialized) {\n return this;\n }\n\n if (this.pluginIsInstalled(plugin)) {\n return this;\n }\n\n if (plugin.id) {\n this._plugins.map[plugin.id] = plugin;\n }\n\n this._plugins.list.push(plugin);\n\n if (plugin.install) {\n plugin.install(this, options);\n }\n\n if (plugin.listeners && plugin.before) {\n let index = 0;\n const len = this.listenerMaps.length;\n const before = plugin.before.reduce((acc, id) => {\n acc[id] = true;\n acc[pluginIdRoot(id)] = true;\n return acc;\n }, {});\n\n for (; index < len; index++) {\n const otherId = this.listenerMaps[index].id;\n\n if (before[otherId] || before[pluginIdRoot(otherId)]) {\n break;\n }\n }\n\n this.listenerMaps.splice(index, 0, {\n id: plugin.id,\n map: plugin.listeners\n });\n } else if (plugin.listeners) {\n this.listenerMaps.push({\n id: plugin.id,\n map: plugin.listeners\n });\n }\n\n return this;\n }\n\n addDocument(doc, options) {\n // do nothing if document is already known\n if (this.getDocIndex(doc) !== -1) {\n return false;\n }\n\n const window = win.getWindow(doc);\n options = options ? extend({}, options) : {};\n this.documents.push({\n doc,\n options\n });\n this.events.documents.push(doc); // don't add an unload event for the main document\n // so that the page may be cached in browser history\n\n if (doc !== this.document) {\n this.events.add(window, 'unload', this.onWindowUnload);\n }\n\n this.fire('scope:add-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n removeDocument(doc) {\n const index = this.getDocIndex(doc);\n const window = win.getWindow(doc);\n const options = this.documents[index].options;\n this.events.remove(window, 'unload', this.onWindowUnload);\n this.documents.splice(index, 1);\n this.events.documents.splice(index, 1);\n this.fire('scope:remove-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n getDocIndex(doc) {\n for (let i = 0; i < this.documents.length; i++) {\n if (this.documents[i].doc === doc) {\n return i;\n }\n }\n\n return -1;\n }\n\n getDocOptions(doc) {\n const docIndex = this.getDocIndex(doc);\n return docIndex === -1 ? null : this.documents[docIndex].options;\n }\n\n now() {\n return (this.window.Date || Date).now();\n }\n\n}\nexport function initScope(scope, window) {\n scope.isInitialized = true;\n win.init(window);\n domObjects.init(window);\n browser.init(window);\n raf.init(window);\n scope.window = window;\n scope.document = window.document;\n scope.usePlugin(interactions);\n scope.usePlugin(events);\n return scope;\n}\n\nfunction pluginIdRoot(id) {\n return id && id.replace(/\\/.*$/, '');\n}\n//# sourceMappingURL=scope.js.map","import { Scope } from \"../core/scope.js\";\nconst scope = new Scope();\nconst interact = scope.interactStatic;\nexport default interact;\nexport const init = win => scope.init(win);\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../core/Interactable.js\";\nimport is from \"../utils/is.js\";\nimport { warnOnce } from \"../utils/misc.js\";\n\nfunction install(scope) {\n const {\n /** @lends Interactable */\n Interactable // tslint:disable-line no-shadowed-variable\n\n } = scope;\n\n Interactable.prototype.getAction = function getAction(pointer, event, interaction, element) {\n const action = defaultActionChecker(this, event, interaction, element, scope);\n\n if (this.options.actionChecker) {\n return this.options.actionChecker(pointer, event, action, this, element, interaction);\n }\n\n return action;\n };\n /**\n * If the target of the `mousedown`, `pointerdown` or `touchstart` event or any\n * of it's parents match the given CSS selector or Element, no\n * drag/resize/gesture is started.\n *\n * @deprecated\n * Don't use this method. Instead set the `ignoreFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .draggable({\n * ignoreFrom: 'input, textarea, a[href]'',\n * })\n * .pointerEvents({\n * ignoreFrom: '[no-pointer]',\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to not ignore any elements\n * @return {string | Element | object} The current ignoreFrom value or this\n * Interactable\n */\n\n\n Interactable.prototype.ignoreFrom = warnOnce(function (newValue) {\n return this._backCompatOption('ignoreFrom', newValue);\n }, 'Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue}).');\n /**\n *\n * A drag/resize/gesture is started only If the target of the `mousedown`,\n * `pointerdown` or `touchstart` event or any of it's parents match the given\n * CSS selector or Element.\n *\n * @deprecated\n * Don't use this method. Instead set the `allowFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .resizable({\n * allowFrom: '.resize-handle',\n * .pointerEvents({\n * allowFrom: '.handle',,\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to allow from any element\n * @return {string | Element | object} The current allowFrom value or this\n * Interactable\n */\n\n Interactable.prototype.allowFrom = warnOnce(function (newValue) {\n return this._backCompatOption('allowFrom', newValue);\n }, 'Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue}).');\n /**\n * ```js\n * interact('.resize-drag')\n * .resizable(true)\n * .draggable(true)\n * .actionChecker(function (pointer, event, action, interactable, element, interaction) {\n *\n * if (interact.matchesSelector(event.target, '.drag-handle')) {\n * // force drag with handle target\n * action.name = drag\n * }\n * else {\n * // resize from the top and right edges\n * action.name = 'resize'\n * action.edges = { top: true, right: true }\n * }\n *\n * return action\n * })\n * ```\n *\n * Returns or sets the function used to check action to be performed on\n * pointerDown\n *\n * @param {function | null} [checker] A function which takes a pointer event,\n * defaultAction string, interactable, element and interaction as parameters\n * and returns an object with name property 'drag' 'resize' or 'gesture' and\n * optionally an `edges` object with boolean 'top', 'left', 'bottom' and right\n * props.\n * @return {Function | Interactable} The checker function or this Interactable\n */\n\n Interactable.prototype.actionChecker = actionChecker;\n /**\n * Returns or sets whether the the cursor should be changed depending on the\n * action that would be performed if the mouse were pressed and dragged.\n *\n * @param {boolean} [newValue]\n * @return {boolean | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.styleCursor = styleCursor;\n}\n\nfunction defaultActionChecker(interactable, event, interaction, element, scope) {\n const rect = interactable.getRect(element);\n const buttons = event.buttons || {\n 0: 1,\n 1: 4,\n 3: 8,\n 4: 16\n }[event.button];\n const arg = {\n action: null,\n interactable,\n interaction,\n element,\n rect,\n buttons\n };\n scope.fire('auto-start:check', arg);\n return arg.action;\n}\n\nfunction styleCursor(newValue) {\n if (is.bool(newValue)) {\n this.options.styleCursor = newValue;\n return this;\n }\n\n if (newValue === null) {\n delete this.options.styleCursor;\n return this;\n }\n\n return this.options.styleCursor;\n}\n\nfunction actionChecker(checker) {\n if (is.func(checker)) {\n this.options.actionChecker = checker;\n return this;\n }\n\n if (checker === null) {\n delete this.options.actionChecker;\n return this;\n }\n\n return this.options.actionChecker;\n}\n\nexport default {\n id: 'auto-start/interactableMethods',\n install\n};\n//# sourceMappingURL=InteractableMethods.js.map","import { Scope, SignalArgs } from \"../core/scope.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport { copyAction } from \"../utils/misc.js\";\nimport InteractableMethods from \"./InteractableMethods.js\";\n\nfunction install(scope) {\n const {\n interactStatic: interact,\n defaults\n } = scope;\n scope.usePlugin(InteractableMethods);\n defaults.base.actionChecker = null;\n defaults.base.styleCursor = true;\n extend(defaults.perAction, {\n manualStart: false,\n max: Infinity,\n maxPerElement: 1,\n allowFrom: null,\n ignoreFrom: null,\n // only allow left button by default\n // see https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons#Return_value\n mouseButtons: 1\n });\n /**\n * Returns or sets the maximum number of concurrent interactions allowed. By\n * default only 1 interaction is allowed at a time (for backwards\n * compatibility). To allow multiple interactions on the same Interactables and\n * elements, you need to enable it in the draggable, resizable and gesturable\n * `'max'` and `'maxPerElement'` options.\n *\n * @alias module:interact.maxInteractions\n *\n * @param {number} [newValue] Any number. newValue <= 0 means no interactions.\n */\n\n interact.maxInteractions = newValue => maxInteractions(newValue, scope);\n\n scope.autoStart = {\n // Allow this many interactions to happen simultaneously\n maxInteractions: Infinity,\n withinInteractionLimit,\n cursorElement: null\n };\n}\n\nfunction prepareOnDown({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction prepareOnMove({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.pointerType !== 'mouse' || interaction.pointerIsDown || interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction startOnMove(arg, scope) {\n const {\n interaction\n } = arg;\n\n if (!interaction.pointerIsDown || interaction.interacting() || !interaction.pointerWasMoved || !interaction.prepared.name) {\n return;\n }\n\n scope.fire('autoStart:before-start', arg);\n const {\n interactable\n } = interaction;\n const actionName = interaction.prepared.name;\n\n if (actionName && interactable) {\n // check manualStart and interaction limit\n if (interactable.options[actionName].manualStart || !withinInteractionLimit(interactable, interaction.element, interaction.prepared, scope)) {\n interaction.stop();\n } else {\n interaction.start(interaction.prepared, interactable, interaction.element);\n setInteractionCursor(interaction, scope);\n }\n }\n}\n\nfunction clearCursorOnStop({\n interaction\n}, scope) {\n const {\n interactable\n } = interaction;\n\n if (interactable && interactable.options.styleCursor) {\n setCursor(interaction.element, '', scope);\n }\n} // Check if the current interactable supports the action.\n// If so, return the validated action. Otherwise, return null\n\n\nfunction validateAction(action, interactable, element, eventTarget, scope) {\n if (interactable.testIgnoreAllow(interactable.options[action.name], element, eventTarget) && interactable.options[action.name].enabled && withinInteractionLimit(interactable, element, action, scope)) {\n return action;\n }\n\n return null;\n}\n\nfunction validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope) {\n for (let i = 0, len = matches.length; i < len; i++) {\n const match = matches[i];\n const matchElement = matchElements[i];\n const matchAction = match.getAction(pointer, event, interaction, matchElement);\n\n if (!matchAction) {\n continue;\n }\n\n const action = validateAction(matchAction, match, matchElement, eventTarget, scope);\n\n if (action) {\n return {\n action,\n interactable: match,\n element: matchElement\n };\n }\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction getActionInfo(interaction, pointer, event, eventTarget, scope) {\n let matches = [];\n let matchElements = [];\n let element = eventTarget;\n\n function pushMatches(interactable) {\n matches.push(interactable);\n matchElements.push(element);\n }\n\n while (is.element(element)) {\n matches = [];\n matchElements = [];\n scope.interactables.forEachMatch(element, pushMatches);\n const actionInfo = validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope);\n\n if (actionInfo.action && !actionInfo.interactable.options[actionInfo.action.name].manualStart) {\n return actionInfo;\n }\n\n element = domUtils.parentNode(element);\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction prepare(interaction, {\n action,\n interactable,\n element\n}, scope) {\n action = action || {\n name: null\n };\n interaction.interactable = interactable;\n interaction.element = element;\n copyAction(interaction.prepared, action);\n interaction.rect = interactable && action.name ? interactable.getRect(element) : null;\n setInteractionCursor(interaction, scope);\n scope.fire('autoStart:prepared', {\n interaction\n });\n}\n\nfunction withinInteractionLimit(interactable, element, action, scope) {\n const options = interactable.options;\n const maxActions = options[action.name].max;\n const maxPerElement = options[action.name].maxPerElement;\n const autoStartMax = scope.autoStart.maxInteractions;\n let activeInteractions = 0;\n let interactableCount = 0;\n let elementCount = 0; // no actions if any of these values == 0\n\n if (!(maxActions && maxPerElement && autoStartMax)) {\n return false;\n }\n\n for (const interaction of scope.interactions.list) {\n const otherAction = interaction.prepared.name;\n\n if (!interaction.interacting()) {\n continue;\n }\n\n activeInteractions++;\n\n if (activeInteractions >= autoStartMax) {\n return false;\n }\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interactableCount += otherAction === action.name ? 1 : 0;\n\n if (interactableCount >= maxActions) {\n return false;\n }\n\n if (interaction.element === element) {\n elementCount++;\n\n if (otherAction === action.name && elementCount >= maxPerElement) {\n return false;\n }\n }\n }\n\n return autoStartMax > 0;\n}\n\nfunction maxInteractions(newValue, scope) {\n if (is.number(newValue)) {\n scope.autoStart.maxInteractions = newValue;\n return this;\n }\n\n return scope.autoStart.maxInteractions;\n}\n\nfunction setCursor(element, cursor, scope) {\n const {\n cursorElement: prevCursorElement\n } = scope.autoStart;\n\n if (prevCursorElement && prevCursorElement !== element) {\n prevCursorElement.style.cursor = '';\n }\n\n element.ownerDocument.documentElement.style.cursor = cursor;\n element.style.cursor = cursor;\n scope.autoStart.cursorElement = cursor ? element : null;\n}\n\nfunction setInteractionCursor(interaction, scope) {\n const {\n interactable,\n element,\n prepared\n } = interaction;\n\n if (!(interaction.pointerType === 'mouse' && interactable && interactable.options.styleCursor)) {\n // clear previous target element cursor\n if (scope.autoStart.cursorElement) {\n setCursor(scope.autoStart.cursorElement, '', scope);\n }\n\n return;\n }\n\n let cursor = '';\n\n if (prepared.name) {\n const cursorChecker = interactable.options[prepared.name].cursorChecker;\n\n if (is.func(cursorChecker)) {\n cursor = cursorChecker(prepared, interactable, element, interaction._interacting);\n } else {\n cursor = scope.actions.map[prepared.name].getCursor(prepared);\n }\n }\n\n setCursor(interaction.element, cursor || '', scope);\n}\n\nconst autoStart = {\n id: 'auto-start/base',\n before: ['actions'],\n install,\n listeners: {\n 'interactions:down': prepareOnDown,\n 'interactions:move': (arg, scope) => {\n prepareOnMove(arg, scope);\n startOnMove(arg, scope);\n },\n 'interactions:stop': clearCursorOnStop\n },\n maxInteractions,\n withinInteractionLimit,\n validateAction\n};\nexport default autoStart;\n//# sourceMappingURL=base.js.map","import { parentNode } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport autoStart from \"./base.js\";\n\nfunction beforeStart({\n interaction,\n eventTarget,\n dx,\n dy\n}, scope) {\n if (interaction.prepared.name !== 'drag') {\n return;\n } // check if a drag is in the correct axis\n\n\n const absX = Math.abs(dx);\n const absY = Math.abs(dy);\n const targetOptions = interaction.interactable.options.drag;\n const startAxis = targetOptions.startAxis;\n const currentAxis = absX > absY ? 'x' : absX < absY ? 'y' : 'xy';\n interaction.prepared.axis = targetOptions.lockAxis === 'start' ? currentAxis[0] // always lock to one axis even if currentAxis === 'xy'\n : targetOptions.lockAxis; // if the movement isn't in the startAxis of the interactable\n\n if (currentAxis !== 'xy' && startAxis !== 'xy' && startAxis !== currentAxis) {\n // cancel the prepared action\n interaction.prepared.name = null; // then try to get a drag from another ineractable\n\n let element = eventTarget;\n\n const getDraggable = function (interactable) {\n if (interactable === interaction.interactable) {\n return;\n }\n\n const options = interaction.interactable.options.drag;\n\n if (!options.manualStart && interactable.testIgnoreAllow(options, element, eventTarget)) {\n const action = interactable.getAction(interaction.downPointer, interaction.downEvent, interaction, element);\n\n if (action && action.name === 'drag' && checkStartAxis(currentAxis, interactable) && autoStart.validateAction(action, interactable, element, eventTarget, scope)) {\n return interactable;\n }\n }\n }; // check all interactables\n\n\n while (is.element(element)) {\n const interactable = scope.interactables.forEachMatch(element, getDraggable);\n\n if (interactable) {\n interaction.prepared.name = 'drag';\n interaction.interactable = interactable;\n interaction.element = element;\n break;\n }\n\n element = parentNode(element);\n }\n }\n}\n\nfunction checkStartAxis(startAxis, interactable) {\n if (!interactable) {\n return false;\n }\n\n const thisAxis = interactable.options.drag.startAxis;\n return startAxis === 'xy' || thisAxis === 'xy' || thisAxis === startAxis;\n}\n\nexport default {\n id: 'auto-start/dragAxis',\n listeners: {\n 'autoStart:before-start': beforeStart\n }\n};\n//# sourceMappingURL=dragAxis.js.map","import Interaction from \"../core/Interaction.js\";\nimport basePlugin from \"./base.js\";\n\nfunction install(scope) {\n const {\n defaults\n } = scope;\n scope.usePlugin(basePlugin);\n defaults.perAction.hold = 0;\n defaults.perAction.delay = 0;\n}\n\nfunction getHoldDuration(interaction) {\n const actionName = interaction.prepared && interaction.prepared.name;\n\n if (!actionName) {\n return null;\n }\n\n const options = interaction.interactable.options;\n return options[actionName].hold || options[actionName].delay;\n}\n\nconst hold = {\n id: 'auto-start/hold',\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.autoStartHoldTimer = null;\n },\n 'autoStart:prepared': ({\n interaction\n }) => {\n const hold = getHoldDuration(interaction);\n\n if (hold > 0) {\n interaction.autoStartHoldTimer = setTimeout(() => {\n interaction.start(interaction.prepared, interaction.interactable, interaction.element);\n }, hold);\n }\n },\n 'interactions:move': ({\n interaction,\n duplicate\n }) => {\n if (interaction.autoStartHoldTimer && interaction.pointerWasMoved && !duplicate) {\n clearTimeout(interaction.autoStartHoldTimer);\n interaction.autoStartHoldTimer = null;\n }\n },\n // prevent regular down->move autoStart\n 'autoStart:before-start': ({\n interaction\n }) => {\n const holdDuration = getHoldDuration(interaction);\n\n if (holdDuration > 0) {\n interaction.prepared.name = null;\n }\n }\n },\n getHoldDuration\n};\nexport default hold;\n//# sourceMappingURL=hold.js.map","import autoStart from \"./base.js\";\nimport dragAxis from \"./dragAxis.js\";\nimport hold from \"./hold.js\";\nexport default {\n id: 'auto-start',\n\n install(scope) {\n scope.usePlugin(autoStart);\n scope.usePlugin(hold);\n scope.usePlugin(dragAxis);\n }\n\n};\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n Interactable,\n defaults\n } = scope;\n Interactable.prototype.draggable = drag.draggable;\n actions.map.drag = drag;\n actions.methodDict.drag = 'draggable';\n defaults.actions.drag = drag.defaults;\n}\n\nfunction beforeMove({\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x') {\n interaction.coords.cur.page.y = interaction.coords.start.page.y;\n interaction.coords.cur.client.y = interaction.coords.start.client.y;\n interaction.coords.velocity.client.y = 0;\n interaction.coords.velocity.page.y = 0;\n } else if (axis === 'y') {\n interaction.coords.cur.page.x = interaction.coords.start.page.x;\n interaction.coords.cur.client.x = interaction.coords.start.client.x;\n interaction.coords.velocity.client.x = 0;\n interaction.coords.velocity.page.x = 0;\n }\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x' || axis === 'y') {\n const opposite = axis === 'x' ? 'y' : 'x';\n iEvent.page[opposite] = interaction.coords.start.page[opposite];\n iEvent.client[opposite] = interaction.coords.start.client[opposite];\n iEvent.delta[opposite] = 0;\n }\n}\n/**\n * ```js\n * interact(element).draggable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * // the axis in which the first movement must be\n * // for the drag sequence to start\n * // 'xy' by default - any direction\n * startAxis: 'x' || 'y' || 'xy',\n *\n * // 'xy' by default - don't restrict to one axis (move in any direction)\n * // 'x' or 'y' to restrict movement to either axis\n * // 'start' to restrict movement to the axis the drag started in\n * lockAxis: 'x' || 'y' || 'xy' || 'start',\n *\n * // max number of drags that can happen concurrently\n * // with elements of this Interactable. Infinity by default\n * max: Infinity,\n *\n * // max number of drags that can target the same element+Interactable\n * // 1 by default\n * maxPerElement: 2\n * })\n *\n * var isDraggable = interact('element').draggable(); // true\n * ```\n *\n * Get or set whether drag actions can be performed on the target\n *\n * @alias Interactable.prototype.draggable\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on drag events (object makes the Interactable\n * draggable)\n * @return {boolean | Interactable} boolean indicating if this can be the\n * target of drag events, or this Interctable\n */\n\n\nconst draggable = function draggable(options) {\n if (is.object(options)) {\n this.options.drag.enabled = options.enabled !== false;\n this.setPerAction('drag', options);\n this.setOnEvents('drag', options);\n\n if (/^(xy|x|y|start)$/.test(options.lockAxis)) {\n this.options.drag.lockAxis = options.lockAxis;\n }\n\n if (/^(xy|x|y)$/.test(options.startAxis)) {\n this.options.drag.startAxis = options.startAxis;\n }\n\n return this;\n }\n\n if (is.bool(options)) {\n this.options.drag.enabled = options;\n return this;\n }\n\n return this.options.drag;\n};\n\nconst drag = {\n id: 'actions/drag',\n install,\n listeners: {\n 'interactions:before-action-move': beforeMove,\n 'interactions:action-resume': beforeMove,\n // dragmove\n 'interactions:action-move': move,\n 'auto-start:check': arg => {\n const {\n interaction,\n interactable,\n buttons\n } = arg;\n const dragOptions = interactable.options.drag;\n\n if (!(dragOptions && dragOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & interactable.options.drag.mouseButtons) === 0) {\n return undefined;\n }\n\n arg.action = {\n name: 'drag',\n axis: dragOptions.lockAxis === 'start' ? dragOptions.startAxis : dragOptions.lockAxis\n };\n return false;\n }\n },\n draggable,\n beforeMove,\n move,\n defaults: {\n startAxis: 'xy',\n lockAxis: 'xy'\n },\n\n getCursor() {\n return 'move';\n }\n\n};\nexport default drag;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport { Interaction } from \"../../core/Interaction.js\";\nimport * as dom from \"../../utils/domUtils.js\";\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n browser,\n\n /** @lends Interactable */\n Interactable,\n // tslint:disable-line no-shadowed-variable\n defaults\n } = scope; // Less Precision with touch input\n\n resize.cursors = initCursors(browser);\n resize.defaultMargin = browser.supportsTouch || browser.supportsPointerEvent ? 20 : 10;\n /**\n * ```js\n * interact(element).resizable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * edges: {\n * top : true, // Use pointer coords to check for resize.\n * left : false, // Disable resizing from left edge.\n * bottom: '.resize-s',// Resize if pointer target matches selector\n * right : handleEl // Resize if pointer target is the given Element\n * },\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height are adjusted at a 1:1 ratio.\n * square: false,\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height maintain the aspect ratio they had when resizing started.\n * preserveAspectRatio: false,\n *\n * // a value of 'none' will limit the resize rect to a minimum of 0x0\n * // 'negate' will allow the rect to have negative width/height\n * // 'reposition' will keep the width/height positive by swapping\n * // the top and bottom edges and/or swapping the left and right edges\n * invert: 'none' || 'negate' || 'reposition'\n *\n * // limit multiple resizes.\n * // See the explanation in the {@link Interactable.draggable} example\n * max: Infinity,\n * maxPerElement: 1,\n * })\n *\n * var isResizeable = interact(element).resizable()\n * ```\n *\n * Gets or sets whether resize actions can be performed on the target\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on resize events (object makes the Interactable\n * resizable)\n * @return {boolean | Interactable} A boolean indicating if this can be the\n * target of resize elements, or this Interactable\n */\n\n Interactable.prototype.resizable = function (options) {\n return resizable(this, options, scope);\n };\n\n actions.map.resize = resize;\n actions.methodDict.resize = 'resizable';\n defaults.actions.resize = resize.defaults;\n}\n\nfunction resizeChecker(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n buttons\n } = arg;\n\n if (!rect) {\n return undefined;\n }\n\n const page = extend({}, interaction.coords.cur.page);\n const resizeOptions = interactable.options.resize;\n\n if (!(resizeOptions && resizeOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & resizeOptions.mouseButtons) === 0) {\n return undefined;\n } // if using resize.edges\n\n\n if (is.object(resizeOptions.edges)) {\n const resizeEdges = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n\n for (const edge in resizeEdges) {\n resizeEdges[edge] = checkResizeEdge(edge, resizeOptions.edges[edge], page, interaction._latestPointer.eventTarget, element, rect, resizeOptions.margin || resize.defaultMargin);\n }\n\n resizeEdges.left = resizeEdges.left && !resizeEdges.right;\n resizeEdges.top = resizeEdges.top && !resizeEdges.bottom;\n\n if (resizeEdges.left || resizeEdges.right || resizeEdges.top || resizeEdges.bottom) {\n arg.action = {\n name: 'resize',\n edges: resizeEdges\n };\n }\n } else {\n const right = resizeOptions.axis !== 'y' && page.x > rect.right - resize.defaultMargin;\n const bottom = resizeOptions.axis !== 'x' && page.y > rect.bottom - resize.defaultMargin;\n\n if (right || bottom) {\n arg.action = {\n name: 'resize',\n axes: (right ? 'x' : '') + (bottom ? 'y' : '')\n };\n }\n }\n\n return arg.action ? false : undefined;\n}\n\nfunction resizable(interactable, options, scope) {\n if (is.object(options)) {\n interactable.options.resize.enabled = options.enabled !== false;\n interactable.setPerAction('resize', options);\n interactable.setOnEvents('resize', options);\n\n if (is.string(options.axis) && /^x$|^y$|^xy$/.test(options.axis)) {\n interactable.options.resize.axis = options.axis;\n } else if (options.axis === null) {\n interactable.options.resize.axis = scope.defaults.actions.resize.axis;\n }\n\n if (is.bool(options.preserveAspectRatio)) {\n interactable.options.resize.preserveAspectRatio = options.preserveAspectRatio;\n } else if (is.bool(options.square)) {\n interactable.options.resize.square = options.square;\n }\n\n return interactable;\n }\n\n if (is.bool(options)) {\n interactable.options.resize.enabled = options;\n return interactable;\n }\n\n return interactable.options.resize;\n}\n\nfunction checkResizeEdge(name, value, page, element, interactableElement, rect, margin) {\n // false, '', undefined, null\n if (!value) {\n return false;\n } // true value, use pointer coords and element rect\n\n\n if (value === true) {\n // if dimensions are negative, \"switch\" edges\n const width = is.number(rect.width) ? rect.width : rect.right - rect.left;\n const height = is.number(rect.height) ? rect.height : rect.bottom - rect.top; // don't use margin greater than half the relevent dimension\n\n margin = Math.min(margin, Math.abs((name === 'left' || name === 'right' ? width : height) / 2));\n\n if (width < 0) {\n if (name === 'left') {\n name = 'right';\n } else if (name === 'right') {\n name = 'left';\n }\n }\n\n if (height < 0) {\n if (name === 'top') {\n name = 'bottom';\n } else if (name === 'bottom') {\n name = 'top';\n }\n }\n\n if (name === 'left') {\n return page.x < (width >= 0 ? rect.left : rect.right) + margin;\n }\n\n if (name === 'top') {\n return page.y < (height >= 0 ? rect.top : rect.bottom) + margin;\n }\n\n if (name === 'right') {\n return page.x > (width >= 0 ? rect.right : rect.left) - margin;\n }\n\n if (name === 'bottom') {\n return page.y > (height >= 0 ? rect.bottom : rect.top) - margin;\n }\n } // the remaining checks require an element\n\n\n if (!is.element(element)) {\n return false;\n }\n\n return is.element(value) // the value is an element to use as a resize handle\n ? value === element // otherwise check if element matches value as selector\n : dom.matchesUpTo(element, value, interactableElement);\n}\n/* eslint-disable multiline-ternary */\n\n\nfunction initCursors(browser) {\n return browser.isIe9 ? {\n x: 'e-resize',\n y: 's-resize',\n xy: 'se-resize',\n top: 'n-resize',\n left: 'w-resize',\n bottom: 's-resize',\n right: 'e-resize',\n topleft: 'se-resize',\n bottomright: 'se-resize',\n topright: 'ne-resize',\n bottomleft: 'ne-resize'\n } : {\n x: 'ew-resize',\n y: 'ns-resize',\n xy: 'nwse-resize',\n top: 'ns-resize',\n left: 'ew-resize',\n bottom: 'ns-resize',\n right: 'ew-resize',\n topleft: 'nwse-resize',\n bottomright: 'nwse-resize',\n topright: 'nesw-resize',\n bottomleft: 'nesw-resize'\n };\n}\n/* eslint-enable multiline-ternary */\n\n\nfunction start({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const rect = interaction.rect;\n interaction._rects = {\n start: extend({}, rect),\n corrected: extend({}, rect),\n previous: extend({}, rect),\n delta: {\n left: 0,\n right: 0,\n width: 0,\n top: 0,\n bottom: 0,\n height: 0\n }\n };\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const resizeOptions = interaction.interactable.options.resize;\n const invert = resizeOptions.invert;\n const invertible = invert === 'reposition' || invert === 'negate';\n const current = interaction.rect;\n const {\n start: startRect,\n corrected,\n delta: deltaRect,\n previous\n } = interaction._rects;\n extend(previous, corrected);\n\n if (invertible) {\n // if invertible, copy the current rect\n extend(corrected, current);\n\n if (invert === 'reposition') {\n // swap edge values if necessary to keep width/height positive\n if (corrected.top > corrected.bottom) {\n const swap = corrected.top;\n corrected.top = corrected.bottom;\n corrected.bottom = swap;\n }\n\n if (corrected.left > corrected.right) {\n const swap = corrected.left;\n corrected.left = corrected.right;\n corrected.right = swap;\n }\n }\n } else {\n // if not invertible, restrict to minimum of 0x0 rect\n corrected.top = Math.min(current.top, startRect.bottom);\n corrected.bottom = Math.max(current.bottom, startRect.top);\n corrected.left = Math.min(current.left, startRect.right);\n corrected.right = Math.max(current.right, startRect.left);\n }\n\n corrected.width = corrected.right - corrected.left;\n corrected.height = corrected.bottom - corrected.top;\n\n for (const edge in corrected) {\n deltaRect[edge] = corrected[edge] - previous[edge];\n }\n\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = corrected;\n resizeEvent.deltaRect = deltaRect;\n}\n\nfunction end({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction updateEventAxes({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.resizeAxes) {\n return;\n }\n\n const options = interaction.interactable.options;\n const resizeEvent = iEvent;\n\n if (options.resize.square) {\n if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = resizeEvent.delta.y;\n } else {\n resizeEvent.delta.y = resizeEvent.delta.x;\n }\n\n resizeEvent.axes = 'xy';\n } else {\n resizeEvent.axes = interaction.resizeAxes;\n\n if (interaction.resizeAxes === 'x') {\n resizeEvent.delta.y = 0;\n } else if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = 0;\n }\n }\n}\n\nconst resize = {\n id: 'actions/resize',\n before: ['actions/drag'],\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.resizeAxes = 'xy';\n },\n 'interactions:action-start': arg => {\n start(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-move': arg => {\n move(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-end': end,\n 'auto-start:check': resizeChecker\n },\n defaults: {\n square: false,\n preserveAspectRatio: false,\n axis: 'xy',\n // use default margin\n margin: NaN,\n // object with props left, right, top, bottom which are\n // true/false values to resize when the pointer is over that edge,\n // CSS selectors to match the handles for each direction\n // or the Elements for each handle\n edges: null,\n // a value of 'none' will limit the resize rect to a minimum of 0x0\n // 'negate' will alow the rect to have negative width/height\n // 'reposition' will keep the width/height positive by swapping\n // the top and bottom edges and/or swapping the left and right edges\n invert: 'none'\n },\n cursors: null,\n\n getCursor({\n edges,\n axis,\n name\n }) {\n const cursors = resize.cursors;\n let result = null;\n\n if (axis) {\n result = cursors[name + axis];\n } else if (edges) {\n let cursorKey = '';\n\n for (const edge of ['top', 'bottom', 'left', 'right']) {\n if (edges[edge]) {\n cursorKey += edge;\n }\n }\n\n result = cursors[cursorKey];\n }\n\n return result;\n },\n\n defaultMargin: null\n};\nexport default resize;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export default (() => {});\n//# sourceMappingURL=edgeTarget.js.map","export default (() => {});\n//# sourceMappingURL=elements.js.map","export default (grid => {\n const coordFields = [['x', 'y'], ['left', 'top'], ['right', 'bottom'], ['width', 'height']].filter(([xField, yField]) => xField in grid || yField in grid);\n\n const gridFunc = (x, y) => {\n const {\n range,\n limits = {\n left: -Infinity,\n right: Infinity,\n top: -Infinity,\n bottom: Infinity\n },\n offset = {\n x: 0,\n y: 0\n }\n } = grid;\n const result = {\n range,\n grid,\n x: null,\n y: null\n };\n\n for (const [xField, yField] of coordFields) {\n const gridx = Math.round((x - offset.x) / grid[xField]);\n const gridy = Math.round((y - offset.y) / grid[yField]);\n result[xField] = Math.max(limits.left, Math.min(limits.right, gridx * grid[xField] + offset.x));\n result[yField] = Math.max(limits.top, Math.min(limits.bottom, gridy * grid[yField] + offset.y));\n }\n\n return result;\n };\n\n gridFunc.grid = grid;\n gridFunc.coordFields = coordFields;\n return gridFunc;\n});\n//# sourceMappingURL=grid.js.map","export { default as edgeTarget } from \"./edgeTarget.js\";\nexport { default as elements } from \"./elements.js\";\nexport { default as grid } from \"./grid.js\";\n//# sourceMappingURL=all.js.map","import extend from \"../utils/extend.js\";\nimport * as allSnappers from \"./all.js\";\nconst snappersPlugin = {\n id: 'snappers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n interact.snappers = extend(interact.snappers || {}, allSnappers);\n interact.createSnapGrid = interact.snappers.grid;\n }\n\n};\nexport default snappersPlugin;\n//# sourceMappingURL=plugin.js.map","import clone from \"../utils/clone.js\";\nimport extend from \"../utils/extend.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nexport default class Modification {\n constructor(interaction) {\n this.states = [];\n this.startOffset = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n };\n this.startDelta = null;\n this.result = null;\n this.endResult = null;\n this.edges = void 0;\n this.interaction = void 0;\n this.interaction = interaction;\n this.result = createResult();\n }\n\n start({\n phase\n }, pageCoords) {\n const {\n interaction\n } = this;\n const modifierList = getModifierList(interaction);\n this.prepareStates(modifierList);\n this.edges = extend({}, interaction.edges);\n this.startOffset = getRectOffset(interaction.rect, pageCoords);\n this.startDelta = {\n x: 0,\n y: 0\n };\n const arg = {\n phase,\n pageCoords,\n preEnd: false\n };\n this.result = createResult();\n this.startAll(arg);\n const result = this.result = this.setAll(arg);\n return result;\n }\n\n fillArg(arg) {\n const {\n interaction\n } = this;\n arg.interaction = interaction;\n arg.interactable = interaction.interactable;\n arg.element = interaction.element;\n arg.rect = arg.rect || interaction.rect;\n arg.edges = this.edges;\n arg.startOffset = this.startOffset;\n }\n\n startAll(arg) {\n this.fillArg(arg);\n\n for (const state of this.states) {\n if (state.methods.start) {\n arg.state = state;\n state.methods.start(arg);\n }\n }\n }\n\n setAll(arg) {\n this.fillArg(arg);\n const {\n phase,\n preEnd,\n skipModifiers,\n rect: unmodifiedRect\n } = arg;\n arg.coords = extend({}, arg.pageCoords);\n arg.rect = extend({}, unmodifiedRect);\n const states = skipModifiers ? this.states.slice(skipModifiers) : this.states;\n const newResult = createResult(arg.coords, arg.rect);\n\n for (const state of states) {\n const {\n options\n } = state;\n const lastModifierCoords = extend({}, arg.coords);\n let returnValue = null;\n\n if (state.methods.set && this.shouldDo(options, preEnd, phase)) {\n arg.state = state;\n returnValue = state.methods.set(arg);\n rectUtils.addEdges(this.interaction.edges, arg.rect, {\n x: arg.coords.x - lastModifierCoords.x,\n y: arg.coords.y - lastModifierCoords.y\n });\n }\n\n newResult.eventProps.push(returnValue);\n }\n\n newResult.delta.x = arg.coords.x - arg.pageCoords.x;\n newResult.delta.y = arg.coords.y - arg.pageCoords.y;\n newResult.rectDelta.left = arg.rect.left - unmodifiedRect.left;\n newResult.rectDelta.right = arg.rect.right - unmodifiedRect.right;\n newResult.rectDelta.top = arg.rect.top - unmodifiedRect.top;\n newResult.rectDelta.bottom = arg.rect.bottom - unmodifiedRect.bottom;\n const prevCoords = this.result.coords;\n const prevRect = this.result.rect;\n\n if (prevCoords && prevRect) {\n const rectChanged = newResult.rect.left !== prevRect.left || newResult.rect.right !== prevRect.right || newResult.rect.top !== prevRect.top || newResult.rect.bottom !== prevRect.bottom;\n newResult.changed = rectChanged || prevCoords.x !== newResult.coords.x || prevCoords.y !== newResult.coords.y;\n }\n\n return newResult;\n }\n\n applyToInteraction(arg) {\n const {\n interaction\n } = this;\n const {\n phase\n } = arg;\n const curCoords = interaction.coords.cur;\n const startCoords = interaction.coords.start;\n const {\n result,\n startDelta\n } = this;\n const curDelta = result.delta;\n\n if (phase === 'start') {\n extend(this.startDelta, result.delta);\n }\n\n for (const [coordsSet, delta] of [[startCoords, startDelta], [curCoords, curDelta]]) {\n coordsSet.page.x += delta.x;\n coordsSet.page.y += delta.y;\n coordsSet.client.x += delta.x;\n coordsSet.client.y += delta.y;\n }\n\n const {\n rectDelta\n } = this.result;\n const rect = arg.rect || interaction.rect;\n rect.left += rectDelta.left;\n rect.right += rectDelta.right;\n rect.top += rectDelta.top;\n rect.bottom += rectDelta.bottom;\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n setAndApply(arg) {\n const {\n interaction\n } = this;\n const {\n phase,\n preEnd,\n skipModifiers\n } = arg;\n const result = this.setAll({\n preEnd,\n phase,\n pageCoords: arg.modifiedCoords || interaction.coords.cur.page\n });\n this.result = result; // don't fire an action move if a modifier would keep the event in the same\n // cordinates as before\n\n if (!result.changed && (!skipModifiers || skipModifiers < this.states.length) && interaction.interacting()) {\n return false;\n }\n\n if (arg.modifiedCoords) {\n const {\n page\n } = interaction.coords.cur;\n const adjustment = {\n x: arg.modifiedCoords.x - page.x,\n y: arg.modifiedCoords.y - page.y\n };\n result.coords.x += adjustment.x;\n result.coords.y += adjustment.y;\n result.delta.x += adjustment.x;\n result.delta.y += adjustment.y;\n }\n\n this.applyToInteraction(arg);\n }\n\n beforeEnd(arg) {\n const {\n interaction,\n event\n } = arg;\n const states = this.states;\n\n if (!states || !states.length) {\n return;\n }\n\n let doPreend = false;\n\n for (const state of states) {\n arg.state = state;\n const {\n options,\n methods\n } = state;\n const endPosition = methods.beforeEnd && methods.beforeEnd(arg);\n\n if (endPosition) {\n this.endResult = endPosition;\n return false;\n }\n\n doPreend = doPreend || !doPreend && this.shouldDo(options, true, arg.phase, true);\n }\n\n if (doPreend) {\n // trigger a final modified move before ending\n interaction.move({\n event,\n preEnd: true\n });\n }\n }\n\n stop(arg) {\n const {\n interaction\n } = arg;\n\n if (!this.states || !this.states.length) {\n return;\n }\n\n const modifierArg = extend({\n states: this.states,\n interactable: interaction.interactable,\n element: interaction.element,\n rect: null\n }, arg);\n this.fillArg(modifierArg);\n\n for (const state of this.states) {\n modifierArg.state = state;\n\n if (state.methods.stop) {\n state.methods.stop(modifierArg);\n }\n }\n\n this.states = null;\n this.endResult = null;\n }\n\n prepareStates(modifierList) {\n this.states = [];\n\n for (let index = 0; index < modifierList.length; index++) {\n const {\n options,\n methods,\n name\n } = modifierList[index];\n this.states.push({\n options,\n methods,\n index,\n name\n });\n }\n\n return this.states;\n }\n\n restoreInteractionCoords({\n interaction: {\n coords,\n rect,\n modification\n }\n }) {\n if (!modification.result) {\n return;\n }\n\n const {\n startDelta\n } = modification;\n const {\n delta: curDelta,\n rectDelta\n } = modification.result;\n const coordsAndDeltas = [[coords.start, startDelta], [coords.cur, curDelta]];\n\n for (const [coordsSet, delta] of coordsAndDeltas) {\n coordsSet.page.x -= delta.x;\n coordsSet.page.y -= delta.y;\n coordsSet.client.x -= delta.x;\n coordsSet.client.y -= delta.y;\n }\n\n rect.left -= rectDelta.left;\n rect.right -= rectDelta.right;\n rect.top -= rectDelta.top;\n rect.bottom -= rectDelta.bottom;\n }\n\n shouldDo(options, preEnd, phase, requireEndOnly) {\n if ( // ignore disabled modifiers\n !options || options.enabled === false || // check if we require endOnly option to fire move before end\n requireEndOnly && !options.endOnly || // don't apply endOnly modifiers when not ending\n options.endOnly && !preEnd || // check if modifier should run be applied on start\n phase === 'start' && !options.setStart) {\n return false;\n }\n\n return true;\n }\n\n copyFrom(other) {\n this.startOffset = other.startOffset;\n this.startDelta = other.startDelta;\n this.edges = other.edges;\n this.states = other.states.map(s => clone(s));\n this.result = createResult(extend({}, other.result.coords), extend({}, other.result.rect));\n }\n\n destroy() {\n for (const prop in this) {\n this[prop] = null;\n }\n }\n\n}\n\nfunction createResult(coords, rect) {\n return {\n rect,\n coords,\n delta: {\n x: 0,\n y: 0\n },\n rectDelta: {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n },\n eventProps: [],\n changed: true\n };\n}\n\nfunction getModifierList(interaction) {\n const actionOptions = interaction.interactable.options[interaction.prepared.name];\n const actionModifiers = actionOptions.modifiers;\n\n if (actionModifiers && actionModifiers.length) {\n return actionModifiers;\n }\n\n return ['snap', 'snapSize', 'snapEdges', 'restrict', 'restrictEdges', 'restrictSize'].map(type => {\n const options = actionOptions[type];\n return options && options.enabled && {\n options,\n methods: options._methods\n };\n }).filter(m => !!m);\n}\n\nexport function getRectOffset(rect, coords) {\n return rect ? {\n left: coords.x - rect.left,\n top: coords.y - rect.top,\n right: rect.right - coords.x,\n bottom: rect.bottom - coords.y\n } : {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n };\n}\n//# sourceMappingURL=Modification.js.map","import { InteractEvent } from \"../core/InteractEvent.js\";\nimport Interaction from \"../core/Interaction.js\";\nimport Modification from \"./Modification.js\";\nexport function makeModifier(module, name) {\n const {\n defaults\n } = module;\n const methods = {\n start: module.start,\n set: module.set,\n beforeEnd: module.beforeEnd,\n stop: module.stop\n };\n\n const modifier = _options => {\n const options = _options || {};\n options.enabled = options.enabled !== false; // add missing defaults to options\n\n for (const prop in defaults) {\n if (!(prop in options)) {\n options[prop] = defaults[prop];\n }\n }\n\n const m = {\n options,\n methods,\n name,\n enable: () => {\n options.enabled = true;\n return m;\n },\n disable: () => {\n options.enabled = false;\n return m;\n }\n };\n return m;\n };\n\n if (name && typeof name === 'string') {\n // for backwrads compatibility\n modifier._defaults = defaults;\n modifier._methods = methods;\n }\n\n return modifier;\n}\nexport function addEventModifiers({\n iEvent,\n interaction: {\n modification: {\n result\n }\n }\n}) {\n if (result) {\n iEvent.modifiers = result.eventProps;\n }\n}\nconst modifiersBase = {\n id: 'modifiers/base',\n before: ['actions'],\n install: scope => {\n scope.defaults.perAction.modifiers = [];\n },\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.modification = new Modification(interaction);\n },\n 'interactions:before-action-start': arg => {\n const {\n modification\n } = arg.interaction;\n modification.start(arg, arg.interaction.coords.start.page);\n arg.interaction.edges = modification.edges;\n modification.applyToInteraction(arg);\n },\n 'interactions:before-action-move': arg => arg.interaction.modification.setAndApply(arg),\n 'interactions:before-action-end': arg => arg.interaction.modification.beforeEnd(arg),\n 'interactions:action-start': addEventModifiers,\n 'interactions:action-move': addEventModifiers,\n 'interactions:action-end': addEventModifiers,\n 'interactions:after-action-start': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:after-action-move': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:stop': arg => arg.interaction.modification.stop(arg)\n }\n};\nexport default modifiersBase;\n//# sourceMappingURL=base.js.map","/**\n * @module modifiers/aspectRatio\n *\n * @description\n * This module forces elements to be resized with a specified dx/dy ratio.\n *\n * ```js\n * interact(target).resizable({\n * modifiers: [\n * interact.modifiers.snapSize({\n * targets: [ interact.snappers.grid({ x: 20, y: 20 }) ],\n * }),\n * interact.aspectRatio({ ratio: 'preserve' }),\n * ],\n * });\n * ```\n */\nimport extend from \"../utils/extend.js\";\nimport { addEdges } from \"../utils/rect.js\";\nimport Modification from \"./Modification.js\";\nimport { makeModifier } from \"./base.js\";\nconst aspectRatio = {\n start(arg) {\n const {\n state,\n rect,\n edges: originalEdges,\n pageCoords: coords\n } = arg;\n let {\n ratio\n } = state.options;\n const {\n equalDelta,\n modifiers\n } = state.options;\n\n if (ratio === 'preserve') {\n ratio = rect.width / rect.height;\n }\n\n state.startCoords = extend({}, coords);\n state.startRect = extend({}, rect);\n state.ratio = ratio;\n state.equalDelta = equalDelta;\n const linkedEdges = state.linkedEdges = {\n top: originalEdges.top || originalEdges.left && !originalEdges.bottom,\n left: originalEdges.left || originalEdges.top && !originalEdges.right,\n bottom: originalEdges.bottom || originalEdges.right && !originalEdges.top,\n right: originalEdges.right || originalEdges.bottom && !originalEdges.left\n };\n state.xIsPrimaryAxis = !!(originalEdges.left || originalEdges.right);\n\n if (state.equalDelta) {\n state.edgeSign = (linkedEdges.left ? 1 : -1) * (linkedEdges.top ? 1 : -1);\n } else {\n const negativeSecondaryEdge = state.xIsPrimaryAxis ? linkedEdges.top : linkedEdges.left;\n state.edgeSign = negativeSecondaryEdge ? -1 : 1;\n }\n\n extend(arg.edges, linkedEdges);\n\n if (!modifiers || !modifiers.length) {\n return;\n }\n\n const subModification = new Modification(arg.interaction);\n subModification.copyFrom(arg.interaction.modification);\n subModification.prepareStates(modifiers);\n state.subModification = subModification;\n subModification.startAll({ ...arg\n });\n },\n\n set(arg) {\n const {\n state,\n rect,\n coords\n } = arg;\n const initialCoords = extend({}, coords);\n const aspectMethod = state.equalDelta ? setEqualDelta : setRatio;\n aspectMethod(state, state.xIsPrimaryAxis, coords, rect);\n\n if (!state.subModification) {\n return null;\n }\n\n const correctedRect = extend({}, rect);\n addEdges(state.linkedEdges, correctedRect, {\n x: coords.x - initialCoords.x,\n y: coords.y - initialCoords.y\n });\n const result = state.subModification.setAll({ ...arg,\n rect: correctedRect,\n edges: state.linkedEdges,\n pageCoords: coords,\n prevCoords: coords,\n prevRect: correctedRect\n });\n const {\n delta\n } = result;\n\n if (result.changed) {\n const xIsCriticalAxis = Math.abs(delta.x) > Math.abs(delta.y); // do aspect modification again with critical edge axis as primary\n\n aspectMethod(state, xIsCriticalAxis, result.coords, result.rect);\n extend(coords, result.coords);\n }\n\n return result.eventProps;\n },\n\n defaults: {\n ratio: 'preserve',\n equalDelta: false,\n modifiers: [],\n enabled: false\n }\n};\n\nfunction setEqualDelta({\n startCoords,\n edgeSign\n}, xIsPrimaryAxis, coords) {\n if (xIsPrimaryAxis) {\n coords.y = startCoords.y + (coords.x - startCoords.x) * edgeSign;\n } else {\n coords.x = startCoords.x + (coords.y - startCoords.y) * edgeSign;\n }\n}\n\nfunction setRatio({\n startRect,\n startCoords,\n ratio,\n edgeSign\n}, xIsPrimaryAxis, coords, rect) {\n if (xIsPrimaryAxis) {\n const newHeight = rect.width / ratio;\n coords.y = startCoords.y + (newHeight - startRect.height) * edgeSign;\n } else {\n const newWidth = rect.height * ratio;\n coords.x = startCoords.x + (newWidth - startRect.width) * edgeSign;\n }\n}\n\nexport default makeModifier(aspectRatio, 'aspectRatio');\nexport { aspectRatio };\n//# sourceMappingURL=aspectRatio.js.map","const noop = () => {};\n\nnoop._defaults = {};\nexport default noop;\n//# sourceMappingURL=noop.js.map","import extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start({\n rect,\n startOffset,\n state,\n interaction,\n pageCoords\n}) {\n const {\n options\n } = state;\n const {\n elementRect\n } = options;\n const offset = extend({\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n }, options.offset || {});\n\n if (rect && elementRect) {\n const restriction = getRestrictionRect(options.restriction, interaction, pageCoords);\n\n if (restriction) {\n const widthDiff = restriction.right - restriction.left - rect.width;\n const heightDiff = restriction.bottom - restriction.top - rect.height;\n\n if (widthDiff < 0) {\n offset.left += widthDiff;\n offset.right += widthDiff;\n }\n\n if (heightDiff < 0) {\n offset.top += heightDiff;\n offset.bottom += heightDiff;\n }\n }\n\n offset.left += startOffset.left - rect.width * elementRect.left;\n offset.top += startOffset.top - rect.height * elementRect.top;\n offset.right += startOffset.right - rect.width * (1 - elementRect.right);\n offset.bottom += startOffset.bottom - rect.height * (1 - elementRect.bottom);\n }\n\n state.offset = offset;\n}\n\nfunction set({\n coords,\n interaction,\n state\n}) {\n const {\n options,\n offset\n } = state;\n const restriction = getRestrictionRect(options.restriction, interaction, coords);\n\n if (!restriction) {\n return;\n }\n\n const rect = rectUtils.xywhToTlbr(restriction);\n coords.x = Math.max(Math.min(rect.right - offset.right, coords.x), rect.left + offset.left);\n coords.y = Math.max(Math.min(rect.bottom - offset.bottom, coords.y), rect.top + offset.top);\n}\n\nexport function getRestrictionRect(value, interaction, coords) {\n if (is.func(value)) {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element, [coords.x, coords.y, interaction]);\n } else {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element);\n }\n}\nconst defaults = {\n restriction: null,\n elementRect: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrict = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrict, 'restrict');\nexport { restrict };\n//# sourceMappingURL=pointer.js.map","// This module adds the options.resize.restrictEdges setting which sets min and\n// max for the top, left, bottom and right edges of the target being resized.\n//\n// interact(target).resize({\n// edges: { top: true, left: true },\n// restrictEdges: {\n// inner: { top: 200, left: 200, right: 400, bottom: 400 },\n// outer: { top: 0, left: 0, right: 600, bottom: 600 },\n// },\n// })\nimport extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noInner = {\n top: +Infinity,\n left: +Infinity,\n bottom: -Infinity,\n right: -Infinity\n};\nconst noOuter = {\n top: -Infinity,\n left: -Infinity,\n bottom: +Infinity,\n right: +Infinity\n};\n\nfunction start({\n interaction,\n startOffset,\n state\n}) {\n const {\n options\n } = state;\n let offset;\n\n if (options) {\n const offsetRect = getRestrictionRect(options.offset, interaction, interaction.coords.start.page);\n offset = rectUtils.rectToXY(offsetRect);\n }\n\n offset = offset || {\n x: 0,\n y: 0\n };\n state.offset = {\n top: offset.y + startOffset.top,\n left: offset.x + startOffset.left,\n bottom: offset.y - startOffset.bottom,\n right: offset.x - startOffset.right\n };\n}\n\nfunction set({\n coords,\n edges,\n interaction,\n state\n}) {\n const {\n offset,\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const page = extend({}, coords);\n const inner = getRestrictionRect(options.inner, interaction, page) || {};\n const outer = getRestrictionRect(options.outer, interaction, page) || {};\n fixRect(inner, noInner);\n fixRect(outer, noOuter);\n\n if (edges.top) {\n coords.y = Math.min(Math.max(outer.top + offset.top, page.y), inner.top + offset.top);\n } else if (edges.bottom) {\n coords.y = Math.max(Math.min(outer.bottom + offset.bottom, page.y), inner.bottom + offset.bottom);\n }\n\n if (edges.left) {\n coords.x = Math.min(Math.max(outer.left + offset.left, page.x), inner.left + offset.left);\n } else if (edges.right) {\n coords.x = Math.max(Math.min(outer.right + offset.right, page.x), inner.right + offset.right);\n }\n}\n\nfunction fixRect(rect, defaults) {\n for (const edge of ['top', 'left', 'bottom', 'right']) {\n if (!(edge in rect)) {\n rect[edge] = defaults[edge];\n }\n }\n\n return rect;\n}\n\nconst defaults = {\n inner: null,\n outer: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrictEdges = {\n noInner,\n noOuter,\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictEdges, 'restrictEdges');\nexport { restrictEdges };\n//# sourceMappingURL=edges.js.map","import extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrict } from \"./pointer.js\";\nconst defaults = extend({\n get elementRect() {\n return {\n top: 0,\n left: 0,\n bottom: 1,\n right: 1\n };\n },\n\n set elementRect(_) {}\n\n}, restrict.defaults);\nconst restrictRect = {\n start: restrict.start,\n set: restrict.set,\n defaults\n};\nexport default makeModifier(restrictRect, 'restrictRect');\nexport { restrictRect };\n//# sourceMappingURL=rect.js.map","import extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrictEdges } from \"./edges.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noMin = {\n width: -Infinity,\n height: -Infinity\n};\nconst noMax = {\n width: +Infinity,\n height: +Infinity\n};\n\nfunction start(arg) {\n return restrictEdges.start(arg);\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n rect,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const minSize = rectUtils.tlbrToXywh(getRestrictionRect(options.min, interaction, arg.coords)) || noMin;\n const maxSize = rectUtils.tlbrToXywh(getRestrictionRect(options.max, interaction, arg.coords)) || noMax;\n state.options = {\n endOnly: options.endOnly,\n inner: extend({}, restrictEdges.noInner),\n outer: extend({}, restrictEdges.noOuter)\n };\n\n if (edges.top) {\n state.options.inner.top = rect.bottom - minSize.height;\n state.options.outer.top = rect.bottom - maxSize.height;\n } else if (edges.bottom) {\n state.options.inner.bottom = rect.top + minSize.height;\n state.options.outer.bottom = rect.top + maxSize.height;\n }\n\n if (edges.left) {\n state.options.inner.left = rect.right - minSize.width;\n state.options.outer.left = rect.right - maxSize.width;\n } else if (edges.right) {\n state.options.inner.right = rect.left + minSize.width;\n state.options.outer.right = rect.left + maxSize.width;\n }\n\n restrictEdges.set(arg);\n state.options = options;\n}\n\nconst defaults = {\n min: null,\n max: null,\n endOnly: false,\n enabled: false\n};\nconst restrictSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictSize, 'restrictSize');\nexport { restrictSize };\n//# sourceMappingURL=size.js.map","import extend from \"../../utils/extend.js\";\nimport getOriginXY from \"../../utils/getOriginXY.js\";\nimport hypot from \"../../utils/hypot.js\";\nimport is from \"../../utils/is.js\";\nimport { resolveRectLike, rectToXY } from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n state,\n startOffset\n } = arg;\n const {\n options\n } = state;\n const origin = options.offsetWithOrigin ? getOrigin(arg) : {\n x: 0,\n y: 0\n };\n let snapOffset;\n\n if (options.offset === 'startCoords') {\n snapOffset = {\n x: interaction.coords.start.page.x,\n y: interaction.coords.start.page.y\n };\n } else {\n const offsetRect = resolveRectLike(options.offset, interactable, element, [interaction]);\n snapOffset = rectToXY(offsetRect) || {\n x: 0,\n y: 0\n };\n snapOffset.x += origin.x;\n snapOffset.y += origin.y;\n }\n\n const {\n relativePoints\n } = options;\n state.offsets = rect && relativePoints && relativePoints.length ? relativePoints.map((relativePoint, index) => ({\n index,\n relativePoint,\n x: startOffset.left - rect.width * relativePoint.x + snapOffset.x,\n y: startOffset.top - rect.height * relativePoint.y + snapOffset.y\n })) : [extend({\n index: 0,\n relativePoint: null\n }, snapOffset)];\n}\n\nfunction set(arg) {\n const {\n interaction,\n coords,\n state\n } = arg;\n const {\n options,\n offsets\n } = state;\n const origin = getOriginXY(interaction.interactable, interaction.element, interaction.prepared.name);\n const page = extend({}, coords);\n const targets = [];\n\n if (!options.offsetWithOrigin) {\n page.x -= origin.x;\n page.y -= origin.y;\n }\n\n for (const offset of offsets) {\n const relativeX = page.x - offset.x;\n const relativeY = page.y - offset.y;\n\n for (let index = 0, len = options.targets.length; index < len; index++) {\n const snapTarget = options.targets[index];\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relativeX, relativeY, interaction._proxy, offset, index);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n targets.push({\n x: (is.number(target.x) ? target.x : relativeX) + offset.x,\n y: (is.number(target.y) ? target.y : relativeY) + offset.y,\n range: is.number(target.range) ? target.range : options.range,\n source: snapTarget,\n index,\n offset\n });\n }\n }\n\n const closest = {\n target: null,\n inRange: false,\n distance: 0,\n range: 0,\n delta: {\n x: 0,\n y: 0\n }\n };\n\n for (const target of targets) {\n const range = target.range;\n const dx = target.x - page.x;\n const dy = target.y - page.y;\n const distance = hypot(dx, dy);\n let inRange = distance <= range; // Infinite targets count as being out of range\n // compared to non infinite ones that are in range\n\n if (range === Infinity && closest.inRange && closest.range !== Infinity) {\n inRange = false;\n }\n\n if (!closest.target || (inRange // is the closest target in range?\n ? closest.inRange && range !== Infinity // the pointer is relatively deeper in this target\n ? distance / range < closest.distance / closest.range // this target has Infinite range and the closest doesn't\n : range === Infinity && closest.range !== Infinity || // OR this target is closer that the previous closest\n distance < closest.distance : // The other is not in range and the pointer is closer to this target\n !closest.inRange && distance < closest.distance)) {\n closest.target = target;\n closest.distance = distance;\n closest.range = range;\n closest.inRange = inRange;\n closest.delta.x = dx;\n closest.delta.y = dy;\n }\n }\n\n if (closest.inRange) {\n coords.x = closest.target.x;\n coords.y = closest.target.y;\n }\n\n state.closest = closest;\n return closest;\n}\n\nfunction getOrigin(arg) {\n const {\n element\n } = arg.interaction;\n const optionsOrigin = rectToXY(resolveRectLike(arg.state.options.origin, null, null, [element]));\n const origin = optionsOrigin || getOriginXY(arg.interactable, element, arg.interaction.prepared.name);\n return origin;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n offsetWithOrigin: true,\n origin: null,\n relativePoints: null,\n endOnly: false,\n enabled: false\n};\nconst snap = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snap, 'snap');\nexport { snap };\n//# sourceMappingURL=pointer.js.map","// This module allows snapping of the size of targets during resize\n// interactions.\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snap } from \"./pointer.js\";\n\nfunction start(arg) {\n const {\n state,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return null;\n }\n\n arg.state = {\n options: {\n targets: null,\n relativePoints: [{\n x: edges.left ? 0 : 1,\n y: edges.top ? 0 : 1\n }],\n offset: options.offset || 'self',\n origin: {\n x: 0,\n y: 0\n },\n range: options.range\n }\n };\n state.targetFields = state.targetFields || [['width', 'height'], ['x', 'y']];\n snap.start(arg);\n state.offsets = arg.state.offsets;\n arg.state = state;\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n coords\n } = arg;\n const {\n options,\n offsets\n } = state;\n const relative = {\n x: coords.x - offsets[0].x,\n y: coords.y - offsets[0].y\n };\n state.options = extend({}, options);\n state.options.targets = [];\n\n for (const snapTarget of options.targets || []) {\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relative.x, relative.y, interaction);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n for (const [xField, yField] of state.targetFields) {\n if (xField in target || yField in target) {\n target.x = target[xField];\n target.y = target[yField];\n break;\n }\n }\n\n state.options.targets.push(target);\n }\n\n const returnValue = snap.set(arg);\n state.options = options;\n return returnValue;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst snapSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snapSize, 'snapSize');\nexport { snapSize };\n//# sourceMappingURL=size.js.map","/**\n * @module modifiers/snapEdges\n *\n * @description\n * WOW> This module allows snapping of the edges of targets during resize\n * interactions.\n *\n * ```js\n * interact(target).resizable({\n * snapEdges: {\n * targets: [interact.snappers.grid({ x: 100, y: 50 })],\n * },\n * })\n *\n * interact(target).resizable({\n * snapEdges: {\n * targets: [\n * interact.snappers.grid({\n * top: 50,\n * left: 50,\n * bottom: 100,\n * right: 100,\n * }),\n * ],\n * },\n * })\n * ```\n */\nimport clone from \"../../utils/clone.js\";\nimport extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snapSize } from \"./size.js\";\n\nfunction start(arg) {\n const {\n edges\n } = arg;\n\n if (!edges) {\n return null;\n }\n\n arg.state.targetFields = arg.state.targetFields || [[edges.left ? 'left' : 'right', edges.top ? 'top' : 'bottom']];\n return snapSize.start(arg);\n}\n\nconst snapEdges = {\n start,\n set: snapSize.set,\n defaults: extend(clone(snapSize.defaults), {\n targets: null,\n range: null,\n offset: {\n x: 0,\n y: 0\n }\n })\n};\nexport default makeModifier(snapEdges, 'snapEdges');\nexport { snapEdges };\n//# sourceMappingURL=edges.js.map","/* eslint-disable node/no-extraneous-import */\nimport aspectRatio from \"./aspectRatio.js\";\nimport avoid from \"./avoid.js\";\nimport restrictEdges from \"./restrict/edges.js\";\nimport restrict from \"./restrict/pointer.js\";\nimport restrictRect from \"./restrict/rect.js\";\nimport restrictSize from \"./restrict/size.js\";\nimport rubberband from \"./rubberband.js\";\nimport snapEdges from \"./snap/edges.js\";\nimport snap from \"./snap/pointer.js\";\nimport snapSize from \"./snap/size.js\";\nimport spring from \"./spring.js\";\nimport transform from \"./transform.js\";\nexport default {\n aspectRatio,\n restrictEdges,\n restrict,\n restrictRect,\n restrictSize,\n snapEdges,\n snap,\n snapSize,\n spring,\n avoid,\n transform,\n rubberband\n};\n//# sourceMappingURL=all.js.map","import snappers from \"../snappers/plugin.js\";\nimport all from \"./all.js\";\nimport base from \"./base.js\";\nconst modifiers = {\n id: 'modifiers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n scope.usePlugin(base);\n scope.usePlugin(snappers);\n interact.modifiers = all; // for backwrads compatibility\n\n for (const type in all) {\n const {\n _defaults,\n _methods\n } = all[type];\n _defaults._methods = _methods;\n scope.defaults.perAction[type] = _defaults;\n }\n }\n\n};\nexport default modifiers;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","/* eslint-disable no-console */\nimport { Scope } from \"../core/scope.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { parentNode } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport * as win from \"../utils/window.js\";\nvar CheckName;\n\n(function (CheckName) {\n CheckName[\"touchAction\"] = \"touchAction\";\n CheckName[\"boxSizing\"] = \"boxSizing\";\n CheckName[\"noListeners\"] = \"noListeners\";\n})(CheckName || (CheckName = {}));\n\nconst prefix = '[interact.js] ';\nconst links = {\n touchAction: 'https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action',\n boxSizing: 'https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing'\n}; // eslint-disable-next-line no-undef\n\nconst isProduction = \"development\" === 'production'; // eslint-disable-next-line no-restricted-syntax\n\nfunction install(scope, {\n logger\n} = {}) {\n const {\n Interactable,\n defaults\n } = scope;\n scope.logger = logger || console;\n defaults.base.devTools = {\n ignore: {}\n };\n\n Interactable.prototype.devTools = function (options) {\n if (options) {\n extend(this.options.devTools, options);\n return this;\n }\n\n return this.options.devTools;\n };\n}\n\nconst checks = [{\n name: CheckName.touchAction,\n\n perform({\n element\n }) {\n return !parentHasStyle(element, 'touchAction', /pan-|pinch|none/);\n },\n\n getInfo({\n element\n }) {\n return [element, links.touchAction];\n },\n\n text: 'Consider adding CSS \"touch-action: none\" to this element\\n'\n}, {\n name: CheckName.boxSizing,\n\n perform(interaction) {\n const {\n element\n } = interaction;\n return interaction.prepared.name === 'resize' && element instanceof domObjects.HTMLElement && !hasStyle(element, 'boxSizing', /border-box/);\n },\n\n text: 'Consider adding CSS \"box-sizing: border-box\" to this resizable element',\n\n getInfo({\n element\n }) {\n return [element, links.boxSizing];\n }\n\n}, {\n name: CheckName.noListeners,\n\n perform(interaction) {\n const actionName = interaction.prepared.name;\n const moveListeners = interaction.interactable.events.types[`${actionName}move`] || [];\n return !moveListeners.length;\n },\n\n getInfo(interaction) {\n return [interaction.prepared.name, interaction.interactable];\n },\n\n text: 'There are no listeners set for this action'\n}];\n\nfunction hasStyle(element, prop, styleRe) {\n const value = element.style[prop] || win.window.getComputedStyle(element)[prop];\n return styleRe.test((value || '').toString());\n}\n\nfunction parentHasStyle(element, prop, styleRe) {\n let parent = element;\n\n while (is.element(parent)) {\n if (hasStyle(parent, prop, styleRe)) {\n return true;\n }\n\n parent = parentNode(parent);\n }\n\n return false;\n}\n\nconst id = 'dev-tools';\nconst defaultExport = isProduction ? {\n id,\n install: () => {}\n} : {\n id,\n install,\n listeners: {\n 'interactions:action-start': ({\n interaction\n }, scope) => {\n for (const check of checks) {\n const options = interaction.interactable && interaction.interactable.options;\n\n if (!(options && options.devTools && options.devTools.ignore[check.name]) && check.perform(interaction)) {\n scope.logger.warn(prefix + check.text, ...check.getInfo(interaction));\n }\n }\n }\n },\n checks,\n CheckName,\n links,\n prefix\n};\nexport default defaultExport;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export { default } from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=script&lang=js\"","import { render } from \"./GridItem.vue?vue&type=template&id=17d5e425\"\nimport script from \"./GridItem.vue?vue&type=script&lang=js\"\nexport * from \"./GridItem.vue?vue&type=script&lang=js\"\n\nimport \"./GridItem.vue?vue&type=style&index=0&id=17d5e425&lang=css\"\n\nimport exportComponent from \"/Users/xingyongqiang/code/testCode/vue-grid-layout/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import _Object$defineProperty from \"@babel/runtime-corejs2/core-js/object/define-property\";\nexport default function _defineProperty(obj, key, value) {\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function(n){return{all:n=n||new Map,on:function(t,e){var i=n.get(t);i&&i.push(e)||n.set(t,[e])},off:function(t,e){var i=n.get(t);i&&i.splice(i.indexOf(e)>>>0,1)},emit:function(t,e){(n.get(t)||[]).slice().map(function(n){n(e)}),(n.get(\"*\")||[]).slice().map(function(n){n(t,e)})}}}\n//# sourceMappingURL=mitt.es.js.map\n","export { default } from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridLayout.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridLayout.vue?vue&type=script&lang=js\"","import { render } from \"./GridLayout.vue?vue&type=template&id=2f667182\"\nimport script from \"./GridLayout.vue?vue&type=script&lang=js\"\nexport * from \"./GridLayout.vue?vue&type=script&lang=js\"\n\nimport \"./GridLayout.vue?vue&type=style&index=0&id=2f667182&lang=css\"\n\nimport exportComponent from \"/Users/xingyongqiang/code/testCode/vue-grid-layout/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { App } from 'vue';\n\nimport GridItem from './GridItem.vue';\nimport GridLayout from './GridLayout.vue';\n\nexport { GridLayout, GridItem };\n\nconst install = (app: App) => {\n app.component('grid-layout', GridLayout)\n app.component('grid-item', GridItem)\n}\n\nexport default install;","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","// 20.1.2.2 Number.isFinite(number)\nvar $export = require('./_export');\nvar _isFinite = require('./_global').isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it) {\n return typeof it == 'number' && _isFinite(it);\n }\n});\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-grid-layout.umd.js b/dist/hz-grid-layout.umd.js similarity index 96% rename from dist/vue-grid-layout.umd.js rename to dist/hz-grid-layout.umd.js index 5896d5ad..f2b59aa8 100644 --- a/dist/vue-grid-layout.umd.js +++ b/dist/hz-grid-layout.umd.js @@ -1,4 +1,4 @@ -/*! vue-grid-layout - 3.0.0-beta1 | (c) 2015, 2021 Gustavo Santos (JBay Solutions) (http://www.jbaysolutions.com) | https://github.com/jbaysolutions/vue-grid-layout */ +/*! hz-grid-layout - 0.0.1 | (c) 2015, 2024 pirate6 | https://github.com/jbaysolutions/vue-grid-layout */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("vue")); @@ -214,13 +214,13 @@ module.exports = function (S, index, unicode) { /***/ }), -/***/ "083e": -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "07e3": +/***/ (function(module, exports) { -"use strict"; -/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_46ff2fc8_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c541"); -/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_46ff2fc8_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_46ff2fc8_lang_css__WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ +var hasOwnProperty = {}.hasOwnProperty; +module.exports = function (it, key) { + return hasOwnProperty.call(it, key); +}; /***/ }), @@ -603,6 +603,50 @@ detector.isLegacyOpera = function() { }; +/***/ }), + +/***/ "1bc3": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__("f772"); +// instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string +module.exports = function (it, S) { + if (!isObject(it)) return it; + var fn, val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + throw TypeError("Can't convert object to primitive value"); +}; + + +/***/ }), + +/***/ "1bca": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_2f667182_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("aa51"); +/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_2f667182_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_2f667182_lang_css__WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + + +/***/ }), + +/***/ "1ec9": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("f772"); +var document = __webpack_require__("e53d").document; +// typeof document.createElement is 'object' in old IE +var is = isObject(document) && isObject(document.createElement); +module.exports = function (it) { + return is ? document.createElement(it) : {}; +}; + + /***/ }), /***/ "214f": @@ -860,6 +904,20 @@ function toComment(sourceMap) { exports.f = Object.getOwnPropertySymbols; +/***/ }), + +/***/ "294c": +/***/ (function(module, exports) { + +module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } +}; + + /***/ }), /***/ "2aba": @@ -1042,6 +1100,21 @@ module.exports = __webpack_require__("9e1e") ? function (object, key, value) { }; +/***/ }), + +/***/ "35e8": +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__("d9f6"); +var createDesc = __webpack_require__("aebd"); +module.exports = __webpack_require__("8e60") ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; + + /***/ }), /***/ "38fd": @@ -1083,6 +1156,18 @@ module.exports = function (Constructor, NAME, next) { }; +/***/ }), + +/***/ "454f": +/***/ (function(module, exports, __webpack_require__) { + +__webpack_require__("46a7"); +var $Object = __webpack_require__("584a").Object; +module.exports = function defineProperty(it, key, desc) { + return $Object.defineProperty(it, key, desc); +}; + + /***/ }), /***/ "456d": @@ -1127,6 +1212,16 @@ module.exports = function (bitmap, value) { }; +/***/ }), + +/***/ "46a7": +/***/ (function(module, exports, __webpack_require__) { + +var $export = __webpack_require__("63b6"); +// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) +$export($export.S + $export.F * !__webpack_require__("8e60"), 'Object', { defineProperty: __webpack_require__("d9f6").f }); + + /***/ }), /***/ "4917": @@ -1175,20 +1270,6 @@ __webpack_require__("214f")('match', 1, function (defined, MATCH, $match, maybeC }); -/***/ }), - -/***/ "493e": -/***/ (function(module, exports, __webpack_require__) { - -// Imports -var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb"); -exports = ___CSS_LOADER_API_IMPORT___(false); -// Module -exports.push([module.i, ".vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item,.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url(\"data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+\");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}", ""]); -// Exports -module.exports = exports; - - /***/ }), /***/ "499e": @@ -1737,6 +1818,15 @@ $export($export.P + $export.F * (fails(function () { }); +/***/ }), + +/***/ "584a": +/***/ (function(module, exports) { + +var core = module.exports = { version: '2.6.12' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + + /***/ }), /***/ "5be5": @@ -1936,13 +2026,71 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { /***/ }), -/***/ "6521": -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "63b6": +/***/ (function(module, exports, __webpack_require__) { -"use strict"; -/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_fc5948f6_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("92bf"); -/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_fc5948f6_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridLayout_vue_vue_type_style_index_0_id_fc5948f6_lang_css__WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ +var global = __webpack_require__("e53d"); +var core = __webpack_require__("584a"); +var ctx = __webpack_require__("d864"); +var hide = __webpack_require__("35e8"); +var has = __webpack_require__("07e3"); +var PROTOTYPE = 'prototype'; + +var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var IS_WRAP = type & $export.W; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE]; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; + var key, own, out; + if (IS_GLOBAL) source = name; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + if (own && has(exports, key)) continue; + // export native or passed + out = own ? target[key] : source[key]; + // prevent global pollution for namespaces + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] + // bind timers to global for call from export context + : IS_BIND && own ? ctx(out, global) + // wrap global constructors for prevent change them in library + : IS_WRAP && target[key] == out ? (function (C) { + var F = function (a, b, c) { + if (this instanceof C) { + switch (arguments.length) { + case 0: return new C(); + case 1: return new C(a); + case 2: return new C(a, b); + } return new C(a, b, c); + } return C.apply(this, arguments); + }; + F[PROTOTYPE] = C[PROTOTYPE]; + return F; + // make static versions for prototype methods + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% + if (IS_PROTO) { + (exports.virtual || (exports.virtual = {}))[key] = out; + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); + } + } +}; +// type bitmap +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe +$export.R = 128; // real proto method for `library` +module.exports = $export; /***/ }), @@ -1990,48 +2138,32 @@ module.exports = function (it, S) { /***/ }), -/***/ "7333": +/***/ "6b0d": /***/ (function(module, exports, __webpack_require__) { "use strict"; -// 19.1.2.1 Object.assign(target, source, ...) -var DESCRIPTORS = __webpack_require__("9e1e"); -var getKeys = __webpack_require__("0d58"); -var gOPS = __webpack_require__("2621"); -var pIE = __webpack_require__("52a7"); -var toObject = __webpack_require__("4bf8"); -var IObject = __webpack_require__("626a"); -var $assign = Object.assign; - -// should work with symbols and should have deterministic property order (V8 bug) -module.exports = !$assign || __webpack_require__("79e5")(function () { - var A = {}; - var B = {}; - // eslint-disable-next-line no-undef - var S = Symbol(); - var K = 'abcdefghijklmnopqrst'; - A[S] = 7; - K.split('').forEach(function (k) { B[k] = k; }); - return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; -}) ? function assign(target, source) { // eslint-disable-line no-unused-vars - var T = toObject(target); - var aLen = arguments.length; - var index = 1; - var getSymbols = gOPS.f; - var isEnum = pIE.f; - while (aLen > index) { - var S = IObject(arguments[index++]); - var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); - var length = keys.length; - var j = 0; - var key; - while (length > j) { - key = keys[j++]; - if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; +Object.defineProperty(exports, "__esModule", { value: true }); +// runtime helper for setting properties on components +// in a tree-shakable way +exports.default = (sfc, props) => { + const target = sfc.__vccOpts || sfc; + for (const [key, val] of props) { + target[key] = val; } - } return T; -} : $assign; + return target; +}; + + +/***/ }), + +/***/ "765b": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_17d5e425_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d516"); +/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_17d5e425_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_GridItem_vue_vue_type_style_index_0_id_17d5e425_lang_css__WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ /***/ }), @@ -2061,6 +2193,27 @@ module.exports = function (index, length) { }; +/***/ }), + +/***/ "794b": +/***/ (function(module, exports, __webpack_require__) { + +module.exports = !__webpack_require__("8e60") && !__webpack_require__("294c")(function () { + return Object.defineProperty(__webpack_require__("1ec9")('div'), 'a', { get: function () { return 7; } }).a != 7; +}); + + +/***/ }), + +/***/ "79aa": +/***/ (function(module, exports) { + +module.exports = function (it) { + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); + return it; +}; + + /***/ }), /***/ "79e5": @@ -2100,25 +2253,18 @@ if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), -/***/ "848e": -/***/ (function(module, exports, __webpack_require__) { +/***/ "84f2": +/***/ (function(module, exports) { -// Imports -var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb"); -exports = ___CSS_LOADER_API_IMPORT___(false); -// Module -exports.push([module.i, ".vue-grid-layout{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}", ""]); -// Exports -module.exports = exports; +module.exports = {}; /***/ }), -/***/ "84f2": -/***/ (function(module, exports) { - -module.exports = {}; +/***/ "85f2": +/***/ (function(module, exports, __webpack_require__) { +module.exports = __webpack_require__("454f"); /***/ }), @@ -2267,6 +2413,17 @@ module.exports = { module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__; +/***/ }), + +/***/ "8e60": +/***/ (function(module, exports, __webpack_require__) { + +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__("294c")(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; +}); + + /***/ }), /***/ "8e6e": @@ -2310,21 +2467,6 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { }; -/***/ }), - -/***/ "92bf": -/***/ (function(module, exports, __webpack_require__) { - -// style-loader: Adds some css to the DOM by adding a \n\n","// @flow\nexport type LayoutItemRequired = {w: number, h: number, x: number, y: number, i: string};\nexport type LayoutItem = LayoutItemRequired &\n {minW?: number, minH?: number, maxW?: number, maxH?: number,\n moved?: boolean, static?: boolean,\n isDraggable?: ?boolean, isResizable?: ?boolean};\nexport type Layout = Array;\n// export type Position = {left: number, top: number, width: number, height: number};\n/*\nexport type DragCallbackData = {\n node: HTMLElement,\n x: number, y: number,\n deltaX: number, deltaY: number,\n lastX: number, lastY: number\n};\n*/\n// export type DragEvent = {e: Event} & DragCallbackData;\nexport type Size = {width: number, height: number};\n// export type ResizeEvent = {e: Event, node: HTMLElement, size: Size};\n\n// const isProduction = process.env.NODE_ENV === 'production';\n/**\n * Return the bottom coordinate of the layout.\n *\n * @param {Array} layout Layout array.\n * @return {Number} Bottom coordinate.\n */\nexport function bottom(layout: Layout): number {\n let max = 0, bottomY;\n for (let i = 0, len = layout.length; i < len; i++) {\n bottomY = layout[i]. y + layout[i].h;\n if (bottomY > max) max = bottomY;\n }\n return max;\n}\n\nexport function cloneLayout(layout: Layout): Layout {\n const newLayout = Array(layout.length);\n for (let i = 0, len = layout.length; i < len; i++) {\n newLayout[i] = cloneLayoutItem(layout[i]);\n }\n return newLayout;\n}\n\n// Fast path to cloning, since this is monomorphic\nexport function cloneLayoutItem(layoutItem: LayoutItem): LayoutItem {\n /*return {\n w: layoutItem.w, h: layoutItem.h, x: layoutItem.x, y: layoutItem.y, i: layoutItem.i,\n minW: layoutItem.minW, maxW: layoutItem.maxW, minH: layoutItem.minH, maxH: layoutItem.maxH,\n moved: Boolean(layoutItem.moved), static: Boolean(layoutItem.static),\n // These can be null\n isDraggable: layoutItem.isDraggable, isResizable: layoutItem.isResizable\n };*/\n return JSON.parse(JSON.stringify(layoutItem));\n}\n\n/**\n * Given two layoutitems, check if they collide.\n *\n * @return {Boolean} True if colliding.\n */\nexport function collides(l1: LayoutItem, l2: LayoutItem): boolean {\n if (l1 === l2) return false; // same element\n if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2\n if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2\n if (l1.y + l1.h <= l2.y) return false; // l1 is above l2\n if (l1.y >= l2.y + l2.h) return false; // l1 is below l2\n return true; // boxes overlap\n}\n\n/**\n * Given a layout, compact it. This involves going down each y coordinate and removing gaps\n * between items.\n *\n * @param {Array} layout Layout.\n * @param {Boolean} verticalCompact Whether or not to compact the layout\n * vertically.\n * @return {Array} Compacted Layout.\n */\nexport function compact(layout: Layout, verticalCompact: Boolean): Layout {\n // Statics go in the compareWith array right away so items flow around them.\n const compareWith = getStatics(layout);\n // We go through the items by row and column.\n const sorted = sortLayoutItemsByRowCol(layout);\n // Holding for new items.\n const out = Array(layout.length);\n\n for (let i = 0, len = sorted.length; i < len; i++) {\n let l = sorted[i];\n\n // Don't move static elements\n if (!l.static) {\n l = compactItem(compareWith, l, verticalCompact);\n\n // Add to comparison array. We only collide with items before this one.\n // Statics are already in this array.\n compareWith.push(l);\n }\n\n // Add to output array to make sure they still come out in the right order.\n out[layout.indexOf(l)] = l;\n\n // Clear moved flag, if it exists.\n l.moved = false;\n }\n\n return out;\n}\n\n/**\n * Compact an item in the layout.\n */\nexport function compactItem(compareWith: Layout, l: LayoutItem, verticalCompact: boolean): LayoutItem {\n if (verticalCompact) {\n // Move the element up as far as it can go without colliding.\n while (l.y > 0 && !getFirstCollision(compareWith, l)) {\n l.y--;\n }\n }\n\n // Move it down, and keep moving it down if it's colliding.\n let collides;\n while((collides = getFirstCollision(compareWith, l))) {\n l.y = collides.y + collides.h;\n }\n return l;\n}\n\n/**\n * Given a layout, make sure all elements fit within its bounds.\n *\n * @param {Array} layout Layout array.\n * @param {Number} bounds Number of columns.\n */\nexport function correctBounds(layout: Layout, bounds: {cols: number}): Layout {\n const collidesWith = getStatics(layout);\n for (let i = 0, len = layout.length; i < len; i++) {\n const l = layout[i];\n // Overflows right\n if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;\n // Overflows left\n if (l.x < 0) {\n l.x = 0;\n l.w = bounds.cols;\n }\n if (!l.static) collidesWith.push(l);\n else {\n // If this is static and collides with other statics, we must move it down.\n // We have to do something nicer than just letting them overlap.\n while(getFirstCollision(collidesWith, l)) {\n l.y++;\n }\n }\n }\n return layout;\n}\n\n/**\n * Get a layout item by ID. Used so we can override later on if necessary.\n *\n * @param {Array} layout Layout array.\n * @param {String} id ID\n * @return {LayoutItem} Item at ID.\n */\nexport function getLayoutItem(layout: Layout, id: string): ?LayoutItem {\n for (let i = 0, len = layout.length; i < len; i++) {\n if (layout[i].i === id) return layout[i];\n }\n}\n\n/**\n * Returns the first item this layout collides with.\n * It doesn't appear to matter which order we approach this from, although\n * perhaps that is the wrong thing to do.\n *\n * @param {Object} layoutItem Layout item.\n * @return {Object|undefined} A colliding layout item, or undefined.\n */\nexport function getFirstCollision(layout: Layout, layoutItem: LayoutItem): ?LayoutItem {\n for (let i = 0, len = layout.length; i < len; i++) {\n if (collides(layout[i], layoutItem)) return layout[i];\n }\n}\n\nexport function getAllCollisions(layout: Layout, layoutItem: LayoutItem): Array {\n return layout.filter((l) => collides(l, layoutItem));\n}\n\n/**\n * Get all static elements.\n * @param {Array} layout Array of layout objects.\n * @return {Array} Array of static layout items..\n */\nexport function getStatics(layout: Layout): Array {\n //return [];\n return layout.filter((l) => l.static);\n}\n\n/**\n * Move an element. Responsible for doing cascading movements of other elements.\n *\n * @param {Array} layout Full layout to modify.\n * @param {LayoutItem} l element to move.\n * @param {Number} [x] X position in grid units.\n * @param {Number} [y] Y position in grid units.\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is\n * being dragged/resized by th euser.\n */\nexport function moveElement(layout: Layout, l: LayoutItem, x: Number, y: Number, isUserAction: Boolean, preventCollision: Boolean): Layout {\n if (l.static) return layout;\n\n // Short-circuit if nothing to do.\n //if (l.y === y && l.x === x) return layout;\n\n const oldX = l.x;\n const oldY = l.y;\n\n const movingUp = y && l.y > y;\n // This is quite a bit faster than extending the object\n if (typeof x === 'number') l.x = x;\n if (typeof y === 'number') l.y = y;\n l.moved = true;\n\n // If this collides with anything, move it.\n // When doing this comparison, we have to sort the items we compare with\n // to ensure, in the case of multiple collisions, that we're getting the\n // nearest collision.\n let sorted = sortLayoutItemsByRowCol(layout);\n if (movingUp) sorted = sorted.reverse();\n const collisions = getAllCollisions(sorted, l);\n\n if (preventCollision && collisions.length) {\n l.x = oldX;\n l.y = oldY;\n l.moved = false;\n return layout;\n }\n\n // Move each item that collides away from this element.\n for (let i = 0, len = collisions.length; i < len; i++) {\n const collision = collisions[i];\n // console.log('resolving collision between', l.i, 'at', l.y, 'and', collision.i, 'at', collision.y);\n\n // Short circuit so we can't infinite loop\n if (collision.moved) continue;\n\n // This makes it feel a bit more precise by waiting to swap for just a bit when moving up.\n if (l.y > collision.y && l.y - collision.y > collision.h / 4) continue;\n\n // Don't move static items - we have to move *this* element away\n if (collision.static) {\n layout = moveElementAwayFromCollision(layout, collision, l, isUserAction);\n } else {\n layout = moveElementAwayFromCollision(layout, l, collision, isUserAction);\n }\n }\n\n return layout;\n}\n\n/**\n * This is where the magic needs to happen - given a collision, move an element away from the collision.\n * We attempt to move it up if there's room, otherwise it goes below.\n *\n * @param {Array} layout Full layout to modify.\n * @param {LayoutItem} collidesWith Layout item we're colliding with.\n * @param {LayoutItem} itemToMove Layout item we're moving.\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is being dragged/resized\n * by the user.\n */\nexport function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem,\n itemToMove: LayoutItem, isUserAction: ?boolean): Layout {\n\n const preventCollision = false // we're already colliding\n // If there is enough space above the collision to put this element, move it there.\n // We only do this on the main collision as this can get funky in cascades and cause\n // unwanted swapping behavior.\n if (isUserAction) {\n // Make a mock item so we don't modify the item here, only modify in moveElement.\n const fakeItem: LayoutItem = {\n x: itemToMove.x,\n y: itemToMove.y,\n w: itemToMove.w,\n h: itemToMove.h,\n i: '-1'\n };\n fakeItem.y = Math.max(collidesWith.y - itemToMove.h, 0);\n if (!getFirstCollision(layout, fakeItem)) {\n return moveElement(layout, itemToMove, undefined, fakeItem.y, preventCollision);\n }\n }\n\n // Previously this was optimized to move below the collision directly, but this can cause problems\n // with cascading moves, as an item may actually leapflog a collision and cause a reversal in order.\n return moveElement(layout, itemToMove, undefined, itemToMove.y + 1, preventCollision);\n}\n\n/**\n * Helper to convert a number to a percentage string.\n *\n * @param {Number} num Any number\n * @return {String} That number as a percentage.\n */\nexport function perc(num: number): string {\n return num * 100 + '%';\n}\n\nexport function setTransform(top, left, width, height): Object {\n // Replace unitless items with px\n const translate = \"translate3d(\" + left + \"px,\" + top + \"px, 0)\";\n return {\n transform: translate,\n WebkitTransform: translate,\n MozTransform: translate,\n msTransform: translate,\n OTransform: translate,\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n/**\n * Just like the setTransform method, but instead it will return a negative value of right.\n *\n * @param top\n * @param right\n * @param width\n * @param height\n * @returns {{transform: string, WebkitTransform: string, MozTransform: string, msTransform: string, OTransform: string, width: string, height: string, position: string}}\n */\nexport function setTransformRtl(top, right, width, height): Object {\n // Replace unitless items with px\n const translate = \"translate3d(\" + right * -1 + \"px,\" + top + \"px, 0)\";\n return {\n transform: translate,\n WebkitTransform: translate,\n MozTransform: translate,\n msTransform: translate,\n OTransform: translate,\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n\nexport function setTopLeft(top, left, width, height): Object {\n return {\n top: top + \"px\",\n left: left + \"px\",\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n/**\n * Just like the setTopLeft method, but instead, it will return a right property instead of left.\n *\n * @param top\n * @param right\n * @param width\n * @param height\n * @returns {{top: string, right: string, width: string, height: string, position: string}}\n */\nexport function setTopRight(top, right, width, height): Object {\n return {\n top: top + \"px\",\n right: right+ \"px\",\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n\n\n/**\n * Get layout items sorted from top left to right and down.\n *\n * @return {Array} Array of layout objects.\n * @return {Array} Layout, sorted static items first.\n */\nexport function sortLayoutItemsByRowCol(layout: Layout): Layout {\n return [].concat(layout).sort(function(a, b) {\n if (a.y === b.y && a.x === b.x) {\n return 0;\n }\n\n if (a.y > b.y || (a.y === b.y && a.x > b.x)) {\n return 1;\n }\n\n return -1;\n });\n}\n\n/**\n * Generate a layout using the initialLayout and children as a template.\n * Missing entries will be added, extraneous ones will be truncated.\n *\n * @param {Array} initialLayout Layout passed in through props.\n * @param {String} breakpoint Current responsive breakpoint.\n * @param {Boolean} verticalCompact Whether or not to compact the layout vertically.\n * @return {Array} Working layout.\n */\n/*\nexport function synchronizeLayoutWithChildren(initialLayout: Layout, children: Array|React.Element,\n cols: number, verticalCompact: boolean): Layout {\n // ensure 'children' is always an array\n if (!Array.isArray(children)) {\n children = [children];\n }\n initialLayout = initialLayout || [];\n\n // Generate one layout item per child.\n let layout: Layout = [];\n for (let i = 0, len = children.length; i < len; i++) {\n let newItem;\n const child = children[i];\n\n // Don't overwrite if it already exists.\n const exists = getLayoutItem(initialLayout, child.key || \"1\" /!* FIXME satisfies Flow *!/);\n if (exists) {\n newItem = exists;\n } else {\n const g = child.props._grid;\n\n // Hey, this item has a _grid property, use it.\n if (g) {\n if (!isProduction) {\n validateLayout([g], 'ReactGridLayout.children');\n }\n // Validated; add it to the layout. Bottom 'y' possible is the bottom of the layout.\n // This allows you to do nice stuff like specify {y: Infinity}\n if (verticalCompact) {\n newItem = cloneLayoutItem({...g, y: Math.min(bottom(layout), g.y), i: child.key});\n } else {\n newItem = cloneLayoutItem({...g, y: g.y, i: child.key});\n }\n }\n // Nothing provided: ensure this is added to the bottom\n else {\n newItem = cloneLayoutItem({w: 1, h: 1, x: 0, y: bottom(layout), i: child.key || \"1\"});\n }\n }\n layout[i] = newItem;\n }\n\n // Correct the layout.\n layout = correctBounds(layout, {cols: cols});\n layout = compact(layout, verticalCompact);\n\n return layout;\n}\n*/\n\n/**\n * Validate a layout. Throws errors.\n *\n * @param {Array} layout Array of layout items.\n * @param {String} [contextName] Context name for errors.\n * @throw {Error} Validation error.\n */\nexport function validateLayout(layout: Layout, contextName: string): void {\n contextName = contextName || \"Layout\";\n const subProps = ['x', 'y', 'w', 'h'];\n let keyArr = [];\n if (!Array.isArray(layout)) throw new Error(contextName + \" must be an array!\");\n for (let i = 0, len = layout.length; i < len; i++) {\n const item = layout[i];\n for (let j = 0; j < subProps.length; j++) {\n if (typeof item[subProps[j]] !== 'number') {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].' + subProps[j] + ' must be a number!');\n }\n }\n\n if (item.i === undefined || item.i === null) {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i cannot be null!');\n }\n\n if (typeof item.i !== 'number' && typeof item.i !== 'string') {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be a string or number!');\n }\n\n if (keyArr.indexOf(item.i) >= 0) {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be unique!');\n }\n keyArr.push(item.i);\n\n if (item.static !== undefined && typeof item.static !== 'boolean') {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].static must be a boolean!');\n }\n }\n}\n\n// Flow can't really figure this out, so we just use Object\nexport function autoBindHandlers(el: Object, fns: Array): void {\n fns.forEach((key) => el[key] = el[key].bind(el));\n}\n\n\n\n/**\n * Convert a JS object to CSS string. Similar to React's output of CSS.\n * @param obj\n * @returns {string}\n */\nexport function createMarkup(obj) {\n var keys = Object.keys(obj);\n if (!keys.length) return '';\n var i, len = keys.length;\n var result = '';\n\n for (i = 0; i < len; i++) {\n var key = keys[i];\n var val = obj[key];\n result += hyphenate(key) + ':' + addPx(key, val) + ';';\n }\n\n return result;\n}\n\n\n/* The following list is defined in React's core */\nexport var IS_UNITLESS = {\n animationIterationCount: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n flex: true,\n flexGrow: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n flexOrder: true,\n gridRow: true,\n gridColumn: true,\n fontWeight: true,\n lineClamp: true,\n lineHeight: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n\n // SVG-related properties\n fillOpacity: true,\n stopOpacity: true,\n strokeDashoffset: true,\n strokeOpacity: true,\n strokeWidth: true\n};\n\n\n/**\n * Will add px to the end of style values which are Numbers.\n * @param name\n * @param value\n * @returns {*}\n */\nexport function addPx(name, value) {\n if(typeof value === 'number' && !IS_UNITLESS[ name ]) {\n return value + 'px';\n } else {\n return value;\n }\n}\n\n\n/**\n * Hyphenate a camelCase string.\n *\n * @param {String} str\n * @return {String}\n */\n\nexport var hyphenateRE = /([a-z\\d])([A-Z])/g;\n\nexport function hyphenate(str) {\n return str.replace(hyphenateRE, '$1-$2').toLowerCase();\n}\n\n\nexport function findItemInArray(array, property, value) {\n for (var i=0; i < array.length; i++)\n if (array[i][property] == value)\n return true;\n\n return false;\n}\n\nexport function findAndRemove(array, property, value) {\n array.forEach(function (result, index) {\n if (result[property] === value) {\n //Remove from array\n array.splice(index, 1);\n }\n });\n}\n","// Get {x, y} positions from event.\nexport function getControlPosition(e) {\n return offsetXYFromParentOf(e);\n}\n\n\n// Get from offsetParent\nexport function offsetXYFromParentOf(evt) {\n const offsetParent = evt.target.offsetParent || document.body;\n const offsetParentRect = evt.offsetParent === document.body ? {left: 0, top: 0} : offsetParent.getBoundingClientRect();\n\n const x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left;\n const y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top;\n\n /*const x = Math.round(evt.clientX + offsetParent.scrollLeft - offsetParentRect.left);\n const y = Math.round(evt.clientY + offsetParent.scrollTop - offsetParentRect.top);*/\n\n\n return {x, y};\n}\n\n\n// Create an data object exposed by 's events\nexport function createCoreData(lastX, lastY, x, y) {\n // State changes are often (but not always!) async. We want the latest value.\n const isStart = !isNum(lastX);\n\n if (isStart) {\n // If this is our first move, use the x and y as last coords.\n return {\n deltaX: 0, deltaY: 0,\n lastX: x, lastY: y,\n x: x, y: y\n };\n } else {\n // Otherwise calculate proper values.\n return {\n deltaX: x - lastX, deltaY: y - lastY,\n lastX: lastX, lastY: lastY,\n x: x, y: y\n };\n }\n}\n\n\nfunction isNum(num) {\n return typeof num === 'number' && !isNaN(num);\n}\n\n","// @flow\n\nimport {cloneLayout, compact, correctBounds} from './utils';\n\nimport type {Layout} from './utils';\nexport type ResponsiveLayout = {lg?: Layout, md?: Layout, sm?: Layout, xs?: Layout, xxs?: Layout};\ntype Breakpoint = string;\ntype Breakpoints = {lg?: number, md?: number, sm?: number, xs?: number, xxs?: number};\n\n/**\n * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).\n *\n * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})\n * @param {Number} width Screen width.\n * @return {String} Highest breakpoint that is less than width.\n */\nexport function getBreakpointFromWidth(breakpoints: Breakpoints, width: number): Breakpoint {\n const sorted = sortBreakpoints(breakpoints);\n let matching = sorted[0];\n for (let i = 1, len = sorted.length; i < len; i++) {\n const breakpointName = sorted[i];\n if (width > breakpoints[breakpointName]) matching = breakpointName;\n }\n return matching;\n}\n\n\n/**\n * Given a breakpoint, get the # of cols set for it.\n * @param {String} breakpoint Breakpoint name.\n * @param {Object} cols Map of breakpoints to cols.\n * @return {Number} Number of cols.\n */\nexport function getColsFromBreakpoint(breakpoint: Breakpoint, cols: Breakpoints): number {\n if (!cols[breakpoint]) {\n throw new Error(\"ResponsiveGridLayout: `cols` entry for breakpoint \" + breakpoint + \" is missing!\");\n }\n return cols[breakpoint];\n}\n\n/**\n * Given existing layouts and a new breakpoint, find or generate a new layout.\n *\n * This finds the layout above the new one and generates from it, if it exists.\n *\n * @param {Array} orgLayout Original layout.\n * @param {Object} layouts Existing layouts.\n * @param {Array} breakpoints All breakpoints.\n * @param {String} breakpoint New breakpoint.\n * @param {String} breakpoint Last breakpoint (for fallback).\n * @param {Number} cols Column count at new breakpoint.\n * @param {Boolean} verticalCompact Whether or not to compact the layout\n * vertically.\n * @return {Array} New layout.\n */\nexport function findOrGenerateResponsiveLayout(orgLayout: Layout, layouts: ResponsiveLayout, breakpoints: Breakpoints,\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\n cols: number, verticalCompact: boolean): Layout {\n // If it already exists, just return it.\n if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\n // Find or generate the next layout\n let layout = orgLayout;\n\n const breakpointsSorted = sortBreakpoints(breakpoints);\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\n const b = breakpointsAbove[i];\n if (layouts[b]) {\n layout = layouts[b];\n break;\n }\n }\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\n}\n\nexport function generateResponsiveLayout(layout: Layout, breakpoints: Breakpoints,\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\n cols: number, verticalCompact: boolean): Layout {\n // If it already exists, just return it.\n /*if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\n // Find or generate the next layout\n let layout = layouts[lastBreakpoint];*/\n /*const breakpointsSorted = sortBreakpoints(breakpoints);\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\n const b = breakpointsAbove[i];\n if (layouts[b]) {\n layout = layouts[b];\n break;\n }\n }*/\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\n}\n\n/**\n * Given breakpoints, return an array of breakpoints sorted by width. This is usually\n * e.g. ['xxs', 'xs', 'sm', ...]\n *\n * @param {Object} breakpoints Key/value pair of breakpoint names to widths.\n * @return {Array} Sorted breakpoints.\n */\nexport function sortBreakpoints(breakpoints: Breakpoints): Array {\n const keys: Array = Object.keys(breakpoints);\n return keys.sort(function(a, b) {\n return breakpoints[a] - breakpoints[b];\n });\n}\n","let currentDir: \"ltr\" | \"rtl\" | \"auto\" = \"auto\";\n// let currentDir = \"auto\";\n\nfunction hasDocument(){\n return (typeof document !== \"undefined\");\n}\n\nfunction hasWindow(){\n return (typeof window !== \"undefined\");\n}\n\nexport function getDocumentDir(){\n if(!hasDocument()){\n return currentDir;\n }\n const direction = (typeof document.dir !== \"undefined\") ?\n document.dir :\n document.getElementsByTagName(\"html\")[0].getAttribute(\"dir\");\n return direction;\n}\n\nexport function setDocumentDir(dir: \"ltr\" | \"rtl\" | \"auto\"){\n// export function setDocumentDir(dir){\n if(!hasDocument){\n currentDir = dir;\n return;\n }\n\n const html = document.getElementsByTagName(\"html\")[0];\n html.setAttribute(\"dir\", dir);\n}\n\nexport function addWindowEventListener(event:string, callback: () => mixed){\n if(!hasWindow){\n\n callback();\n return;\n }\n window.addEventListener(event, callback);\n}\n\nexport function removeWindowEventListener(event:string, callback: () => mixed){\n if(!hasWindow){\n return;\n }\n window.removeEventListener(event, callback);\n}\n\n\n\n","const domObjects = {\n init,\n document: null,\n DocumentFragment: null,\n SVGElement: null,\n SVGSVGElement: null,\n SVGElementInstance: null,\n Element: null,\n HTMLElement: null,\n Event: null,\n Touch: null,\n PointerEvent: null\n};\n\nfunction blank() {}\n\nexport default domObjects;\n\nfunction init(window) {\n const win = window;\n domObjects.document = win.document;\n domObjects.DocumentFragment = win.DocumentFragment || blank;\n domObjects.SVGElement = win.SVGElement || blank;\n domObjects.SVGSVGElement = win.SVGSVGElement || blank;\n domObjects.SVGElementInstance = win.SVGElementInstance || blank;\n domObjects.Element = win.Element || blank;\n domObjects.HTMLElement = win.HTMLElement || domObjects.Element;\n domObjects.Event = win.Event;\n domObjects.Touch = win.Touch || blank;\n domObjects.PointerEvent = win.PointerEvent || win.MSPointerEvent;\n}\n//# sourceMappingURL=domObjects.js.map","export default (thing => !!(thing && thing.Window) && thing instanceof thing.Window);\n//# sourceMappingURL=isWindow.js.map","import isWindow from \"./isWindow.js\";\nexport let realWindow = undefined;\nlet win = undefined;\nexport { win as window };\nexport function init(window) {\n // get wrapped window if using Shadow DOM polyfill\n realWindow = window; // create a TextNode\n\n const el = window.document.createTextNode(''); // check if it's wrapped by a polyfill\n\n if (el.ownerDocument !== window.document && typeof window.wrap === 'function' && window.wrap(el) === el) {\n // use wrapped window\n window = window.wrap(window);\n }\n\n win = window;\n}\n\nif (typeof window !== 'undefined' && !!window) {\n init(window);\n}\n\nexport function getWindow(node) {\n if (isWindow(node)) {\n return node;\n }\n\n const rootNode = node.ownerDocument || node;\n return rootNode.defaultView || win.window;\n}\n//# sourceMappingURL=window.js.map","import isWindow from \"./isWindow.js\";\nimport * as win from \"./window.js\";\n\nconst window = thing => thing === win.window || isWindow(thing);\n\nconst docFrag = thing => object(thing) && thing.nodeType === 11;\n\nconst object = thing => !!thing && typeof thing === 'object';\n\nconst func = thing => typeof thing === 'function';\n\nconst number = thing => typeof thing === 'number';\n\nconst bool = thing => typeof thing === 'boolean';\n\nconst string = thing => typeof thing === 'string';\n\nconst element = thing => {\n if (!thing || typeof thing !== 'object') {\n return false;\n } // eslint-disable-next-line import/no-named-as-default-member\n\n\n const _window = win.getWindow(thing) || win.window;\n\n return /object|function/.test(typeof _window.Element) ? thing instanceof _window.Element // DOM2\n : thing.nodeType === 1 && typeof thing.nodeName === 'string';\n};\n\nconst plainObject = thing => object(thing) && !!thing.constructor && /function Object\\b/.test(thing.constructor.toString());\n\nconst array = thing => object(thing) && typeof thing.length !== 'undefined' && func(thing.splice);\n\nexport default {\n window,\n docFrag,\n object,\n func,\n number,\n bool,\n string,\n element,\n plainObject,\n array\n};\n//# sourceMappingURL=is.js.map","import domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nconst browser = {\n init,\n supportsTouch: null,\n supportsPointerEvent: null,\n isIOS7: null,\n isIOS: null,\n isIe9: null,\n isOperaMobile: null,\n prefixedMatchesSelector: null,\n pEventTypes: null,\n wheelEvent: null\n};\n\nfunction init(window) {\n const Element = domObjects.Element;\n const navigator = win.window.navigator; // Does the browser support touch input?\n\n browser.supportsTouch = 'ontouchstart' in window || is.func(window.DocumentTouch) && domObjects.document instanceof window.DocumentTouch; // Does the browser support PointerEvents\n\n browser.supportsPointerEvent = navigator.pointerEnabled !== false && !!domObjects.PointerEvent;\n browser.isIOS = /iP(hone|od|ad)/.test(navigator.platform); // scrolling doesn't change the result of getClientRects on iOS 7\n\n browser.isIOS7 = /iP(hone|od|ad)/.test(navigator.platform) && /OS 7[^\\d]/.test(navigator.appVersion);\n browser.isIe9 = /MSIE 9/.test(navigator.userAgent); // Opera Mobile must be handled differently\n\n browser.isOperaMobile = navigator.appName === 'Opera' && browser.supportsTouch && /Presto/.test(navigator.userAgent); // prefix matchesSelector\n\n browser.prefixedMatchesSelector = 'matches' in Element.prototype ? 'matches' : 'webkitMatchesSelector' in Element.prototype ? 'webkitMatchesSelector' : 'mozMatchesSelector' in Element.prototype ? 'mozMatchesSelector' : 'oMatchesSelector' in Element.prototype ? 'oMatchesSelector' : 'msMatchesSelector';\n browser.pEventTypes = browser.supportsPointerEvent ? domObjects.PointerEvent === window.MSPointerEvent ? {\n up: 'MSPointerUp',\n down: 'MSPointerDown',\n over: 'mouseover',\n out: 'mouseout',\n move: 'MSPointerMove',\n cancel: 'MSPointerCancel'\n } : {\n up: 'pointerup',\n down: 'pointerdown',\n over: 'pointerover',\n out: 'pointerout',\n move: 'pointermove',\n cancel: 'pointercancel'\n } : null; // because Webkit and Opera still use 'mousewheel' event type\n\n browser.wheelEvent = 'onmousewheel' in domObjects.document ? 'mousewheel' : 'wheel';\n}\n\nexport default browser;\n//# sourceMappingURL=browser.js.map","export const contains = (array, target) => array.indexOf(target) !== -1;\nexport const remove = (array, target) => array.splice(array.indexOf(target), 1);\nexport const merge = (target, source) => {\n for (const item of source) {\n target.push(item);\n }\n\n return target;\n};\nexport const from = source => merge([], source);\nexport const findIndex = (array, func) => {\n for (let i = 0; i < array.length; i++) {\n if (func(array[i], i, array)) {\n return i;\n }\n }\n\n return -1;\n};\nexport const find = (array, func) => array[findIndex(array, func)];\n//# sourceMappingURL=arr.js.map","import * as arr from \"./arr.js\";\nimport is from \"./is.js\"; // tslint:disable-next-line ban-types\n\nexport default function clone(source) {\n const dest = {};\n\n for (const prop in source) {\n const value = source[prop];\n\n if (is.plainObject(value)) {\n dest[prop] = clone(value);\n } else if (is.array(value)) {\n dest[prop] = arr.from(value);\n } else {\n dest[prop] = value;\n }\n }\n\n return dest;\n}\n//# sourceMappingURL=clone.js.map","export default function extend(dest, source) {\n for (const prop in source) {\n dest[prop] = source[prop];\n }\n\n const ret = dest;\n return ret;\n}\n//# sourceMappingURL=extend.js.map","let lastTime = 0;\nlet request;\nlet cancel;\n\nfunction init(window) {\n request = window.requestAnimationFrame;\n cancel = window.cancelAnimationFrame;\n\n if (!request) {\n const vendors = ['ms', 'moz', 'webkit', 'o'];\n\n for (const vendor of vendors) {\n request = window[`${vendor}RequestAnimationFrame`];\n cancel = window[`${vendor}CancelAnimationFrame`] || window[`${vendor}CancelRequestAnimationFrame`];\n }\n }\n\n request = request && request.bind(window);\n cancel = cancel && cancel.bind(window);\n\n if (!request) {\n request = callback => {\n const currTime = Date.now();\n const timeToCall = Math.max(0, 16 - (currTime - lastTime)); // eslint-disable-next-line node/no-callback-literal\n\n const token = window.setTimeout(() => {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return token;\n };\n\n cancel = token => clearTimeout(token);\n }\n}\n\nexport default {\n request: callback => request(callback),\n cancel: token => cancel(token),\n init\n};\n//# sourceMappingURL=raf.js.map","import extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport default function normalize(type, listeners, result) {\n result = result || {};\n\n if (is.string(type) && type.search(' ') !== -1) {\n type = split(type);\n }\n\n if (is.array(type)) {\n return type.reduce((acc, t) => extend(acc, normalize(t, listeners, result)), result);\n } // ({ type: fn }) -> ('', { type: fn })\n\n\n if (is.object(type)) {\n listeners = type;\n type = '';\n }\n\n if (is.func(listeners)) {\n result[type] = result[type] || [];\n result[type].push(listeners);\n } else if (is.array(listeners)) {\n for (const l of listeners) {\n normalize(type, l, result);\n }\n } else if (is.object(listeners)) {\n for (const prefix in listeners) {\n const combinedTypes = split(prefix).map(p => `${type}${p}`);\n normalize(combinedTypes, listeners[prefix], result);\n }\n }\n\n return result;\n}\n\nfunction split(type) {\n return type.trim().split(/ +/);\n}\n//# sourceMappingURL=normalizeListeners.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport normalize from \"../utils/normalizeListeners.js\";\n\nfunction fireUntilImmediateStopped(event, listeners) {\n for (const listener of listeners) {\n if (event.immediatePropagationStopped) {\n break;\n }\n\n listener(event);\n }\n}\n\nexport class Eventable {\n constructor(options) {\n this.options = void 0;\n this.types = {};\n this.propagationStopped = false;\n this.immediatePropagationStopped = false;\n this.global = void 0;\n this.options = extend({}, options || {});\n }\n\n fire(event) {\n let listeners;\n const global = this.global; // Interactable#on() listeners\n // tslint:disable no-conditional-assignment\n\n if (listeners = this.types[event.type]) {\n fireUntilImmediateStopped(event, listeners);\n } // interact.on() listeners\n\n\n if (!event.propagationStopped && global && (listeners = global[event.type])) {\n fireUntilImmediateStopped(event, listeners);\n }\n }\n\n on(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n this.types[type] = arr.merge(this.types[type] || [], listeners[type]);\n }\n }\n\n off(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n const eventList = this.types[type];\n\n if (!eventList || !eventList.length) {\n continue;\n }\n\n for (const subListener of listeners[type]) {\n const index = eventList.indexOf(subListener);\n\n if (index !== -1) {\n eventList.splice(index, 1);\n }\n }\n }\n }\n\n getRect(_element) {\n return null;\n }\n\n}\n//# sourceMappingURL=Eventable.js.map","import browser from \"./browser.js\";\nimport domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nexport function nodeContains(parent, child) {\n if (parent.contains) {\n return parent.contains(child);\n }\n\n while (child) {\n if (child === parent) {\n return true;\n }\n\n child = child.parentNode;\n }\n\n return false;\n}\nexport function closest(element, selector) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return element;\n }\n\n element = parentNode(element);\n }\n\n return null;\n}\nexport function parentNode(node) {\n let parent = node.parentNode;\n\n if (is.docFrag(parent)) {\n // skip past #shado-root fragments\n // tslint:disable-next-line\n while ((parent = parent.host) && is.docFrag(parent)) {\n continue;\n }\n\n return parent;\n }\n\n return parent;\n}\nexport function matchesSelector(element, selector) {\n // remove /deep/ from selectors if shadowDOM polyfill is used\n if (win.window !== win.realWindow) {\n selector = selector.replace(/\\/deep\\//g, ' ');\n }\n\n return element[browser.prefixedMatchesSelector](selector);\n}\n\nconst getParent = el => el.parentNode || el.host; // Test for the element that's \"above\" all other qualifiers\n\n\nexport function indexOfDeepestElement(elements) {\n let deepestNodeParents = [];\n let deepestNodeIndex;\n\n for (let i = 0; i < elements.length; i++) {\n const currentNode = elements[i];\n const deepestNode = elements[deepestNodeIndex]; // node may appear in elements array multiple times\n\n if (!currentNode || i === deepestNodeIndex) {\n continue;\n }\n\n if (!deepestNode) {\n deepestNodeIndex = i;\n continue;\n }\n\n const currentNodeParent = getParent(currentNode);\n const deepestNodeParent = getParent(deepestNode); // check if the deepest or current are document.documentElement/rootElement\n // - if the current node is, do nothing and continue\n\n if (currentNodeParent === currentNode.ownerDocument) {\n continue;\n } // - if deepest is, update with the current node and continue to next\n else if (deepestNodeParent === currentNode.ownerDocument) {\n deepestNodeIndex = i;\n continue;\n } // compare zIndex of siblings\n\n\n if (currentNodeParent === deepestNodeParent) {\n if (zIndexIsHigherThan(currentNode, deepestNode)) {\n deepestNodeIndex = i;\n }\n\n continue;\n } // populate the ancestry array for the latest deepest node\n\n\n deepestNodeParents = deepestNodeParents.length ? deepestNodeParents : getNodeParents(deepestNode);\n let ancestryStart; // if the deepest node is an HTMLElement and the current node is a non root svg element\n\n if (deepestNode instanceof domObjects.HTMLElement && currentNode instanceof domObjects.SVGElement && !(currentNode instanceof domObjects.SVGSVGElement)) {\n // TODO: is this check necessary? Was this for HTML elements embedded in SVG?\n if (currentNode === deepestNodeParent) {\n continue;\n }\n\n ancestryStart = currentNode.ownerSVGElement;\n } else {\n ancestryStart = currentNode;\n }\n\n const currentNodeParents = getNodeParents(ancestryStart, deepestNode.ownerDocument);\n let commonIndex = 0; // get (position of closest common ancestor) + 1\n\n while (currentNodeParents[commonIndex] && currentNodeParents[commonIndex] === deepestNodeParents[commonIndex]) {\n commonIndex++;\n }\n\n const parents = [currentNodeParents[commonIndex - 1], currentNodeParents[commonIndex], deepestNodeParents[commonIndex]];\n let child = parents[0].lastChild;\n\n while (child) {\n if (child === parents[1]) {\n deepestNodeIndex = i;\n deepestNodeParents = currentNodeParents;\n break;\n } else if (child === parents[2]) {\n break;\n }\n\n child = child.previousSibling;\n }\n }\n\n return deepestNodeIndex;\n}\n\nfunction getNodeParents(node, limit) {\n const parents = [];\n let parent = node;\n let parentParent;\n\n while ((parentParent = getParent(parent)) && parent !== limit && parentParent !== parent.ownerDocument) {\n parents.unshift(parent);\n parent = parentParent;\n }\n\n return parents;\n}\n\nfunction zIndexIsHigherThan(higherNode, lowerNode) {\n const higherIndex = parseInt(win.getWindow(higherNode).getComputedStyle(higherNode).zIndex, 10) || 0;\n const lowerIndex = parseInt(win.getWindow(lowerNode).getComputedStyle(lowerNode).zIndex, 10) || 0;\n return higherIndex >= lowerIndex;\n}\n\nexport function matchesUpTo(element, selector, limit) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return true;\n }\n\n element = parentNode(element);\n\n if (element === limit) {\n return matchesSelector(element, selector);\n }\n }\n\n return false;\n}\nexport function getActualElement(element) {\n return element.correspondingUseElement || element;\n}\nexport function getScrollXY(relevantWindow) {\n relevantWindow = relevantWindow || win.window;\n return {\n x: relevantWindow.scrollX || relevantWindow.document.documentElement.scrollLeft,\n y: relevantWindow.scrollY || relevantWindow.document.documentElement.scrollTop\n };\n}\nexport function getElementClientRect(element) {\n const clientRect = element instanceof domObjects.SVGElement ? element.getBoundingClientRect() : element.getClientRects()[0];\n return clientRect && {\n left: clientRect.left,\n right: clientRect.right,\n top: clientRect.top,\n bottom: clientRect.bottom,\n width: clientRect.width || clientRect.right - clientRect.left,\n height: clientRect.height || clientRect.bottom - clientRect.top\n };\n}\nexport function getElementRect(element) {\n const clientRect = getElementClientRect(element);\n\n if (!browser.isIOS7 && clientRect) {\n const scroll = getScrollXY(win.getWindow(element));\n clientRect.left += scroll.x;\n clientRect.right += scroll.x;\n clientRect.top += scroll.y;\n clientRect.bottom += scroll.y;\n }\n\n return clientRect;\n}\nexport function getPath(node) {\n const path = [];\n\n while (node) {\n path.push(node);\n node = parentNode(node);\n }\n\n return path;\n}\nexport function trySelector(value) {\n if (!is.string(value)) {\n return false;\n } // an exception will be raised if it is invalid\n\n\n domObjects.document.querySelector(value);\n return true;\n}\n//# sourceMappingURL=domUtils.js.map","import { closest, getElementRect, parentNode } from \"./domUtils.js\";\nimport extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport function getStringOptionResult(value, target, element) {\n if (value === 'parent') {\n return parentNode(element);\n }\n\n if (value === 'self') {\n return target.getRect(element);\n }\n\n return closest(element, value);\n}\nexport function resolveRectLike(value, target, element, functionArgs) {\n let returnValue = value;\n\n if (is.string(returnValue)) {\n returnValue = getStringOptionResult(returnValue, target, element);\n } else if (is.func(returnValue)) {\n returnValue = returnValue(...functionArgs);\n }\n\n if (is.element(returnValue)) {\n returnValue = getElementRect(returnValue);\n }\n\n return returnValue;\n}\nexport function rectToXY(rect) {\n return rect && {\n x: 'x' in rect ? rect.x : rect.left,\n y: 'y' in rect ? rect.y : rect.top\n };\n}\nexport function xywhToTlbr(rect) {\n if (rect && !('left' in rect && 'top' in rect)) {\n rect = extend({}, rect);\n rect.left = rect.x || 0;\n rect.top = rect.y || 0;\n rect.right = rect.right || rect.left + rect.width;\n rect.bottom = rect.bottom || rect.top + rect.height;\n }\n\n return rect;\n}\nexport function tlbrToXywh(rect) {\n if (rect && !('x' in rect && 'y' in rect)) {\n rect = extend({}, rect);\n rect.x = rect.left || 0;\n rect.y = rect.top || 0;\n rect.width = rect.width || (rect.right || 0) - rect.x;\n rect.height = rect.height || (rect.bottom || 0) - rect.y;\n }\n\n return rect;\n}\nexport function addEdges(edges, rect, delta) {\n if (edges.left) {\n rect.left += delta.x;\n }\n\n if (edges.right) {\n rect.right += delta.x;\n }\n\n if (edges.top) {\n rect.top += delta.y;\n }\n\n if (edges.bottom) {\n rect.bottom += delta.y;\n }\n\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n}\n//# sourceMappingURL=rect.js.map","import { rectToXY, resolveRectLike } from \"./rect.js\";\nexport default function (target, element, actionName) {\n const actionOptions = target.options[actionName];\n const actionOrigin = actionOptions && actionOptions.origin;\n const origin = actionOrigin || target.options.origin;\n const originRect = resolveRectLike(origin, target, element, [target && element]);\n return rectToXY(originRect) || {\n x: 0,\n y: 0\n };\n}\n//# sourceMappingURL=getOriginXY.js.map","export default ((x, y) => Math.sqrt(x * x + y * y));\n//# sourceMappingURL=hypot.js.map","export class BaseEvent {\n constructor(interaction) {\n this.type = void 0;\n this.target = void 0;\n this.currentTarget = void 0;\n this.interactable = void 0;\n this._interaction = void 0;\n this.timeStamp = void 0;\n this.immediatePropagationStopped = false;\n this.propagationStopped = false;\n this._interaction = interaction;\n }\n\n preventDefault() {}\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n\n} // defined outside of class definition to avoid assignment of undefined during\n// construction\n\n// getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\nObject.defineProperty(BaseEvent.prototype, 'interaction', {\n get() {\n return this._interaction._proxy;\n },\n\n set() {}\n\n});\n//# sourceMappingURL=BaseEvent.js.map","// eslint-disable-next-line @typescript-eslint/no-empty-interface\n// export interface Options extends BaseDefaults, PerActionDefaults {}\nexport const defaults = {\n base: {\n preventDefault: 'auto',\n deltaSource: 'page'\n },\n perAction: {\n enabled: false,\n origin: {\n x: 0,\n y: 0\n }\n },\n actions: {}\n};\n//# sourceMappingURL=defaultOptions.js.map","import extend from \"../utils/extend.js\";\nimport getOriginXY from \"../utils/getOriginXY.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { BaseEvent } from \"./BaseEvent.js\";\nimport { defaults } from \"./defaultOptions.js\";\nexport class InteractEvent extends BaseEvent {\n // resize\n\n /** */\n constructor(interaction, event, actionName, phase, element, preEnd, type) {\n super(interaction);\n this.target = void 0;\n this.currentTarget = void 0;\n this.relatedTarget = null;\n this.screenX = void 0;\n this.screenY = void 0;\n this.button = void 0;\n this.buttons = void 0;\n this.ctrlKey = void 0;\n this.shiftKey = void 0;\n this.altKey = void 0;\n this.metaKey = void 0;\n this.page = void 0;\n this.client = void 0;\n this.delta = void 0;\n this.rect = void 0;\n this.x0 = void 0;\n this.y0 = void 0;\n this.t0 = void 0;\n this.dt = void 0;\n this.duration = void 0;\n this.clientX0 = void 0;\n this.clientY0 = void 0;\n this.velocity = void 0;\n this.speed = void 0;\n this.swipe = void 0;\n this.timeStamp = void 0;\n this.axes = void 0;\n this.preEnd = void 0;\n element = element || interaction.element;\n const target = interaction.interactable;\n const deltaSource = (target && target.options || defaults).deltaSource;\n const origin = getOriginXY(target, element, actionName);\n const starting = phase === 'start';\n const ending = phase === 'end';\n const prevEvent = starting ? this : interaction.prevEvent;\n const coords = starting ? interaction.coords.start : ending ? {\n page: prevEvent.page,\n client: prevEvent.client,\n timeStamp: interaction.coords.cur.timeStamp\n } : interaction.coords.cur;\n this.page = extend({}, coords.page);\n this.client = extend({}, coords.client);\n this.rect = extend({}, interaction.rect);\n this.timeStamp = coords.timeStamp;\n\n if (!ending) {\n this.page.x -= origin.x;\n this.page.y -= origin.y;\n this.client.x -= origin.x;\n this.client.y -= origin.y;\n }\n\n this.ctrlKey = event.ctrlKey;\n this.altKey = event.altKey;\n this.shiftKey = event.shiftKey;\n this.metaKey = event.metaKey;\n this.button = event.button;\n this.buttons = event.buttons;\n this.target = element;\n this.currentTarget = element;\n this.preEnd = preEnd;\n this.type = type || actionName + (phase || '');\n this.interactable = target;\n this.t0 = starting ? interaction.pointers[interaction.pointers.length - 1].downTime : prevEvent.t0;\n this.x0 = interaction.coords.start.page.x - origin.x;\n this.y0 = interaction.coords.start.page.y - origin.y;\n this.clientX0 = interaction.coords.start.client.x - origin.x;\n this.clientY0 = interaction.coords.start.client.y - origin.y;\n\n if (starting || ending) {\n this.delta = {\n x: 0,\n y: 0\n };\n } else {\n this.delta = {\n x: this[deltaSource].x - prevEvent[deltaSource].x,\n y: this[deltaSource].y - prevEvent[deltaSource].y\n };\n }\n\n this.dt = interaction.coords.delta.timeStamp;\n this.duration = this.timeStamp - this.t0; // velocity and speed in pixels per second\n\n this.velocity = extend({}, interaction.coords.velocity[deltaSource]);\n this.speed = hypot(this.velocity.x, this.velocity.y);\n this.swipe = ending || phase === 'inertiastart' ? this.getSwipe() : null;\n }\n\n getSwipe() {\n const interaction = this._interaction;\n\n if (interaction.prevEvent.speed < 600 || this.timeStamp - interaction.prevEvent.timeStamp > 150) {\n return null;\n }\n\n let angle = 180 * Math.atan2(interaction.prevEvent.velocityY, interaction.prevEvent.velocityX) / Math.PI;\n const overlap = 22.5;\n\n if (angle < 0) {\n angle += 360;\n }\n\n const left = 135 - overlap <= angle && angle < 225 + overlap;\n const up = 225 - overlap <= angle && angle < 315 + overlap;\n const right = !left && (315 - overlap <= angle || angle < 45 + overlap);\n const down = !up && 45 - overlap <= angle && angle < 135 + overlap;\n return {\n up,\n down,\n left,\n right,\n angle,\n speed: interaction.prevEvent.speed,\n velocity: {\n x: interaction.prevEvent.velocityX,\n y: interaction.prevEvent.velocityY\n }\n };\n }\n\n preventDefault() {}\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n\n} // getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\n\nObject.defineProperties(InteractEvent.prototype, {\n pageX: {\n get() {\n return this.page.x;\n },\n\n set(value) {\n this.page.x = value;\n }\n\n },\n pageY: {\n get() {\n return this.page.y;\n },\n\n set(value) {\n this.page.y = value;\n }\n\n },\n clientX: {\n get() {\n return this.client.x;\n },\n\n set(value) {\n this.client.x = value;\n }\n\n },\n clientY: {\n get() {\n return this.client.y;\n },\n\n set(value) {\n this.client.y = value;\n }\n\n },\n dx: {\n get() {\n return this.delta.x;\n },\n\n set(value) {\n this.delta.x = value;\n }\n\n },\n dy: {\n get() {\n return this.delta.y;\n },\n\n set(value) {\n this.delta.y = value;\n }\n\n },\n velocityX: {\n get() {\n return this.velocity.x;\n },\n\n set(value) {\n this.velocity.x = value;\n }\n\n },\n velocityY: {\n get() {\n return this.velocity.y;\n },\n\n set(value) {\n this.velocity.y = value;\n }\n\n }\n});\n//# sourceMappingURL=InteractEvent.js.map","export default function isNonNativeEvent(type, actions) {\n if (actions.phaselessTypes[type]) {\n return true;\n }\n\n for (const name in actions.map) {\n if (type.indexOf(name) === 0 && type.substr(name.length) in actions.phases) {\n return true;\n }\n }\n\n return false;\n}\n//# sourceMappingURL=isNonNativeEvent.js.map","/* eslint-disable no-dupe-class-members */\nimport * as arr from \"../utils/arr.js\";\nimport browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport { getElementRect, matchesUpTo, nodeContains, trySelector } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport normalizeListeners from \"../utils/normalizeListeners.js\";\nimport { getWindow } from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\n\n/** */\nexport class Interactable {\n /** @internal */\n get _defaults() {\n return {\n base: {},\n perAction: {},\n actions: {}\n };\n }\n\n /** */\n constructor(target, options, defaultContext, scopeEvents) {\n this.options = void 0;\n this._actions = void 0;\n this.target = void 0;\n this.events = new Eventable();\n this._context = void 0;\n this._win = void 0;\n this._doc = void 0;\n this._scopeEvents = void 0;\n this._rectChecker = void 0;\n this._actions = options.actions;\n this.target = target;\n this._context = options.context || defaultContext;\n this._win = getWindow(trySelector(target) ? this._context : target);\n this._doc = this._win.document;\n this._scopeEvents = scopeEvents;\n this.set(options);\n }\n\n setOnEvents(actionName, phases) {\n if (is.func(phases.onstart)) {\n this.on(`${actionName}start`, phases.onstart);\n }\n\n if (is.func(phases.onmove)) {\n this.on(`${actionName}move`, phases.onmove);\n }\n\n if (is.func(phases.onend)) {\n this.on(`${actionName}end`, phases.onend);\n }\n\n if (is.func(phases.oninertiastart)) {\n this.on(`${actionName}inertiastart`, phases.oninertiastart);\n }\n\n return this;\n }\n\n updatePerActionListeners(actionName, prev, cur) {\n if (is.array(prev) || is.object(prev)) {\n this.off(actionName, prev);\n }\n\n if (is.array(cur) || is.object(cur)) {\n this.on(actionName, cur);\n }\n }\n\n setPerAction(actionName, options) {\n const defaults = this._defaults; // for all the default per-action options\n\n for (const optionName_ in options) {\n const optionName = optionName_;\n const actionOptions = this.options[actionName];\n const optionValue = options[optionName]; // remove old event listeners and add new ones\n\n if (optionName === 'listeners') {\n this.updatePerActionListeners(actionName, actionOptions.listeners, optionValue);\n } // if the option value is an array\n\n\n if (is.array(optionValue)) {\n actionOptions[optionName] = arr.from(optionValue);\n } // if the option value is an object\n else if (is.plainObject(optionValue)) {\n // copy the object\n actionOptions[optionName] = extend(actionOptions[optionName] || {}, clone(optionValue)); // set anabled field to true if it exists in the defaults\n\n if (is.object(defaults.perAction[optionName]) && 'enabled' in defaults.perAction[optionName]) {\n actionOptions[optionName].enabled = optionValue.enabled !== false;\n }\n } // if the option value is a boolean and the default is an object\n else if (is.bool(optionValue) && is.object(defaults.perAction[optionName])) {\n actionOptions[optionName].enabled = optionValue;\n } // if it's anything else, do a plain assignment\n else {\n actionOptions[optionName] = optionValue;\n }\n }\n }\n /**\n * The default function to get an Interactables bounding rect. Can be\n * overridden using {@link Interactable.rectChecker}.\n *\n * @param {Element} [element] The element to measure.\n * @return {Rect} The object's bounding rectangle.\n */\n\n\n getRect(element) {\n element = element || (is.element(this.target) ? this.target : null);\n\n if (is.string(this.target)) {\n element = element || this._context.querySelector(this.target);\n }\n\n return getElementRect(element);\n }\n /**\n * Returns or sets the function used to calculate the interactable's\n * element's rectangle\n *\n * @param {function} [checker] A function which returns this Interactable's\n * bounding rectangle. See {@link Interactable.getRect}\n * @return {function | object} The checker function or this Interactable\n */\n\n\n rectChecker(checker) {\n if (is.func(checker)) {\n this._rectChecker = checker;\n\n this.getRect = element => {\n const rect = extend({}, this._rectChecker(element));\n\n if (!('width' in rect)) {\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n return rect;\n };\n\n return this;\n }\n\n if (checker === null) {\n delete this.getRect;\n delete this._rectChecker;\n return this;\n }\n\n return this.getRect;\n }\n\n _backCompatOption(optionName, newValue) {\n if (trySelector(newValue) || is.object(newValue)) {\n this.options[optionName] = newValue;\n\n for (const action in this._actions.map) {\n this.options[action][optionName] = newValue;\n }\n\n return this;\n }\n\n return this.options[optionName];\n }\n /**\n * Gets or sets the origin of the Interactable's element. The x and y\n * of the origin will be subtracted from action event coordinates.\n *\n * @param {Element | object | string} [origin] An HTML or SVG Element whose\n * rect will be used, an object eg. { x: 0, y: 0 } or string 'parent', 'self'\n * or any CSS selector\n *\n * @return {object} The current origin or this Interactable\n */\n\n\n origin(newValue) {\n return this._backCompatOption('origin', newValue);\n }\n /**\n * Returns or sets the mouse coordinate types used to calculate the\n * movement of the pointer.\n *\n * @param {string} [newValue] Use 'client' if you will be scrolling while\n * interacting; Use 'page' if you want autoScroll to work\n * @return {string | object} The current deltaSource or this Interactable\n */\n\n\n deltaSource(newValue) {\n if (newValue === 'page' || newValue === 'client') {\n this.options.deltaSource = newValue;\n return this;\n }\n\n return this.options.deltaSource;\n }\n /**\n * Gets the selector context Node of the Interactable. The default is\n * `window.document`.\n *\n * @return {Node} The context Node of this Interactable\n */\n\n\n context() {\n return this._context;\n }\n\n inContext(element) {\n return this._context === element.ownerDocument || nodeContains(this._context, element);\n }\n\n testIgnoreAllow(options, targetNode, eventTarget) {\n return !this.testIgnore(options.ignoreFrom, targetNode, eventTarget) && this.testAllow(options.allowFrom, targetNode, eventTarget);\n }\n\n testAllow(allowFrom, targetNode, element) {\n if (!allowFrom) {\n return true;\n }\n\n if (!is.element(element)) {\n return false;\n }\n\n if (is.string(allowFrom)) {\n return matchesUpTo(element, allowFrom, targetNode);\n } else if (is.element(allowFrom)) {\n return nodeContains(allowFrom, element);\n }\n\n return false;\n }\n\n testIgnore(ignoreFrom, targetNode, element) {\n if (!ignoreFrom || !is.element(element)) {\n return false;\n }\n\n if (is.string(ignoreFrom)) {\n return matchesUpTo(element, ignoreFrom, targetNode);\n } else if (is.element(ignoreFrom)) {\n return nodeContains(ignoreFrom, element);\n }\n\n return false;\n }\n /**\n * Calls listeners for the given InteractEvent type bound globally\n * and directly to this Interactable\n *\n * @param {InteractEvent} iEvent The InteractEvent object to be fired on this\n * Interactable\n * @return {Interactable} this Interactable\n */\n\n\n fire(iEvent) {\n this.events.fire(iEvent);\n return this;\n }\n\n _onOff(method, typeArg, listenerArg, options) {\n if (is.object(typeArg) && !is.array(typeArg)) {\n options = listenerArg;\n listenerArg = null;\n }\n\n const addRemove = method === 'on' ? 'add' : 'remove';\n const listeners = normalizeListeners(typeArg, listenerArg);\n\n for (let type in listeners) {\n if (type === 'wheel') {\n type = browser.wheelEvent;\n }\n\n for (const listener of listeners[type]) {\n // if it is an action event type\n if (isNonNativeEvent(type, this._actions)) {\n this.events[method](type, listener);\n } // delegated event\n else if (is.string(this.target)) {\n this._scopeEvents[`${addRemove}Delegate`](this.target, this._context, type, listener, options);\n } // remove listener from this Interactable's element\n else {\n this._scopeEvents[addRemove](this.target, type, listener, options);\n }\n }\n }\n\n return this;\n }\n /**\n * Binds a listener for an InteractEvent, pointerEvent or DOM event.\n *\n * @param {string | array | object} types The types of events to listen\n * for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * addEventListener\n * @return {Interactable} This Interactable\n */\n\n\n on(types, listener, options) {\n return this._onOff('on', types, listener, options);\n }\n /**\n * Removes an InteractEvent, pointerEvent or DOM event listener.\n *\n * @param {string | array | object} types The types of events that were\n * listened for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * removeEventListener\n * @return {Interactable} This Interactable\n */\n\n\n off(types, listener, options) {\n return this._onOff('off', types, listener, options);\n }\n /**\n * Reset the options of this Interactable\n *\n * @param {object} options The new settings to apply\n * @return {object} This Interactable\n */\n\n\n set(options) {\n const defaults = this._defaults;\n\n if (!is.object(options)) {\n options = {};\n }\n\n this.options = clone(defaults.base);\n\n for (const actionName_ in this._actions.methodDict) {\n const actionName = actionName_;\n const methodName = this._actions.methodDict[actionName];\n this.options[actionName] = {};\n this.setPerAction(actionName, extend(extend({}, defaults.perAction), defaults.actions[actionName]));\n this[methodName](options[actionName]);\n }\n\n for (const setting in options) {\n if (is.func(this[setting])) {\n this[setting](options[setting]);\n }\n }\n\n return this;\n }\n /**\n * Remove this interactable from the list of interactables and remove it's\n * action capabilities and event listeners\n */\n\n\n unset() {\n if (is.string(this.target)) {\n // remove delegated events\n for (const type in this._scopeEvents.delegatedEvents) {\n const delegated = this._scopeEvents.delegatedEvents[type];\n\n for (let i = delegated.length - 1; i >= 0; i--) {\n const {\n selector,\n context,\n listeners\n } = delegated[i];\n\n if (selector === this.target && context === this._context) {\n delegated.splice(i, 1);\n }\n\n for (let l = listeners.length - 1; l >= 0; l--) {\n this._scopeEvents.removeDelegate(this.target, this._context, type, listeners[l][0], listeners[l][1]);\n }\n }\n }\n } else {\n this._scopeEvents.remove(this.target, 'all');\n }\n }\n\n}\n//# sourceMappingURL=Interactable.js.map","import * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nexport class InteractableSet {\n // all set interactables\n constructor(scope) {\n this.list = [];\n this.selectorMap = {};\n this.scope = void 0;\n this.scope = scope;\n scope.addListeners({\n 'interactable:unset': ({\n interactable\n }) => {\n const {\n target,\n _context: context\n } = interactable;\n const targetMappings = is.string(target) ? this.selectorMap[target] : target[this.scope.id];\n const targetIndex = arr.findIndex(targetMappings, m => m.context === context);\n\n if (targetMappings[targetIndex]) {\n // Destroying mappingInfo's context and interactable\n targetMappings[targetIndex].context = null;\n targetMappings[targetIndex].interactable = null;\n }\n\n targetMappings.splice(targetIndex, 1);\n }\n });\n }\n\n new(target, options) {\n options = extend(options || {}, {\n actions: this.scope.actions\n });\n const interactable = new this.scope.Interactable(target, options, this.scope.document, this.scope.events);\n const mappingInfo = {\n context: interactable._context,\n interactable\n };\n this.scope.addDocument(interactable._doc);\n this.list.push(interactable);\n\n if (is.string(target)) {\n if (!this.selectorMap[target]) {\n this.selectorMap[target] = [];\n }\n\n this.selectorMap[target].push(mappingInfo);\n } else {\n if (!interactable.target[this.scope.id]) {\n Object.defineProperty(target, this.scope.id, {\n value: [],\n configurable: true\n });\n }\n\n target[this.scope.id].push(mappingInfo);\n }\n\n this.scope.fire('interactable:new', {\n target,\n options,\n interactable,\n win: this.scope._win\n });\n return interactable;\n }\n\n get(target, options) {\n const context = options && options.context || this.scope.document;\n const isSelector = is.string(target);\n const targetMappings = isSelector ? this.selectorMap[target] : target[this.scope.id];\n\n if (!targetMappings) {\n return null;\n }\n\n const found = arr.find(targetMappings, m => m.context === context && (isSelector || m.interactable.inContext(target)));\n return found && found.interactable;\n }\n\n forEachMatch(node, callback) {\n for (const interactable of this.list) {\n let ret;\n\n if ((is.string(interactable.target) // target is a selector and the element matches\n ? is.element(node) && domUtils.matchesSelector(node, interactable.target) : // target is the element\n node === interactable.target) && // the element is in context\n interactable.inContext(node)) {\n ret = callback(interactable);\n }\n\n if (ret !== undefined) {\n return ret;\n }\n }\n }\n\n}\n//# sourceMappingURL=InteractableSet.js.map","function pointerExtend(dest, source) {\n for (const prop in source) {\n const prefixedPropREs = pointerExtend.prefixedPropREs;\n let deprecated = false; // skip deprecated prefixed properties\n\n for (const vendor in prefixedPropREs) {\n if (prop.indexOf(vendor) === 0 && prefixedPropREs[vendor].test(prop)) {\n deprecated = true;\n break;\n }\n }\n\n if (!deprecated && typeof source[prop] !== 'function') {\n dest[prop] = source[prop];\n }\n }\n\n return dest;\n}\n\npointerExtend.prefixedPropREs = {\n webkit: /(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,\n moz: /(Pressure)$/\n};\nexport default pointerExtend;\n//# sourceMappingURL=pointerExtend.js.map","import browser from \"./browser.js\";\nimport dom from \"./domObjects.js\";\nimport * as domUtils from \"./domUtils.js\";\nimport hypot from \"./hypot.js\";\nimport is from \"./is.js\";\nimport pointerExtend from \"./pointerExtend.js\";\nexport function copyCoords(dest, src) {\n dest.page = dest.page || {};\n dest.page.x = src.page.x;\n dest.page.y = src.page.y;\n dest.client = dest.client || {};\n dest.client.x = src.client.x;\n dest.client.y = src.client.y;\n dest.timeStamp = src.timeStamp;\n}\nexport function setCoordDeltas(targetObj, prev, cur) {\n targetObj.page.x = cur.page.x - prev.page.x;\n targetObj.page.y = cur.page.y - prev.page.y;\n targetObj.client.x = cur.client.x - prev.client.x;\n targetObj.client.y = cur.client.y - prev.client.y;\n targetObj.timeStamp = cur.timeStamp - prev.timeStamp;\n}\nexport function setCoordVelocity(targetObj, delta) {\n const dt = Math.max(delta.timeStamp / 1000, 0.001);\n targetObj.page.x = delta.page.x / dt;\n targetObj.page.y = delta.page.y / dt;\n targetObj.client.x = delta.client.x / dt;\n targetObj.client.y = delta.client.y / dt;\n targetObj.timeStamp = dt;\n}\nexport function setZeroCoords(targetObj) {\n targetObj.page.x = 0;\n targetObj.page.y = 0;\n targetObj.client.x = 0;\n targetObj.client.y = 0;\n}\nexport function isNativePointer(pointer) {\n return pointer instanceof dom.Event || pointer instanceof dom.Touch;\n} // Get specified X/Y coords for mouse or event.touches[0]\n\nexport function getXY(type, pointer, xy) {\n xy = xy || {};\n type = type || 'page';\n xy.x = pointer[type + 'X'];\n xy.y = pointer[type + 'Y'];\n return xy;\n}\nexport function getPageXY(pointer, page) {\n page = page || {\n x: 0,\n y: 0\n }; // Opera Mobile handles the viewport and scrolling oddly\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n getXY('screen', pointer, page);\n page.x += window.scrollX;\n page.y += window.scrollY;\n } else {\n getXY('page', pointer, page);\n }\n\n return page;\n}\nexport function getClientXY(pointer, client) {\n client = client || {};\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n // Opera Mobile handles the viewport and scrolling oddly\n getXY('screen', pointer, client);\n } else {\n getXY('client', pointer, client);\n }\n\n return client;\n}\nexport function getPointerId(pointer) {\n return is.number(pointer.pointerId) ? pointer.pointerId : pointer.identifier;\n}\nexport function setCoords(dest, pointers, timeStamp) {\n const pointer = pointers.length > 1 ? pointerAverage(pointers) : pointers[0];\n getPageXY(pointer, dest.page);\n getClientXY(pointer, dest.client);\n dest.timeStamp = timeStamp;\n}\nexport function getTouchPair(event) {\n const touches = []; // array of touches is supplied\n\n if (is.array(event)) {\n touches[0] = event[0];\n touches[1] = event[1];\n } // an event\n else {\n if (event.type === 'touchend') {\n if (event.touches.length === 1) {\n touches[0] = event.touches[0];\n touches[1] = event.changedTouches[0];\n } else if (event.touches.length === 0) {\n touches[0] = event.changedTouches[0];\n touches[1] = event.changedTouches[1];\n }\n } else {\n touches[0] = event.touches[0];\n touches[1] = event.touches[1];\n }\n }\n\n return touches;\n}\nexport function pointerAverage(pointers) {\n const average = {\n pageX: 0,\n pageY: 0,\n clientX: 0,\n clientY: 0,\n screenX: 0,\n screenY: 0\n };\n\n for (const pointer of pointers) {\n for (const prop in average) {\n average[prop] += pointer[prop];\n }\n }\n\n for (const prop in average) {\n average[prop] /= pointers.length;\n }\n\n return average;\n}\nexport function touchBBox(event) {\n if (!event.length) {\n return null;\n }\n\n const touches = getTouchPair(event);\n const minX = Math.min(touches[0].pageX, touches[1].pageX);\n const minY = Math.min(touches[0].pageY, touches[1].pageY);\n const maxX = Math.max(touches[0].pageX, touches[1].pageX);\n const maxY = Math.max(touches[0].pageY, touches[1].pageY);\n return {\n x: minX,\n y: minY,\n left: minX,\n top: minY,\n right: maxX,\n bottom: maxY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nexport function touchDistance(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[0][sourceX] - touches[1][sourceX];\n const dy = touches[0][sourceY] - touches[1][sourceY];\n return hypot(dx, dy);\n}\nexport function touchAngle(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[1][sourceX] - touches[0][sourceX];\n const dy = touches[1][sourceY] - touches[0][sourceY];\n const angle = 180 * Math.atan2(dy, dx) / Math.PI;\n return angle;\n}\nexport function getPointerType(pointer) {\n return is.string(pointer.pointerType) ? pointer.pointerType : is.number(pointer.pointerType) ? [undefined, undefined, 'touch', 'pen', 'mouse'][pointer.pointerType] // if the PointerEvent API isn't available, then the \"pointer\" must\n // be either a MouseEvent, TouchEvent, or Touch object\n : /touch/.test(pointer.type) || pointer instanceof dom.Touch ? 'touch' : 'mouse';\n} // [ event.target, event.currentTarget ]\n\nexport function getEventTargets(event) {\n const path = is.func(event.composedPath) ? event.composedPath() : event.path;\n return [domUtils.getActualElement(path ? path[0] : event.target), domUtils.getActualElement(event.currentTarget)];\n}\nexport function newCoords() {\n return {\n page: {\n x: 0,\n y: 0\n },\n client: {\n x: 0,\n y: 0\n },\n timeStamp: 0\n };\n}\nexport function coordsToEvent(coords) {\n const event = {\n coords,\n\n get page() {\n return this.coords.page;\n },\n\n get client() {\n return this.coords.client;\n },\n\n get timeStamp() {\n return this.coords.timeStamp;\n },\n\n get pageX() {\n return this.coords.page.x;\n },\n\n get pageY() {\n return this.coords.page.y;\n },\n\n get clientX() {\n return this.coords.client.x;\n },\n\n get clientY() {\n return this.coords.client.y;\n },\n\n get pointerId() {\n return this.coords.pointerId;\n },\n\n get target() {\n return this.coords.target;\n },\n\n get type() {\n return this.coords.type;\n },\n\n get pointerType() {\n return this.coords.pointerType;\n },\n\n get buttons() {\n return this.coords.buttons;\n },\n\n preventDefault() {}\n\n };\n return event;\n}\nexport { pointerExtend };\n//# sourceMappingURL=pointerUtils.js.map","import { Scope } from \"./scope.js\";\nimport * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport pExtend from \"../utils/pointerExtend.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\n\nfunction install(scope) {\n const targets = [];\n const delegatedEvents = {};\n const documents = [];\n const eventsMethods = {\n add,\n remove,\n addDelegate,\n removeDelegate,\n delegateListener,\n delegateUseCapture,\n delegatedEvents,\n documents,\n targets,\n supportsOptions: false,\n supportsPassive: false\n }; // check if browser supports passive events and options arg\n\n scope.document.createElement('div').addEventListener('test', null, {\n get capture() {\n return eventsMethods.supportsOptions = true;\n },\n\n get passive() {\n return eventsMethods.supportsPassive = true;\n }\n\n });\n scope.events = eventsMethods;\n\n function add(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n let target = arr.find(targets, t => t.eventTarget === eventTarget);\n\n if (!target) {\n target = {\n eventTarget,\n events: {}\n };\n targets.push(target);\n }\n\n if (!target.events[type]) {\n target.events[type] = [];\n }\n\n if (eventTarget.addEventListener && !arr.contains(target.events[type], listener)) {\n eventTarget.addEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n target.events[type].push(listener);\n }\n }\n\n function remove(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const targetIndex = arr.findIndex(targets, t => t.eventTarget === eventTarget);\n const target = targets[targetIndex];\n\n if (!target || !target.events) {\n return;\n }\n\n if (type === 'all') {\n for (type in target.events) {\n if (target.events.hasOwnProperty(type)) {\n remove(eventTarget, type, 'all');\n }\n }\n\n return;\n }\n\n let typeIsEmpty = false;\n const typeListeners = target.events[type];\n\n if (typeListeners) {\n if (listener === 'all') {\n for (let i = typeListeners.length - 1; i >= 0; i--) {\n remove(eventTarget, type, typeListeners[i], options);\n }\n\n return;\n } else {\n for (let i = 0; i < typeListeners.length; i++) {\n if (typeListeners[i] === listener) {\n eventTarget.removeEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n typeListeners.splice(i, 1);\n\n if (typeListeners.length === 0) {\n delete target.events[type];\n typeIsEmpty = true;\n }\n\n break;\n }\n }\n }\n }\n\n if (typeIsEmpty && !Object.keys(target.events).length) {\n targets.splice(targetIndex, 1);\n }\n }\n\n function addDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n\n if (!delegatedEvents[type]) {\n delegatedEvents[type] = []; // add delegate listener functions\n\n for (const doc of documents) {\n add(doc, type, delegateListener);\n add(doc, type, delegateUseCapture, true);\n }\n }\n\n const delegates = delegatedEvents[type];\n let delegate = arr.find(delegates, d => d.selector === selector && d.context === context);\n\n if (!delegate) {\n delegate = {\n selector,\n context,\n listeners: []\n };\n delegates.push(delegate);\n }\n\n delegate.listeners.push([listener, options]);\n }\n\n function removeDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const delegates = delegatedEvents[type];\n let matchFound = false;\n let index;\n\n if (!delegates) {\n return;\n } // count from last index of delegated to 0\n\n\n for (index = delegates.length - 1; index >= 0; index--) {\n const cur = delegates[index]; // look for matching selector and context Node\n\n if (cur.selector === selector && cur.context === context) {\n const {\n listeners\n } = cur; // each item of the listeners array is an array: [function, capture, passive]\n\n for (let i = listeners.length - 1; i >= 0; i--) {\n const [fn, {\n capture,\n passive\n }] = listeners[i]; // check if the listener functions and capture and passive flags match\n\n if (fn === listener && capture === options.capture && passive === options.passive) {\n // remove the listener from the array of listeners\n listeners.splice(i, 1); // if all listeners for this target have been removed\n // remove the target from the delegates array\n\n if (!listeners.length) {\n delegates.splice(index, 1); // remove delegate function from context\n\n remove(context, type, delegateListener);\n remove(context, type, delegateUseCapture, true);\n } // only remove one listener\n\n\n matchFound = true;\n break;\n }\n }\n\n if (matchFound) {\n break;\n }\n }\n }\n } // bound to the interactable context when a DOM event\n // listener is added to a selector interactable\n\n\n function delegateListener(event, optionalArg) {\n const options = getOptions(optionalArg);\n const fakeEvent = new FakeEvent(event);\n const delegates = delegatedEvents[event.type];\n const [eventTarget] = pointerUtils.getEventTargets(event);\n let element = eventTarget; // climb up document tree looking for selector matches\n\n while (is.element(element)) {\n for (let i = 0; i < delegates.length; i++) {\n const cur = delegates[i];\n const {\n selector,\n context\n } = cur;\n\n if (domUtils.matchesSelector(element, selector) && domUtils.nodeContains(context, eventTarget) && domUtils.nodeContains(context, element)) {\n const {\n listeners\n } = cur;\n fakeEvent.currentTarget = element;\n\n for (const [fn, {\n capture,\n passive\n }] of listeners) {\n if (capture === options.capture && passive === options.passive) {\n fn(fakeEvent);\n }\n }\n }\n }\n\n element = domUtils.parentNode(element);\n }\n }\n\n function delegateUseCapture(event) {\n return delegateListener.call(this, event, true);\n } // for type inferrence\n\n\n return eventsMethods;\n}\n\nclass FakeEvent {\n constructor(originalEvent) {\n this.currentTarget = void 0;\n this.originalEvent = void 0;\n this.type = void 0;\n this.originalEvent = originalEvent; // duplicate the event so that currentTarget can be changed\n\n pExtend(this, originalEvent);\n }\n\n preventOriginalDefault() {\n this.originalEvent.preventDefault();\n }\n\n stopPropagation() {\n this.originalEvent.stopPropagation();\n }\n\n stopImmediatePropagation() {\n this.originalEvent.stopImmediatePropagation();\n }\n\n}\n\nfunction getOptions(param) {\n if (!is.object(param)) {\n return {\n capture: !!param,\n passive: false\n };\n }\n\n const options = extend({}, param);\n options.capture = !!param.capture;\n options.passive = !!param.passive;\n return options;\n}\n\nexport default {\n id: 'events',\n install\n};\n//# sourceMappingURL=events.js.map","import { window } from \"./window.js\";\nexport function warnOnce(method, message) {\n let warned = false;\n return function () {\n if (!warned) {\n window.console.warn(message);\n warned = true;\n }\n\n return method.apply(this, arguments);\n };\n}\nexport function copyAction(dest, src) {\n dest.name = src.name;\n dest.axis = src.axis;\n dest.edges = src.edges;\n return dest;\n}\n//# sourceMappingURL=misc.js.map","/** @module interact */\nimport browser from \"../utils/browser.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport { warnOnce } from \"../utils/misc.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\nexport function createInteractStatic(scope) {\n /**\n * ```js\n * interact('#draggable').draggable(true)\n *\n * var rectables = interact('rect')\n * rectables\n * .gesturable(true)\n * .on('gesturemove', function (event) {\n * // ...\n * })\n * ```\n *\n * The methods of this variable can be used to set elements as interactables\n * and also to change various default settings.\n *\n * Calling it as a function and passing an element or a valid CSS selector\n * string returns an Interactable object which has various methods to configure\n * it.\n *\n * @global\n *\n * @param {Element | string} target The HTML or SVG Element to interact with\n * or CSS selector\n * @return {Interactable}\n */\n const interact = (target, options) => {\n let interactable = scope.interactables.get(target, options);\n\n if (!interactable) {\n interactable = scope.interactables.new(target, options);\n interactable.events.global = interact.globalEvents;\n }\n\n return interactable;\n }; // expose the functions used to calculate multi-touch properties\n\n\n interact.getPointerAverage = pointerUtils.pointerAverage;\n interact.getTouchBBox = pointerUtils.touchBBox;\n interact.getTouchDistance = pointerUtils.touchDistance;\n interact.getTouchAngle = pointerUtils.touchAngle;\n interact.getElementRect = domUtils.getElementRect;\n interact.getElementClientRect = domUtils.getElementClientRect;\n interact.matchesSelector = domUtils.matchesSelector;\n interact.closest = domUtils.closest;\n interact.globalEvents = {}; // eslint-disable-next-line no-undef\n\n interact.version = \"1.10.2\";\n interact.scope = scope;\n /**\n * Use a plugin\n *\n * @alias module:interact.use\n *\n */\n\n interact.use = function (plugin, options) {\n this.scope.usePlugin(plugin, options);\n return this;\n };\n /**\n * Check if an element or selector has been set with the {@link interact}\n * function\n *\n * @alias module:interact.isSet\n *\n * @param {Target} target The Element or string being searched for\n * @param {object} options\n * @return {boolean} Indicates if the element or CSS selector was previously\n * passed to interact\n */\n\n\n interact.isSet = function (target, options) {\n return !!this.scope.interactables.get(target, options && options.context);\n };\n /**\n * @deprecated\n * Add a global listener for an InteractEvent or adds a DOM event to `document`\n *\n * @alias module:interact.on\n *\n * @param {string | array | object} type The types of events to listen for\n * @param {function} listener The function event (s)\n * @param {object | boolean} [options] object or useCapture flag for\n * addEventListener\n * @return {object} interact\n */\n\n\n interact.on = warnOnce(function on(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.on(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.on(prop, type[prop], listener);\n }\n\n return this;\n } // if it is an InteractEvent type, add listener to globalEvents\n\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n // if this type of event was never bound\n if (!this.globalEvents[type]) {\n this.globalEvents[type] = [listener];\n } else {\n this.globalEvents[type].push(listener);\n }\n } // If non InteractEvent type, addEventListener to document\n else {\n this.scope.events.add(this.scope.document, type, listener, {\n options\n });\n }\n\n return this;\n }, 'The interact.on() method is being deprecated');\n /**\n * @deprecated\n * Removes a global InteractEvent listener or DOM event from `document`\n *\n * @alias module:interact.off\n *\n * @param {string | array | object} type The types of events that were listened\n * for\n * @param {function} listener The listener function to be removed\n * @param {object | boolean} options [options] object or useCapture flag for\n * removeEventListener\n * @return {object} interact\n */\n\n interact.off = warnOnce(function off(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.off(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.off(prop, type[prop], listener);\n }\n\n return this;\n }\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n let index;\n\n if (type in this.globalEvents && (index = this.globalEvents[type].indexOf(listener)) !== -1) {\n this.globalEvents[type].splice(index, 1);\n }\n } else {\n this.scope.events.remove(this.scope.document, type, listener, options);\n }\n\n return this;\n }, 'The interact.off() method is being deprecated');\n\n interact.debug = function () {\n return this.scope;\n };\n /**\n * @alias module:interact.supportsTouch\n *\n * @return {boolean} Whether or not the browser supports touch input\n */\n\n\n interact.supportsTouch = function () {\n return browser.supportsTouch;\n };\n /**\n * @alias module:interact.supportsPointerEvent\n *\n * @return {boolean} Whether or not the browser supports PointerEvents\n */\n\n\n interact.supportsPointerEvent = function () {\n return browser.supportsPointerEvent;\n };\n /**\n * Cancels all interactions (end events are not fired)\n *\n * @alias module:interact.stop\n *\n * @return {object} interact\n */\n\n\n interact.stop = function () {\n for (const interaction of this.scope.interactions.list) {\n interaction.stop();\n }\n\n return this;\n };\n /**\n * Returns or sets the distance the pointer must be moved before an action\n * sequence occurs. This also affects tolerance for tap events.\n *\n * @alias module:interact.pointerMoveTolerance\n *\n * @param {number} [newValue] The movement from the start position must be greater than this value\n * @return {interact | number}\n */\n\n\n interact.pointerMoveTolerance = function (newValue) {\n if (is.number(newValue)) {\n this.scope.interactions.pointerMoveTolerance = newValue;\n return this;\n }\n\n return this.scope.interactions.pointerMoveTolerance;\n };\n\n interact.addDocument = function (doc, options) {\n this.scope.addDocument(doc, options);\n };\n\n interact.removeDocument = function (doc) {\n this.scope.removeDocument(doc);\n };\n\n return interact;\n}\n//# sourceMappingURL=interactStatic.js.map","export class PointerInfo {\n constructor(id, pointer, event, downTime, downTarget) {\n this.id = void 0;\n this.pointer = void 0;\n this.event = void 0;\n this.downTime = void 0;\n this.downTarget = void 0;\n this.id = id;\n this.pointer = pointer;\n this.event = event;\n this.downTime = downTime;\n this.downTarget = downTarget;\n }\n\n}\n//# sourceMappingURL=PointerInfo.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { warnOnce, copyAction } from \"../utils/misc.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { PointerInfo } from \"./PointerInfo.js\";\nexport let _ProxyValues;\n\n(function (_ProxyValues) {\n _ProxyValues[\"interactable\"] = \"\";\n _ProxyValues[\"element\"] = \"\";\n _ProxyValues[\"prepared\"] = \"\";\n _ProxyValues[\"pointerIsDown\"] = \"\";\n _ProxyValues[\"pointerWasMoved\"] = \"\";\n _ProxyValues[\"_proxy\"] = \"\";\n})(_ProxyValues || (_ProxyValues = {}));\n\nexport let _ProxyMethods;\n\n(function (_ProxyMethods) {\n _ProxyMethods[\"start\"] = \"\";\n _ProxyMethods[\"move\"] = \"\";\n _ProxyMethods[\"end\"] = \"\";\n _ProxyMethods[\"stop\"] = \"\";\n _ProxyMethods[\"interacting\"] = \"\";\n})(_ProxyMethods || (_ProxyMethods = {}));\n\nlet idCounter = 0;\nexport class Interaction {\n // current interactable being interacted with\n // the target element of the interactable\n // action that's ready to be fired on next move event\n // keep track of added pointers\n // pointerdown/mousedown/touchstart event\n // previous action event\n\n /** @internal */\n get pointerMoveTolerance() {\n return 1;\n }\n /**\n * @alias Interaction.prototype.move\n */\n\n\n /** */\n constructor({\n pointerType,\n scopeFire\n }) {\n this.interactable = null;\n this.element = null;\n this.rect = void 0;\n this._rects = void 0;\n this.edges = void 0;\n this._scopeFire = void 0;\n this.prepared = {\n name: null,\n axis: null,\n edges: null\n };\n this.pointerType = void 0;\n this.pointers = [];\n this.downEvent = null;\n this.downPointer = {};\n this._latestPointer = {\n pointer: null,\n event: null,\n eventTarget: null\n };\n this.prevEvent = null;\n this.pointerIsDown = false;\n this.pointerWasMoved = false;\n this._interacting = false;\n this._ending = false;\n this._stopped = true;\n this._proxy = null;\n this.simulation = null;\n this.doMove = warnOnce(function (signalArg) {\n this.move(signalArg);\n }, 'The interaction.doMove() method has been renamed to interaction.move()');\n this.coords = {\n // Starting InteractEvent pointer coordinates\n start: pointerUtils.newCoords(),\n // Previous native pointer move event coordinates\n prev: pointerUtils.newCoords(),\n // current native pointer move event coordinates\n cur: pointerUtils.newCoords(),\n // Change in coordinates and time of the pointer\n delta: pointerUtils.newCoords(),\n // pointer velocity\n velocity: pointerUtils.newCoords()\n };\n this._id = idCounter++;\n this._scopeFire = scopeFire;\n this.pointerType = pointerType;\n const that = this;\n this._proxy = {};\n\n for (const key in _ProxyValues) {\n Object.defineProperty(this._proxy, key, {\n get() {\n return that[key];\n }\n\n });\n }\n\n for (const key in _ProxyMethods) {\n Object.defineProperty(this._proxy, key, {\n value: (...args) => that[key](...args)\n });\n }\n\n this._scopeFire('interactions:new', {\n interaction: this\n });\n }\n\n pointerDown(pointer, event, eventTarget) {\n const pointerIndex = this.updatePointer(pointer, event, eventTarget, true);\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:down', {\n pointer,\n event,\n eventTarget,\n pointerIndex,\n pointerInfo,\n type: 'down',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable({\n * // disable the default drag start by down->move\n * manualStart: true\n * })\n * // start dragging after the user holds the pointer down\n * .on('hold', function (event) {\n * var interaction = event.interaction\n *\n * if (!interaction.interacting()) {\n * interaction.start({ name: 'drag' },\n * event.interactable,\n * event.currentTarget)\n * }\n * })\n * ```\n *\n * Start an action with the given Interactable and Element as tartgets. The\n * action must be enabled for the target Interactable and an appropriate\n * number of pointers must be held down - 1 for drag/resize, 2 for gesture.\n *\n * Use it with `interactable.able({ manualStart: false })` to always\n * [start actions manually](https://github.com/taye/interact.js/issues/114)\n *\n * @param {object} action The action to be performed - drag, resize, etc.\n * @param {Interactable} target The Interactable to target\n * @param {Element} element The DOM Element to target\n * @return {Boolean} Whether the interaction was successfully started\n */\n\n\n start(action, interactable, element) {\n if (this.interacting() || !this.pointerIsDown || this.pointers.length < (action.name === 'gesture' ? 2 : 1) || !interactable.options[action.name].enabled) {\n return false;\n }\n\n copyAction(this.prepared, action);\n this.interactable = interactable;\n this.element = element;\n this.rect = interactable.getRect(element);\n this.edges = this.prepared.edges ? extend({}, this.prepared.edges) : {\n left: true,\n right: true,\n top: true,\n bottom: true\n };\n this._stopped = false;\n this._interacting = this._doPhase({\n interaction: this,\n event: this.downEvent,\n phase: 'start'\n }) && !this._stopped;\n return this._interacting;\n }\n\n pointerMove(pointer, event, eventTarget) {\n if (!this.simulation && !(this.modification && this.modification.endResult)) {\n this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const duplicateMove = 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;\n let dx;\n let dy; // register movement greater than pointerMoveTolerance\n\n if (this.pointerIsDown && !this.pointerWasMoved) {\n dx = this.coords.cur.client.x - this.coords.start.client.x;\n dy = this.coords.cur.client.y - this.coords.start.client.y;\n this.pointerWasMoved = hypot(dx, dy) > this.pointerMoveTolerance;\n }\n\n const pointerIndex = this.getPointerIndex(pointer);\n const signalArg = {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n type: 'move',\n eventTarget,\n dx,\n dy,\n duplicate: duplicateMove,\n interaction: this\n };\n\n if (!duplicateMove) {\n // set pointer coordinate, time changes and velocity\n pointerUtils.setCoordVelocity(this.coords.velocity, this.coords.delta);\n }\n\n this._scopeFire('interactions:move', signalArg);\n\n if (!duplicateMove && !this.simulation) {\n // if interacting, fire an 'action-move' signal etc\n if (this.interacting()) {\n signalArg.type = null;\n this.move(signalArg);\n }\n\n if (this.pointerWasMoved) {\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n }\n }\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('dragmove', function (event) {\n * if (someCondition) {\n * // change the snap settings\n * event.interactable.draggable({ snap: { targets: [] }})\n * // fire another move event with re-calculated snap\n * event.interaction.move()\n * }\n * })\n * ```\n *\n * Force a move of the current action at the same coordinates. Useful if\n * snap/restrict has been changed and you want a movement with the new\n * settings.\n */\n\n\n move(signalArg) {\n if (!signalArg || !signalArg.event) {\n pointerUtils.setZeroCoords(this.coords.delta);\n }\n\n signalArg = extend({\n pointer: this._latestPointer.pointer,\n event: this._latestPointer.event,\n eventTarget: this._latestPointer.eventTarget,\n interaction: this\n }, signalArg || {});\n signalArg.phase = 'move';\n\n this._doPhase(signalArg);\n } // End interact move events and stop auto-scroll unless simulation is running\n\n\n pointerUp(pointer, event, eventTarget, curEventTarget) {\n let pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n pointerIndex = this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const type = /cancel$/i.test(event.type) ? 'cancel' : 'up';\n\n this._scopeFire(`interactions:${type}`, {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n eventTarget,\n type: type,\n curEventTarget,\n interaction: this\n });\n\n if (!this.simulation) {\n this.end(event);\n }\n\n this.removePointer(pointer, event);\n }\n\n documentBlur(event) {\n this.end(event);\n\n this._scopeFire('interactions:blur', {\n event,\n type: 'blur',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('move', function (event) {\n * if (event.pageX > 1000) {\n * // end the current action\n * event.interaction.end()\n * // stop all further listeners from being called\n * event.stopImmediatePropagation()\n * }\n * })\n * ```\n *\n * @param {PointerEvent} [event]\n */\n\n\n end(event) {\n this._ending = true;\n event = event || this._latestPointer.event;\n let endPhaseResult;\n\n if (this.interacting()) {\n endPhaseResult = this._doPhase({\n event,\n interaction: this,\n phase: 'end'\n });\n }\n\n this._ending = false;\n\n if (endPhaseResult === true) {\n this.stop();\n }\n }\n\n currentAction() {\n return this._interacting ? this.prepared.name : null;\n }\n\n interacting() {\n return this._interacting;\n }\n /** */\n\n\n stop() {\n this._scopeFire('interactions:stop', {\n interaction: this\n });\n\n this.interactable = this.element = null;\n this._interacting = false;\n this._stopped = true;\n this.prepared.name = this.prevEvent = null;\n }\n\n getPointerIndex(pointer) {\n const pointerId = pointerUtils.getPointerId(pointer); // mouse and pen interactions may have only one pointer\n\n return this.pointerType === 'mouse' || this.pointerType === 'pen' ? this.pointers.length - 1 : arr.findIndex(this.pointers, curPointer => curPointer.id === pointerId);\n }\n\n getPointerInfo(pointer) {\n return this.pointers[this.getPointerIndex(pointer)];\n }\n\n updatePointer(pointer, event, eventTarget, down) {\n const id = pointerUtils.getPointerId(pointer);\n let pointerIndex = this.getPointerIndex(pointer);\n let pointerInfo = this.pointers[pointerIndex];\n down = down === false ? false : down || /(down|start)$/i.test(event.type);\n\n if (!pointerInfo) {\n pointerInfo = new PointerInfo(id, pointer, event, null, null);\n pointerIndex = this.pointers.length;\n this.pointers.push(pointerInfo);\n } else {\n pointerInfo.pointer = pointer;\n }\n\n pointerUtils.setCoords(this.coords.cur, this.pointers.map(p => p.pointer), this._now());\n pointerUtils.setCoordDeltas(this.coords.delta, this.coords.prev, this.coords.cur);\n\n if (down) {\n this.pointerIsDown = true;\n pointerInfo.downTime = this.coords.cur.timeStamp;\n pointerInfo.downTarget = eventTarget;\n pointerUtils.pointerExtend(this.downPointer, pointer);\n\n if (!this.interacting()) {\n pointerUtils.copyCoords(this.coords.start, this.coords.cur);\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n this.downEvent = event;\n this.pointerWasMoved = false;\n }\n }\n\n this._updateLatestPointer(pointer, event, eventTarget);\n\n this._scopeFire('interactions:update-pointer', {\n pointer,\n event,\n eventTarget,\n down,\n pointerInfo,\n pointerIndex,\n interaction: this\n });\n\n return pointerIndex;\n }\n\n removePointer(pointer, event) {\n const pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n return;\n }\n\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:remove-pointer', {\n pointer,\n event,\n eventTarget: null,\n pointerIndex,\n pointerInfo,\n interaction: this\n });\n\n this.pointers.splice(pointerIndex, 1);\n this.pointerIsDown = false;\n }\n\n _updateLatestPointer(pointer, event, eventTarget) {\n this._latestPointer.pointer = pointer;\n this._latestPointer.event = event;\n this._latestPointer.eventTarget = eventTarget;\n }\n\n destroy() {\n this._latestPointer.pointer = null;\n this._latestPointer.event = null;\n this._latestPointer.eventTarget = null;\n }\n\n _createPreparedEvent(event, phase, preEnd, type) {\n return new InteractEvent(this, event, this.prepared.name, phase, this.element, preEnd, type);\n }\n\n _fireEvent(iEvent) {\n this.interactable.fire(iEvent);\n\n if (!this.prevEvent || iEvent.timeStamp >= this.prevEvent.timeStamp) {\n this.prevEvent = iEvent;\n }\n }\n\n _doPhase(signalArg) {\n const {\n event,\n phase,\n preEnd,\n type\n } = signalArg;\n const {\n rect\n } = this;\n\n if (rect && phase === 'move') {\n // update the rect changes due to pointer move\n rectUtils.addEdges(this.edges, rect, this.coords.delta[this.interactable.options.deltaSource]);\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n const beforeResult = this._scopeFire(`interactions:before-action-${phase}`, signalArg);\n\n if (beforeResult === false) {\n return false;\n }\n\n const iEvent = signalArg.iEvent = this._createPreparedEvent(event, phase, preEnd, type);\n\n this._scopeFire(`interactions:action-${phase}`, signalArg);\n\n if (phase === 'start') {\n this.prevEvent = iEvent;\n }\n\n this._fireEvent(iEvent);\n\n this._scopeFire(`interactions:after-action-${phase}`, signalArg);\n\n return true;\n }\n\n _now() {\n return Date.now();\n }\n\n}\nexport default Interaction;\nexport { PointerInfo };\n//# sourceMappingURL=Interaction.js.map","import { Interactable } from \"./Interactable.js\";\nimport { matchesSelector, nodeContains } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport { getWindow } from \"../utils/window.js\";\n\nfunction preventDefault(newValue) {\n if (/^(always|never|auto)$/.test(newValue)) {\n this.options.preventDefault = newValue;\n return this;\n }\n\n if (is.bool(newValue)) {\n this.options.preventDefault = newValue ? 'always' : 'never';\n return this;\n }\n\n return this.options.preventDefault;\n}\n\nfunction checkAndPreventDefault(interactable, scope, event) {\n const setting = interactable.options.preventDefault;\n\n if (setting === 'never') {\n return;\n }\n\n if (setting === 'always') {\n event.preventDefault();\n return;\n } // setting === 'auto'\n // if the browser supports passive event listeners and isn't running on iOS,\n // don't preventDefault of touch{start,move} events. CSS touch-action and\n // user-select should be used instead of calling event.preventDefault().\n\n\n if (scope.events.supportsPassive && /^touch(start|move)$/.test(event.type)) {\n const doc = getWindow(event.target).document;\n const docOptions = scope.getDocOptions(doc);\n\n if (!(docOptions && docOptions.events) || docOptions.events.passive !== false) {\n return;\n }\n } // don't preventDefault of pointerdown events\n\n\n if (/^(mouse|pointer|touch)*(down|start)/i.test(event.type)) {\n return;\n } // don't preventDefault on editable elements\n\n\n if (is.element(event.target) && matchesSelector(event.target, 'input,select,textarea,[contenteditable=true],[contenteditable=true] *')) {\n return;\n }\n\n event.preventDefault();\n}\n\nfunction onInteractionEvent({\n interaction,\n event\n}) {\n if (interaction.interactable) {\n interaction.interactable.checkAndPreventDefault(event);\n }\n}\n\nexport function install(scope) {\n /** @lends Interactable */\n const {\n Interactable\n } = scope;\n /**\n * Returns or sets whether to prevent the browser's default behaviour in\n * response to pointer events. Can be set to:\n * - `'always'` to always prevent\n * - `'never'` to never prevent\n * - `'auto'` to let interact.js try to determine what would be best\n *\n * @param {string} [newValue] `'always'`, `'never'` or `'auto'`\n * @return {string | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.preventDefault = preventDefault;\n\n Interactable.prototype.checkAndPreventDefault = function (event) {\n return checkAndPreventDefault(this, scope, event);\n }; // prevent native HTML5 drag on interact.js target elements\n\n\n scope.interactions.docEvents.push({\n type: 'dragstart',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n if (interaction.element && (interaction.element === event.target || nodeContains(interaction.element, event.target))) {\n interaction.interactable.checkAndPreventDefault(event);\n return;\n }\n }\n }\n\n });\n}\nexport default {\n id: 'core/interactablePreventDefault',\n install,\n listeners: ['down', 'move', 'up', 'cancel'].reduce((acc, eventType) => {\n acc[`interactions:${eventType}`] = onInteractionEvent;\n return acc;\n }, {})\n};\n//# sourceMappingURL=interactablePreventDefault.js.map","import * as dom from \"../utils/domUtils.js\";\nconst finder = {\n methodOrder: ['simulationResume', 'mouseOrPen', 'hasPointer', 'idle'],\n\n search(details) {\n for (const method of finder.methodOrder) {\n const interaction = finder[method](details);\n\n if (interaction) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // try to resume simulation with a new pointer\n simulationResume({\n pointerType,\n eventType,\n eventTarget,\n scope\n }) {\n if (!/down|start/i.test(eventType)) {\n return null;\n }\n\n for (const interaction of scope.interactions.list) {\n let element = eventTarget;\n\n if (interaction.simulation && interaction.simulation.allowResume && interaction.pointerType === pointerType) {\n while (element) {\n // if the element is the interaction element\n if (element === interaction.element) {\n return interaction;\n }\n\n element = dom.parentNode(element);\n }\n }\n }\n\n return null;\n },\n\n // if it's a mouse or pen interaction\n mouseOrPen({\n pointerId,\n pointerType,\n eventType,\n scope\n }) {\n if (pointerType !== 'mouse' && pointerType !== 'pen') {\n return null;\n }\n\n let firstNonActive;\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType) {\n // if it's a down event, skip interactions with running simulations\n if (interaction.simulation && !hasPointerId(interaction, pointerId)) {\n continue;\n } // if the interaction is active, return it immediately\n\n\n if (interaction.interacting()) {\n return interaction;\n } // otherwise save it and look for another active interaction\n else if (!firstNonActive) {\n firstNonActive = interaction;\n }\n }\n } // if no active mouse interaction was found use the first inactive mouse\n // interaction\n\n\n if (firstNonActive) {\n return firstNonActive;\n } // find any mouse or pen interaction.\n // ignore the interaction if the eventType is a *down, and a simulation\n // is active\n\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType && !(/down/i.test(eventType) && interaction.simulation)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get interaction that has this pointer\n hasPointer({\n pointerId,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n if (hasPointerId(interaction, pointerId)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get first idle interaction with a matching pointerType\n idle({\n pointerType,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n // if there's already a pointer held down\n if (interaction.pointers.length === 1) {\n const target = interaction.interactable; // don't add this pointer if there is a target interactable and it\n // isn't gesturable\n\n if (target && !(target.options.gesture && target.options.gesture.enabled)) {\n continue;\n }\n } // maximum of 2 pointers per interaction\n else if (interaction.pointers.length >= 2) {\n continue;\n }\n\n if (!interaction.interacting() && pointerType === interaction.pointerType) {\n return interaction;\n }\n }\n\n return null;\n }\n\n};\n\nfunction hasPointerId(interaction, pointerId) {\n return interaction.pointers.some(({\n id\n }) => id === pointerId);\n}\n\nexport default finder;\n//# sourceMappingURL=interactionFinder.js.map","import { Scope, SignalArgs } from \"./scope.js\";\nimport browser from \"../utils/browser.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { nodeContains } from \"../utils/domUtils.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport InteractionBase from \"./Interaction.js\";\nimport interactablePreventDefault from \"./interactablePreventDefault.js\";\nimport finder from \"./interactionFinder.js\";\nconst methodNames = ['pointerDown', 'pointerMove', 'pointerUp', 'updatePointer', 'removePointer', 'windowBlur'];\n\nfunction install(scope) {\n const listeners = {};\n\n for (const method of methodNames) {\n listeners[method] = doOnInteractions(method, scope);\n }\n\n const pEventTypes = browser.pEventTypes;\n let docEvents;\n\n if (domObjects.PointerEvent) {\n docEvents = [{\n type: pEventTypes.down,\n listener: releasePointersOnRemovedEls\n }, {\n type: pEventTypes.down,\n listener: listeners.pointerDown\n }, {\n type: pEventTypes.move,\n listener: listeners.pointerMove\n }, {\n type: pEventTypes.up,\n listener: listeners.pointerUp\n }, {\n type: pEventTypes.cancel,\n listener: listeners.pointerUp\n }];\n } else {\n docEvents = [{\n type: 'mousedown',\n listener: listeners.pointerDown\n }, {\n type: 'mousemove',\n listener: listeners.pointerMove\n }, {\n type: 'mouseup',\n listener: listeners.pointerUp\n }, {\n type: 'touchstart',\n listener: releasePointersOnRemovedEls\n }, {\n type: 'touchstart',\n listener: listeners.pointerDown\n }, {\n type: 'touchmove',\n listener: listeners.pointerMove\n }, {\n type: 'touchend',\n listener: listeners.pointerUp\n }, {\n type: 'touchcancel',\n listener: listeners.pointerUp\n }];\n }\n\n docEvents.push({\n type: 'blur',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n interaction.documentBlur(event);\n }\n }\n\n }); // for ignoring browser's simulated mouse events\n\n scope.prevTouchTime = 0;\n scope.Interaction = class extends InteractionBase {\n get pointerMoveTolerance() {\n return scope.interactions.pointerMoveTolerance;\n }\n\n set pointerMoveTolerance(value) {\n scope.interactions.pointerMoveTolerance = value;\n }\n\n _now() {\n return scope.now();\n }\n\n };\n scope.interactions = {\n // all active and idle interactions\n list: [],\n\n new(options) {\n options.scopeFire = (name, arg) => scope.fire(name, arg);\n\n const interaction = new scope.Interaction(options);\n scope.interactions.list.push(interaction);\n return interaction;\n },\n\n listeners,\n docEvents,\n pointerMoveTolerance: 1\n };\n\n function releasePointersOnRemovedEls() {\n // for all inactive touch interactions with pointers down\n for (const interaction of scope.interactions.list) {\n if (!interaction.pointerIsDown || interaction.pointerType !== 'touch' || interaction._interacting) {\n continue;\n } // if a pointer is down on an element that is no longer in the DOM tree\n\n\n for (const pointer of interaction.pointers) {\n if (!scope.documents.some(({\n doc\n }) => nodeContains(doc, pointer.downTarget))) {\n // remove the pointer from the interaction\n interaction.removePointer(pointer.pointer, pointer.event);\n }\n }\n }\n }\n\n scope.usePlugin(interactablePreventDefault);\n}\n\nfunction doOnInteractions(method, scope) {\n return function (event) {\n const interactions = scope.interactions.list;\n const pointerType = pointerUtils.getPointerType(event);\n const [eventTarget, curEventTarget] = pointerUtils.getEventTargets(event);\n const matches = []; // [ [pointer, interaction], ...]\n\n if (/^touch/.test(event.type)) {\n scope.prevTouchTime = scope.now(); // @ts-expect-error\n\n for (const changedTouch of event.changedTouches) {\n const pointer = changedTouch;\n const pointerId = pointerUtils.getPointerId(pointer);\n const searchDetails = {\n pointer,\n pointerId,\n pointerType,\n eventType: event.type,\n eventTarget,\n curEventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } else {\n let invalidPointer = false;\n\n if (!browser.supportsPointerEvent && /mouse/.test(event.type)) {\n // ignore mouse events while touch interactions are active\n for (let i = 0; i < interactions.length && !invalidPointer; i++) {\n invalidPointer = interactions[i].pointerType !== 'mouse' && interactions[i].pointerIsDown;\n } // try to ignore mouse events that are simulated by the browser\n // after a touch event\n\n\n invalidPointer = invalidPointer || scope.now() - scope.prevTouchTime < 500 || // on iOS and Firefox Mobile, MouseEvent.timeStamp is zero if simulated\n event.timeStamp === 0;\n }\n\n if (!invalidPointer) {\n const searchDetails = {\n pointer: event,\n pointerId: pointerUtils.getPointerId(event),\n pointerType,\n eventType: event.type,\n curEventTarget,\n eventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } // eslint-disable-next-line no-shadow\n\n\n for (const [pointer, eventTarget, curEventTarget, interaction] of matches) {\n interaction[method](pointer, event, eventTarget, curEventTarget);\n }\n };\n}\n\nfunction getInteraction(searchDetails) {\n const {\n pointerType,\n scope\n } = searchDetails;\n const foundInteraction = finder.search(searchDetails);\n const signalArg = {\n interaction: foundInteraction,\n searchDetails\n };\n scope.fire('interactions:find', signalArg);\n return signalArg.interaction || scope.interactions.new({\n pointerType\n });\n}\n\nfunction onDocSignal({\n doc,\n scope,\n options\n}, eventMethodName) {\n const {\n interactions: {\n docEvents\n },\n events\n } = scope;\n const eventMethod = events[eventMethodName];\n\n if (scope.browser.isIOS && !options.events) {\n options.events = {\n passive: false\n };\n } // delegate event listener\n\n\n for (const eventType in events.delegatedEvents) {\n eventMethod(doc, eventType, events.delegateListener);\n eventMethod(doc, eventType, events.delegateUseCapture, true);\n }\n\n const eventOptions = options && options.events;\n\n for (const {\n type,\n listener\n } of docEvents) {\n eventMethod(doc, type, listener, eventOptions);\n }\n}\n\nconst interactions = {\n id: 'core/interactions',\n install,\n listeners: {\n 'scope:add-document': arg => onDocSignal(arg, 'add'),\n 'scope:remove-document': arg => onDocSignal(arg, 'remove'),\n 'interactable:unset': ({\n interactable\n }, scope) => {\n // Stop and destroy related interactions when an Interactable is unset\n for (let i = scope.interactions.list.length - 1; i >= 0; i--) {\n const interaction = scope.interactions.list[i];\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interaction.stop();\n scope.fire('interactions:destroy', {\n interaction\n });\n interaction.destroy();\n\n if (scope.interactions.list.length > 2) {\n scope.interactions.list.splice(i, 1);\n }\n }\n }\n },\n onDocSignal,\n doOnInteractions,\n methodNames\n};\nexport default interactions;\n//# sourceMappingURL=interactions.js.map","import browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport extend from \"../utils/extend.js\";\nimport raf from \"../utils/raf.js\";\nimport * as win from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { Interactable as InteractableBase } from \"./Interactable.js\";\nimport { InteractableSet } from \"./InteractableSet.js\";\nimport { defaults } from \"./defaultOptions.js\";\nimport events from \"./events.js\";\nimport { createInteractStatic } from \"./interactStatic.js\";\nimport interactions from \"./interactions.js\";\nexport class Scope {\n // main window\n // main document\n // main window\n // all documents being listened to\n constructor() {\n this.id = `__interact_scope_${Math.floor(Math.random() * 100)}`;\n this.isInitialized = false;\n this.listenerMaps = [];\n this.browser = browser;\n this.defaults = clone(defaults);\n this.Eventable = Eventable;\n this.actions = {\n map: {},\n phases: {\n start: true,\n move: true,\n end: true\n },\n methodDict: {},\n phaselessTypes: {}\n };\n this.interactStatic = createInteractStatic(this);\n this.InteractEvent = InteractEvent;\n this.Interactable = void 0;\n this.interactables = new InteractableSet(this);\n this._win = void 0;\n this.document = void 0;\n this.window = void 0;\n this.documents = [];\n this._plugins = {\n list: [],\n map: {}\n };\n\n this.onWindowUnload = event => this.removeDocument(event.target);\n\n const scope = this;\n this.Interactable = class extends InteractableBase {\n get _defaults() {\n return scope.defaults;\n }\n\n set(options) {\n super.set(options);\n scope.fire('interactable:set', {\n options,\n interactable: this\n });\n return this;\n }\n\n unset() {\n super.unset();\n scope.interactables.list.splice(scope.interactables.list.indexOf(this), 1);\n scope.fire('interactable:unset', {\n interactable: this\n });\n }\n\n };\n }\n\n addListeners(map, id) {\n this.listenerMaps.push({\n id,\n map\n });\n }\n\n fire(name, arg) {\n for (const {\n map: {\n [name]: listener\n }\n } of this.listenerMaps) {\n if (!!listener && listener(arg, this, name) === false) {\n return false;\n }\n }\n }\n\n init(window) {\n return this.isInitialized ? this : initScope(this, window);\n }\n\n pluginIsInstalled(plugin) {\n return this._plugins.map[plugin.id] || this._plugins.list.indexOf(plugin) !== -1;\n }\n\n usePlugin(plugin, options) {\n if (!this.isInitialized) {\n return this;\n }\n\n if (this.pluginIsInstalled(plugin)) {\n return this;\n }\n\n if (plugin.id) {\n this._plugins.map[plugin.id] = plugin;\n }\n\n this._plugins.list.push(plugin);\n\n if (plugin.install) {\n plugin.install(this, options);\n }\n\n if (plugin.listeners && plugin.before) {\n let index = 0;\n const len = this.listenerMaps.length;\n const before = plugin.before.reduce((acc, id) => {\n acc[id] = true;\n acc[pluginIdRoot(id)] = true;\n return acc;\n }, {});\n\n for (; index < len; index++) {\n const otherId = this.listenerMaps[index].id;\n\n if (before[otherId] || before[pluginIdRoot(otherId)]) {\n break;\n }\n }\n\n this.listenerMaps.splice(index, 0, {\n id: plugin.id,\n map: plugin.listeners\n });\n } else if (plugin.listeners) {\n this.listenerMaps.push({\n id: plugin.id,\n map: plugin.listeners\n });\n }\n\n return this;\n }\n\n addDocument(doc, options) {\n // do nothing if document is already known\n if (this.getDocIndex(doc) !== -1) {\n return false;\n }\n\n const window = win.getWindow(doc);\n options = options ? extend({}, options) : {};\n this.documents.push({\n doc,\n options\n });\n this.events.documents.push(doc); // don't add an unload event for the main document\n // so that the page may be cached in browser history\n\n if (doc !== this.document) {\n this.events.add(window, 'unload', this.onWindowUnload);\n }\n\n this.fire('scope:add-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n removeDocument(doc) {\n const index = this.getDocIndex(doc);\n const window = win.getWindow(doc);\n const options = this.documents[index].options;\n this.events.remove(window, 'unload', this.onWindowUnload);\n this.documents.splice(index, 1);\n this.events.documents.splice(index, 1);\n this.fire('scope:remove-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n getDocIndex(doc) {\n for (let i = 0; i < this.documents.length; i++) {\n if (this.documents[i].doc === doc) {\n return i;\n }\n }\n\n return -1;\n }\n\n getDocOptions(doc) {\n const docIndex = this.getDocIndex(doc);\n return docIndex === -1 ? null : this.documents[docIndex].options;\n }\n\n now() {\n return (this.window.Date || Date).now();\n }\n\n}\nexport function initScope(scope, window) {\n scope.isInitialized = true;\n win.init(window);\n domObjects.init(window);\n browser.init(window);\n raf.init(window);\n scope.window = window;\n scope.document = window.document;\n scope.usePlugin(interactions);\n scope.usePlugin(events);\n return scope;\n}\n\nfunction pluginIdRoot(id) {\n return id && id.replace(/\\/.*$/, '');\n}\n//# sourceMappingURL=scope.js.map","import { Scope } from \"../core/scope.js\";\nconst scope = new Scope();\nconst interact = scope.interactStatic;\nexport default interact;\nexport const init = win => scope.init(win);\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../core/Interactable.js\";\nimport is from \"../utils/is.js\";\nimport { warnOnce } from \"../utils/misc.js\";\n\nfunction install(scope) {\n const {\n /** @lends Interactable */\n Interactable // tslint:disable-line no-shadowed-variable\n\n } = scope;\n\n Interactable.prototype.getAction = function getAction(pointer, event, interaction, element) {\n const action = defaultActionChecker(this, event, interaction, element, scope);\n\n if (this.options.actionChecker) {\n return this.options.actionChecker(pointer, event, action, this, element, interaction);\n }\n\n return action;\n };\n /**\n * If the target of the `mousedown`, `pointerdown` or `touchstart` event or any\n * of it's parents match the given CSS selector or Element, no\n * drag/resize/gesture is started.\n *\n * @deprecated\n * Don't use this method. Instead set the `ignoreFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .draggable({\n * ignoreFrom: 'input, textarea, a[href]'',\n * })\n * .pointerEvents({\n * ignoreFrom: '[no-pointer]',\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to not ignore any elements\n * @return {string | Element | object} The current ignoreFrom value or this\n * Interactable\n */\n\n\n Interactable.prototype.ignoreFrom = warnOnce(function (newValue) {\n return this._backCompatOption('ignoreFrom', newValue);\n }, 'Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue}).');\n /**\n *\n * A drag/resize/gesture is started only If the target of the `mousedown`,\n * `pointerdown` or `touchstart` event or any of it's parents match the given\n * CSS selector or Element.\n *\n * @deprecated\n * Don't use this method. Instead set the `allowFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .resizable({\n * allowFrom: '.resize-handle',\n * .pointerEvents({\n * allowFrom: '.handle',,\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to allow from any element\n * @return {string | Element | object} The current allowFrom value or this\n * Interactable\n */\n\n Interactable.prototype.allowFrom = warnOnce(function (newValue) {\n return this._backCompatOption('allowFrom', newValue);\n }, 'Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue}).');\n /**\n * ```js\n * interact('.resize-drag')\n * .resizable(true)\n * .draggable(true)\n * .actionChecker(function (pointer, event, action, interactable, element, interaction) {\n *\n * if (interact.matchesSelector(event.target, '.drag-handle')) {\n * // force drag with handle target\n * action.name = drag\n * }\n * else {\n * // resize from the top and right edges\n * action.name = 'resize'\n * action.edges = { top: true, right: true }\n * }\n *\n * return action\n * })\n * ```\n *\n * Returns or sets the function used to check action to be performed on\n * pointerDown\n *\n * @param {function | null} [checker] A function which takes a pointer event,\n * defaultAction string, interactable, element and interaction as parameters\n * and returns an object with name property 'drag' 'resize' or 'gesture' and\n * optionally an `edges` object with boolean 'top', 'left', 'bottom' and right\n * props.\n * @return {Function | Interactable} The checker function or this Interactable\n */\n\n Interactable.prototype.actionChecker = actionChecker;\n /**\n * Returns or sets whether the the cursor should be changed depending on the\n * action that would be performed if the mouse were pressed and dragged.\n *\n * @param {boolean} [newValue]\n * @return {boolean | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.styleCursor = styleCursor;\n}\n\nfunction defaultActionChecker(interactable, event, interaction, element, scope) {\n const rect = interactable.getRect(element);\n const buttons = event.buttons || {\n 0: 1,\n 1: 4,\n 3: 8,\n 4: 16\n }[event.button];\n const arg = {\n action: null,\n interactable,\n interaction,\n element,\n rect,\n buttons\n };\n scope.fire('auto-start:check', arg);\n return arg.action;\n}\n\nfunction styleCursor(newValue) {\n if (is.bool(newValue)) {\n this.options.styleCursor = newValue;\n return this;\n }\n\n if (newValue === null) {\n delete this.options.styleCursor;\n return this;\n }\n\n return this.options.styleCursor;\n}\n\nfunction actionChecker(checker) {\n if (is.func(checker)) {\n this.options.actionChecker = checker;\n return this;\n }\n\n if (checker === null) {\n delete this.options.actionChecker;\n return this;\n }\n\n return this.options.actionChecker;\n}\n\nexport default {\n id: 'auto-start/interactableMethods',\n install\n};\n//# sourceMappingURL=InteractableMethods.js.map","import { Scope, SignalArgs } from \"../core/scope.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport { copyAction } from \"../utils/misc.js\";\nimport InteractableMethods from \"./InteractableMethods.js\";\n\nfunction install(scope) {\n const {\n interactStatic: interact,\n defaults\n } = scope;\n scope.usePlugin(InteractableMethods);\n defaults.base.actionChecker = null;\n defaults.base.styleCursor = true;\n extend(defaults.perAction, {\n manualStart: false,\n max: Infinity,\n maxPerElement: 1,\n allowFrom: null,\n ignoreFrom: null,\n // only allow left button by default\n // see https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons#Return_value\n mouseButtons: 1\n });\n /**\n * Returns or sets the maximum number of concurrent interactions allowed. By\n * default only 1 interaction is allowed at a time (for backwards\n * compatibility). To allow multiple interactions on the same Interactables and\n * elements, you need to enable it in the draggable, resizable and gesturable\n * `'max'` and `'maxPerElement'` options.\n *\n * @alias module:interact.maxInteractions\n *\n * @param {number} [newValue] Any number. newValue <= 0 means no interactions.\n */\n\n interact.maxInteractions = newValue => maxInteractions(newValue, scope);\n\n scope.autoStart = {\n // Allow this many interactions to happen simultaneously\n maxInteractions: Infinity,\n withinInteractionLimit,\n cursorElement: null\n };\n}\n\nfunction prepareOnDown({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction prepareOnMove({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.pointerType !== 'mouse' || interaction.pointerIsDown || interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction startOnMove(arg, scope) {\n const {\n interaction\n } = arg;\n\n if (!interaction.pointerIsDown || interaction.interacting() || !interaction.pointerWasMoved || !interaction.prepared.name) {\n return;\n }\n\n scope.fire('autoStart:before-start', arg);\n const {\n interactable\n } = interaction;\n const actionName = interaction.prepared.name;\n\n if (actionName && interactable) {\n // check manualStart and interaction limit\n if (interactable.options[actionName].manualStart || !withinInteractionLimit(interactable, interaction.element, interaction.prepared, scope)) {\n interaction.stop();\n } else {\n interaction.start(interaction.prepared, interactable, interaction.element);\n setInteractionCursor(interaction, scope);\n }\n }\n}\n\nfunction clearCursorOnStop({\n interaction\n}, scope) {\n const {\n interactable\n } = interaction;\n\n if (interactable && interactable.options.styleCursor) {\n setCursor(interaction.element, '', scope);\n }\n} // Check if the current interactable supports the action.\n// If so, return the validated action. Otherwise, return null\n\n\nfunction validateAction(action, interactable, element, eventTarget, scope) {\n if (interactable.testIgnoreAllow(interactable.options[action.name], element, eventTarget) && interactable.options[action.name].enabled && withinInteractionLimit(interactable, element, action, scope)) {\n return action;\n }\n\n return null;\n}\n\nfunction validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope) {\n for (let i = 0, len = matches.length; i < len; i++) {\n const match = matches[i];\n const matchElement = matchElements[i];\n const matchAction = match.getAction(pointer, event, interaction, matchElement);\n\n if (!matchAction) {\n continue;\n }\n\n const action = validateAction(matchAction, match, matchElement, eventTarget, scope);\n\n if (action) {\n return {\n action,\n interactable: match,\n element: matchElement\n };\n }\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction getActionInfo(interaction, pointer, event, eventTarget, scope) {\n let matches = [];\n let matchElements = [];\n let element = eventTarget;\n\n function pushMatches(interactable) {\n matches.push(interactable);\n matchElements.push(element);\n }\n\n while (is.element(element)) {\n matches = [];\n matchElements = [];\n scope.interactables.forEachMatch(element, pushMatches);\n const actionInfo = validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope);\n\n if (actionInfo.action && !actionInfo.interactable.options[actionInfo.action.name].manualStart) {\n return actionInfo;\n }\n\n element = domUtils.parentNode(element);\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction prepare(interaction, {\n action,\n interactable,\n element\n}, scope) {\n action = action || {\n name: null\n };\n interaction.interactable = interactable;\n interaction.element = element;\n copyAction(interaction.prepared, action);\n interaction.rect = interactable && action.name ? interactable.getRect(element) : null;\n setInteractionCursor(interaction, scope);\n scope.fire('autoStart:prepared', {\n interaction\n });\n}\n\nfunction withinInteractionLimit(interactable, element, action, scope) {\n const options = interactable.options;\n const maxActions = options[action.name].max;\n const maxPerElement = options[action.name].maxPerElement;\n const autoStartMax = scope.autoStart.maxInteractions;\n let activeInteractions = 0;\n let interactableCount = 0;\n let elementCount = 0; // no actions if any of these values == 0\n\n if (!(maxActions && maxPerElement && autoStartMax)) {\n return false;\n }\n\n for (const interaction of scope.interactions.list) {\n const otherAction = interaction.prepared.name;\n\n if (!interaction.interacting()) {\n continue;\n }\n\n activeInteractions++;\n\n if (activeInteractions >= autoStartMax) {\n return false;\n }\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interactableCount += otherAction === action.name ? 1 : 0;\n\n if (interactableCount >= maxActions) {\n return false;\n }\n\n if (interaction.element === element) {\n elementCount++;\n\n if (otherAction === action.name && elementCount >= maxPerElement) {\n return false;\n }\n }\n }\n\n return autoStartMax > 0;\n}\n\nfunction maxInteractions(newValue, scope) {\n if (is.number(newValue)) {\n scope.autoStart.maxInteractions = newValue;\n return this;\n }\n\n return scope.autoStart.maxInteractions;\n}\n\nfunction setCursor(element, cursor, scope) {\n const {\n cursorElement: prevCursorElement\n } = scope.autoStart;\n\n if (prevCursorElement && prevCursorElement !== element) {\n prevCursorElement.style.cursor = '';\n }\n\n element.ownerDocument.documentElement.style.cursor = cursor;\n element.style.cursor = cursor;\n scope.autoStart.cursorElement = cursor ? element : null;\n}\n\nfunction setInteractionCursor(interaction, scope) {\n const {\n interactable,\n element,\n prepared\n } = interaction;\n\n if (!(interaction.pointerType === 'mouse' && interactable && interactable.options.styleCursor)) {\n // clear previous target element cursor\n if (scope.autoStart.cursorElement) {\n setCursor(scope.autoStart.cursorElement, '', scope);\n }\n\n return;\n }\n\n let cursor = '';\n\n if (prepared.name) {\n const cursorChecker = interactable.options[prepared.name].cursorChecker;\n\n if (is.func(cursorChecker)) {\n cursor = cursorChecker(prepared, interactable, element, interaction._interacting);\n } else {\n cursor = scope.actions.map[prepared.name].getCursor(prepared);\n }\n }\n\n setCursor(interaction.element, cursor || '', scope);\n}\n\nconst autoStart = {\n id: 'auto-start/base',\n before: ['actions'],\n install,\n listeners: {\n 'interactions:down': prepareOnDown,\n 'interactions:move': (arg, scope) => {\n prepareOnMove(arg, scope);\n startOnMove(arg, scope);\n },\n 'interactions:stop': clearCursorOnStop\n },\n maxInteractions,\n withinInteractionLimit,\n validateAction\n};\nexport default autoStart;\n//# sourceMappingURL=base.js.map","import { parentNode } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport autoStart from \"./base.js\";\n\nfunction beforeStart({\n interaction,\n eventTarget,\n dx,\n dy\n}, scope) {\n if (interaction.prepared.name !== 'drag') {\n return;\n } // check if a drag is in the correct axis\n\n\n const absX = Math.abs(dx);\n const absY = Math.abs(dy);\n const targetOptions = interaction.interactable.options.drag;\n const startAxis = targetOptions.startAxis;\n const currentAxis = absX > absY ? 'x' : absX < absY ? 'y' : 'xy';\n interaction.prepared.axis = targetOptions.lockAxis === 'start' ? currentAxis[0] // always lock to one axis even if currentAxis === 'xy'\n : targetOptions.lockAxis; // if the movement isn't in the startAxis of the interactable\n\n if (currentAxis !== 'xy' && startAxis !== 'xy' && startAxis !== currentAxis) {\n // cancel the prepared action\n interaction.prepared.name = null; // then try to get a drag from another ineractable\n\n let element = eventTarget;\n\n const getDraggable = function (interactable) {\n if (interactable === interaction.interactable) {\n return;\n }\n\n const options = interaction.interactable.options.drag;\n\n if (!options.manualStart && interactable.testIgnoreAllow(options, element, eventTarget)) {\n const action = interactable.getAction(interaction.downPointer, interaction.downEvent, interaction, element);\n\n if (action && action.name === 'drag' && checkStartAxis(currentAxis, interactable) && autoStart.validateAction(action, interactable, element, eventTarget, scope)) {\n return interactable;\n }\n }\n }; // check all interactables\n\n\n while (is.element(element)) {\n const interactable = scope.interactables.forEachMatch(element, getDraggable);\n\n if (interactable) {\n interaction.prepared.name = 'drag';\n interaction.interactable = interactable;\n interaction.element = element;\n break;\n }\n\n element = parentNode(element);\n }\n }\n}\n\nfunction checkStartAxis(startAxis, interactable) {\n if (!interactable) {\n return false;\n }\n\n const thisAxis = interactable.options.drag.startAxis;\n return startAxis === 'xy' || thisAxis === 'xy' || thisAxis === startAxis;\n}\n\nexport default {\n id: 'auto-start/dragAxis',\n listeners: {\n 'autoStart:before-start': beforeStart\n }\n};\n//# sourceMappingURL=dragAxis.js.map","import Interaction from \"../core/Interaction.js\";\nimport basePlugin from \"./base.js\";\n\nfunction install(scope) {\n const {\n defaults\n } = scope;\n scope.usePlugin(basePlugin);\n defaults.perAction.hold = 0;\n defaults.perAction.delay = 0;\n}\n\nfunction getHoldDuration(interaction) {\n const actionName = interaction.prepared && interaction.prepared.name;\n\n if (!actionName) {\n return null;\n }\n\n const options = interaction.interactable.options;\n return options[actionName].hold || options[actionName].delay;\n}\n\nconst hold = {\n id: 'auto-start/hold',\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.autoStartHoldTimer = null;\n },\n 'autoStart:prepared': ({\n interaction\n }) => {\n const hold = getHoldDuration(interaction);\n\n if (hold > 0) {\n interaction.autoStartHoldTimer = setTimeout(() => {\n interaction.start(interaction.prepared, interaction.interactable, interaction.element);\n }, hold);\n }\n },\n 'interactions:move': ({\n interaction,\n duplicate\n }) => {\n if (interaction.autoStartHoldTimer && interaction.pointerWasMoved && !duplicate) {\n clearTimeout(interaction.autoStartHoldTimer);\n interaction.autoStartHoldTimer = null;\n }\n },\n // prevent regular down->move autoStart\n 'autoStart:before-start': ({\n interaction\n }) => {\n const holdDuration = getHoldDuration(interaction);\n\n if (holdDuration > 0) {\n interaction.prepared.name = null;\n }\n }\n },\n getHoldDuration\n};\nexport default hold;\n//# sourceMappingURL=hold.js.map","import autoStart from \"./base.js\";\nimport dragAxis from \"./dragAxis.js\";\nimport hold from \"./hold.js\";\nexport default {\n id: 'auto-start',\n\n install(scope) {\n scope.usePlugin(autoStart);\n scope.usePlugin(hold);\n scope.usePlugin(dragAxis);\n }\n\n};\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n Interactable,\n defaults\n } = scope;\n Interactable.prototype.draggable = drag.draggable;\n actions.map.drag = drag;\n actions.methodDict.drag = 'draggable';\n defaults.actions.drag = drag.defaults;\n}\n\nfunction beforeMove({\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x') {\n interaction.coords.cur.page.y = interaction.coords.start.page.y;\n interaction.coords.cur.client.y = interaction.coords.start.client.y;\n interaction.coords.velocity.client.y = 0;\n interaction.coords.velocity.page.y = 0;\n } else if (axis === 'y') {\n interaction.coords.cur.page.x = interaction.coords.start.page.x;\n interaction.coords.cur.client.x = interaction.coords.start.client.x;\n interaction.coords.velocity.client.x = 0;\n interaction.coords.velocity.page.x = 0;\n }\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x' || axis === 'y') {\n const opposite = axis === 'x' ? 'y' : 'x';\n iEvent.page[opposite] = interaction.coords.start.page[opposite];\n iEvent.client[opposite] = interaction.coords.start.client[opposite];\n iEvent.delta[opposite] = 0;\n }\n}\n/**\n * ```js\n * interact(element).draggable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * // the axis in which the first movement must be\n * // for the drag sequence to start\n * // 'xy' by default - any direction\n * startAxis: 'x' || 'y' || 'xy',\n *\n * // 'xy' by default - don't restrict to one axis (move in any direction)\n * // 'x' or 'y' to restrict movement to either axis\n * // 'start' to restrict movement to the axis the drag started in\n * lockAxis: 'x' || 'y' || 'xy' || 'start',\n *\n * // max number of drags that can happen concurrently\n * // with elements of this Interactable. Infinity by default\n * max: Infinity,\n *\n * // max number of drags that can target the same element+Interactable\n * // 1 by default\n * maxPerElement: 2\n * })\n *\n * var isDraggable = interact('element').draggable(); // true\n * ```\n *\n * Get or set whether drag actions can be performed on the target\n *\n * @alias Interactable.prototype.draggable\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on drag events (object makes the Interactable\n * draggable)\n * @return {boolean | Interactable} boolean indicating if this can be the\n * target of drag events, or this Interctable\n */\n\n\nconst draggable = function draggable(options) {\n if (is.object(options)) {\n this.options.drag.enabled = options.enabled !== false;\n this.setPerAction('drag', options);\n this.setOnEvents('drag', options);\n\n if (/^(xy|x|y|start)$/.test(options.lockAxis)) {\n this.options.drag.lockAxis = options.lockAxis;\n }\n\n if (/^(xy|x|y)$/.test(options.startAxis)) {\n this.options.drag.startAxis = options.startAxis;\n }\n\n return this;\n }\n\n if (is.bool(options)) {\n this.options.drag.enabled = options;\n return this;\n }\n\n return this.options.drag;\n};\n\nconst drag = {\n id: 'actions/drag',\n install,\n listeners: {\n 'interactions:before-action-move': beforeMove,\n 'interactions:action-resume': beforeMove,\n // dragmove\n 'interactions:action-move': move,\n 'auto-start:check': arg => {\n const {\n interaction,\n interactable,\n buttons\n } = arg;\n const dragOptions = interactable.options.drag;\n\n if (!(dragOptions && dragOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & interactable.options.drag.mouseButtons) === 0) {\n return undefined;\n }\n\n arg.action = {\n name: 'drag',\n axis: dragOptions.lockAxis === 'start' ? dragOptions.startAxis : dragOptions.lockAxis\n };\n return false;\n }\n },\n draggable,\n beforeMove,\n move,\n defaults: {\n startAxis: 'xy',\n lockAxis: 'xy'\n },\n\n getCursor() {\n return 'move';\n }\n\n};\nexport default drag;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport { Interaction } from \"../../core/Interaction.js\";\nimport * as dom from \"../../utils/domUtils.js\";\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n browser,\n\n /** @lends Interactable */\n Interactable,\n // tslint:disable-line no-shadowed-variable\n defaults\n } = scope; // Less Precision with touch input\n\n resize.cursors = initCursors(browser);\n resize.defaultMargin = browser.supportsTouch || browser.supportsPointerEvent ? 20 : 10;\n /**\n * ```js\n * interact(element).resizable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * edges: {\n * top : true, // Use pointer coords to check for resize.\n * left : false, // Disable resizing from left edge.\n * bottom: '.resize-s',// Resize if pointer target matches selector\n * right : handleEl // Resize if pointer target is the given Element\n * },\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height are adjusted at a 1:1 ratio.\n * square: false,\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height maintain the aspect ratio they had when resizing started.\n * preserveAspectRatio: false,\n *\n * // a value of 'none' will limit the resize rect to a minimum of 0x0\n * // 'negate' will allow the rect to have negative width/height\n * // 'reposition' will keep the width/height positive by swapping\n * // the top and bottom edges and/or swapping the left and right edges\n * invert: 'none' || 'negate' || 'reposition'\n *\n * // limit multiple resizes.\n * // See the explanation in the {@link Interactable.draggable} example\n * max: Infinity,\n * maxPerElement: 1,\n * })\n *\n * var isResizeable = interact(element).resizable()\n * ```\n *\n * Gets or sets whether resize actions can be performed on the target\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on resize events (object makes the Interactable\n * resizable)\n * @return {boolean | Interactable} A boolean indicating if this can be the\n * target of resize elements, or this Interactable\n */\n\n Interactable.prototype.resizable = function (options) {\n return resizable(this, options, scope);\n };\n\n actions.map.resize = resize;\n actions.methodDict.resize = 'resizable';\n defaults.actions.resize = resize.defaults;\n}\n\nfunction resizeChecker(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n buttons\n } = arg;\n\n if (!rect) {\n return undefined;\n }\n\n const page = extend({}, interaction.coords.cur.page);\n const resizeOptions = interactable.options.resize;\n\n if (!(resizeOptions && resizeOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & resizeOptions.mouseButtons) === 0) {\n return undefined;\n } // if using resize.edges\n\n\n if (is.object(resizeOptions.edges)) {\n const resizeEdges = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n\n for (const edge in resizeEdges) {\n resizeEdges[edge] = checkResizeEdge(edge, resizeOptions.edges[edge], page, interaction._latestPointer.eventTarget, element, rect, resizeOptions.margin || resize.defaultMargin);\n }\n\n resizeEdges.left = resizeEdges.left && !resizeEdges.right;\n resizeEdges.top = resizeEdges.top && !resizeEdges.bottom;\n\n if (resizeEdges.left || resizeEdges.right || resizeEdges.top || resizeEdges.bottom) {\n arg.action = {\n name: 'resize',\n edges: resizeEdges\n };\n }\n } else {\n const right = resizeOptions.axis !== 'y' && page.x > rect.right - resize.defaultMargin;\n const bottom = resizeOptions.axis !== 'x' && page.y > rect.bottom - resize.defaultMargin;\n\n if (right || bottom) {\n arg.action = {\n name: 'resize',\n axes: (right ? 'x' : '') + (bottom ? 'y' : '')\n };\n }\n }\n\n return arg.action ? false : undefined;\n}\n\nfunction resizable(interactable, options, scope) {\n if (is.object(options)) {\n interactable.options.resize.enabled = options.enabled !== false;\n interactable.setPerAction('resize', options);\n interactable.setOnEvents('resize', options);\n\n if (is.string(options.axis) && /^x$|^y$|^xy$/.test(options.axis)) {\n interactable.options.resize.axis = options.axis;\n } else if (options.axis === null) {\n interactable.options.resize.axis = scope.defaults.actions.resize.axis;\n }\n\n if (is.bool(options.preserveAspectRatio)) {\n interactable.options.resize.preserveAspectRatio = options.preserveAspectRatio;\n } else if (is.bool(options.square)) {\n interactable.options.resize.square = options.square;\n }\n\n return interactable;\n }\n\n if (is.bool(options)) {\n interactable.options.resize.enabled = options;\n return interactable;\n }\n\n return interactable.options.resize;\n}\n\nfunction checkResizeEdge(name, value, page, element, interactableElement, rect, margin) {\n // false, '', undefined, null\n if (!value) {\n return false;\n } // true value, use pointer coords and element rect\n\n\n if (value === true) {\n // if dimensions are negative, \"switch\" edges\n const width = is.number(rect.width) ? rect.width : rect.right - rect.left;\n const height = is.number(rect.height) ? rect.height : rect.bottom - rect.top; // don't use margin greater than half the relevent dimension\n\n margin = Math.min(margin, Math.abs((name === 'left' || name === 'right' ? width : height) / 2));\n\n if (width < 0) {\n if (name === 'left') {\n name = 'right';\n } else if (name === 'right') {\n name = 'left';\n }\n }\n\n if (height < 0) {\n if (name === 'top') {\n name = 'bottom';\n } else if (name === 'bottom') {\n name = 'top';\n }\n }\n\n if (name === 'left') {\n return page.x < (width >= 0 ? rect.left : rect.right) + margin;\n }\n\n if (name === 'top') {\n return page.y < (height >= 0 ? rect.top : rect.bottom) + margin;\n }\n\n if (name === 'right') {\n return page.x > (width >= 0 ? rect.right : rect.left) - margin;\n }\n\n if (name === 'bottom') {\n return page.y > (height >= 0 ? rect.bottom : rect.top) - margin;\n }\n } // the remaining checks require an element\n\n\n if (!is.element(element)) {\n return false;\n }\n\n return is.element(value) // the value is an element to use as a resize handle\n ? value === element // otherwise check if element matches value as selector\n : dom.matchesUpTo(element, value, interactableElement);\n}\n/* eslint-disable multiline-ternary */\n\n\nfunction initCursors(browser) {\n return browser.isIe9 ? {\n x: 'e-resize',\n y: 's-resize',\n xy: 'se-resize',\n top: 'n-resize',\n left: 'w-resize',\n bottom: 's-resize',\n right: 'e-resize',\n topleft: 'se-resize',\n bottomright: 'se-resize',\n topright: 'ne-resize',\n bottomleft: 'ne-resize'\n } : {\n x: 'ew-resize',\n y: 'ns-resize',\n xy: 'nwse-resize',\n top: 'ns-resize',\n left: 'ew-resize',\n bottom: 'ns-resize',\n right: 'ew-resize',\n topleft: 'nwse-resize',\n bottomright: 'nwse-resize',\n topright: 'nesw-resize',\n bottomleft: 'nesw-resize'\n };\n}\n/* eslint-enable multiline-ternary */\n\n\nfunction start({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const rect = interaction.rect;\n interaction._rects = {\n start: extend({}, rect),\n corrected: extend({}, rect),\n previous: extend({}, rect),\n delta: {\n left: 0,\n right: 0,\n width: 0,\n top: 0,\n bottom: 0,\n height: 0\n }\n };\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const resizeOptions = interaction.interactable.options.resize;\n const invert = resizeOptions.invert;\n const invertible = invert === 'reposition' || invert === 'negate';\n const current = interaction.rect;\n const {\n start: startRect,\n corrected,\n delta: deltaRect,\n previous\n } = interaction._rects;\n extend(previous, corrected);\n\n if (invertible) {\n // if invertible, copy the current rect\n extend(corrected, current);\n\n if (invert === 'reposition') {\n // swap edge values if necessary to keep width/height positive\n if (corrected.top > corrected.bottom) {\n const swap = corrected.top;\n corrected.top = corrected.bottom;\n corrected.bottom = swap;\n }\n\n if (corrected.left > corrected.right) {\n const swap = corrected.left;\n corrected.left = corrected.right;\n corrected.right = swap;\n }\n }\n } else {\n // if not invertible, restrict to minimum of 0x0 rect\n corrected.top = Math.min(current.top, startRect.bottom);\n corrected.bottom = Math.max(current.bottom, startRect.top);\n corrected.left = Math.min(current.left, startRect.right);\n corrected.right = Math.max(current.right, startRect.left);\n }\n\n corrected.width = corrected.right - corrected.left;\n corrected.height = corrected.bottom - corrected.top;\n\n for (const edge in corrected) {\n deltaRect[edge] = corrected[edge] - previous[edge];\n }\n\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = corrected;\n resizeEvent.deltaRect = deltaRect;\n}\n\nfunction end({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction updateEventAxes({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.resizeAxes) {\n return;\n }\n\n const options = interaction.interactable.options;\n const resizeEvent = iEvent;\n\n if (options.resize.square) {\n if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = resizeEvent.delta.y;\n } else {\n resizeEvent.delta.y = resizeEvent.delta.x;\n }\n\n resizeEvent.axes = 'xy';\n } else {\n resizeEvent.axes = interaction.resizeAxes;\n\n if (interaction.resizeAxes === 'x') {\n resizeEvent.delta.y = 0;\n } else if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = 0;\n }\n }\n}\n\nconst resize = {\n id: 'actions/resize',\n before: ['actions/drag'],\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.resizeAxes = 'xy';\n },\n 'interactions:action-start': arg => {\n start(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-move': arg => {\n move(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-end': end,\n 'auto-start:check': resizeChecker\n },\n defaults: {\n square: false,\n preserveAspectRatio: false,\n axis: 'xy',\n // use default margin\n margin: NaN,\n // object with props left, right, top, bottom which are\n // true/false values to resize when the pointer is over that edge,\n // CSS selectors to match the handles for each direction\n // or the Elements for each handle\n edges: null,\n // a value of 'none' will limit the resize rect to a minimum of 0x0\n // 'negate' will alow the rect to have negative width/height\n // 'reposition' will keep the width/height positive by swapping\n // the top and bottom edges and/or swapping the left and right edges\n invert: 'none'\n },\n cursors: null,\n\n getCursor({\n edges,\n axis,\n name\n }) {\n const cursors = resize.cursors;\n let result = null;\n\n if (axis) {\n result = cursors[name + axis];\n } else if (edges) {\n let cursorKey = '';\n\n for (const edge of ['top', 'bottom', 'left', 'right']) {\n if (edges[edge]) {\n cursorKey += edge;\n }\n }\n\n result = cursors[cursorKey];\n }\n\n return result;\n },\n\n defaultMargin: null\n};\nexport default resize;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export default (() => {});\n//# sourceMappingURL=edgeTarget.js.map","export default (() => {});\n//# sourceMappingURL=elements.js.map","export default (grid => {\n const coordFields = [['x', 'y'], ['left', 'top'], ['right', 'bottom'], ['width', 'height']].filter(([xField, yField]) => xField in grid || yField in grid);\n\n const gridFunc = (x, y) => {\n const {\n range,\n limits = {\n left: -Infinity,\n right: Infinity,\n top: -Infinity,\n bottom: Infinity\n },\n offset = {\n x: 0,\n y: 0\n }\n } = grid;\n const result = {\n range,\n grid,\n x: null,\n y: null\n };\n\n for (const [xField, yField] of coordFields) {\n const gridx = Math.round((x - offset.x) / grid[xField]);\n const gridy = Math.round((y - offset.y) / grid[yField]);\n result[xField] = Math.max(limits.left, Math.min(limits.right, gridx * grid[xField] + offset.x));\n result[yField] = Math.max(limits.top, Math.min(limits.bottom, gridy * grid[yField] + offset.y));\n }\n\n return result;\n };\n\n gridFunc.grid = grid;\n gridFunc.coordFields = coordFields;\n return gridFunc;\n});\n//# sourceMappingURL=grid.js.map","export { default as edgeTarget } from \"./edgeTarget.js\";\nexport { default as elements } from \"./elements.js\";\nexport { default as grid } from \"./grid.js\";\n//# sourceMappingURL=all.js.map","import extend from \"../utils/extend.js\";\nimport * as allSnappers from \"./all.js\";\nconst snappersPlugin = {\n id: 'snappers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n interact.snappers = extend(interact.snappers || {}, allSnappers);\n interact.createSnapGrid = interact.snappers.grid;\n }\n\n};\nexport default snappersPlugin;\n//# sourceMappingURL=plugin.js.map","import clone from \"../utils/clone.js\";\nimport extend from \"../utils/extend.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nexport default class Modification {\n constructor(interaction) {\n this.states = [];\n this.startOffset = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n };\n this.startDelta = null;\n this.result = null;\n this.endResult = null;\n this.edges = void 0;\n this.interaction = void 0;\n this.interaction = interaction;\n this.result = createResult();\n }\n\n start({\n phase\n }, pageCoords) {\n const {\n interaction\n } = this;\n const modifierList = getModifierList(interaction);\n this.prepareStates(modifierList);\n this.edges = extend({}, interaction.edges);\n this.startOffset = getRectOffset(interaction.rect, pageCoords);\n this.startDelta = {\n x: 0,\n y: 0\n };\n const arg = {\n phase,\n pageCoords,\n preEnd: false\n };\n this.result = createResult();\n this.startAll(arg);\n const result = this.result = this.setAll(arg);\n return result;\n }\n\n fillArg(arg) {\n const {\n interaction\n } = this;\n arg.interaction = interaction;\n arg.interactable = interaction.interactable;\n arg.element = interaction.element;\n arg.rect = arg.rect || interaction.rect;\n arg.edges = this.edges;\n arg.startOffset = this.startOffset;\n }\n\n startAll(arg) {\n this.fillArg(arg);\n\n for (const state of this.states) {\n if (state.methods.start) {\n arg.state = state;\n state.methods.start(arg);\n }\n }\n }\n\n setAll(arg) {\n this.fillArg(arg);\n const {\n phase,\n preEnd,\n skipModifiers,\n rect: unmodifiedRect\n } = arg;\n arg.coords = extend({}, arg.pageCoords);\n arg.rect = extend({}, unmodifiedRect);\n const states = skipModifiers ? this.states.slice(skipModifiers) : this.states;\n const newResult = createResult(arg.coords, arg.rect);\n\n for (const state of states) {\n const {\n options\n } = state;\n const lastModifierCoords = extend({}, arg.coords);\n let returnValue = null;\n\n if (state.methods.set && this.shouldDo(options, preEnd, phase)) {\n arg.state = state;\n returnValue = state.methods.set(arg);\n rectUtils.addEdges(this.interaction.edges, arg.rect, {\n x: arg.coords.x - lastModifierCoords.x,\n y: arg.coords.y - lastModifierCoords.y\n });\n }\n\n newResult.eventProps.push(returnValue);\n }\n\n newResult.delta.x = arg.coords.x - arg.pageCoords.x;\n newResult.delta.y = arg.coords.y - arg.pageCoords.y;\n newResult.rectDelta.left = arg.rect.left - unmodifiedRect.left;\n newResult.rectDelta.right = arg.rect.right - unmodifiedRect.right;\n newResult.rectDelta.top = arg.rect.top - unmodifiedRect.top;\n newResult.rectDelta.bottom = arg.rect.bottom - unmodifiedRect.bottom;\n const prevCoords = this.result.coords;\n const prevRect = this.result.rect;\n\n if (prevCoords && prevRect) {\n const rectChanged = newResult.rect.left !== prevRect.left || newResult.rect.right !== prevRect.right || newResult.rect.top !== prevRect.top || newResult.rect.bottom !== prevRect.bottom;\n newResult.changed = rectChanged || prevCoords.x !== newResult.coords.x || prevCoords.y !== newResult.coords.y;\n }\n\n return newResult;\n }\n\n applyToInteraction(arg) {\n const {\n interaction\n } = this;\n const {\n phase\n } = arg;\n const curCoords = interaction.coords.cur;\n const startCoords = interaction.coords.start;\n const {\n result,\n startDelta\n } = this;\n const curDelta = result.delta;\n\n if (phase === 'start') {\n extend(this.startDelta, result.delta);\n }\n\n for (const [coordsSet, delta] of [[startCoords, startDelta], [curCoords, curDelta]]) {\n coordsSet.page.x += delta.x;\n coordsSet.page.y += delta.y;\n coordsSet.client.x += delta.x;\n coordsSet.client.y += delta.y;\n }\n\n const {\n rectDelta\n } = this.result;\n const rect = arg.rect || interaction.rect;\n rect.left += rectDelta.left;\n rect.right += rectDelta.right;\n rect.top += rectDelta.top;\n rect.bottom += rectDelta.bottom;\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n setAndApply(arg) {\n const {\n interaction\n } = this;\n const {\n phase,\n preEnd,\n skipModifiers\n } = arg;\n const result = this.setAll({\n preEnd,\n phase,\n pageCoords: arg.modifiedCoords || interaction.coords.cur.page\n });\n this.result = result; // don't fire an action move if a modifier would keep the event in the same\n // cordinates as before\n\n if (!result.changed && (!skipModifiers || skipModifiers < this.states.length) && interaction.interacting()) {\n return false;\n }\n\n if (arg.modifiedCoords) {\n const {\n page\n } = interaction.coords.cur;\n const adjustment = {\n x: arg.modifiedCoords.x - page.x,\n y: arg.modifiedCoords.y - page.y\n };\n result.coords.x += adjustment.x;\n result.coords.y += adjustment.y;\n result.delta.x += adjustment.x;\n result.delta.y += adjustment.y;\n }\n\n this.applyToInteraction(arg);\n }\n\n beforeEnd(arg) {\n const {\n interaction,\n event\n } = arg;\n const states = this.states;\n\n if (!states || !states.length) {\n return;\n }\n\n let doPreend = false;\n\n for (const state of states) {\n arg.state = state;\n const {\n options,\n methods\n } = state;\n const endPosition = methods.beforeEnd && methods.beforeEnd(arg);\n\n if (endPosition) {\n this.endResult = endPosition;\n return false;\n }\n\n doPreend = doPreend || !doPreend && this.shouldDo(options, true, arg.phase, true);\n }\n\n if (doPreend) {\n // trigger a final modified move before ending\n interaction.move({\n event,\n preEnd: true\n });\n }\n }\n\n stop(arg) {\n const {\n interaction\n } = arg;\n\n if (!this.states || !this.states.length) {\n return;\n }\n\n const modifierArg = extend({\n states: this.states,\n interactable: interaction.interactable,\n element: interaction.element,\n rect: null\n }, arg);\n this.fillArg(modifierArg);\n\n for (const state of this.states) {\n modifierArg.state = state;\n\n if (state.methods.stop) {\n state.methods.stop(modifierArg);\n }\n }\n\n this.states = null;\n this.endResult = null;\n }\n\n prepareStates(modifierList) {\n this.states = [];\n\n for (let index = 0; index < modifierList.length; index++) {\n const {\n options,\n methods,\n name\n } = modifierList[index];\n this.states.push({\n options,\n methods,\n index,\n name\n });\n }\n\n return this.states;\n }\n\n restoreInteractionCoords({\n interaction: {\n coords,\n rect,\n modification\n }\n }) {\n if (!modification.result) {\n return;\n }\n\n const {\n startDelta\n } = modification;\n const {\n delta: curDelta,\n rectDelta\n } = modification.result;\n const coordsAndDeltas = [[coords.start, startDelta], [coords.cur, curDelta]];\n\n for (const [coordsSet, delta] of coordsAndDeltas) {\n coordsSet.page.x -= delta.x;\n coordsSet.page.y -= delta.y;\n coordsSet.client.x -= delta.x;\n coordsSet.client.y -= delta.y;\n }\n\n rect.left -= rectDelta.left;\n rect.right -= rectDelta.right;\n rect.top -= rectDelta.top;\n rect.bottom -= rectDelta.bottom;\n }\n\n shouldDo(options, preEnd, phase, requireEndOnly) {\n if ( // ignore disabled modifiers\n !options || options.enabled === false || // check if we require endOnly option to fire move before end\n requireEndOnly && !options.endOnly || // don't apply endOnly modifiers when not ending\n options.endOnly && !preEnd || // check if modifier should run be applied on start\n phase === 'start' && !options.setStart) {\n return false;\n }\n\n return true;\n }\n\n copyFrom(other) {\n this.startOffset = other.startOffset;\n this.startDelta = other.startDelta;\n this.edges = other.edges;\n this.states = other.states.map(s => clone(s));\n this.result = createResult(extend({}, other.result.coords), extend({}, other.result.rect));\n }\n\n destroy() {\n for (const prop in this) {\n this[prop] = null;\n }\n }\n\n}\n\nfunction createResult(coords, rect) {\n return {\n rect,\n coords,\n delta: {\n x: 0,\n y: 0\n },\n rectDelta: {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n },\n eventProps: [],\n changed: true\n };\n}\n\nfunction getModifierList(interaction) {\n const actionOptions = interaction.interactable.options[interaction.prepared.name];\n const actionModifiers = actionOptions.modifiers;\n\n if (actionModifiers && actionModifiers.length) {\n return actionModifiers;\n }\n\n return ['snap', 'snapSize', 'snapEdges', 'restrict', 'restrictEdges', 'restrictSize'].map(type => {\n const options = actionOptions[type];\n return options && options.enabled && {\n options,\n methods: options._methods\n };\n }).filter(m => !!m);\n}\n\nexport function getRectOffset(rect, coords) {\n return rect ? {\n left: coords.x - rect.left,\n top: coords.y - rect.top,\n right: rect.right - coords.x,\n bottom: rect.bottom - coords.y\n } : {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n };\n}\n//# sourceMappingURL=Modification.js.map","import { InteractEvent } from \"../core/InteractEvent.js\";\nimport Interaction from \"../core/Interaction.js\";\nimport Modification from \"./Modification.js\";\nexport function makeModifier(module, name) {\n const {\n defaults\n } = module;\n const methods = {\n start: module.start,\n set: module.set,\n beforeEnd: module.beforeEnd,\n stop: module.stop\n };\n\n const modifier = _options => {\n const options = _options || {};\n options.enabled = options.enabled !== false; // add missing defaults to options\n\n for (const prop in defaults) {\n if (!(prop in options)) {\n options[prop] = defaults[prop];\n }\n }\n\n const m = {\n options,\n methods,\n name,\n enable: () => {\n options.enabled = true;\n return m;\n },\n disable: () => {\n options.enabled = false;\n return m;\n }\n };\n return m;\n };\n\n if (name && typeof name === 'string') {\n // for backwrads compatibility\n modifier._defaults = defaults;\n modifier._methods = methods;\n }\n\n return modifier;\n}\nexport function addEventModifiers({\n iEvent,\n interaction: {\n modification: {\n result\n }\n }\n}) {\n if (result) {\n iEvent.modifiers = result.eventProps;\n }\n}\nconst modifiersBase = {\n id: 'modifiers/base',\n before: ['actions'],\n install: scope => {\n scope.defaults.perAction.modifiers = [];\n },\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.modification = new Modification(interaction);\n },\n 'interactions:before-action-start': arg => {\n const {\n modification\n } = arg.interaction;\n modification.start(arg, arg.interaction.coords.start.page);\n arg.interaction.edges = modification.edges;\n modification.applyToInteraction(arg);\n },\n 'interactions:before-action-move': arg => arg.interaction.modification.setAndApply(arg),\n 'interactions:before-action-end': arg => arg.interaction.modification.beforeEnd(arg),\n 'interactions:action-start': addEventModifiers,\n 'interactions:action-move': addEventModifiers,\n 'interactions:action-end': addEventModifiers,\n 'interactions:after-action-start': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:after-action-move': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:stop': arg => arg.interaction.modification.stop(arg)\n }\n};\nexport default modifiersBase;\n//# sourceMappingURL=base.js.map","/**\n * @module modifiers/aspectRatio\n *\n * @description\n * This module forces elements to be resized with a specified dx/dy ratio.\n *\n * ```js\n * interact(target).resizable({\n * modifiers: [\n * interact.modifiers.snapSize({\n * targets: [ interact.snappers.grid({ x: 20, y: 20 }) ],\n * }),\n * interact.aspectRatio({ ratio: 'preserve' }),\n * ],\n * });\n * ```\n */\nimport extend from \"../utils/extend.js\";\nimport { addEdges } from \"../utils/rect.js\";\nimport Modification from \"./Modification.js\";\nimport { makeModifier } from \"./base.js\";\nconst aspectRatio = {\n start(arg) {\n const {\n state,\n rect,\n edges: originalEdges,\n pageCoords: coords\n } = arg;\n let {\n ratio\n } = state.options;\n const {\n equalDelta,\n modifiers\n } = state.options;\n\n if (ratio === 'preserve') {\n ratio = rect.width / rect.height;\n }\n\n state.startCoords = extend({}, coords);\n state.startRect = extend({}, rect);\n state.ratio = ratio;\n state.equalDelta = equalDelta;\n const linkedEdges = state.linkedEdges = {\n top: originalEdges.top || originalEdges.left && !originalEdges.bottom,\n left: originalEdges.left || originalEdges.top && !originalEdges.right,\n bottom: originalEdges.bottom || originalEdges.right && !originalEdges.top,\n right: originalEdges.right || originalEdges.bottom && !originalEdges.left\n };\n state.xIsPrimaryAxis = !!(originalEdges.left || originalEdges.right);\n\n if (state.equalDelta) {\n state.edgeSign = (linkedEdges.left ? 1 : -1) * (linkedEdges.top ? 1 : -1);\n } else {\n const negativeSecondaryEdge = state.xIsPrimaryAxis ? linkedEdges.top : linkedEdges.left;\n state.edgeSign = negativeSecondaryEdge ? -1 : 1;\n }\n\n extend(arg.edges, linkedEdges);\n\n if (!modifiers || !modifiers.length) {\n return;\n }\n\n const subModification = new Modification(arg.interaction);\n subModification.copyFrom(arg.interaction.modification);\n subModification.prepareStates(modifiers);\n state.subModification = subModification;\n subModification.startAll({ ...arg\n });\n },\n\n set(arg) {\n const {\n state,\n rect,\n coords\n } = arg;\n const initialCoords = extend({}, coords);\n const aspectMethod = state.equalDelta ? setEqualDelta : setRatio;\n aspectMethod(state, state.xIsPrimaryAxis, coords, rect);\n\n if (!state.subModification) {\n return null;\n }\n\n const correctedRect = extend({}, rect);\n addEdges(state.linkedEdges, correctedRect, {\n x: coords.x - initialCoords.x,\n y: coords.y - initialCoords.y\n });\n const result = state.subModification.setAll({ ...arg,\n rect: correctedRect,\n edges: state.linkedEdges,\n pageCoords: coords,\n prevCoords: coords,\n prevRect: correctedRect\n });\n const {\n delta\n } = result;\n\n if (result.changed) {\n const xIsCriticalAxis = Math.abs(delta.x) > Math.abs(delta.y); // do aspect modification again with critical edge axis as primary\n\n aspectMethod(state, xIsCriticalAxis, result.coords, result.rect);\n extend(coords, result.coords);\n }\n\n return result.eventProps;\n },\n\n defaults: {\n ratio: 'preserve',\n equalDelta: false,\n modifiers: [],\n enabled: false\n }\n};\n\nfunction setEqualDelta({\n startCoords,\n edgeSign\n}, xIsPrimaryAxis, coords) {\n if (xIsPrimaryAxis) {\n coords.y = startCoords.y + (coords.x - startCoords.x) * edgeSign;\n } else {\n coords.x = startCoords.x + (coords.y - startCoords.y) * edgeSign;\n }\n}\n\nfunction setRatio({\n startRect,\n startCoords,\n ratio,\n edgeSign\n}, xIsPrimaryAxis, coords, rect) {\n if (xIsPrimaryAxis) {\n const newHeight = rect.width / ratio;\n coords.y = startCoords.y + (newHeight - startRect.height) * edgeSign;\n } else {\n const newWidth = rect.height * ratio;\n coords.x = startCoords.x + (newWidth - startRect.width) * edgeSign;\n }\n}\n\nexport default makeModifier(aspectRatio, 'aspectRatio');\nexport { aspectRatio };\n//# sourceMappingURL=aspectRatio.js.map","const noop = () => {};\n\nnoop._defaults = {};\nexport default noop;\n//# sourceMappingURL=noop.js.map","import extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start({\n rect,\n startOffset,\n state,\n interaction,\n pageCoords\n}) {\n const {\n options\n } = state;\n const {\n elementRect\n } = options;\n const offset = extend({\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n }, options.offset || {});\n\n if (rect && elementRect) {\n const restriction = getRestrictionRect(options.restriction, interaction, pageCoords);\n\n if (restriction) {\n const widthDiff = restriction.right - restriction.left - rect.width;\n const heightDiff = restriction.bottom - restriction.top - rect.height;\n\n if (widthDiff < 0) {\n offset.left += widthDiff;\n offset.right += widthDiff;\n }\n\n if (heightDiff < 0) {\n offset.top += heightDiff;\n offset.bottom += heightDiff;\n }\n }\n\n offset.left += startOffset.left - rect.width * elementRect.left;\n offset.top += startOffset.top - rect.height * elementRect.top;\n offset.right += startOffset.right - rect.width * (1 - elementRect.right);\n offset.bottom += startOffset.bottom - rect.height * (1 - elementRect.bottom);\n }\n\n state.offset = offset;\n}\n\nfunction set({\n coords,\n interaction,\n state\n}) {\n const {\n options,\n offset\n } = state;\n const restriction = getRestrictionRect(options.restriction, interaction, coords);\n\n if (!restriction) {\n return;\n }\n\n const rect = rectUtils.xywhToTlbr(restriction);\n coords.x = Math.max(Math.min(rect.right - offset.right, coords.x), rect.left + offset.left);\n coords.y = Math.max(Math.min(rect.bottom - offset.bottom, coords.y), rect.top + offset.top);\n}\n\nexport function getRestrictionRect(value, interaction, coords) {\n if (is.func(value)) {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element, [coords.x, coords.y, interaction]);\n } else {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element);\n }\n}\nconst defaults = {\n restriction: null,\n elementRect: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrict = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrict, 'restrict');\nexport { restrict };\n//# sourceMappingURL=pointer.js.map","// This module adds the options.resize.restrictEdges setting which sets min and\n// max for the top, left, bottom and right edges of the target being resized.\n//\n// interact(target).resize({\n// edges: { top: true, left: true },\n// restrictEdges: {\n// inner: { top: 200, left: 200, right: 400, bottom: 400 },\n// outer: { top: 0, left: 0, right: 600, bottom: 600 },\n// },\n// })\nimport extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noInner = {\n top: +Infinity,\n left: +Infinity,\n bottom: -Infinity,\n right: -Infinity\n};\nconst noOuter = {\n top: -Infinity,\n left: -Infinity,\n bottom: +Infinity,\n right: +Infinity\n};\n\nfunction start({\n interaction,\n startOffset,\n state\n}) {\n const {\n options\n } = state;\n let offset;\n\n if (options) {\n const offsetRect = getRestrictionRect(options.offset, interaction, interaction.coords.start.page);\n offset = rectUtils.rectToXY(offsetRect);\n }\n\n offset = offset || {\n x: 0,\n y: 0\n };\n state.offset = {\n top: offset.y + startOffset.top,\n left: offset.x + startOffset.left,\n bottom: offset.y - startOffset.bottom,\n right: offset.x - startOffset.right\n };\n}\n\nfunction set({\n coords,\n edges,\n interaction,\n state\n}) {\n const {\n offset,\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const page = extend({}, coords);\n const inner = getRestrictionRect(options.inner, interaction, page) || {};\n const outer = getRestrictionRect(options.outer, interaction, page) || {};\n fixRect(inner, noInner);\n fixRect(outer, noOuter);\n\n if (edges.top) {\n coords.y = Math.min(Math.max(outer.top + offset.top, page.y), inner.top + offset.top);\n } else if (edges.bottom) {\n coords.y = Math.max(Math.min(outer.bottom + offset.bottom, page.y), inner.bottom + offset.bottom);\n }\n\n if (edges.left) {\n coords.x = Math.min(Math.max(outer.left + offset.left, page.x), inner.left + offset.left);\n } else if (edges.right) {\n coords.x = Math.max(Math.min(outer.right + offset.right, page.x), inner.right + offset.right);\n }\n}\n\nfunction fixRect(rect, defaults) {\n for (const edge of ['top', 'left', 'bottom', 'right']) {\n if (!(edge in rect)) {\n rect[edge] = defaults[edge];\n }\n }\n\n return rect;\n}\n\nconst defaults = {\n inner: null,\n outer: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrictEdges = {\n noInner,\n noOuter,\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictEdges, 'restrictEdges');\nexport { restrictEdges };\n//# sourceMappingURL=edges.js.map","import extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrict } from \"./pointer.js\";\nconst defaults = extend({\n get elementRect() {\n return {\n top: 0,\n left: 0,\n bottom: 1,\n right: 1\n };\n },\n\n set elementRect(_) {}\n\n}, restrict.defaults);\nconst restrictRect = {\n start: restrict.start,\n set: restrict.set,\n defaults\n};\nexport default makeModifier(restrictRect, 'restrictRect');\nexport { restrictRect };\n//# sourceMappingURL=rect.js.map","import extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrictEdges } from \"./edges.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noMin = {\n width: -Infinity,\n height: -Infinity\n};\nconst noMax = {\n width: +Infinity,\n height: +Infinity\n};\n\nfunction start(arg) {\n return restrictEdges.start(arg);\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n rect,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const minSize = rectUtils.tlbrToXywh(getRestrictionRect(options.min, interaction, arg.coords)) || noMin;\n const maxSize = rectUtils.tlbrToXywh(getRestrictionRect(options.max, interaction, arg.coords)) || noMax;\n state.options = {\n endOnly: options.endOnly,\n inner: extend({}, restrictEdges.noInner),\n outer: extend({}, restrictEdges.noOuter)\n };\n\n if (edges.top) {\n state.options.inner.top = rect.bottom - minSize.height;\n state.options.outer.top = rect.bottom - maxSize.height;\n } else if (edges.bottom) {\n state.options.inner.bottom = rect.top + minSize.height;\n state.options.outer.bottom = rect.top + maxSize.height;\n }\n\n if (edges.left) {\n state.options.inner.left = rect.right - minSize.width;\n state.options.outer.left = rect.right - maxSize.width;\n } else if (edges.right) {\n state.options.inner.right = rect.left + minSize.width;\n state.options.outer.right = rect.left + maxSize.width;\n }\n\n restrictEdges.set(arg);\n state.options = options;\n}\n\nconst defaults = {\n min: null,\n max: null,\n endOnly: false,\n enabled: false\n};\nconst restrictSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictSize, 'restrictSize');\nexport { restrictSize };\n//# sourceMappingURL=size.js.map","import extend from \"../../utils/extend.js\";\nimport getOriginXY from \"../../utils/getOriginXY.js\";\nimport hypot from \"../../utils/hypot.js\";\nimport is from \"../../utils/is.js\";\nimport { resolveRectLike, rectToXY } from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n state,\n startOffset\n } = arg;\n const {\n options\n } = state;\n const origin = options.offsetWithOrigin ? getOrigin(arg) : {\n x: 0,\n y: 0\n };\n let snapOffset;\n\n if (options.offset === 'startCoords') {\n snapOffset = {\n x: interaction.coords.start.page.x,\n y: interaction.coords.start.page.y\n };\n } else {\n const offsetRect = resolveRectLike(options.offset, interactable, element, [interaction]);\n snapOffset = rectToXY(offsetRect) || {\n x: 0,\n y: 0\n };\n snapOffset.x += origin.x;\n snapOffset.y += origin.y;\n }\n\n const {\n relativePoints\n } = options;\n state.offsets = rect && relativePoints && relativePoints.length ? relativePoints.map((relativePoint, index) => ({\n index,\n relativePoint,\n x: startOffset.left - rect.width * relativePoint.x + snapOffset.x,\n y: startOffset.top - rect.height * relativePoint.y + snapOffset.y\n })) : [extend({\n index: 0,\n relativePoint: null\n }, snapOffset)];\n}\n\nfunction set(arg) {\n const {\n interaction,\n coords,\n state\n } = arg;\n const {\n options,\n offsets\n } = state;\n const origin = getOriginXY(interaction.interactable, interaction.element, interaction.prepared.name);\n const page = extend({}, coords);\n const targets = [];\n\n if (!options.offsetWithOrigin) {\n page.x -= origin.x;\n page.y -= origin.y;\n }\n\n for (const offset of offsets) {\n const relativeX = page.x - offset.x;\n const relativeY = page.y - offset.y;\n\n for (let index = 0, len = options.targets.length; index < len; index++) {\n const snapTarget = options.targets[index];\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relativeX, relativeY, interaction._proxy, offset, index);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n targets.push({\n x: (is.number(target.x) ? target.x : relativeX) + offset.x,\n y: (is.number(target.y) ? target.y : relativeY) + offset.y,\n range: is.number(target.range) ? target.range : options.range,\n source: snapTarget,\n index,\n offset\n });\n }\n }\n\n const closest = {\n target: null,\n inRange: false,\n distance: 0,\n range: 0,\n delta: {\n x: 0,\n y: 0\n }\n };\n\n for (const target of targets) {\n const range = target.range;\n const dx = target.x - page.x;\n const dy = target.y - page.y;\n const distance = hypot(dx, dy);\n let inRange = distance <= range; // Infinite targets count as being out of range\n // compared to non infinite ones that are in range\n\n if (range === Infinity && closest.inRange && closest.range !== Infinity) {\n inRange = false;\n }\n\n if (!closest.target || (inRange // is the closest target in range?\n ? closest.inRange && range !== Infinity // the pointer is relatively deeper in this target\n ? distance / range < closest.distance / closest.range // this target has Infinite range and the closest doesn't\n : range === Infinity && closest.range !== Infinity || // OR this target is closer that the previous closest\n distance < closest.distance : // The other is not in range and the pointer is closer to this target\n !closest.inRange && distance < closest.distance)) {\n closest.target = target;\n closest.distance = distance;\n closest.range = range;\n closest.inRange = inRange;\n closest.delta.x = dx;\n closest.delta.y = dy;\n }\n }\n\n if (closest.inRange) {\n coords.x = closest.target.x;\n coords.y = closest.target.y;\n }\n\n state.closest = closest;\n return closest;\n}\n\nfunction getOrigin(arg) {\n const {\n element\n } = arg.interaction;\n const optionsOrigin = rectToXY(resolveRectLike(arg.state.options.origin, null, null, [element]));\n const origin = optionsOrigin || getOriginXY(arg.interactable, element, arg.interaction.prepared.name);\n return origin;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n offsetWithOrigin: true,\n origin: null,\n relativePoints: null,\n endOnly: false,\n enabled: false\n};\nconst snap = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snap, 'snap');\nexport { snap };\n//# sourceMappingURL=pointer.js.map","// This module allows snapping of the size of targets during resize\n// interactions.\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snap } from \"./pointer.js\";\n\nfunction start(arg) {\n const {\n state,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return null;\n }\n\n arg.state = {\n options: {\n targets: null,\n relativePoints: [{\n x: edges.left ? 0 : 1,\n y: edges.top ? 0 : 1\n }],\n offset: options.offset || 'self',\n origin: {\n x: 0,\n y: 0\n },\n range: options.range\n }\n };\n state.targetFields = state.targetFields || [['width', 'height'], ['x', 'y']];\n snap.start(arg);\n state.offsets = arg.state.offsets;\n arg.state = state;\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n coords\n } = arg;\n const {\n options,\n offsets\n } = state;\n const relative = {\n x: coords.x - offsets[0].x,\n y: coords.y - offsets[0].y\n };\n state.options = extend({}, options);\n state.options.targets = [];\n\n for (const snapTarget of options.targets || []) {\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relative.x, relative.y, interaction);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n for (const [xField, yField] of state.targetFields) {\n if (xField in target || yField in target) {\n target.x = target[xField];\n target.y = target[yField];\n break;\n }\n }\n\n state.options.targets.push(target);\n }\n\n const returnValue = snap.set(arg);\n state.options = options;\n return returnValue;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst snapSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snapSize, 'snapSize');\nexport { snapSize };\n//# sourceMappingURL=size.js.map","/**\n * @module modifiers/snapEdges\n *\n * @description\n * WOW> This module allows snapping of the edges of targets during resize\n * interactions.\n *\n * ```js\n * interact(target).resizable({\n * snapEdges: {\n * targets: [interact.snappers.grid({ x: 100, y: 50 })],\n * },\n * })\n *\n * interact(target).resizable({\n * snapEdges: {\n * targets: [\n * interact.snappers.grid({\n * top: 50,\n * left: 50,\n * bottom: 100,\n * right: 100,\n * }),\n * ],\n * },\n * })\n * ```\n */\nimport clone from \"../../utils/clone.js\";\nimport extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snapSize } from \"./size.js\";\n\nfunction start(arg) {\n const {\n edges\n } = arg;\n\n if (!edges) {\n return null;\n }\n\n arg.state.targetFields = arg.state.targetFields || [[edges.left ? 'left' : 'right', edges.top ? 'top' : 'bottom']];\n return snapSize.start(arg);\n}\n\nconst snapEdges = {\n start,\n set: snapSize.set,\n defaults: extend(clone(snapSize.defaults), {\n targets: null,\n range: null,\n offset: {\n x: 0,\n y: 0\n }\n })\n};\nexport default makeModifier(snapEdges, 'snapEdges');\nexport { snapEdges };\n//# sourceMappingURL=edges.js.map","/* eslint-disable node/no-extraneous-import */\nimport aspectRatio from \"./aspectRatio.js\";\nimport avoid from \"./avoid.js\";\nimport restrictEdges from \"./restrict/edges.js\";\nimport restrict from \"./restrict/pointer.js\";\nimport restrictRect from \"./restrict/rect.js\";\nimport restrictSize from \"./restrict/size.js\";\nimport rubberband from \"./rubberband.js\";\nimport snapEdges from \"./snap/edges.js\";\nimport snap from \"./snap/pointer.js\";\nimport snapSize from \"./snap/size.js\";\nimport spring from \"./spring.js\";\nimport transform from \"./transform.js\";\nexport default {\n aspectRatio,\n restrictEdges,\n restrict,\n restrictRect,\n restrictSize,\n snapEdges,\n snap,\n snapSize,\n spring,\n avoid,\n transform,\n rubberband\n};\n//# sourceMappingURL=all.js.map","import snappers from \"../snappers/plugin.js\";\nimport all from \"./all.js\";\nimport base from \"./base.js\";\nconst modifiers = {\n id: 'modifiers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n scope.usePlugin(base);\n scope.usePlugin(snappers);\n interact.modifiers = all; // for backwrads compatibility\n\n for (const type in all) {\n const {\n _defaults,\n _methods\n } = all[type];\n _defaults._methods = _methods;\n scope.defaults.perAction[type] = _defaults;\n }\n }\n\n};\nexport default modifiers;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","/* eslint-disable no-console */\nimport { Scope } from \"../core/scope.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { parentNode } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport * as win from \"../utils/window.js\";\nvar CheckName;\n\n(function (CheckName) {\n CheckName[\"touchAction\"] = \"touchAction\";\n CheckName[\"boxSizing\"] = \"boxSizing\";\n CheckName[\"noListeners\"] = \"noListeners\";\n})(CheckName || (CheckName = {}));\n\nconst prefix = '[interact.js] ';\nconst links = {\n touchAction: 'https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action',\n boxSizing: 'https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing'\n}; // eslint-disable-next-line no-undef\n\nconst isProduction = \"development\" === 'production'; // eslint-disable-next-line no-restricted-syntax\n\nfunction install(scope, {\n logger\n} = {}) {\n const {\n Interactable,\n defaults\n } = scope;\n scope.logger = logger || console;\n defaults.base.devTools = {\n ignore: {}\n };\n\n Interactable.prototype.devTools = function (options) {\n if (options) {\n extend(this.options.devTools, options);\n return this;\n }\n\n return this.options.devTools;\n };\n}\n\nconst checks = [{\n name: CheckName.touchAction,\n\n perform({\n element\n }) {\n return !parentHasStyle(element, 'touchAction', /pan-|pinch|none/);\n },\n\n getInfo({\n element\n }) {\n return [element, links.touchAction];\n },\n\n text: 'Consider adding CSS \"touch-action: none\" to this element\\n'\n}, {\n name: CheckName.boxSizing,\n\n perform(interaction) {\n const {\n element\n } = interaction;\n return interaction.prepared.name === 'resize' && element instanceof domObjects.HTMLElement && !hasStyle(element, 'boxSizing', /border-box/);\n },\n\n text: 'Consider adding CSS \"box-sizing: border-box\" to this resizable element',\n\n getInfo({\n element\n }) {\n return [element, links.boxSizing];\n }\n\n}, {\n name: CheckName.noListeners,\n\n perform(interaction) {\n const actionName = interaction.prepared.name;\n const moveListeners = interaction.interactable.events.types[`${actionName}move`] || [];\n return !moveListeners.length;\n },\n\n getInfo(interaction) {\n return [interaction.prepared.name, interaction.interactable];\n },\n\n text: 'There are no listeners set for this action'\n}];\n\nfunction hasStyle(element, prop, styleRe) {\n const value = element.style[prop] || win.window.getComputedStyle(element)[prop];\n return styleRe.test((value || '').toString());\n}\n\nfunction parentHasStyle(element, prop, styleRe) {\n let parent = element;\n\n while (is.element(parent)) {\n if (hasStyle(parent, prop, styleRe)) {\n return true;\n }\n\n parent = parentNode(parent);\n }\n\n return false;\n}\n\nconst id = 'dev-tools';\nconst defaultExport = isProduction ? {\n id,\n install: () => {}\n} : {\n id,\n install,\n listeners: {\n 'interactions:action-start': ({\n interaction\n }, scope) => {\n for (const check of checks) {\n const options = interaction.interactable && interaction.interactable.options;\n\n if (!(options && options.devTools && options.devTools.ignore[check.name]) && check.perform(interaction)) {\n scope.logger.warn(prefix + check.text, ...check.getInfo(interaction));\n }\n }\n }\n },\n checks,\n CheckName,\n links,\n prefix\n};\nexport default defaultExport;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export { default } from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=script&lang=js\"","import { render } from \"./GridItem.vue?vue&type=template&id=17d5e425\"\nimport script from \"./GridItem.vue?vue&type=script&lang=js\"\nexport * from \"./GridItem.vue?vue&type=script&lang=js\"\n\nimport \"./GridItem.vue?vue&type=style&index=0&id=17d5e425&lang=css\"\n\nimport exportComponent from \"/Users/xingyongqiang/code/testCode/vue-grid-layout/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import _Object$defineProperty from \"@babel/runtime-corejs2/core-js/object/define-property\";\nexport default function _defineProperty(obj, key, value) {\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function(n){return{all:n=n||new Map,on:function(t,e){var i=n.get(t);i&&i.push(e)||n.set(t,[e])},off:function(t,e){var i=n.get(t);i&&i.splice(i.indexOf(e)>>>0,1)},emit:function(t,e){(n.get(t)||[]).slice().map(function(n){n(e)}),(n.get(\"*\")||[]).slice().map(function(n){n(t,e)})}}}\n//# sourceMappingURL=mitt.es.js.map\n","export { default } from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridLayout.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridLayout.vue?vue&type=script&lang=js\"","import { render } from \"./GridLayout.vue?vue&type=template&id=2f667182\"\nimport script from \"./GridLayout.vue?vue&type=script&lang=js\"\nexport * from \"./GridLayout.vue?vue&type=script&lang=js\"\n\nimport \"./GridLayout.vue?vue&type=style&index=0&id=2f667182&lang=css\"\n\nimport exportComponent from \"/Users/xingyongqiang/code/testCode/vue-grid-layout/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { App } from 'vue';\n\nimport GridItem from './GridItem.vue';\nimport GridLayout from './GridLayout.vue';\n\nexport { GridLayout, GridItem };\n\nconst install = (app: App) => {\n app.component('grid-layout', GridLayout)\n app.component('grid-item', GridItem)\n}\n\nexport default install;","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","// 20.1.2.2 Number.isFinite(number)\nvar $export = require('./_export');\nvar _isFinite = require('./_global').isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it) {\n return typeof it == 'number' && _isFinite(it);\n }\n});\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/hz-grid-layout.umd.min.js b/dist/hz-grid-layout.umd.min.js new file mode 100644 index 00000000..4dd95cfe --- /dev/null +++ b/dist/hz-grid-layout.umd.min.js @@ -0,0 +1,3 @@ +/*! hz-grid-layout - 0.0.1 | (c) 2015, 2024 pirate6 | https://github.com/jbaysolutions/vue-grid-layout */ +(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["VueGridLayout"]=e(require("vue")):t["VueGridLayout"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};t.exports=function(t,e,n,v,y,b,x){c(n,e,v);var w,S,E,T=function(t){if(!d&&t in P)return P[t];switch(t){case p:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},M=e+" Iterator",z=y==g,O=!1,P=t.prototype,I=P[h]||P[f]||y&&P[y],_=I||T(y),D=y?z?T("entries"):_:void 0,k="Array"==e&&P.entries||I;if(k&&(E=u(k.call(new t)),E!==Object.prototype&&E.next&&(l(E,M,!0),i||"function"==typeof E[h]||s(E,h,m))),z&&I&&I.name!==g&&(O=!0,_=function(){return I.call(this)}),i&&!x||!d&&!O&&P[h]||s(P,h,_),a[e]=_,a[M]=m,y)if(w={values:z?_:T(g),keys:b?_:T(p),entries:D},x)for(S in w)S in P||o(P,S,w[S]);else r(r.P+r.F*(d||O),e,w);return w}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(r(e)),c=i(n),l=a.length;return c<0||c>=l?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),l=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?l:function(t,e){if(t=o(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(a(t,e))return r(!i.f.call(t,e),t[e])}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);var n,s=o(e),a=s.length,c=0;while(a>c)i.f(t,n=s[c++],e[n]);return t}},"18d2":function(t,e,n){"use strict";var i=n("18e9");t.exports=function(t){t=t||{};var e=t.reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(t,e){function n(){e(t)}if(i.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=c(t);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}}function s(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function a(t,o,a){a||(a=o,o=t,t=null),t=t||{};t.debug;function c(o,a){var c=s(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),l=!1,u=window.getComputedStyle(o),h=o.offsetWidth,d=o.offsetHeight;function f(){function n(){if("static"===u.position){o.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,r){function o(t){return t.replace(/[^-\d\.]/g,"")}var s=i[r];"auto"!==s&&"0"!==o(s)&&(e.warn("An element that is positioned static has style."+r+"="+s+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,o,u,"top"),n(e,o,u,"right"),n(e,o,u,"bottom"),n(e,o,u,"left")}}function s(){function t(e,n){if(!e.contentDocument){var i=r(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}l||n();var e=this;t(e,(function(t){a(o)}))}""!==u.position&&(n(u),l=!0);var h=document.createElement("object");h.style.cssText=c,h.tabIndex=-1,h.type="text/html",h.setAttribute("aria-hidden","true"),h.onload=s,i.isIE()||(h.data="about:blank"),r(o)&&(o.appendChild(h),r(o).object=h,i.isIE()&&(h.data="about:blank"))}r(o).startSize={width:h,height:d},n?n.add(f):f()}i.isIE(8)?a(o):c(o,a)}function c(t){return r(t).object}function l(t){if(r(t)){var e=c(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}return{makeDetectable:a,addListener:o,uninstall:l}}},"18e9":function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){function e(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}if(!e())return!1;if(!t)return!0;var n=function(){var t,e=3,n=document.createElement("div"),i=n.getElementsByTagName("i");do{n.innerHTML="\x3c!--[if gt IE "+ ++e+"]>4?e:t}();return t===n},i.isLegacyOpera=function(){return!!window.opera}},"1bc3":function(t,e,n){var i=n("f772");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"1bca":function(t,e,n){"use strict";n("aa51")},"1ec9":function(t,e,n){var i=n("f772"),r=n("e53d").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),c=n("520a"),l=a("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=a(t),f=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!h){var g=/./[d],m=n(s,d,""[t],(function(t,e,n,i,r){return e.exec===c?f&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),v=m[0],y=m[1];i(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"===typeof btoa){var o=r(i),s=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(s).concat([o]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),l=t.F;while(i--)delete l[c][o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=i(t),n=new a,a[c]=null,n[s]=t):n=l(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))};a.store=i},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;function e(){return t++}return{generate:e}}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var i=n("79e5");t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"35e8":function(t,e,n){var i=n("d9f6"),r=n("aebd");t.exports=n("8e60")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},"454f":function(t,e,n){n("46a7");var i=n("584a").Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"46a7":function(t,e,n){var i=n("63b6");i(i.S+i.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},4917:function(t,e,n){"use strict";var i=n("cb7c"),r=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,(function(t,e,n,a){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=i(t),l=String(this);if(!c.global)return s(c,l);var u=c.unicode;c.lastIndex=0;var h,d=[],f=0;while(null!==(h=s(c,l))){var p=String(h[0]);d[f]=p,""===p&&(c.lastIndex=o(l,r(c.lastIndex),u)),f++}return 0===f?null:d}]}))},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;rn.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(r=0;r1&&o.call(s[0],n,(function(){for(u=1;u{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n}},"765b":function(t,e,n){"use strict";n("d516")},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},8875:function(t,e,n){var i,r,o;(function(n,s){r=[],i=s,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,i,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,s=/@([^@]*):(\d+):(\d+)\s*$/gi,a=o.exec(f.stack)||s.exec(f.stack),c=a&&a[1]||!1,l=a&&a[2]||!1,u=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");c===u&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*\n","// @flow\nexport type LayoutItemRequired = {w: number, h: number, x: number, y: number, i: string};\nexport type LayoutItem = LayoutItemRequired &\n {minW?: number, minH?: number, maxW?: number, maxH?: number,\n moved?: boolean, static?: boolean,\n isDraggable?: ?boolean, isResizable?: ?boolean};\nexport type Layout = Array;\n// export type Position = {left: number, top: number, width: number, height: number};\n/*\nexport type DragCallbackData = {\n node: HTMLElement,\n x: number, y: number,\n deltaX: number, deltaY: number,\n lastX: number, lastY: number\n};\n*/\n// export type DragEvent = {e: Event} & DragCallbackData;\nexport type Size = {width: number, height: number};\n// export type ResizeEvent = {e: Event, node: HTMLElement, size: Size};\n\n// const isProduction = process.env.NODE_ENV === 'production';\n/**\n * Return the bottom coordinate of the layout.\n *\n * @param {Array} layout Layout array.\n * @return {Number} Bottom coordinate.\n */\nexport function bottom(layout: Layout): number {\n let max = 0, bottomY;\n for (let i = 0, len = layout.length; i < len; i++) {\n bottomY = layout[i]. y + layout[i].h;\n if (bottomY > max) max = bottomY;\n }\n return max;\n}\n\nexport function cloneLayout(layout: Layout): Layout {\n const newLayout = Array(layout.length);\n for (let i = 0, len = layout.length; i < len; i++) {\n newLayout[i] = cloneLayoutItem(layout[i]);\n }\n return newLayout;\n}\n\n// Fast path to cloning, since this is monomorphic\nexport function cloneLayoutItem(layoutItem: LayoutItem): LayoutItem {\n /*return {\n w: layoutItem.w, h: layoutItem.h, x: layoutItem.x, y: layoutItem.y, i: layoutItem.i,\n minW: layoutItem.minW, maxW: layoutItem.maxW, minH: layoutItem.minH, maxH: layoutItem.maxH,\n moved: Boolean(layoutItem.moved), static: Boolean(layoutItem.static),\n // These can be null\n isDraggable: layoutItem.isDraggable, isResizable: layoutItem.isResizable\n };*/\n return JSON.parse(JSON.stringify(layoutItem));\n}\n\n/**\n * Given two layoutitems, check if they collide.\n *\n * @return {Boolean} True if colliding.\n */\nexport function collides(l1: LayoutItem, l2: LayoutItem): boolean {\n if (l1 === l2) return false; // same element\n if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2\n if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2\n if (l1.y + l1.h <= l2.y) return false; // l1 is above l2\n if (l1.y >= l2.y + l2.h) return false; // l1 is below l2\n return true; // boxes overlap\n}\n\n/**\n * Given a layout, compact it. This involves going down each y coordinate and removing gaps\n * between items.\n *\n * @param {Array} layout Layout.\n * @param {Boolean} verticalCompact Whether or not to compact the layout\n * vertically.\n * @return {Array} Compacted Layout.\n */\nexport function compact(layout: Layout, verticalCompact: Boolean): Layout {\n // Statics go in the compareWith array right away so items flow around them.\n const compareWith = getStatics(layout);\n // We go through the items by row and column.\n const sorted = sortLayoutItemsByRowCol(layout);\n // Holding for new items.\n const out = Array(layout.length);\n\n for (let i = 0, len = sorted.length; i < len; i++) {\n let l = sorted[i];\n\n // Don't move static elements\n if (!l.static) {\n l = compactItem(compareWith, l, verticalCompact);\n\n // Add to comparison array. We only collide with items before this one.\n // Statics are already in this array.\n compareWith.push(l);\n }\n\n // Add to output array to make sure they still come out in the right order.\n out[layout.indexOf(l)] = l;\n\n // Clear moved flag, if it exists.\n l.moved = false;\n }\n\n return out;\n}\n\n/**\n * Compact an item in the layout.\n */\nexport function compactItem(compareWith: Layout, l: LayoutItem, verticalCompact: boolean): LayoutItem {\n if (verticalCompact) {\n // Move the element up as far as it can go without colliding.\n while (l.y > 0 && !getFirstCollision(compareWith, l)) {\n l.y--;\n }\n }\n\n // Move it down, and keep moving it down if it's colliding.\n let collides;\n while((collides = getFirstCollision(compareWith, l))) {\n l.y = collides.y + collides.h;\n }\n return l;\n}\n\n/**\n * Given a layout, make sure all elements fit within its bounds.\n *\n * @param {Array} layout Layout array.\n * @param {Number} bounds Number of columns.\n */\nexport function correctBounds(layout: Layout, bounds: {cols: number}): Layout {\n const collidesWith = getStatics(layout);\n for (let i = 0, len = layout.length; i < len; i++) {\n const l = layout[i];\n // Overflows right\n if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;\n // Overflows left\n if (l.x < 0) {\n l.x = 0;\n l.w = bounds.cols;\n }\n if (!l.static) collidesWith.push(l);\n else {\n // If this is static and collides with other statics, we must move it down.\n // We have to do something nicer than just letting them overlap.\n while(getFirstCollision(collidesWith, l)) {\n l.y++;\n }\n }\n }\n return layout;\n}\n\n/**\n * Get a layout item by ID. Used so we can override later on if necessary.\n *\n * @param {Array} layout Layout array.\n * @param {String} id ID\n * @return {LayoutItem} Item at ID.\n */\nexport function getLayoutItem(layout: Layout, id: string): ?LayoutItem {\n for (let i = 0, len = layout.length; i < len; i++) {\n if (layout[i].i === id) return layout[i];\n }\n}\n\n/**\n * Returns the first item this layout collides with.\n * It doesn't appear to matter which order we approach this from, although\n * perhaps that is the wrong thing to do.\n *\n * @param {Object} layoutItem Layout item.\n * @return {Object|undefined} A colliding layout item, or undefined.\n */\nexport function getFirstCollision(layout: Layout, layoutItem: LayoutItem): ?LayoutItem {\n for (let i = 0, len = layout.length; i < len; i++) {\n if (collides(layout[i], layoutItem)) return layout[i];\n }\n}\n\nexport function getAllCollisions(layout: Layout, layoutItem: LayoutItem): Array {\n return layout.filter((l) => collides(l, layoutItem));\n}\n\n/**\n * Get all static elements.\n * @param {Array} layout Array of layout objects.\n * @return {Array} Array of static layout items..\n */\nexport function getStatics(layout: Layout): Array {\n //return [];\n return layout.filter((l) => l.static);\n}\n\n/**\n * Move an element. Responsible for doing cascading movements of other elements.\n *\n * @param {Array} layout Full layout to modify.\n * @param {LayoutItem} l element to move.\n * @param {Number} [x] X position in grid units.\n * @param {Number} [y] Y position in grid units.\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is\n * being dragged/resized by th euser.\n */\nexport function moveElement(layout: Layout, l: LayoutItem, x: Number, y: Number, isUserAction: Boolean, preventCollision: Boolean): Layout {\n if (l.static) return layout;\n\n // Short-circuit if nothing to do.\n //if (l.y === y && l.x === x) return layout;\n\n const oldX = l.x;\n const oldY = l.y;\n\n const movingUp = y && l.y > y;\n // This is quite a bit faster than extending the object\n if (typeof x === 'number') l.x = x;\n if (typeof y === 'number') l.y = y;\n l.moved = true;\n\n // If this collides with anything, move it.\n // When doing this comparison, we have to sort the items we compare with\n // to ensure, in the case of multiple collisions, that we're getting the\n // nearest collision.\n let sorted = sortLayoutItemsByRowCol(layout);\n if (movingUp) sorted = sorted.reverse();\n const collisions = getAllCollisions(sorted, l);\n\n if (preventCollision && collisions.length) {\n l.x = oldX;\n l.y = oldY;\n l.moved = false;\n return layout;\n }\n\n // Move each item that collides away from this element.\n for (let i = 0, len = collisions.length; i < len; i++) {\n const collision = collisions[i];\n // console.log('resolving collision between', l.i, 'at', l.y, 'and', collision.i, 'at', collision.y);\n\n // Short circuit so we can't infinite loop\n if (collision.moved) continue;\n\n // This makes it feel a bit more precise by waiting to swap for just a bit when moving up.\n if (l.y > collision.y && l.y - collision.y > collision.h / 4) continue;\n\n // Don't move static items - we have to move *this* element away\n if (collision.static) {\n layout = moveElementAwayFromCollision(layout, collision, l, isUserAction);\n } else {\n layout = moveElementAwayFromCollision(layout, l, collision, isUserAction);\n }\n }\n\n return layout;\n}\n\n/**\n * This is where the magic needs to happen - given a collision, move an element away from the collision.\n * We attempt to move it up if there's room, otherwise it goes below.\n *\n * @param {Array} layout Full layout to modify.\n * @param {LayoutItem} collidesWith Layout item we're colliding with.\n * @param {LayoutItem} itemToMove Layout item we're moving.\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is being dragged/resized\n * by the user.\n */\nexport function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem,\n itemToMove: LayoutItem, isUserAction: ?boolean): Layout {\n\n const preventCollision = false // we're already colliding\n // If there is enough space above the collision to put this element, move it there.\n // We only do this on the main collision as this can get funky in cascades and cause\n // unwanted swapping behavior.\n if (isUserAction) {\n // Make a mock item so we don't modify the item here, only modify in moveElement.\n const fakeItem: LayoutItem = {\n x: itemToMove.x,\n y: itemToMove.y,\n w: itemToMove.w,\n h: itemToMove.h,\n i: '-1'\n };\n fakeItem.y = Math.max(collidesWith.y - itemToMove.h, 0);\n if (!getFirstCollision(layout, fakeItem)) {\n return moveElement(layout, itemToMove, undefined, fakeItem.y, preventCollision);\n }\n }\n\n // Previously this was optimized to move below the collision directly, but this can cause problems\n // with cascading moves, as an item may actually leapflog a collision and cause a reversal in order.\n return moveElement(layout, itemToMove, undefined, itemToMove.y + 1, preventCollision);\n}\n\n/**\n * Helper to convert a number to a percentage string.\n *\n * @param {Number} num Any number\n * @return {String} That number as a percentage.\n */\nexport function perc(num: number): string {\n return num * 100 + '%';\n}\n\nexport function setTransform(top, left, width, height): Object {\n // Replace unitless items with px\n const translate = \"translate3d(\" + left + \"px,\" + top + \"px, 0)\";\n return {\n transform: translate,\n WebkitTransform: translate,\n MozTransform: translate,\n msTransform: translate,\n OTransform: translate,\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n/**\n * Just like the setTransform method, but instead it will return a negative value of right.\n *\n * @param top\n * @param right\n * @param width\n * @param height\n * @returns {{transform: string, WebkitTransform: string, MozTransform: string, msTransform: string, OTransform: string, width: string, height: string, position: string}}\n */\nexport function setTransformRtl(top, right, width, height): Object {\n // Replace unitless items with px\n const translate = \"translate3d(\" + right * -1 + \"px,\" + top + \"px, 0)\";\n return {\n transform: translate,\n WebkitTransform: translate,\n MozTransform: translate,\n msTransform: translate,\n OTransform: translate,\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n\nexport function setTopLeft(top, left, width, height): Object {\n return {\n top: top + \"px\",\n left: left + \"px\",\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n/**\n * Just like the setTopLeft method, but instead, it will return a right property instead of left.\n *\n * @param top\n * @param right\n * @param width\n * @param height\n * @returns {{top: string, right: string, width: string, height: string, position: string}}\n */\nexport function setTopRight(top, right, width, height): Object {\n return {\n top: top + \"px\",\n right: right+ \"px\",\n width: width + \"px\",\n height: height + \"px\",\n position: 'absolute'\n };\n}\n\n\n/**\n * Get layout items sorted from top left to right and down.\n *\n * @return {Array} Array of layout objects.\n * @return {Array} Layout, sorted static items first.\n */\nexport function sortLayoutItemsByRowCol(layout: Layout): Layout {\n return [].concat(layout).sort(function(a, b) {\n if (a.y === b.y && a.x === b.x) {\n return 0;\n }\n\n if (a.y > b.y || (a.y === b.y && a.x > b.x)) {\n return 1;\n }\n\n return -1;\n });\n}\n\n/**\n * Generate a layout using the initialLayout and children as a template.\n * Missing entries will be added, extraneous ones will be truncated.\n *\n * @param {Array} initialLayout Layout passed in through props.\n * @param {String} breakpoint Current responsive breakpoint.\n * @param {Boolean} verticalCompact Whether or not to compact the layout vertically.\n * @return {Array} Working layout.\n */\n/*\nexport function synchronizeLayoutWithChildren(initialLayout: Layout, children: Array|React.Element,\n cols: number, verticalCompact: boolean): Layout {\n // ensure 'children' is always an array\n if (!Array.isArray(children)) {\n children = [children];\n }\n initialLayout = initialLayout || [];\n\n // Generate one layout item per child.\n let layout: Layout = [];\n for (let i = 0, len = children.length; i < len; i++) {\n let newItem;\n const child = children[i];\n\n // Don't overwrite if it already exists.\n const exists = getLayoutItem(initialLayout, child.key || \"1\" /!* FIXME satisfies Flow *!/);\n if (exists) {\n newItem = exists;\n } else {\n const g = child.props._grid;\n\n // Hey, this item has a _grid property, use it.\n if (g) {\n if (!isProduction) {\n validateLayout([g], 'ReactGridLayout.children');\n }\n // Validated; add it to the layout. Bottom 'y' possible is the bottom of the layout.\n // This allows you to do nice stuff like specify {y: Infinity}\n if (verticalCompact) {\n newItem = cloneLayoutItem({...g, y: Math.min(bottom(layout), g.y), i: child.key});\n } else {\n newItem = cloneLayoutItem({...g, y: g.y, i: child.key});\n }\n }\n // Nothing provided: ensure this is added to the bottom\n else {\n newItem = cloneLayoutItem({w: 1, h: 1, x: 0, y: bottom(layout), i: child.key || \"1\"});\n }\n }\n layout[i] = newItem;\n }\n\n // Correct the layout.\n layout = correctBounds(layout, {cols: cols});\n layout = compact(layout, verticalCompact);\n\n return layout;\n}\n*/\n\n/**\n * Validate a layout. Throws errors.\n *\n * @param {Array} layout Array of layout items.\n * @param {String} [contextName] Context name for errors.\n * @throw {Error} Validation error.\n */\nexport function validateLayout(layout: Layout, contextName: string): void {\n contextName = contextName || \"Layout\";\n const subProps = ['x', 'y', 'w', 'h'];\n let keyArr = [];\n if (!Array.isArray(layout)) throw new Error(contextName + \" must be an array!\");\n for (let i = 0, len = layout.length; i < len; i++) {\n const item = layout[i];\n for (let j = 0; j < subProps.length; j++) {\n if (typeof item[subProps[j]] !== 'number') {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].' + subProps[j] + ' must be a number!');\n }\n }\n\n if (item.i === undefined || item.i === null) {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i cannot be null!');\n }\n\n if (typeof item.i !== 'number' && typeof item.i !== 'string') {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be a string or number!');\n }\n\n if (keyArr.indexOf(item.i) >= 0) {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be unique!');\n }\n keyArr.push(item.i);\n\n if (item.static !== undefined && typeof item.static !== 'boolean') {\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].static must be a boolean!');\n }\n }\n}\n\n// Flow can't really figure this out, so we just use Object\nexport function autoBindHandlers(el: Object, fns: Array): void {\n fns.forEach((key) => el[key] = el[key].bind(el));\n}\n\n\n\n/**\n * Convert a JS object to CSS string. Similar to React's output of CSS.\n * @param obj\n * @returns {string}\n */\nexport function createMarkup(obj) {\n var keys = Object.keys(obj);\n if (!keys.length) return '';\n var i, len = keys.length;\n var result = '';\n\n for (i = 0; i < len; i++) {\n var key = keys[i];\n var val = obj[key];\n result += hyphenate(key) + ':' + addPx(key, val) + ';';\n }\n\n return result;\n}\n\n\n/* The following list is defined in React's core */\nexport var IS_UNITLESS = {\n animationIterationCount: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n flex: true,\n flexGrow: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n flexOrder: true,\n gridRow: true,\n gridColumn: true,\n fontWeight: true,\n lineClamp: true,\n lineHeight: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n\n // SVG-related properties\n fillOpacity: true,\n stopOpacity: true,\n strokeDashoffset: true,\n strokeOpacity: true,\n strokeWidth: true\n};\n\n\n/**\n * Will add px to the end of style values which are Numbers.\n * @param name\n * @param value\n * @returns {*}\n */\nexport function addPx(name, value) {\n if(typeof value === 'number' && !IS_UNITLESS[ name ]) {\n return value + 'px';\n } else {\n return value;\n }\n}\n\n\n/**\n * Hyphenate a camelCase string.\n *\n * @param {String} str\n * @return {String}\n */\n\nexport var hyphenateRE = /([a-z\\d])([A-Z])/g;\n\nexport function hyphenate(str) {\n return str.replace(hyphenateRE, '$1-$2').toLowerCase();\n}\n\n\nexport function findItemInArray(array, property, value) {\n for (var i=0; i < array.length; i++)\n if (array[i][property] == value)\n return true;\n\n return false;\n}\n\nexport function findAndRemove(array, property, value) {\n array.forEach(function (result, index) {\n if (result[property] === value) {\n //Remove from array\n array.splice(index, 1);\n }\n });\n}\n","// Get {x, y} positions from event.\nexport function getControlPosition(e) {\n return offsetXYFromParentOf(e);\n}\n\n\n// Get from offsetParent\nexport function offsetXYFromParentOf(evt) {\n const offsetParent = evt.target.offsetParent || document.body;\n const offsetParentRect = evt.offsetParent === document.body ? {left: 0, top: 0} : offsetParent.getBoundingClientRect();\n\n const x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left;\n const y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top;\n\n /*const x = Math.round(evt.clientX + offsetParent.scrollLeft - offsetParentRect.left);\n const y = Math.round(evt.clientY + offsetParent.scrollTop - offsetParentRect.top);*/\n\n\n return {x, y};\n}\n\n\n// Create an data object exposed by 's events\nexport function createCoreData(lastX, lastY, x, y) {\n // State changes are often (but not always!) async. We want the latest value.\n const isStart = !isNum(lastX);\n\n if (isStart) {\n // If this is our first move, use the x and y as last coords.\n return {\n deltaX: 0, deltaY: 0,\n lastX: x, lastY: y,\n x: x, y: y\n };\n } else {\n // Otherwise calculate proper values.\n return {\n deltaX: x - lastX, deltaY: y - lastY,\n lastX: lastX, lastY: lastY,\n x: x, y: y\n };\n }\n}\n\n\nfunction isNum(num) {\n return typeof num === 'number' && !isNaN(num);\n}\n\n","// @flow\n\nimport {cloneLayout, compact, correctBounds} from './utils';\n\nimport type {Layout} from './utils';\nexport type ResponsiveLayout = {lg?: Layout, md?: Layout, sm?: Layout, xs?: Layout, xxs?: Layout};\ntype Breakpoint = string;\ntype Breakpoints = {lg?: number, md?: number, sm?: number, xs?: number, xxs?: number};\n\n/**\n * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).\n *\n * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})\n * @param {Number} width Screen width.\n * @return {String} Highest breakpoint that is less than width.\n */\nexport function getBreakpointFromWidth(breakpoints: Breakpoints, width: number): Breakpoint {\n const sorted = sortBreakpoints(breakpoints);\n let matching = sorted[0];\n for (let i = 1, len = sorted.length; i < len; i++) {\n const breakpointName = sorted[i];\n if (width > breakpoints[breakpointName]) matching = breakpointName;\n }\n return matching;\n}\n\n\n/**\n * Given a breakpoint, get the # of cols set for it.\n * @param {String} breakpoint Breakpoint name.\n * @param {Object} cols Map of breakpoints to cols.\n * @return {Number} Number of cols.\n */\nexport function getColsFromBreakpoint(breakpoint: Breakpoint, cols: Breakpoints): number {\n if (!cols[breakpoint]) {\n throw new Error(\"ResponsiveGridLayout: `cols` entry for breakpoint \" + breakpoint + \" is missing!\");\n }\n return cols[breakpoint];\n}\n\n/**\n * Given existing layouts and a new breakpoint, find or generate a new layout.\n *\n * This finds the layout above the new one and generates from it, if it exists.\n *\n * @param {Array} orgLayout Original layout.\n * @param {Object} layouts Existing layouts.\n * @param {Array} breakpoints All breakpoints.\n * @param {String} breakpoint New breakpoint.\n * @param {String} breakpoint Last breakpoint (for fallback).\n * @param {Number} cols Column count at new breakpoint.\n * @param {Boolean} verticalCompact Whether or not to compact the layout\n * vertically.\n * @return {Array} New layout.\n */\nexport function findOrGenerateResponsiveLayout(orgLayout: Layout, layouts: ResponsiveLayout, breakpoints: Breakpoints,\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\n cols: number, verticalCompact: boolean): Layout {\n // If it already exists, just return it.\n if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\n // Find or generate the next layout\n let layout = orgLayout;\n\n const breakpointsSorted = sortBreakpoints(breakpoints);\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\n const b = breakpointsAbove[i];\n if (layouts[b]) {\n layout = layouts[b];\n break;\n }\n }\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\n}\n\nexport function generateResponsiveLayout(layout: Layout, breakpoints: Breakpoints,\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\n cols: number, verticalCompact: boolean): Layout {\n // If it already exists, just return it.\n /*if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\n // Find or generate the next layout\n let layout = layouts[lastBreakpoint];*/\n /*const breakpointsSorted = sortBreakpoints(breakpoints);\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\n const b = breakpointsAbove[i];\n if (layouts[b]) {\n layout = layouts[b];\n break;\n }\n }*/\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\n}\n\n/**\n * Given breakpoints, return an array of breakpoints sorted by width. This is usually\n * e.g. ['xxs', 'xs', 'sm', ...]\n *\n * @param {Object} breakpoints Key/value pair of breakpoint names to widths.\n * @return {Array} Sorted breakpoints.\n */\nexport function sortBreakpoints(breakpoints: Breakpoints): Array {\n const keys: Array = Object.keys(breakpoints);\n return keys.sort(function(a, b) {\n return breakpoints[a] - breakpoints[b];\n });\n}\n","let currentDir: \"ltr\" | \"rtl\" | \"auto\" = \"auto\";\n// let currentDir = \"auto\";\n\nfunction hasDocument(){\n return (typeof document !== \"undefined\");\n}\n\nfunction hasWindow(){\n return (typeof window !== \"undefined\");\n}\n\nexport function getDocumentDir(){\n if(!hasDocument()){\n return currentDir;\n }\n const direction = (typeof document.dir !== \"undefined\") ?\n document.dir :\n document.getElementsByTagName(\"html\")[0].getAttribute(\"dir\");\n return direction;\n}\n\nexport function setDocumentDir(dir: \"ltr\" | \"rtl\" | \"auto\"){\n// export function setDocumentDir(dir){\n if(!hasDocument){\n currentDir = dir;\n return;\n }\n\n const html = document.getElementsByTagName(\"html\")[0];\n html.setAttribute(\"dir\", dir);\n}\n\nexport function addWindowEventListener(event:string, callback: () => mixed){\n if(!hasWindow){\n\n callback();\n return;\n }\n window.addEventListener(event, callback);\n}\n\nexport function removeWindowEventListener(event:string, callback: () => mixed){\n if(!hasWindow){\n return;\n }\n window.removeEventListener(event, callback);\n}\n\n\n\n","const domObjects = {\n init,\n document: null,\n DocumentFragment: null,\n SVGElement: null,\n SVGSVGElement: null,\n SVGElementInstance: null,\n Element: null,\n HTMLElement: null,\n Event: null,\n Touch: null,\n PointerEvent: null\n};\n\nfunction blank() {}\n\nexport default domObjects;\n\nfunction init(window) {\n const win = window;\n domObjects.document = win.document;\n domObjects.DocumentFragment = win.DocumentFragment || blank;\n domObjects.SVGElement = win.SVGElement || blank;\n domObjects.SVGSVGElement = win.SVGSVGElement || blank;\n domObjects.SVGElementInstance = win.SVGElementInstance || blank;\n domObjects.Element = win.Element || blank;\n domObjects.HTMLElement = win.HTMLElement || domObjects.Element;\n domObjects.Event = win.Event;\n domObjects.Touch = win.Touch || blank;\n domObjects.PointerEvent = win.PointerEvent || win.MSPointerEvent;\n}\n//# sourceMappingURL=domObjects.js.map","export default (thing => !!(thing && thing.Window) && thing instanceof thing.Window);\n//# sourceMappingURL=isWindow.js.map","import isWindow from \"./isWindow.js\";\nexport let realWindow = undefined;\nlet win = undefined;\nexport { win as window };\nexport function init(window) {\n // get wrapped window if using Shadow DOM polyfill\n realWindow = window; // create a TextNode\n\n const el = window.document.createTextNode(''); // check if it's wrapped by a polyfill\n\n if (el.ownerDocument !== window.document && typeof window.wrap === 'function' && window.wrap(el) === el) {\n // use wrapped window\n window = window.wrap(window);\n }\n\n win = window;\n}\n\nif (typeof window !== 'undefined' && !!window) {\n init(window);\n}\n\nexport function getWindow(node) {\n if (isWindow(node)) {\n return node;\n }\n\n const rootNode = node.ownerDocument || node;\n return rootNode.defaultView || win.window;\n}\n//# sourceMappingURL=window.js.map","import isWindow from \"./isWindow.js\";\nimport * as win from \"./window.js\";\n\nconst window = thing => thing === win.window || isWindow(thing);\n\nconst docFrag = thing => object(thing) && thing.nodeType === 11;\n\nconst object = thing => !!thing && typeof thing === 'object';\n\nconst func = thing => typeof thing === 'function';\n\nconst number = thing => typeof thing === 'number';\n\nconst bool = thing => typeof thing === 'boolean';\n\nconst string = thing => typeof thing === 'string';\n\nconst element = thing => {\n if (!thing || typeof thing !== 'object') {\n return false;\n } // eslint-disable-next-line import/no-named-as-default-member\n\n\n const _window = win.getWindow(thing) || win.window;\n\n return /object|function/.test(typeof _window.Element) ? thing instanceof _window.Element // DOM2\n : thing.nodeType === 1 && typeof thing.nodeName === 'string';\n};\n\nconst plainObject = thing => object(thing) && !!thing.constructor && /function Object\\b/.test(thing.constructor.toString());\n\nconst array = thing => object(thing) && typeof thing.length !== 'undefined' && func(thing.splice);\n\nexport default {\n window,\n docFrag,\n object,\n func,\n number,\n bool,\n string,\n element,\n plainObject,\n array\n};\n//# sourceMappingURL=is.js.map","import domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nconst browser = {\n init,\n supportsTouch: null,\n supportsPointerEvent: null,\n isIOS7: null,\n isIOS: null,\n isIe9: null,\n isOperaMobile: null,\n prefixedMatchesSelector: null,\n pEventTypes: null,\n wheelEvent: null\n};\n\nfunction init(window) {\n const Element = domObjects.Element;\n const navigator = win.window.navigator; // Does the browser support touch input?\n\n browser.supportsTouch = 'ontouchstart' in window || is.func(window.DocumentTouch) && domObjects.document instanceof window.DocumentTouch; // Does the browser support PointerEvents\n\n browser.supportsPointerEvent = navigator.pointerEnabled !== false && !!domObjects.PointerEvent;\n browser.isIOS = /iP(hone|od|ad)/.test(navigator.platform); // scrolling doesn't change the result of getClientRects on iOS 7\n\n browser.isIOS7 = /iP(hone|od|ad)/.test(navigator.platform) && /OS 7[^\\d]/.test(navigator.appVersion);\n browser.isIe9 = /MSIE 9/.test(navigator.userAgent); // Opera Mobile must be handled differently\n\n browser.isOperaMobile = navigator.appName === 'Opera' && browser.supportsTouch && /Presto/.test(navigator.userAgent); // prefix matchesSelector\n\n browser.prefixedMatchesSelector = 'matches' in Element.prototype ? 'matches' : 'webkitMatchesSelector' in Element.prototype ? 'webkitMatchesSelector' : 'mozMatchesSelector' in Element.prototype ? 'mozMatchesSelector' : 'oMatchesSelector' in Element.prototype ? 'oMatchesSelector' : 'msMatchesSelector';\n browser.pEventTypes = browser.supportsPointerEvent ? domObjects.PointerEvent === window.MSPointerEvent ? {\n up: 'MSPointerUp',\n down: 'MSPointerDown',\n over: 'mouseover',\n out: 'mouseout',\n move: 'MSPointerMove',\n cancel: 'MSPointerCancel'\n } : {\n up: 'pointerup',\n down: 'pointerdown',\n over: 'pointerover',\n out: 'pointerout',\n move: 'pointermove',\n cancel: 'pointercancel'\n } : null; // because Webkit and Opera still use 'mousewheel' event type\n\n browser.wheelEvent = 'onmousewheel' in domObjects.document ? 'mousewheel' : 'wheel';\n}\n\nexport default browser;\n//# sourceMappingURL=browser.js.map","export const contains = (array, target) => array.indexOf(target) !== -1;\nexport const remove = (array, target) => array.splice(array.indexOf(target), 1);\nexport const merge = (target, source) => {\n for (const item of source) {\n target.push(item);\n }\n\n return target;\n};\nexport const from = source => merge([], source);\nexport const findIndex = (array, func) => {\n for (let i = 0; i < array.length; i++) {\n if (func(array[i], i, array)) {\n return i;\n }\n }\n\n return -1;\n};\nexport const find = (array, func) => array[findIndex(array, func)];\n//# sourceMappingURL=arr.js.map","import * as arr from \"./arr.js\";\nimport is from \"./is.js\"; // tslint:disable-next-line ban-types\n\nexport default function clone(source) {\n const dest = {};\n\n for (const prop in source) {\n const value = source[prop];\n\n if (is.plainObject(value)) {\n dest[prop] = clone(value);\n } else if (is.array(value)) {\n dest[prop] = arr.from(value);\n } else {\n dest[prop] = value;\n }\n }\n\n return dest;\n}\n//# sourceMappingURL=clone.js.map","export default function extend(dest, source) {\n for (const prop in source) {\n dest[prop] = source[prop];\n }\n\n const ret = dest;\n return ret;\n}\n//# sourceMappingURL=extend.js.map","let lastTime = 0;\nlet request;\nlet cancel;\n\nfunction init(window) {\n request = window.requestAnimationFrame;\n cancel = window.cancelAnimationFrame;\n\n if (!request) {\n const vendors = ['ms', 'moz', 'webkit', 'o'];\n\n for (const vendor of vendors) {\n request = window[`${vendor}RequestAnimationFrame`];\n cancel = window[`${vendor}CancelAnimationFrame`] || window[`${vendor}CancelRequestAnimationFrame`];\n }\n }\n\n request = request && request.bind(window);\n cancel = cancel && cancel.bind(window);\n\n if (!request) {\n request = callback => {\n const currTime = Date.now();\n const timeToCall = Math.max(0, 16 - (currTime - lastTime)); // eslint-disable-next-line node/no-callback-literal\n\n const token = window.setTimeout(() => {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return token;\n };\n\n cancel = token => clearTimeout(token);\n }\n}\n\nexport default {\n request: callback => request(callback),\n cancel: token => cancel(token),\n init\n};\n//# sourceMappingURL=raf.js.map","import extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport default function normalize(type, listeners, result) {\n result = result || {};\n\n if (is.string(type) && type.search(' ') !== -1) {\n type = split(type);\n }\n\n if (is.array(type)) {\n return type.reduce((acc, t) => extend(acc, normalize(t, listeners, result)), result);\n } // ({ type: fn }) -> ('', { type: fn })\n\n\n if (is.object(type)) {\n listeners = type;\n type = '';\n }\n\n if (is.func(listeners)) {\n result[type] = result[type] || [];\n result[type].push(listeners);\n } else if (is.array(listeners)) {\n for (const l of listeners) {\n normalize(type, l, result);\n }\n } else if (is.object(listeners)) {\n for (const prefix in listeners) {\n const combinedTypes = split(prefix).map(p => `${type}${p}`);\n normalize(combinedTypes, listeners[prefix], result);\n }\n }\n\n return result;\n}\n\nfunction split(type) {\n return type.trim().split(/ +/);\n}\n//# sourceMappingURL=normalizeListeners.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport normalize from \"../utils/normalizeListeners.js\";\n\nfunction fireUntilImmediateStopped(event, listeners) {\n for (const listener of listeners) {\n if (event.immediatePropagationStopped) {\n break;\n }\n\n listener(event);\n }\n}\n\nexport class Eventable {\n constructor(options) {\n this.options = void 0;\n this.types = {};\n this.propagationStopped = false;\n this.immediatePropagationStopped = false;\n this.global = void 0;\n this.options = extend({}, options || {});\n }\n\n fire(event) {\n let listeners;\n const global = this.global; // Interactable#on() listeners\n // tslint:disable no-conditional-assignment\n\n if (listeners = this.types[event.type]) {\n fireUntilImmediateStopped(event, listeners);\n } // interact.on() listeners\n\n\n if (!event.propagationStopped && global && (listeners = global[event.type])) {\n fireUntilImmediateStopped(event, listeners);\n }\n }\n\n on(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n this.types[type] = arr.merge(this.types[type] || [], listeners[type]);\n }\n }\n\n off(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n const eventList = this.types[type];\n\n if (!eventList || !eventList.length) {\n continue;\n }\n\n for (const subListener of listeners[type]) {\n const index = eventList.indexOf(subListener);\n\n if (index !== -1) {\n eventList.splice(index, 1);\n }\n }\n }\n }\n\n getRect(_element) {\n return null;\n }\n\n}\n//# sourceMappingURL=Eventable.js.map","import browser from \"./browser.js\";\nimport domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nexport function nodeContains(parent, child) {\n if (parent.contains) {\n return parent.contains(child);\n }\n\n while (child) {\n if (child === parent) {\n return true;\n }\n\n child = child.parentNode;\n }\n\n return false;\n}\nexport function closest(element, selector) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return element;\n }\n\n element = parentNode(element);\n }\n\n return null;\n}\nexport function parentNode(node) {\n let parent = node.parentNode;\n\n if (is.docFrag(parent)) {\n // skip past #shado-root fragments\n // tslint:disable-next-line\n while ((parent = parent.host) && is.docFrag(parent)) {\n continue;\n }\n\n return parent;\n }\n\n return parent;\n}\nexport function matchesSelector(element, selector) {\n // remove /deep/ from selectors if shadowDOM polyfill is used\n if (win.window !== win.realWindow) {\n selector = selector.replace(/\\/deep\\//g, ' ');\n }\n\n return element[browser.prefixedMatchesSelector](selector);\n}\n\nconst getParent = el => el.parentNode || el.host; // Test for the element that's \"above\" all other qualifiers\n\n\nexport function indexOfDeepestElement(elements) {\n let deepestNodeParents = [];\n let deepestNodeIndex;\n\n for (let i = 0; i < elements.length; i++) {\n const currentNode = elements[i];\n const deepestNode = elements[deepestNodeIndex]; // node may appear in elements array multiple times\n\n if (!currentNode || i === deepestNodeIndex) {\n continue;\n }\n\n if (!deepestNode) {\n deepestNodeIndex = i;\n continue;\n }\n\n const currentNodeParent = getParent(currentNode);\n const deepestNodeParent = getParent(deepestNode); // check if the deepest or current are document.documentElement/rootElement\n // - if the current node is, do nothing and continue\n\n if (currentNodeParent === currentNode.ownerDocument) {\n continue;\n } // - if deepest is, update with the current node and continue to next\n else if (deepestNodeParent === currentNode.ownerDocument) {\n deepestNodeIndex = i;\n continue;\n } // compare zIndex of siblings\n\n\n if (currentNodeParent === deepestNodeParent) {\n if (zIndexIsHigherThan(currentNode, deepestNode)) {\n deepestNodeIndex = i;\n }\n\n continue;\n } // populate the ancestry array for the latest deepest node\n\n\n deepestNodeParents = deepestNodeParents.length ? deepestNodeParents : getNodeParents(deepestNode);\n let ancestryStart; // if the deepest node is an HTMLElement and the current node is a non root svg element\n\n if (deepestNode instanceof domObjects.HTMLElement && currentNode instanceof domObjects.SVGElement && !(currentNode instanceof domObjects.SVGSVGElement)) {\n // TODO: is this check necessary? Was this for HTML elements embedded in SVG?\n if (currentNode === deepestNodeParent) {\n continue;\n }\n\n ancestryStart = currentNode.ownerSVGElement;\n } else {\n ancestryStart = currentNode;\n }\n\n const currentNodeParents = getNodeParents(ancestryStart, deepestNode.ownerDocument);\n let commonIndex = 0; // get (position of closest common ancestor) + 1\n\n while (currentNodeParents[commonIndex] && currentNodeParents[commonIndex] === deepestNodeParents[commonIndex]) {\n commonIndex++;\n }\n\n const parents = [currentNodeParents[commonIndex - 1], currentNodeParents[commonIndex], deepestNodeParents[commonIndex]];\n let child = parents[0].lastChild;\n\n while (child) {\n if (child === parents[1]) {\n deepestNodeIndex = i;\n deepestNodeParents = currentNodeParents;\n break;\n } else if (child === parents[2]) {\n break;\n }\n\n child = child.previousSibling;\n }\n }\n\n return deepestNodeIndex;\n}\n\nfunction getNodeParents(node, limit) {\n const parents = [];\n let parent = node;\n let parentParent;\n\n while ((parentParent = getParent(parent)) && parent !== limit && parentParent !== parent.ownerDocument) {\n parents.unshift(parent);\n parent = parentParent;\n }\n\n return parents;\n}\n\nfunction zIndexIsHigherThan(higherNode, lowerNode) {\n const higherIndex = parseInt(win.getWindow(higherNode).getComputedStyle(higherNode).zIndex, 10) || 0;\n const lowerIndex = parseInt(win.getWindow(lowerNode).getComputedStyle(lowerNode).zIndex, 10) || 0;\n return higherIndex >= lowerIndex;\n}\n\nexport function matchesUpTo(element, selector, limit) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return true;\n }\n\n element = parentNode(element);\n\n if (element === limit) {\n return matchesSelector(element, selector);\n }\n }\n\n return false;\n}\nexport function getActualElement(element) {\n return element.correspondingUseElement || element;\n}\nexport function getScrollXY(relevantWindow) {\n relevantWindow = relevantWindow || win.window;\n return {\n x: relevantWindow.scrollX || relevantWindow.document.documentElement.scrollLeft,\n y: relevantWindow.scrollY || relevantWindow.document.documentElement.scrollTop\n };\n}\nexport function getElementClientRect(element) {\n const clientRect = element instanceof domObjects.SVGElement ? element.getBoundingClientRect() : element.getClientRects()[0];\n return clientRect && {\n left: clientRect.left,\n right: clientRect.right,\n top: clientRect.top,\n bottom: clientRect.bottom,\n width: clientRect.width || clientRect.right - clientRect.left,\n height: clientRect.height || clientRect.bottom - clientRect.top\n };\n}\nexport function getElementRect(element) {\n const clientRect = getElementClientRect(element);\n\n if (!browser.isIOS7 && clientRect) {\n const scroll = getScrollXY(win.getWindow(element));\n clientRect.left += scroll.x;\n clientRect.right += scroll.x;\n clientRect.top += scroll.y;\n clientRect.bottom += scroll.y;\n }\n\n return clientRect;\n}\nexport function getPath(node) {\n const path = [];\n\n while (node) {\n path.push(node);\n node = parentNode(node);\n }\n\n return path;\n}\nexport function trySelector(value) {\n if (!is.string(value)) {\n return false;\n } // an exception will be raised if it is invalid\n\n\n domObjects.document.querySelector(value);\n return true;\n}\n//# sourceMappingURL=domUtils.js.map","import { closest, getElementRect, parentNode } from \"./domUtils.js\";\nimport extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport function getStringOptionResult(value, target, element) {\n if (value === 'parent') {\n return parentNode(element);\n }\n\n if (value === 'self') {\n return target.getRect(element);\n }\n\n return closest(element, value);\n}\nexport function resolveRectLike(value, target, element, functionArgs) {\n let returnValue = value;\n\n if (is.string(returnValue)) {\n returnValue = getStringOptionResult(returnValue, target, element);\n } else if (is.func(returnValue)) {\n returnValue = returnValue(...functionArgs);\n }\n\n if (is.element(returnValue)) {\n returnValue = getElementRect(returnValue);\n }\n\n return returnValue;\n}\nexport function rectToXY(rect) {\n return rect && {\n x: 'x' in rect ? rect.x : rect.left,\n y: 'y' in rect ? rect.y : rect.top\n };\n}\nexport function xywhToTlbr(rect) {\n if (rect && !('left' in rect && 'top' in rect)) {\n rect = extend({}, rect);\n rect.left = rect.x || 0;\n rect.top = rect.y || 0;\n rect.right = rect.right || rect.left + rect.width;\n rect.bottom = rect.bottom || rect.top + rect.height;\n }\n\n return rect;\n}\nexport function tlbrToXywh(rect) {\n if (rect && !('x' in rect && 'y' in rect)) {\n rect = extend({}, rect);\n rect.x = rect.left || 0;\n rect.y = rect.top || 0;\n rect.width = rect.width || (rect.right || 0) - rect.x;\n rect.height = rect.height || (rect.bottom || 0) - rect.y;\n }\n\n return rect;\n}\nexport function addEdges(edges, rect, delta) {\n if (edges.left) {\n rect.left += delta.x;\n }\n\n if (edges.right) {\n rect.right += delta.x;\n }\n\n if (edges.top) {\n rect.top += delta.y;\n }\n\n if (edges.bottom) {\n rect.bottom += delta.y;\n }\n\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n}\n//# sourceMappingURL=rect.js.map","import { rectToXY, resolveRectLike } from \"./rect.js\";\nexport default function (target, element, actionName) {\n const actionOptions = target.options[actionName];\n const actionOrigin = actionOptions && actionOptions.origin;\n const origin = actionOrigin || target.options.origin;\n const originRect = resolveRectLike(origin, target, element, [target && element]);\n return rectToXY(originRect) || {\n x: 0,\n y: 0\n };\n}\n//# sourceMappingURL=getOriginXY.js.map","export default ((x, y) => Math.sqrt(x * x + y * y));\n//# sourceMappingURL=hypot.js.map","export class BaseEvent {\n constructor(interaction) {\n this.type = void 0;\n this.target = void 0;\n this.currentTarget = void 0;\n this.interactable = void 0;\n this._interaction = void 0;\n this.timeStamp = void 0;\n this.immediatePropagationStopped = false;\n this.propagationStopped = false;\n this._interaction = interaction;\n }\n\n preventDefault() {}\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n\n} // defined outside of class definition to avoid assignment of undefined during\n// construction\n\n// getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\nObject.defineProperty(BaseEvent.prototype, 'interaction', {\n get() {\n return this._interaction._proxy;\n },\n\n set() {}\n\n});\n//# sourceMappingURL=BaseEvent.js.map","// eslint-disable-next-line @typescript-eslint/no-empty-interface\n// export interface Options extends BaseDefaults, PerActionDefaults {}\nexport const defaults = {\n base: {\n preventDefault: 'auto',\n deltaSource: 'page'\n },\n perAction: {\n enabled: false,\n origin: {\n x: 0,\n y: 0\n }\n },\n actions: {}\n};\n//# sourceMappingURL=defaultOptions.js.map","import extend from \"../utils/extend.js\";\nimport getOriginXY from \"../utils/getOriginXY.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { BaseEvent } from \"./BaseEvent.js\";\nimport { defaults } from \"./defaultOptions.js\";\nexport class InteractEvent extends BaseEvent {\n // resize\n\n /** */\n constructor(interaction, event, actionName, phase, element, preEnd, type) {\n super(interaction);\n this.target = void 0;\n this.currentTarget = void 0;\n this.relatedTarget = null;\n this.screenX = void 0;\n this.screenY = void 0;\n this.button = void 0;\n this.buttons = void 0;\n this.ctrlKey = void 0;\n this.shiftKey = void 0;\n this.altKey = void 0;\n this.metaKey = void 0;\n this.page = void 0;\n this.client = void 0;\n this.delta = void 0;\n this.rect = void 0;\n this.x0 = void 0;\n this.y0 = void 0;\n this.t0 = void 0;\n this.dt = void 0;\n this.duration = void 0;\n this.clientX0 = void 0;\n this.clientY0 = void 0;\n this.velocity = void 0;\n this.speed = void 0;\n this.swipe = void 0;\n this.timeStamp = void 0;\n this.axes = void 0;\n this.preEnd = void 0;\n element = element || interaction.element;\n const target = interaction.interactable;\n const deltaSource = (target && target.options || defaults).deltaSource;\n const origin = getOriginXY(target, element, actionName);\n const starting = phase === 'start';\n const ending = phase === 'end';\n const prevEvent = starting ? this : interaction.prevEvent;\n const coords = starting ? interaction.coords.start : ending ? {\n page: prevEvent.page,\n client: prevEvent.client,\n timeStamp: interaction.coords.cur.timeStamp\n } : interaction.coords.cur;\n this.page = extend({}, coords.page);\n this.client = extend({}, coords.client);\n this.rect = extend({}, interaction.rect);\n this.timeStamp = coords.timeStamp;\n\n if (!ending) {\n this.page.x -= origin.x;\n this.page.y -= origin.y;\n this.client.x -= origin.x;\n this.client.y -= origin.y;\n }\n\n this.ctrlKey = event.ctrlKey;\n this.altKey = event.altKey;\n this.shiftKey = event.shiftKey;\n this.metaKey = event.metaKey;\n this.button = event.button;\n this.buttons = event.buttons;\n this.target = element;\n this.currentTarget = element;\n this.preEnd = preEnd;\n this.type = type || actionName + (phase || '');\n this.interactable = target;\n this.t0 = starting ? interaction.pointers[interaction.pointers.length - 1].downTime : prevEvent.t0;\n this.x0 = interaction.coords.start.page.x - origin.x;\n this.y0 = interaction.coords.start.page.y - origin.y;\n this.clientX0 = interaction.coords.start.client.x - origin.x;\n this.clientY0 = interaction.coords.start.client.y - origin.y;\n\n if (starting || ending) {\n this.delta = {\n x: 0,\n y: 0\n };\n } else {\n this.delta = {\n x: this[deltaSource].x - prevEvent[deltaSource].x,\n y: this[deltaSource].y - prevEvent[deltaSource].y\n };\n }\n\n this.dt = interaction.coords.delta.timeStamp;\n this.duration = this.timeStamp - this.t0; // velocity and speed in pixels per second\n\n this.velocity = extend({}, interaction.coords.velocity[deltaSource]);\n this.speed = hypot(this.velocity.x, this.velocity.y);\n this.swipe = ending || phase === 'inertiastart' ? this.getSwipe() : null;\n }\n\n getSwipe() {\n const interaction = this._interaction;\n\n if (interaction.prevEvent.speed < 600 || this.timeStamp - interaction.prevEvent.timeStamp > 150) {\n return null;\n }\n\n let angle = 180 * Math.atan2(interaction.prevEvent.velocityY, interaction.prevEvent.velocityX) / Math.PI;\n const overlap = 22.5;\n\n if (angle < 0) {\n angle += 360;\n }\n\n const left = 135 - overlap <= angle && angle < 225 + overlap;\n const up = 225 - overlap <= angle && angle < 315 + overlap;\n const right = !left && (315 - overlap <= angle || angle < 45 + overlap);\n const down = !up && 45 - overlap <= angle && angle < 135 + overlap;\n return {\n up,\n down,\n left,\n right,\n angle,\n speed: interaction.prevEvent.speed,\n velocity: {\n x: interaction.prevEvent.velocityX,\n y: interaction.prevEvent.velocityY\n }\n };\n }\n\n preventDefault() {}\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n\n} // getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\n\nObject.defineProperties(InteractEvent.prototype, {\n pageX: {\n get() {\n return this.page.x;\n },\n\n set(value) {\n this.page.x = value;\n }\n\n },\n pageY: {\n get() {\n return this.page.y;\n },\n\n set(value) {\n this.page.y = value;\n }\n\n },\n clientX: {\n get() {\n return this.client.x;\n },\n\n set(value) {\n this.client.x = value;\n }\n\n },\n clientY: {\n get() {\n return this.client.y;\n },\n\n set(value) {\n this.client.y = value;\n }\n\n },\n dx: {\n get() {\n return this.delta.x;\n },\n\n set(value) {\n this.delta.x = value;\n }\n\n },\n dy: {\n get() {\n return this.delta.y;\n },\n\n set(value) {\n this.delta.y = value;\n }\n\n },\n velocityX: {\n get() {\n return this.velocity.x;\n },\n\n set(value) {\n this.velocity.x = value;\n }\n\n },\n velocityY: {\n get() {\n return this.velocity.y;\n },\n\n set(value) {\n this.velocity.y = value;\n }\n\n }\n});\n//# sourceMappingURL=InteractEvent.js.map","export default function isNonNativeEvent(type, actions) {\n if (actions.phaselessTypes[type]) {\n return true;\n }\n\n for (const name in actions.map) {\n if (type.indexOf(name) === 0 && type.substr(name.length) in actions.phases) {\n return true;\n }\n }\n\n return false;\n}\n//# sourceMappingURL=isNonNativeEvent.js.map","/* eslint-disable no-dupe-class-members */\nimport * as arr from \"../utils/arr.js\";\nimport browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport { getElementRect, matchesUpTo, nodeContains, trySelector } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport normalizeListeners from \"../utils/normalizeListeners.js\";\nimport { getWindow } from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\n\n/** */\nexport class Interactable {\n /** @internal */\n get _defaults() {\n return {\n base: {},\n perAction: {},\n actions: {}\n };\n }\n\n /** */\n constructor(target, options, defaultContext, scopeEvents) {\n this.options = void 0;\n this._actions = void 0;\n this.target = void 0;\n this.events = new Eventable();\n this._context = void 0;\n this._win = void 0;\n this._doc = void 0;\n this._scopeEvents = void 0;\n this._rectChecker = void 0;\n this._actions = options.actions;\n this.target = target;\n this._context = options.context || defaultContext;\n this._win = getWindow(trySelector(target) ? this._context : target);\n this._doc = this._win.document;\n this._scopeEvents = scopeEvents;\n this.set(options);\n }\n\n setOnEvents(actionName, phases) {\n if (is.func(phases.onstart)) {\n this.on(`${actionName}start`, phases.onstart);\n }\n\n if (is.func(phases.onmove)) {\n this.on(`${actionName}move`, phases.onmove);\n }\n\n if (is.func(phases.onend)) {\n this.on(`${actionName}end`, phases.onend);\n }\n\n if (is.func(phases.oninertiastart)) {\n this.on(`${actionName}inertiastart`, phases.oninertiastart);\n }\n\n return this;\n }\n\n updatePerActionListeners(actionName, prev, cur) {\n if (is.array(prev) || is.object(prev)) {\n this.off(actionName, prev);\n }\n\n if (is.array(cur) || is.object(cur)) {\n this.on(actionName, cur);\n }\n }\n\n setPerAction(actionName, options) {\n const defaults = this._defaults; // for all the default per-action options\n\n for (const optionName_ in options) {\n const optionName = optionName_;\n const actionOptions = this.options[actionName];\n const optionValue = options[optionName]; // remove old event listeners and add new ones\n\n if (optionName === 'listeners') {\n this.updatePerActionListeners(actionName, actionOptions.listeners, optionValue);\n } // if the option value is an array\n\n\n if (is.array(optionValue)) {\n actionOptions[optionName] = arr.from(optionValue);\n } // if the option value is an object\n else if (is.plainObject(optionValue)) {\n // copy the object\n actionOptions[optionName] = extend(actionOptions[optionName] || {}, clone(optionValue)); // set anabled field to true if it exists in the defaults\n\n if (is.object(defaults.perAction[optionName]) && 'enabled' in defaults.perAction[optionName]) {\n actionOptions[optionName].enabled = optionValue.enabled !== false;\n }\n } // if the option value is a boolean and the default is an object\n else if (is.bool(optionValue) && is.object(defaults.perAction[optionName])) {\n actionOptions[optionName].enabled = optionValue;\n } // if it's anything else, do a plain assignment\n else {\n actionOptions[optionName] = optionValue;\n }\n }\n }\n /**\n * The default function to get an Interactables bounding rect. Can be\n * overridden using {@link Interactable.rectChecker}.\n *\n * @param {Element} [element] The element to measure.\n * @return {Rect} The object's bounding rectangle.\n */\n\n\n getRect(element) {\n element = element || (is.element(this.target) ? this.target : null);\n\n if (is.string(this.target)) {\n element = element || this._context.querySelector(this.target);\n }\n\n return getElementRect(element);\n }\n /**\n * Returns or sets the function used to calculate the interactable's\n * element's rectangle\n *\n * @param {function} [checker] A function which returns this Interactable's\n * bounding rectangle. See {@link Interactable.getRect}\n * @return {function | object} The checker function or this Interactable\n */\n\n\n rectChecker(checker) {\n if (is.func(checker)) {\n this._rectChecker = checker;\n\n this.getRect = element => {\n const rect = extend({}, this._rectChecker(element));\n\n if (!('width' in rect)) {\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n return rect;\n };\n\n return this;\n }\n\n if (checker === null) {\n delete this.getRect;\n delete this._rectChecker;\n return this;\n }\n\n return this.getRect;\n }\n\n _backCompatOption(optionName, newValue) {\n if (trySelector(newValue) || is.object(newValue)) {\n this.options[optionName] = newValue;\n\n for (const action in this._actions.map) {\n this.options[action][optionName] = newValue;\n }\n\n return this;\n }\n\n return this.options[optionName];\n }\n /**\n * Gets or sets the origin of the Interactable's element. The x and y\n * of the origin will be subtracted from action event coordinates.\n *\n * @param {Element | object | string} [origin] An HTML or SVG Element whose\n * rect will be used, an object eg. { x: 0, y: 0 } or string 'parent', 'self'\n * or any CSS selector\n *\n * @return {object} The current origin or this Interactable\n */\n\n\n origin(newValue) {\n return this._backCompatOption('origin', newValue);\n }\n /**\n * Returns or sets the mouse coordinate types used to calculate the\n * movement of the pointer.\n *\n * @param {string} [newValue] Use 'client' if you will be scrolling while\n * interacting; Use 'page' if you want autoScroll to work\n * @return {string | object} The current deltaSource or this Interactable\n */\n\n\n deltaSource(newValue) {\n if (newValue === 'page' || newValue === 'client') {\n this.options.deltaSource = newValue;\n return this;\n }\n\n return this.options.deltaSource;\n }\n /**\n * Gets the selector context Node of the Interactable. The default is\n * `window.document`.\n *\n * @return {Node} The context Node of this Interactable\n */\n\n\n context() {\n return this._context;\n }\n\n inContext(element) {\n return this._context === element.ownerDocument || nodeContains(this._context, element);\n }\n\n testIgnoreAllow(options, targetNode, eventTarget) {\n return !this.testIgnore(options.ignoreFrom, targetNode, eventTarget) && this.testAllow(options.allowFrom, targetNode, eventTarget);\n }\n\n testAllow(allowFrom, targetNode, element) {\n if (!allowFrom) {\n return true;\n }\n\n if (!is.element(element)) {\n return false;\n }\n\n if (is.string(allowFrom)) {\n return matchesUpTo(element, allowFrom, targetNode);\n } else if (is.element(allowFrom)) {\n return nodeContains(allowFrom, element);\n }\n\n return false;\n }\n\n testIgnore(ignoreFrom, targetNode, element) {\n if (!ignoreFrom || !is.element(element)) {\n return false;\n }\n\n if (is.string(ignoreFrom)) {\n return matchesUpTo(element, ignoreFrom, targetNode);\n } else if (is.element(ignoreFrom)) {\n return nodeContains(ignoreFrom, element);\n }\n\n return false;\n }\n /**\n * Calls listeners for the given InteractEvent type bound globally\n * and directly to this Interactable\n *\n * @param {InteractEvent} iEvent The InteractEvent object to be fired on this\n * Interactable\n * @return {Interactable} this Interactable\n */\n\n\n fire(iEvent) {\n this.events.fire(iEvent);\n return this;\n }\n\n _onOff(method, typeArg, listenerArg, options) {\n if (is.object(typeArg) && !is.array(typeArg)) {\n options = listenerArg;\n listenerArg = null;\n }\n\n const addRemove = method === 'on' ? 'add' : 'remove';\n const listeners = normalizeListeners(typeArg, listenerArg);\n\n for (let type in listeners) {\n if (type === 'wheel') {\n type = browser.wheelEvent;\n }\n\n for (const listener of listeners[type]) {\n // if it is an action event type\n if (isNonNativeEvent(type, this._actions)) {\n this.events[method](type, listener);\n } // delegated event\n else if (is.string(this.target)) {\n this._scopeEvents[`${addRemove}Delegate`](this.target, this._context, type, listener, options);\n } // remove listener from this Interactable's element\n else {\n this._scopeEvents[addRemove](this.target, type, listener, options);\n }\n }\n }\n\n return this;\n }\n /**\n * Binds a listener for an InteractEvent, pointerEvent or DOM event.\n *\n * @param {string | array | object} types The types of events to listen\n * for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * addEventListener\n * @return {Interactable} This Interactable\n */\n\n\n on(types, listener, options) {\n return this._onOff('on', types, listener, options);\n }\n /**\n * Removes an InteractEvent, pointerEvent or DOM event listener.\n *\n * @param {string | array | object} types The types of events that were\n * listened for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * removeEventListener\n * @return {Interactable} This Interactable\n */\n\n\n off(types, listener, options) {\n return this._onOff('off', types, listener, options);\n }\n /**\n * Reset the options of this Interactable\n *\n * @param {object} options The new settings to apply\n * @return {object} This Interactable\n */\n\n\n set(options) {\n const defaults = this._defaults;\n\n if (!is.object(options)) {\n options = {};\n }\n\n this.options = clone(defaults.base);\n\n for (const actionName_ in this._actions.methodDict) {\n const actionName = actionName_;\n const methodName = this._actions.methodDict[actionName];\n this.options[actionName] = {};\n this.setPerAction(actionName, extend(extend({}, defaults.perAction), defaults.actions[actionName]));\n this[methodName](options[actionName]);\n }\n\n for (const setting in options) {\n if (is.func(this[setting])) {\n this[setting](options[setting]);\n }\n }\n\n return this;\n }\n /**\n * Remove this interactable from the list of interactables and remove it's\n * action capabilities and event listeners\n */\n\n\n unset() {\n if (is.string(this.target)) {\n // remove delegated events\n for (const type in this._scopeEvents.delegatedEvents) {\n const delegated = this._scopeEvents.delegatedEvents[type];\n\n for (let i = delegated.length - 1; i >= 0; i--) {\n const {\n selector,\n context,\n listeners\n } = delegated[i];\n\n if (selector === this.target && context === this._context) {\n delegated.splice(i, 1);\n }\n\n for (let l = listeners.length - 1; l >= 0; l--) {\n this._scopeEvents.removeDelegate(this.target, this._context, type, listeners[l][0], listeners[l][1]);\n }\n }\n }\n } else {\n this._scopeEvents.remove(this.target, 'all');\n }\n }\n\n}\n//# sourceMappingURL=Interactable.js.map","import * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nexport class InteractableSet {\n // all set interactables\n constructor(scope) {\n this.list = [];\n this.selectorMap = {};\n this.scope = void 0;\n this.scope = scope;\n scope.addListeners({\n 'interactable:unset': ({\n interactable\n }) => {\n const {\n target,\n _context: context\n } = interactable;\n const targetMappings = is.string(target) ? this.selectorMap[target] : target[this.scope.id];\n const targetIndex = arr.findIndex(targetMappings, m => m.context === context);\n\n if (targetMappings[targetIndex]) {\n // Destroying mappingInfo's context and interactable\n targetMappings[targetIndex].context = null;\n targetMappings[targetIndex].interactable = null;\n }\n\n targetMappings.splice(targetIndex, 1);\n }\n });\n }\n\n new(target, options) {\n options = extend(options || {}, {\n actions: this.scope.actions\n });\n const interactable = new this.scope.Interactable(target, options, this.scope.document, this.scope.events);\n const mappingInfo = {\n context: interactable._context,\n interactable\n };\n this.scope.addDocument(interactable._doc);\n this.list.push(interactable);\n\n if (is.string(target)) {\n if (!this.selectorMap[target]) {\n this.selectorMap[target] = [];\n }\n\n this.selectorMap[target].push(mappingInfo);\n } else {\n if (!interactable.target[this.scope.id]) {\n Object.defineProperty(target, this.scope.id, {\n value: [],\n configurable: true\n });\n }\n\n target[this.scope.id].push(mappingInfo);\n }\n\n this.scope.fire('interactable:new', {\n target,\n options,\n interactable,\n win: this.scope._win\n });\n return interactable;\n }\n\n get(target, options) {\n const context = options && options.context || this.scope.document;\n const isSelector = is.string(target);\n const targetMappings = isSelector ? this.selectorMap[target] : target[this.scope.id];\n\n if (!targetMappings) {\n return null;\n }\n\n const found = arr.find(targetMappings, m => m.context === context && (isSelector || m.interactable.inContext(target)));\n return found && found.interactable;\n }\n\n forEachMatch(node, callback) {\n for (const interactable of this.list) {\n let ret;\n\n if ((is.string(interactable.target) // target is a selector and the element matches\n ? is.element(node) && domUtils.matchesSelector(node, interactable.target) : // target is the element\n node === interactable.target) && // the element is in context\n interactable.inContext(node)) {\n ret = callback(interactable);\n }\n\n if (ret !== undefined) {\n return ret;\n }\n }\n }\n\n}\n//# sourceMappingURL=InteractableSet.js.map","function pointerExtend(dest, source) {\n for (const prop in source) {\n const prefixedPropREs = pointerExtend.prefixedPropREs;\n let deprecated = false; // skip deprecated prefixed properties\n\n for (const vendor in prefixedPropREs) {\n if (prop.indexOf(vendor) === 0 && prefixedPropREs[vendor].test(prop)) {\n deprecated = true;\n break;\n }\n }\n\n if (!deprecated && typeof source[prop] !== 'function') {\n dest[prop] = source[prop];\n }\n }\n\n return dest;\n}\n\npointerExtend.prefixedPropREs = {\n webkit: /(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,\n moz: /(Pressure)$/\n};\nexport default pointerExtend;\n//# sourceMappingURL=pointerExtend.js.map","import browser from \"./browser.js\";\nimport dom from \"./domObjects.js\";\nimport * as domUtils from \"./domUtils.js\";\nimport hypot from \"./hypot.js\";\nimport is from \"./is.js\";\nimport pointerExtend from \"./pointerExtend.js\";\nexport function copyCoords(dest, src) {\n dest.page = dest.page || {};\n dest.page.x = src.page.x;\n dest.page.y = src.page.y;\n dest.client = dest.client || {};\n dest.client.x = src.client.x;\n dest.client.y = src.client.y;\n dest.timeStamp = src.timeStamp;\n}\nexport function setCoordDeltas(targetObj, prev, cur) {\n targetObj.page.x = cur.page.x - prev.page.x;\n targetObj.page.y = cur.page.y - prev.page.y;\n targetObj.client.x = cur.client.x - prev.client.x;\n targetObj.client.y = cur.client.y - prev.client.y;\n targetObj.timeStamp = cur.timeStamp - prev.timeStamp;\n}\nexport function setCoordVelocity(targetObj, delta) {\n const dt = Math.max(delta.timeStamp / 1000, 0.001);\n targetObj.page.x = delta.page.x / dt;\n targetObj.page.y = delta.page.y / dt;\n targetObj.client.x = delta.client.x / dt;\n targetObj.client.y = delta.client.y / dt;\n targetObj.timeStamp = dt;\n}\nexport function setZeroCoords(targetObj) {\n targetObj.page.x = 0;\n targetObj.page.y = 0;\n targetObj.client.x = 0;\n targetObj.client.y = 0;\n}\nexport function isNativePointer(pointer) {\n return pointer instanceof dom.Event || pointer instanceof dom.Touch;\n} // Get specified X/Y coords for mouse or event.touches[0]\n\nexport function getXY(type, pointer, xy) {\n xy = xy || {};\n type = type || 'page';\n xy.x = pointer[type + 'X'];\n xy.y = pointer[type + 'Y'];\n return xy;\n}\nexport function getPageXY(pointer, page) {\n page = page || {\n x: 0,\n y: 0\n }; // Opera Mobile handles the viewport and scrolling oddly\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n getXY('screen', pointer, page);\n page.x += window.scrollX;\n page.y += window.scrollY;\n } else {\n getXY('page', pointer, page);\n }\n\n return page;\n}\nexport function getClientXY(pointer, client) {\n client = client || {};\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n // Opera Mobile handles the viewport and scrolling oddly\n getXY('screen', pointer, client);\n } else {\n getXY('client', pointer, client);\n }\n\n return client;\n}\nexport function getPointerId(pointer) {\n return is.number(pointer.pointerId) ? pointer.pointerId : pointer.identifier;\n}\nexport function setCoords(dest, pointers, timeStamp) {\n const pointer = pointers.length > 1 ? pointerAverage(pointers) : pointers[0];\n getPageXY(pointer, dest.page);\n getClientXY(pointer, dest.client);\n dest.timeStamp = timeStamp;\n}\nexport function getTouchPair(event) {\n const touches = []; // array of touches is supplied\n\n if (is.array(event)) {\n touches[0] = event[0];\n touches[1] = event[1];\n } // an event\n else {\n if (event.type === 'touchend') {\n if (event.touches.length === 1) {\n touches[0] = event.touches[0];\n touches[1] = event.changedTouches[0];\n } else if (event.touches.length === 0) {\n touches[0] = event.changedTouches[0];\n touches[1] = event.changedTouches[1];\n }\n } else {\n touches[0] = event.touches[0];\n touches[1] = event.touches[1];\n }\n }\n\n return touches;\n}\nexport function pointerAverage(pointers) {\n const average = {\n pageX: 0,\n pageY: 0,\n clientX: 0,\n clientY: 0,\n screenX: 0,\n screenY: 0\n };\n\n for (const pointer of pointers) {\n for (const prop in average) {\n average[prop] += pointer[prop];\n }\n }\n\n for (const prop in average) {\n average[prop] /= pointers.length;\n }\n\n return average;\n}\nexport function touchBBox(event) {\n if (!event.length) {\n return null;\n }\n\n const touches = getTouchPair(event);\n const minX = Math.min(touches[0].pageX, touches[1].pageX);\n const minY = Math.min(touches[0].pageY, touches[1].pageY);\n const maxX = Math.max(touches[0].pageX, touches[1].pageX);\n const maxY = Math.max(touches[0].pageY, touches[1].pageY);\n return {\n x: minX,\n y: minY,\n left: minX,\n top: minY,\n right: maxX,\n bottom: maxY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nexport function touchDistance(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[0][sourceX] - touches[1][sourceX];\n const dy = touches[0][sourceY] - touches[1][sourceY];\n return hypot(dx, dy);\n}\nexport function touchAngle(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[1][sourceX] - touches[0][sourceX];\n const dy = touches[1][sourceY] - touches[0][sourceY];\n const angle = 180 * Math.atan2(dy, dx) / Math.PI;\n return angle;\n}\nexport function getPointerType(pointer) {\n return is.string(pointer.pointerType) ? pointer.pointerType : is.number(pointer.pointerType) ? [undefined, undefined, 'touch', 'pen', 'mouse'][pointer.pointerType] // if the PointerEvent API isn't available, then the \"pointer\" must\n // be either a MouseEvent, TouchEvent, or Touch object\n : /touch/.test(pointer.type) || pointer instanceof dom.Touch ? 'touch' : 'mouse';\n} // [ event.target, event.currentTarget ]\n\nexport function getEventTargets(event) {\n const path = is.func(event.composedPath) ? event.composedPath() : event.path;\n return [domUtils.getActualElement(path ? path[0] : event.target), domUtils.getActualElement(event.currentTarget)];\n}\nexport function newCoords() {\n return {\n page: {\n x: 0,\n y: 0\n },\n client: {\n x: 0,\n y: 0\n },\n timeStamp: 0\n };\n}\nexport function coordsToEvent(coords) {\n const event = {\n coords,\n\n get page() {\n return this.coords.page;\n },\n\n get client() {\n return this.coords.client;\n },\n\n get timeStamp() {\n return this.coords.timeStamp;\n },\n\n get pageX() {\n return this.coords.page.x;\n },\n\n get pageY() {\n return this.coords.page.y;\n },\n\n get clientX() {\n return this.coords.client.x;\n },\n\n get clientY() {\n return this.coords.client.y;\n },\n\n get pointerId() {\n return this.coords.pointerId;\n },\n\n get target() {\n return this.coords.target;\n },\n\n get type() {\n return this.coords.type;\n },\n\n get pointerType() {\n return this.coords.pointerType;\n },\n\n get buttons() {\n return this.coords.buttons;\n },\n\n preventDefault() {}\n\n };\n return event;\n}\nexport { pointerExtend };\n//# sourceMappingURL=pointerUtils.js.map","import { Scope } from \"./scope.js\";\nimport * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport pExtend from \"../utils/pointerExtend.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\n\nfunction install(scope) {\n const targets = [];\n const delegatedEvents = {};\n const documents = [];\n const eventsMethods = {\n add,\n remove,\n addDelegate,\n removeDelegate,\n delegateListener,\n delegateUseCapture,\n delegatedEvents,\n documents,\n targets,\n supportsOptions: false,\n supportsPassive: false\n }; // check if browser supports passive events and options arg\n\n scope.document.createElement('div').addEventListener('test', null, {\n get capture() {\n return eventsMethods.supportsOptions = true;\n },\n\n get passive() {\n return eventsMethods.supportsPassive = true;\n }\n\n });\n scope.events = eventsMethods;\n\n function add(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n let target = arr.find(targets, t => t.eventTarget === eventTarget);\n\n if (!target) {\n target = {\n eventTarget,\n events: {}\n };\n targets.push(target);\n }\n\n if (!target.events[type]) {\n target.events[type] = [];\n }\n\n if (eventTarget.addEventListener && !arr.contains(target.events[type], listener)) {\n eventTarget.addEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n target.events[type].push(listener);\n }\n }\n\n function remove(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const targetIndex = arr.findIndex(targets, t => t.eventTarget === eventTarget);\n const target = targets[targetIndex];\n\n if (!target || !target.events) {\n return;\n }\n\n if (type === 'all') {\n for (type in target.events) {\n if (target.events.hasOwnProperty(type)) {\n remove(eventTarget, type, 'all');\n }\n }\n\n return;\n }\n\n let typeIsEmpty = false;\n const typeListeners = target.events[type];\n\n if (typeListeners) {\n if (listener === 'all') {\n for (let i = typeListeners.length - 1; i >= 0; i--) {\n remove(eventTarget, type, typeListeners[i], options);\n }\n\n return;\n } else {\n for (let i = 0; i < typeListeners.length; i++) {\n if (typeListeners[i] === listener) {\n eventTarget.removeEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n typeListeners.splice(i, 1);\n\n if (typeListeners.length === 0) {\n delete target.events[type];\n typeIsEmpty = true;\n }\n\n break;\n }\n }\n }\n }\n\n if (typeIsEmpty && !Object.keys(target.events).length) {\n targets.splice(targetIndex, 1);\n }\n }\n\n function addDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n\n if (!delegatedEvents[type]) {\n delegatedEvents[type] = []; // add delegate listener functions\n\n for (const doc of documents) {\n add(doc, type, delegateListener);\n add(doc, type, delegateUseCapture, true);\n }\n }\n\n const delegates = delegatedEvents[type];\n let delegate = arr.find(delegates, d => d.selector === selector && d.context === context);\n\n if (!delegate) {\n delegate = {\n selector,\n context,\n listeners: []\n };\n delegates.push(delegate);\n }\n\n delegate.listeners.push([listener, options]);\n }\n\n function removeDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const delegates = delegatedEvents[type];\n let matchFound = false;\n let index;\n\n if (!delegates) {\n return;\n } // count from last index of delegated to 0\n\n\n for (index = delegates.length - 1; index >= 0; index--) {\n const cur = delegates[index]; // look for matching selector and context Node\n\n if (cur.selector === selector && cur.context === context) {\n const {\n listeners\n } = cur; // each item of the listeners array is an array: [function, capture, passive]\n\n for (let i = listeners.length - 1; i >= 0; i--) {\n const [fn, {\n capture,\n passive\n }] = listeners[i]; // check if the listener functions and capture and passive flags match\n\n if (fn === listener && capture === options.capture && passive === options.passive) {\n // remove the listener from the array of listeners\n listeners.splice(i, 1); // if all listeners for this target have been removed\n // remove the target from the delegates array\n\n if (!listeners.length) {\n delegates.splice(index, 1); // remove delegate function from context\n\n remove(context, type, delegateListener);\n remove(context, type, delegateUseCapture, true);\n } // only remove one listener\n\n\n matchFound = true;\n break;\n }\n }\n\n if (matchFound) {\n break;\n }\n }\n }\n } // bound to the interactable context when a DOM event\n // listener is added to a selector interactable\n\n\n function delegateListener(event, optionalArg) {\n const options = getOptions(optionalArg);\n const fakeEvent = new FakeEvent(event);\n const delegates = delegatedEvents[event.type];\n const [eventTarget] = pointerUtils.getEventTargets(event);\n let element = eventTarget; // climb up document tree looking for selector matches\n\n while (is.element(element)) {\n for (let i = 0; i < delegates.length; i++) {\n const cur = delegates[i];\n const {\n selector,\n context\n } = cur;\n\n if (domUtils.matchesSelector(element, selector) && domUtils.nodeContains(context, eventTarget) && domUtils.nodeContains(context, element)) {\n const {\n listeners\n } = cur;\n fakeEvent.currentTarget = element;\n\n for (const [fn, {\n capture,\n passive\n }] of listeners) {\n if (capture === options.capture && passive === options.passive) {\n fn(fakeEvent);\n }\n }\n }\n }\n\n element = domUtils.parentNode(element);\n }\n }\n\n function delegateUseCapture(event) {\n return delegateListener.call(this, event, true);\n } // for type inferrence\n\n\n return eventsMethods;\n}\n\nclass FakeEvent {\n constructor(originalEvent) {\n this.currentTarget = void 0;\n this.originalEvent = void 0;\n this.type = void 0;\n this.originalEvent = originalEvent; // duplicate the event so that currentTarget can be changed\n\n pExtend(this, originalEvent);\n }\n\n preventOriginalDefault() {\n this.originalEvent.preventDefault();\n }\n\n stopPropagation() {\n this.originalEvent.stopPropagation();\n }\n\n stopImmediatePropagation() {\n this.originalEvent.stopImmediatePropagation();\n }\n\n}\n\nfunction getOptions(param) {\n if (!is.object(param)) {\n return {\n capture: !!param,\n passive: false\n };\n }\n\n const options = extend({}, param);\n options.capture = !!param.capture;\n options.passive = !!param.passive;\n return options;\n}\n\nexport default {\n id: 'events',\n install\n};\n//# sourceMappingURL=events.js.map","import { window } from \"./window.js\";\nexport function warnOnce(method, message) {\n let warned = false;\n return function () {\n if (!warned) {\n window.console.warn(message);\n warned = true;\n }\n\n return method.apply(this, arguments);\n };\n}\nexport function copyAction(dest, src) {\n dest.name = src.name;\n dest.axis = src.axis;\n dest.edges = src.edges;\n return dest;\n}\n//# sourceMappingURL=misc.js.map","/** @module interact */\nimport browser from \"../utils/browser.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport { warnOnce } from \"../utils/misc.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\nexport function createInteractStatic(scope) {\n /**\n * ```js\n * interact('#draggable').draggable(true)\n *\n * var rectables = interact('rect')\n * rectables\n * .gesturable(true)\n * .on('gesturemove', function (event) {\n * // ...\n * })\n * ```\n *\n * The methods of this variable can be used to set elements as interactables\n * and also to change various default settings.\n *\n * Calling it as a function and passing an element or a valid CSS selector\n * string returns an Interactable object which has various methods to configure\n * it.\n *\n * @global\n *\n * @param {Element | string} target The HTML or SVG Element to interact with\n * or CSS selector\n * @return {Interactable}\n */\n const interact = (target, options) => {\n let interactable = scope.interactables.get(target, options);\n\n if (!interactable) {\n interactable = scope.interactables.new(target, options);\n interactable.events.global = interact.globalEvents;\n }\n\n return interactable;\n }; // expose the functions used to calculate multi-touch properties\n\n\n interact.getPointerAverage = pointerUtils.pointerAverage;\n interact.getTouchBBox = pointerUtils.touchBBox;\n interact.getTouchDistance = pointerUtils.touchDistance;\n interact.getTouchAngle = pointerUtils.touchAngle;\n interact.getElementRect = domUtils.getElementRect;\n interact.getElementClientRect = domUtils.getElementClientRect;\n interact.matchesSelector = domUtils.matchesSelector;\n interact.closest = domUtils.closest;\n interact.globalEvents = {}; // eslint-disable-next-line no-undef\n\n interact.version = \"1.10.2\";\n interact.scope = scope;\n /**\n * Use a plugin\n *\n * @alias module:interact.use\n *\n */\n\n interact.use = function (plugin, options) {\n this.scope.usePlugin(plugin, options);\n return this;\n };\n /**\n * Check if an element or selector has been set with the {@link interact}\n * function\n *\n * @alias module:interact.isSet\n *\n * @param {Target} target The Element or string being searched for\n * @param {object} options\n * @return {boolean} Indicates if the element or CSS selector was previously\n * passed to interact\n */\n\n\n interact.isSet = function (target, options) {\n return !!this.scope.interactables.get(target, options && options.context);\n };\n /**\n * @deprecated\n * Add a global listener for an InteractEvent or adds a DOM event to `document`\n *\n * @alias module:interact.on\n *\n * @param {string | array | object} type The types of events to listen for\n * @param {function} listener The function event (s)\n * @param {object | boolean} [options] object or useCapture flag for\n * addEventListener\n * @return {object} interact\n */\n\n\n interact.on = warnOnce(function on(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.on(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.on(prop, type[prop], listener);\n }\n\n return this;\n } // if it is an InteractEvent type, add listener to globalEvents\n\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n // if this type of event was never bound\n if (!this.globalEvents[type]) {\n this.globalEvents[type] = [listener];\n } else {\n this.globalEvents[type].push(listener);\n }\n } // If non InteractEvent type, addEventListener to document\n else {\n this.scope.events.add(this.scope.document, type, listener, {\n options\n });\n }\n\n return this;\n }, 'The interact.on() method is being deprecated');\n /**\n * @deprecated\n * Removes a global InteractEvent listener or DOM event from `document`\n *\n * @alias module:interact.off\n *\n * @param {string | array | object} type The types of events that were listened\n * for\n * @param {function} listener The listener function to be removed\n * @param {object | boolean} options [options] object or useCapture flag for\n * removeEventListener\n * @return {object} interact\n */\n\n interact.off = warnOnce(function off(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.off(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.off(prop, type[prop], listener);\n }\n\n return this;\n }\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n let index;\n\n if (type in this.globalEvents && (index = this.globalEvents[type].indexOf(listener)) !== -1) {\n this.globalEvents[type].splice(index, 1);\n }\n } else {\n this.scope.events.remove(this.scope.document, type, listener, options);\n }\n\n return this;\n }, 'The interact.off() method is being deprecated');\n\n interact.debug = function () {\n return this.scope;\n };\n /**\n * @alias module:interact.supportsTouch\n *\n * @return {boolean} Whether or not the browser supports touch input\n */\n\n\n interact.supportsTouch = function () {\n return browser.supportsTouch;\n };\n /**\n * @alias module:interact.supportsPointerEvent\n *\n * @return {boolean} Whether or not the browser supports PointerEvents\n */\n\n\n interact.supportsPointerEvent = function () {\n return browser.supportsPointerEvent;\n };\n /**\n * Cancels all interactions (end events are not fired)\n *\n * @alias module:interact.stop\n *\n * @return {object} interact\n */\n\n\n interact.stop = function () {\n for (const interaction of this.scope.interactions.list) {\n interaction.stop();\n }\n\n return this;\n };\n /**\n * Returns or sets the distance the pointer must be moved before an action\n * sequence occurs. This also affects tolerance for tap events.\n *\n * @alias module:interact.pointerMoveTolerance\n *\n * @param {number} [newValue] The movement from the start position must be greater than this value\n * @return {interact | number}\n */\n\n\n interact.pointerMoveTolerance = function (newValue) {\n if (is.number(newValue)) {\n this.scope.interactions.pointerMoveTolerance = newValue;\n return this;\n }\n\n return this.scope.interactions.pointerMoveTolerance;\n };\n\n interact.addDocument = function (doc, options) {\n this.scope.addDocument(doc, options);\n };\n\n interact.removeDocument = function (doc) {\n this.scope.removeDocument(doc);\n };\n\n return interact;\n}\n//# sourceMappingURL=interactStatic.js.map","export class PointerInfo {\n constructor(id, pointer, event, downTime, downTarget) {\n this.id = void 0;\n this.pointer = void 0;\n this.event = void 0;\n this.downTime = void 0;\n this.downTarget = void 0;\n this.id = id;\n this.pointer = pointer;\n this.event = event;\n this.downTime = downTime;\n this.downTarget = downTarget;\n }\n\n}\n//# sourceMappingURL=PointerInfo.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { warnOnce, copyAction } from \"../utils/misc.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { PointerInfo } from \"./PointerInfo.js\";\nexport let _ProxyValues;\n\n(function (_ProxyValues) {\n _ProxyValues[\"interactable\"] = \"\";\n _ProxyValues[\"element\"] = \"\";\n _ProxyValues[\"prepared\"] = \"\";\n _ProxyValues[\"pointerIsDown\"] = \"\";\n _ProxyValues[\"pointerWasMoved\"] = \"\";\n _ProxyValues[\"_proxy\"] = \"\";\n})(_ProxyValues || (_ProxyValues = {}));\n\nexport let _ProxyMethods;\n\n(function (_ProxyMethods) {\n _ProxyMethods[\"start\"] = \"\";\n _ProxyMethods[\"move\"] = \"\";\n _ProxyMethods[\"end\"] = \"\";\n _ProxyMethods[\"stop\"] = \"\";\n _ProxyMethods[\"interacting\"] = \"\";\n})(_ProxyMethods || (_ProxyMethods = {}));\n\nlet idCounter = 0;\nexport class Interaction {\n // current interactable being interacted with\n // the target element of the interactable\n // action that's ready to be fired on next move event\n // keep track of added pointers\n // pointerdown/mousedown/touchstart event\n // previous action event\n\n /** @internal */\n get pointerMoveTolerance() {\n return 1;\n }\n /**\n * @alias Interaction.prototype.move\n */\n\n\n /** */\n constructor({\n pointerType,\n scopeFire\n }) {\n this.interactable = null;\n this.element = null;\n this.rect = void 0;\n this._rects = void 0;\n this.edges = void 0;\n this._scopeFire = void 0;\n this.prepared = {\n name: null,\n axis: null,\n edges: null\n };\n this.pointerType = void 0;\n this.pointers = [];\n this.downEvent = null;\n this.downPointer = {};\n this._latestPointer = {\n pointer: null,\n event: null,\n eventTarget: null\n };\n this.prevEvent = null;\n this.pointerIsDown = false;\n this.pointerWasMoved = false;\n this._interacting = false;\n this._ending = false;\n this._stopped = true;\n this._proxy = null;\n this.simulation = null;\n this.doMove = warnOnce(function (signalArg) {\n this.move(signalArg);\n }, 'The interaction.doMove() method has been renamed to interaction.move()');\n this.coords = {\n // Starting InteractEvent pointer coordinates\n start: pointerUtils.newCoords(),\n // Previous native pointer move event coordinates\n prev: pointerUtils.newCoords(),\n // current native pointer move event coordinates\n cur: pointerUtils.newCoords(),\n // Change in coordinates and time of the pointer\n delta: pointerUtils.newCoords(),\n // pointer velocity\n velocity: pointerUtils.newCoords()\n };\n this._id = idCounter++;\n this._scopeFire = scopeFire;\n this.pointerType = pointerType;\n const that = this;\n this._proxy = {};\n\n for (const key in _ProxyValues) {\n Object.defineProperty(this._proxy, key, {\n get() {\n return that[key];\n }\n\n });\n }\n\n for (const key in _ProxyMethods) {\n Object.defineProperty(this._proxy, key, {\n value: (...args) => that[key](...args)\n });\n }\n\n this._scopeFire('interactions:new', {\n interaction: this\n });\n }\n\n pointerDown(pointer, event, eventTarget) {\n const pointerIndex = this.updatePointer(pointer, event, eventTarget, true);\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:down', {\n pointer,\n event,\n eventTarget,\n pointerIndex,\n pointerInfo,\n type: 'down',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable({\n * // disable the default drag start by down->move\n * manualStart: true\n * })\n * // start dragging after the user holds the pointer down\n * .on('hold', function (event) {\n * var interaction = event.interaction\n *\n * if (!interaction.interacting()) {\n * interaction.start({ name: 'drag' },\n * event.interactable,\n * event.currentTarget)\n * }\n * })\n * ```\n *\n * Start an action with the given Interactable and Element as tartgets. The\n * action must be enabled for the target Interactable and an appropriate\n * number of pointers must be held down - 1 for drag/resize, 2 for gesture.\n *\n * Use it with `interactable.able({ manualStart: false })` to always\n * [start actions manually](https://github.com/taye/interact.js/issues/114)\n *\n * @param {object} action The action to be performed - drag, resize, etc.\n * @param {Interactable} target The Interactable to target\n * @param {Element} element The DOM Element to target\n * @return {Boolean} Whether the interaction was successfully started\n */\n\n\n start(action, interactable, element) {\n if (this.interacting() || !this.pointerIsDown || this.pointers.length < (action.name === 'gesture' ? 2 : 1) || !interactable.options[action.name].enabled) {\n return false;\n }\n\n copyAction(this.prepared, action);\n this.interactable = interactable;\n this.element = element;\n this.rect = interactable.getRect(element);\n this.edges = this.prepared.edges ? extend({}, this.prepared.edges) : {\n left: true,\n right: true,\n top: true,\n bottom: true\n };\n this._stopped = false;\n this._interacting = this._doPhase({\n interaction: this,\n event: this.downEvent,\n phase: 'start'\n }) && !this._stopped;\n return this._interacting;\n }\n\n pointerMove(pointer, event, eventTarget) {\n if (!this.simulation && !(this.modification && this.modification.endResult)) {\n this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const duplicateMove = 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;\n let dx;\n let dy; // register movement greater than pointerMoveTolerance\n\n if (this.pointerIsDown && !this.pointerWasMoved) {\n dx = this.coords.cur.client.x - this.coords.start.client.x;\n dy = this.coords.cur.client.y - this.coords.start.client.y;\n this.pointerWasMoved = hypot(dx, dy) > this.pointerMoveTolerance;\n }\n\n const pointerIndex = this.getPointerIndex(pointer);\n const signalArg = {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n type: 'move',\n eventTarget,\n dx,\n dy,\n duplicate: duplicateMove,\n interaction: this\n };\n\n if (!duplicateMove) {\n // set pointer coordinate, time changes and velocity\n pointerUtils.setCoordVelocity(this.coords.velocity, this.coords.delta);\n }\n\n this._scopeFire('interactions:move', signalArg);\n\n if (!duplicateMove && !this.simulation) {\n // if interacting, fire an 'action-move' signal etc\n if (this.interacting()) {\n signalArg.type = null;\n this.move(signalArg);\n }\n\n if (this.pointerWasMoved) {\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n }\n }\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('dragmove', function (event) {\n * if (someCondition) {\n * // change the snap settings\n * event.interactable.draggable({ snap: { targets: [] }})\n * // fire another move event with re-calculated snap\n * event.interaction.move()\n * }\n * })\n * ```\n *\n * Force a move of the current action at the same coordinates. Useful if\n * snap/restrict has been changed and you want a movement with the new\n * settings.\n */\n\n\n move(signalArg) {\n if (!signalArg || !signalArg.event) {\n pointerUtils.setZeroCoords(this.coords.delta);\n }\n\n signalArg = extend({\n pointer: this._latestPointer.pointer,\n event: this._latestPointer.event,\n eventTarget: this._latestPointer.eventTarget,\n interaction: this\n }, signalArg || {});\n signalArg.phase = 'move';\n\n this._doPhase(signalArg);\n } // End interact move events and stop auto-scroll unless simulation is running\n\n\n pointerUp(pointer, event, eventTarget, curEventTarget) {\n let pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n pointerIndex = this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const type = /cancel$/i.test(event.type) ? 'cancel' : 'up';\n\n this._scopeFire(`interactions:${type}`, {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n eventTarget,\n type: type,\n curEventTarget,\n interaction: this\n });\n\n if (!this.simulation) {\n this.end(event);\n }\n\n this.removePointer(pointer, event);\n }\n\n documentBlur(event) {\n this.end(event);\n\n this._scopeFire('interactions:blur', {\n event,\n type: 'blur',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('move', function (event) {\n * if (event.pageX > 1000) {\n * // end the current action\n * event.interaction.end()\n * // stop all further listeners from being called\n * event.stopImmediatePropagation()\n * }\n * })\n * ```\n *\n * @param {PointerEvent} [event]\n */\n\n\n end(event) {\n this._ending = true;\n event = event || this._latestPointer.event;\n let endPhaseResult;\n\n if (this.interacting()) {\n endPhaseResult = this._doPhase({\n event,\n interaction: this,\n phase: 'end'\n });\n }\n\n this._ending = false;\n\n if (endPhaseResult === true) {\n this.stop();\n }\n }\n\n currentAction() {\n return this._interacting ? this.prepared.name : null;\n }\n\n interacting() {\n return this._interacting;\n }\n /** */\n\n\n stop() {\n this._scopeFire('interactions:stop', {\n interaction: this\n });\n\n this.interactable = this.element = null;\n this._interacting = false;\n this._stopped = true;\n this.prepared.name = this.prevEvent = null;\n }\n\n getPointerIndex(pointer) {\n const pointerId = pointerUtils.getPointerId(pointer); // mouse and pen interactions may have only one pointer\n\n return this.pointerType === 'mouse' || this.pointerType === 'pen' ? this.pointers.length - 1 : arr.findIndex(this.pointers, curPointer => curPointer.id === pointerId);\n }\n\n getPointerInfo(pointer) {\n return this.pointers[this.getPointerIndex(pointer)];\n }\n\n updatePointer(pointer, event, eventTarget, down) {\n const id = pointerUtils.getPointerId(pointer);\n let pointerIndex = this.getPointerIndex(pointer);\n let pointerInfo = this.pointers[pointerIndex];\n down = down === false ? false : down || /(down|start)$/i.test(event.type);\n\n if (!pointerInfo) {\n pointerInfo = new PointerInfo(id, pointer, event, null, null);\n pointerIndex = this.pointers.length;\n this.pointers.push(pointerInfo);\n } else {\n pointerInfo.pointer = pointer;\n }\n\n pointerUtils.setCoords(this.coords.cur, this.pointers.map(p => p.pointer), this._now());\n pointerUtils.setCoordDeltas(this.coords.delta, this.coords.prev, this.coords.cur);\n\n if (down) {\n this.pointerIsDown = true;\n pointerInfo.downTime = this.coords.cur.timeStamp;\n pointerInfo.downTarget = eventTarget;\n pointerUtils.pointerExtend(this.downPointer, pointer);\n\n if (!this.interacting()) {\n pointerUtils.copyCoords(this.coords.start, this.coords.cur);\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n this.downEvent = event;\n this.pointerWasMoved = false;\n }\n }\n\n this._updateLatestPointer(pointer, event, eventTarget);\n\n this._scopeFire('interactions:update-pointer', {\n pointer,\n event,\n eventTarget,\n down,\n pointerInfo,\n pointerIndex,\n interaction: this\n });\n\n return pointerIndex;\n }\n\n removePointer(pointer, event) {\n const pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n return;\n }\n\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:remove-pointer', {\n pointer,\n event,\n eventTarget: null,\n pointerIndex,\n pointerInfo,\n interaction: this\n });\n\n this.pointers.splice(pointerIndex, 1);\n this.pointerIsDown = false;\n }\n\n _updateLatestPointer(pointer, event, eventTarget) {\n this._latestPointer.pointer = pointer;\n this._latestPointer.event = event;\n this._latestPointer.eventTarget = eventTarget;\n }\n\n destroy() {\n this._latestPointer.pointer = null;\n this._latestPointer.event = null;\n this._latestPointer.eventTarget = null;\n }\n\n _createPreparedEvent(event, phase, preEnd, type) {\n return new InteractEvent(this, event, this.prepared.name, phase, this.element, preEnd, type);\n }\n\n _fireEvent(iEvent) {\n this.interactable.fire(iEvent);\n\n if (!this.prevEvent || iEvent.timeStamp >= this.prevEvent.timeStamp) {\n this.prevEvent = iEvent;\n }\n }\n\n _doPhase(signalArg) {\n const {\n event,\n phase,\n preEnd,\n type\n } = signalArg;\n const {\n rect\n } = this;\n\n if (rect && phase === 'move') {\n // update the rect changes due to pointer move\n rectUtils.addEdges(this.edges, rect, this.coords.delta[this.interactable.options.deltaSource]);\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n const beforeResult = this._scopeFire(`interactions:before-action-${phase}`, signalArg);\n\n if (beforeResult === false) {\n return false;\n }\n\n const iEvent = signalArg.iEvent = this._createPreparedEvent(event, phase, preEnd, type);\n\n this._scopeFire(`interactions:action-${phase}`, signalArg);\n\n if (phase === 'start') {\n this.prevEvent = iEvent;\n }\n\n this._fireEvent(iEvent);\n\n this._scopeFire(`interactions:after-action-${phase}`, signalArg);\n\n return true;\n }\n\n _now() {\n return Date.now();\n }\n\n}\nexport default Interaction;\nexport { PointerInfo };\n//# sourceMappingURL=Interaction.js.map","import { Interactable } from \"./Interactable.js\";\nimport { matchesSelector, nodeContains } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport { getWindow } from \"../utils/window.js\";\n\nfunction preventDefault(newValue) {\n if (/^(always|never|auto)$/.test(newValue)) {\n this.options.preventDefault = newValue;\n return this;\n }\n\n if (is.bool(newValue)) {\n this.options.preventDefault = newValue ? 'always' : 'never';\n return this;\n }\n\n return this.options.preventDefault;\n}\n\nfunction checkAndPreventDefault(interactable, scope, event) {\n const setting = interactable.options.preventDefault;\n\n if (setting === 'never') {\n return;\n }\n\n if (setting === 'always') {\n event.preventDefault();\n return;\n } // setting === 'auto'\n // if the browser supports passive event listeners and isn't running on iOS,\n // don't preventDefault of touch{start,move} events. CSS touch-action and\n // user-select should be used instead of calling event.preventDefault().\n\n\n if (scope.events.supportsPassive && /^touch(start|move)$/.test(event.type)) {\n const doc = getWindow(event.target).document;\n const docOptions = scope.getDocOptions(doc);\n\n if (!(docOptions && docOptions.events) || docOptions.events.passive !== false) {\n return;\n }\n } // don't preventDefault of pointerdown events\n\n\n if (/^(mouse|pointer|touch)*(down|start)/i.test(event.type)) {\n return;\n } // don't preventDefault on editable elements\n\n\n if (is.element(event.target) && matchesSelector(event.target, 'input,select,textarea,[contenteditable=true],[contenteditable=true] *')) {\n return;\n }\n\n event.preventDefault();\n}\n\nfunction onInteractionEvent({\n interaction,\n event\n}) {\n if (interaction.interactable) {\n interaction.interactable.checkAndPreventDefault(event);\n }\n}\n\nexport function install(scope) {\n /** @lends Interactable */\n const {\n Interactable\n } = scope;\n /**\n * Returns or sets whether to prevent the browser's default behaviour in\n * response to pointer events. Can be set to:\n * - `'always'` to always prevent\n * - `'never'` to never prevent\n * - `'auto'` to let interact.js try to determine what would be best\n *\n * @param {string} [newValue] `'always'`, `'never'` or `'auto'`\n * @return {string | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.preventDefault = preventDefault;\n\n Interactable.prototype.checkAndPreventDefault = function (event) {\n return checkAndPreventDefault(this, scope, event);\n }; // prevent native HTML5 drag on interact.js target elements\n\n\n scope.interactions.docEvents.push({\n type: 'dragstart',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n if (interaction.element && (interaction.element === event.target || nodeContains(interaction.element, event.target))) {\n interaction.interactable.checkAndPreventDefault(event);\n return;\n }\n }\n }\n\n });\n}\nexport default {\n id: 'core/interactablePreventDefault',\n install,\n listeners: ['down', 'move', 'up', 'cancel'].reduce((acc, eventType) => {\n acc[`interactions:${eventType}`] = onInteractionEvent;\n return acc;\n }, {})\n};\n//# sourceMappingURL=interactablePreventDefault.js.map","import * as dom from \"../utils/domUtils.js\";\nconst finder = {\n methodOrder: ['simulationResume', 'mouseOrPen', 'hasPointer', 'idle'],\n\n search(details) {\n for (const method of finder.methodOrder) {\n const interaction = finder[method](details);\n\n if (interaction) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // try to resume simulation with a new pointer\n simulationResume({\n pointerType,\n eventType,\n eventTarget,\n scope\n }) {\n if (!/down|start/i.test(eventType)) {\n return null;\n }\n\n for (const interaction of scope.interactions.list) {\n let element = eventTarget;\n\n if (interaction.simulation && interaction.simulation.allowResume && interaction.pointerType === pointerType) {\n while (element) {\n // if the element is the interaction element\n if (element === interaction.element) {\n return interaction;\n }\n\n element = dom.parentNode(element);\n }\n }\n }\n\n return null;\n },\n\n // if it's a mouse or pen interaction\n mouseOrPen({\n pointerId,\n pointerType,\n eventType,\n scope\n }) {\n if (pointerType !== 'mouse' && pointerType !== 'pen') {\n return null;\n }\n\n let firstNonActive;\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType) {\n // if it's a down event, skip interactions with running simulations\n if (interaction.simulation && !hasPointerId(interaction, pointerId)) {\n continue;\n } // if the interaction is active, return it immediately\n\n\n if (interaction.interacting()) {\n return interaction;\n } // otherwise save it and look for another active interaction\n else if (!firstNonActive) {\n firstNonActive = interaction;\n }\n }\n } // if no active mouse interaction was found use the first inactive mouse\n // interaction\n\n\n if (firstNonActive) {\n return firstNonActive;\n } // find any mouse or pen interaction.\n // ignore the interaction if the eventType is a *down, and a simulation\n // is active\n\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType && !(/down/i.test(eventType) && interaction.simulation)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get interaction that has this pointer\n hasPointer({\n pointerId,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n if (hasPointerId(interaction, pointerId)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get first idle interaction with a matching pointerType\n idle({\n pointerType,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n // if there's already a pointer held down\n if (interaction.pointers.length === 1) {\n const target = interaction.interactable; // don't add this pointer if there is a target interactable and it\n // isn't gesturable\n\n if (target && !(target.options.gesture && target.options.gesture.enabled)) {\n continue;\n }\n } // maximum of 2 pointers per interaction\n else if (interaction.pointers.length >= 2) {\n continue;\n }\n\n if (!interaction.interacting() && pointerType === interaction.pointerType) {\n return interaction;\n }\n }\n\n return null;\n }\n\n};\n\nfunction hasPointerId(interaction, pointerId) {\n return interaction.pointers.some(({\n id\n }) => id === pointerId);\n}\n\nexport default finder;\n//# sourceMappingURL=interactionFinder.js.map","import { Scope, SignalArgs } from \"./scope.js\";\nimport browser from \"../utils/browser.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { nodeContains } from \"../utils/domUtils.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport InteractionBase from \"./Interaction.js\";\nimport interactablePreventDefault from \"./interactablePreventDefault.js\";\nimport finder from \"./interactionFinder.js\";\nconst methodNames = ['pointerDown', 'pointerMove', 'pointerUp', 'updatePointer', 'removePointer', 'windowBlur'];\n\nfunction install(scope) {\n const listeners = {};\n\n for (const method of methodNames) {\n listeners[method] = doOnInteractions(method, scope);\n }\n\n const pEventTypes = browser.pEventTypes;\n let docEvents;\n\n if (domObjects.PointerEvent) {\n docEvents = [{\n type: pEventTypes.down,\n listener: releasePointersOnRemovedEls\n }, {\n type: pEventTypes.down,\n listener: listeners.pointerDown\n }, {\n type: pEventTypes.move,\n listener: listeners.pointerMove\n }, {\n type: pEventTypes.up,\n listener: listeners.pointerUp\n }, {\n type: pEventTypes.cancel,\n listener: listeners.pointerUp\n }];\n } else {\n docEvents = [{\n type: 'mousedown',\n listener: listeners.pointerDown\n }, {\n type: 'mousemove',\n listener: listeners.pointerMove\n }, {\n type: 'mouseup',\n listener: listeners.pointerUp\n }, {\n type: 'touchstart',\n listener: releasePointersOnRemovedEls\n }, {\n type: 'touchstart',\n listener: listeners.pointerDown\n }, {\n type: 'touchmove',\n listener: listeners.pointerMove\n }, {\n type: 'touchend',\n listener: listeners.pointerUp\n }, {\n type: 'touchcancel',\n listener: listeners.pointerUp\n }];\n }\n\n docEvents.push({\n type: 'blur',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n interaction.documentBlur(event);\n }\n }\n\n }); // for ignoring browser's simulated mouse events\n\n scope.prevTouchTime = 0;\n scope.Interaction = class extends InteractionBase {\n get pointerMoveTolerance() {\n return scope.interactions.pointerMoveTolerance;\n }\n\n set pointerMoveTolerance(value) {\n scope.interactions.pointerMoveTolerance = value;\n }\n\n _now() {\n return scope.now();\n }\n\n };\n scope.interactions = {\n // all active and idle interactions\n list: [],\n\n new(options) {\n options.scopeFire = (name, arg) => scope.fire(name, arg);\n\n const interaction = new scope.Interaction(options);\n scope.interactions.list.push(interaction);\n return interaction;\n },\n\n listeners,\n docEvents,\n pointerMoveTolerance: 1\n };\n\n function releasePointersOnRemovedEls() {\n // for all inactive touch interactions with pointers down\n for (const interaction of scope.interactions.list) {\n if (!interaction.pointerIsDown || interaction.pointerType !== 'touch' || interaction._interacting) {\n continue;\n } // if a pointer is down on an element that is no longer in the DOM tree\n\n\n for (const pointer of interaction.pointers) {\n if (!scope.documents.some(({\n doc\n }) => nodeContains(doc, pointer.downTarget))) {\n // remove the pointer from the interaction\n interaction.removePointer(pointer.pointer, pointer.event);\n }\n }\n }\n }\n\n scope.usePlugin(interactablePreventDefault);\n}\n\nfunction doOnInteractions(method, scope) {\n return function (event) {\n const interactions = scope.interactions.list;\n const pointerType = pointerUtils.getPointerType(event);\n const [eventTarget, curEventTarget] = pointerUtils.getEventTargets(event);\n const matches = []; // [ [pointer, interaction], ...]\n\n if (/^touch/.test(event.type)) {\n scope.prevTouchTime = scope.now(); // @ts-expect-error\n\n for (const changedTouch of event.changedTouches) {\n const pointer = changedTouch;\n const pointerId = pointerUtils.getPointerId(pointer);\n const searchDetails = {\n pointer,\n pointerId,\n pointerType,\n eventType: event.type,\n eventTarget,\n curEventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } else {\n let invalidPointer = false;\n\n if (!browser.supportsPointerEvent && /mouse/.test(event.type)) {\n // ignore mouse events while touch interactions are active\n for (let i = 0; i < interactions.length && !invalidPointer; i++) {\n invalidPointer = interactions[i].pointerType !== 'mouse' && interactions[i].pointerIsDown;\n } // try to ignore mouse events that are simulated by the browser\n // after a touch event\n\n\n invalidPointer = invalidPointer || scope.now() - scope.prevTouchTime < 500 || // on iOS and Firefox Mobile, MouseEvent.timeStamp is zero if simulated\n event.timeStamp === 0;\n }\n\n if (!invalidPointer) {\n const searchDetails = {\n pointer: event,\n pointerId: pointerUtils.getPointerId(event),\n pointerType,\n eventType: event.type,\n curEventTarget,\n eventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } // eslint-disable-next-line no-shadow\n\n\n for (const [pointer, eventTarget, curEventTarget, interaction] of matches) {\n interaction[method](pointer, event, eventTarget, curEventTarget);\n }\n };\n}\n\nfunction getInteraction(searchDetails) {\n const {\n pointerType,\n scope\n } = searchDetails;\n const foundInteraction = finder.search(searchDetails);\n const signalArg = {\n interaction: foundInteraction,\n searchDetails\n };\n scope.fire('interactions:find', signalArg);\n return signalArg.interaction || scope.interactions.new({\n pointerType\n });\n}\n\nfunction onDocSignal({\n doc,\n scope,\n options\n}, eventMethodName) {\n const {\n interactions: {\n docEvents\n },\n events\n } = scope;\n const eventMethod = events[eventMethodName];\n\n if (scope.browser.isIOS && !options.events) {\n options.events = {\n passive: false\n };\n } // delegate event listener\n\n\n for (const eventType in events.delegatedEvents) {\n eventMethod(doc, eventType, events.delegateListener);\n eventMethod(doc, eventType, events.delegateUseCapture, true);\n }\n\n const eventOptions = options && options.events;\n\n for (const {\n type,\n listener\n } of docEvents) {\n eventMethod(doc, type, listener, eventOptions);\n }\n}\n\nconst interactions = {\n id: 'core/interactions',\n install,\n listeners: {\n 'scope:add-document': arg => onDocSignal(arg, 'add'),\n 'scope:remove-document': arg => onDocSignal(arg, 'remove'),\n 'interactable:unset': ({\n interactable\n }, scope) => {\n // Stop and destroy related interactions when an Interactable is unset\n for (let i = scope.interactions.list.length - 1; i >= 0; i--) {\n const interaction = scope.interactions.list[i];\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interaction.stop();\n scope.fire('interactions:destroy', {\n interaction\n });\n interaction.destroy();\n\n if (scope.interactions.list.length > 2) {\n scope.interactions.list.splice(i, 1);\n }\n }\n }\n },\n onDocSignal,\n doOnInteractions,\n methodNames\n};\nexport default interactions;\n//# sourceMappingURL=interactions.js.map","import browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport extend from \"../utils/extend.js\";\nimport raf from \"../utils/raf.js\";\nimport * as win from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { Interactable as InteractableBase } from \"./Interactable.js\";\nimport { InteractableSet } from \"./InteractableSet.js\";\nimport { defaults } from \"./defaultOptions.js\";\nimport events from \"./events.js\";\nimport { createInteractStatic } from \"./interactStatic.js\";\nimport interactions from \"./interactions.js\";\nexport class Scope {\n // main window\n // main document\n // main window\n // all documents being listened to\n constructor() {\n this.id = `__interact_scope_${Math.floor(Math.random() * 100)}`;\n this.isInitialized = false;\n this.listenerMaps = [];\n this.browser = browser;\n this.defaults = clone(defaults);\n this.Eventable = Eventable;\n this.actions = {\n map: {},\n phases: {\n start: true,\n move: true,\n end: true\n },\n methodDict: {},\n phaselessTypes: {}\n };\n this.interactStatic = createInteractStatic(this);\n this.InteractEvent = InteractEvent;\n this.Interactable = void 0;\n this.interactables = new InteractableSet(this);\n this._win = void 0;\n this.document = void 0;\n this.window = void 0;\n this.documents = [];\n this._plugins = {\n list: [],\n map: {}\n };\n\n this.onWindowUnload = event => this.removeDocument(event.target);\n\n const scope = this;\n this.Interactable = class extends InteractableBase {\n get _defaults() {\n return scope.defaults;\n }\n\n set(options) {\n super.set(options);\n scope.fire('interactable:set', {\n options,\n interactable: this\n });\n return this;\n }\n\n unset() {\n super.unset();\n scope.interactables.list.splice(scope.interactables.list.indexOf(this), 1);\n scope.fire('interactable:unset', {\n interactable: this\n });\n }\n\n };\n }\n\n addListeners(map, id) {\n this.listenerMaps.push({\n id,\n map\n });\n }\n\n fire(name, arg) {\n for (const {\n map: {\n [name]: listener\n }\n } of this.listenerMaps) {\n if (!!listener && listener(arg, this, name) === false) {\n return false;\n }\n }\n }\n\n init(window) {\n return this.isInitialized ? this : initScope(this, window);\n }\n\n pluginIsInstalled(plugin) {\n return this._plugins.map[plugin.id] || this._plugins.list.indexOf(plugin) !== -1;\n }\n\n usePlugin(plugin, options) {\n if (!this.isInitialized) {\n return this;\n }\n\n if (this.pluginIsInstalled(plugin)) {\n return this;\n }\n\n if (plugin.id) {\n this._plugins.map[plugin.id] = plugin;\n }\n\n this._plugins.list.push(plugin);\n\n if (plugin.install) {\n plugin.install(this, options);\n }\n\n if (plugin.listeners && plugin.before) {\n let index = 0;\n const len = this.listenerMaps.length;\n const before = plugin.before.reduce((acc, id) => {\n acc[id] = true;\n acc[pluginIdRoot(id)] = true;\n return acc;\n }, {});\n\n for (; index < len; index++) {\n const otherId = this.listenerMaps[index].id;\n\n if (before[otherId] || before[pluginIdRoot(otherId)]) {\n break;\n }\n }\n\n this.listenerMaps.splice(index, 0, {\n id: plugin.id,\n map: plugin.listeners\n });\n } else if (plugin.listeners) {\n this.listenerMaps.push({\n id: plugin.id,\n map: plugin.listeners\n });\n }\n\n return this;\n }\n\n addDocument(doc, options) {\n // do nothing if document is already known\n if (this.getDocIndex(doc) !== -1) {\n return false;\n }\n\n const window = win.getWindow(doc);\n options = options ? extend({}, options) : {};\n this.documents.push({\n doc,\n options\n });\n this.events.documents.push(doc); // don't add an unload event for the main document\n // so that the page may be cached in browser history\n\n if (doc !== this.document) {\n this.events.add(window, 'unload', this.onWindowUnload);\n }\n\n this.fire('scope:add-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n removeDocument(doc) {\n const index = this.getDocIndex(doc);\n const window = win.getWindow(doc);\n const options = this.documents[index].options;\n this.events.remove(window, 'unload', this.onWindowUnload);\n this.documents.splice(index, 1);\n this.events.documents.splice(index, 1);\n this.fire('scope:remove-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n getDocIndex(doc) {\n for (let i = 0; i < this.documents.length; i++) {\n if (this.documents[i].doc === doc) {\n return i;\n }\n }\n\n return -1;\n }\n\n getDocOptions(doc) {\n const docIndex = this.getDocIndex(doc);\n return docIndex === -1 ? null : this.documents[docIndex].options;\n }\n\n now() {\n return (this.window.Date || Date).now();\n }\n\n}\nexport function initScope(scope, window) {\n scope.isInitialized = true;\n win.init(window);\n domObjects.init(window);\n browser.init(window);\n raf.init(window);\n scope.window = window;\n scope.document = window.document;\n scope.usePlugin(interactions);\n scope.usePlugin(events);\n return scope;\n}\n\nfunction pluginIdRoot(id) {\n return id && id.replace(/\\/.*$/, '');\n}\n//# sourceMappingURL=scope.js.map","import { Scope } from \"../core/scope.js\";\nconst scope = new Scope();\nconst interact = scope.interactStatic;\nexport default interact;\nexport const init = win => scope.init(win);\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../core/Interactable.js\";\nimport is from \"../utils/is.js\";\nimport { warnOnce } from \"../utils/misc.js\";\n\nfunction install(scope) {\n const {\n /** @lends Interactable */\n Interactable // tslint:disable-line no-shadowed-variable\n\n } = scope;\n\n Interactable.prototype.getAction = function getAction(pointer, event, interaction, element) {\n const action = defaultActionChecker(this, event, interaction, element, scope);\n\n if (this.options.actionChecker) {\n return this.options.actionChecker(pointer, event, action, this, element, interaction);\n }\n\n return action;\n };\n /**\n * If the target of the `mousedown`, `pointerdown` or `touchstart` event or any\n * of it's parents match the given CSS selector or Element, no\n * drag/resize/gesture is started.\n *\n * @deprecated\n * Don't use this method. Instead set the `ignoreFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .draggable({\n * ignoreFrom: 'input, textarea, a[href]'',\n * })\n * .pointerEvents({\n * ignoreFrom: '[no-pointer]',\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to not ignore any elements\n * @return {string | Element | object} The current ignoreFrom value or this\n * Interactable\n */\n\n\n Interactable.prototype.ignoreFrom = warnOnce(function (newValue) {\n return this._backCompatOption('ignoreFrom', newValue);\n }, 'Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue}).');\n /**\n *\n * A drag/resize/gesture is started only If the target of the `mousedown`,\n * `pointerdown` or `touchstart` event or any of it's parents match the given\n * CSS selector or Element.\n *\n * @deprecated\n * Don't use this method. Instead set the `allowFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .resizable({\n * allowFrom: '.resize-handle',\n * .pointerEvents({\n * allowFrom: '.handle',,\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to allow from any element\n * @return {string | Element | object} The current allowFrom value or this\n * Interactable\n */\n\n Interactable.prototype.allowFrom = warnOnce(function (newValue) {\n return this._backCompatOption('allowFrom', newValue);\n }, 'Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue}).');\n /**\n * ```js\n * interact('.resize-drag')\n * .resizable(true)\n * .draggable(true)\n * .actionChecker(function (pointer, event, action, interactable, element, interaction) {\n *\n * if (interact.matchesSelector(event.target, '.drag-handle')) {\n * // force drag with handle target\n * action.name = drag\n * }\n * else {\n * // resize from the top and right edges\n * action.name = 'resize'\n * action.edges = { top: true, right: true }\n * }\n *\n * return action\n * })\n * ```\n *\n * Returns or sets the function used to check action to be performed on\n * pointerDown\n *\n * @param {function | null} [checker] A function which takes a pointer event,\n * defaultAction string, interactable, element and interaction as parameters\n * and returns an object with name property 'drag' 'resize' or 'gesture' and\n * optionally an `edges` object with boolean 'top', 'left', 'bottom' and right\n * props.\n * @return {Function | Interactable} The checker function or this Interactable\n */\n\n Interactable.prototype.actionChecker = actionChecker;\n /**\n * Returns or sets whether the the cursor should be changed depending on the\n * action that would be performed if the mouse were pressed and dragged.\n *\n * @param {boolean} [newValue]\n * @return {boolean | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.styleCursor = styleCursor;\n}\n\nfunction defaultActionChecker(interactable, event, interaction, element, scope) {\n const rect = interactable.getRect(element);\n const buttons = event.buttons || {\n 0: 1,\n 1: 4,\n 3: 8,\n 4: 16\n }[event.button];\n const arg = {\n action: null,\n interactable,\n interaction,\n element,\n rect,\n buttons\n };\n scope.fire('auto-start:check', arg);\n return arg.action;\n}\n\nfunction styleCursor(newValue) {\n if (is.bool(newValue)) {\n this.options.styleCursor = newValue;\n return this;\n }\n\n if (newValue === null) {\n delete this.options.styleCursor;\n return this;\n }\n\n return this.options.styleCursor;\n}\n\nfunction actionChecker(checker) {\n if (is.func(checker)) {\n this.options.actionChecker = checker;\n return this;\n }\n\n if (checker === null) {\n delete this.options.actionChecker;\n return this;\n }\n\n return this.options.actionChecker;\n}\n\nexport default {\n id: 'auto-start/interactableMethods',\n install\n};\n//# sourceMappingURL=InteractableMethods.js.map","import { Scope, SignalArgs } from \"../core/scope.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport { copyAction } from \"../utils/misc.js\";\nimport InteractableMethods from \"./InteractableMethods.js\";\n\nfunction install(scope) {\n const {\n interactStatic: interact,\n defaults\n } = scope;\n scope.usePlugin(InteractableMethods);\n defaults.base.actionChecker = null;\n defaults.base.styleCursor = true;\n extend(defaults.perAction, {\n manualStart: false,\n max: Infinity,\n maxPerElement: 1,\n allowFrom: null,\n ignoreFrom: null,\n // only allow left button by default\n // see https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons#Return_value\n mouseButtons: 1\n });\n /**\n * Returns or sets the maximum number of concurrent interactions allowed. By\n * default only 1 interaction is allowed at a time (for backwards\n * compatibility). To allow multiple interactions on the same Interactables and\n * elements, you need to enable it in the draggable, resizable and gesturable\n * `'max'` and `'maxPerElement'` options.\n *\n * @alias module:interact.maxInteractions\n *\n * @param {number} [newValue] Any number. newValue <= 0 means no interactions.\n */\n\n interact.maxInteractions = newValue => maxInteractions(newValue, scope);\n\n scope.autoStart = {\n // Allow this many interactions to happen simultaneously\n maxInteractions: Infinity,\n withinInteractionLimit,\n cursorElement: null\n };\n}\n\nfunction prepareOnDown({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction prepareOnMove({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.pointerType !== 'mouse' || interaction.pointerIsDown || interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction startOnMove(arg, scope) {\n const {\n interaction\n } = arg;\n\n if (!interaction.pointerIsDown || interaction.interacting() || !interaction.pointerWasMoved || !interaction.prepared.name) {\n return;\n }\n\n scope.fire('autoStart:before-start', arg);\n const {\n interactable\n } = interaction;\n const actionName = interaction.prepared.name;\n\n if (actionName && interactable) {\n // check manualStart and interaction limit\n if (interactable.options[actionName].manualStart || !withinInteractionLimit(interactable, interaction.element, interaction.prepared, scope)) {\n interaction.stop();\n } else {\n interaction.start(interaction.prepared, interactable, interaction.element);\n setInteractionCursor(interaction, scope);\n }\n }\n}\n\nfunction clearCursorOnStop({\n interaction\n}, scope) {\n const {\n interactable\n } = interaction;\n\n if (interactable && interactable.options.styleCursor) {\n setCursor(interaction.element, '', scope);\n }\n} // Check if the current interactable supports the action.\n// If so, return the validated action. Otherwise, return null\n\n\nfunction validateAction(action, interactable, element, eventTarget, scope) {\n if (interactable.testIgnoreAllow(interactable.options[action.name], element, eventTarget) && interactable.options[action.name].enabled && withinInteractionLimit(interactable, element, action, scope)) {\n return action;\n }\n\n return null;\n}\n\nfunction validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope) {\n for (let i = 0, len = matches.length; i < len; i++) {\n const match = matches[i];\n const matchElement = matchElements[i];\n const matchAction = match.getAction(pointer, event, interaction, matchElement);\n\n if (!matchAction) {\n continue;\n }\n\n const action = validateAction(matchAction, match, matchElement, eventTarget, scope);\n\n if (action) {\n return {\n action,\n interactable: match,\n element: matchElement\n };\n }\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction getActionInfo(interaction, pointer, event, eventTarget, scope) {\n let matches = [];\n let matchElements = [];\n let element = eventTarget;\n\n function pushMatches(interactable) {\n matches.push(interactable);\n matchElements.push(element);\n }\n\n while (is.element(element)) {\n matches = [];\n matchElements = [];\n scope.interactables.forEachMatch(element, pushMatches);\n const actionInfo = validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope);\n\n if (actionInfo.action && !actionInfo.interactable.options[actionInfo.action.name].manualStart) {\n return actionInfo;\n }\n\n element = domUtils.parentNode(element);\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction prepare(interaction, {\n action,\n interactable,\n element\n}, scope) {\n action = action || {\n name: null\n };\n interaction.interactable = interactable;\n interaction.element = element;\n copyAction(interaction.prepared, action);\n interaction.rect = interactable && action.name ? interactable.getRect(element) : null;\n setInteractionCursor(interaction, scope);\n scope.fire('autoStart:prepared', {\n interaction\n });\n}\n\nfunction withinInteractionLimit(interactable, element, action, scope) {\n const options = interactable.options;\n const maxActions = options[action.name].max;\n const maxPerElement = options[action.name].maxPerElement;\n const autoStartMax = scope.autoStart.maxInteractions;\n let activeInteractions = 0;\n let interactableCount = 0;\n let elementCount = 0; // no actions if any of these values == 0\n\n if (!(maxActions && maxPerElement && autoStartMax)) {\n return false;\n }\n\n for (const interaction of scope.interactions.list) {\n const otherAction = interaction.prepared.name;\n\n if (!interaction.interacting()) {\n continue;\n }\n\n activeInteractions++;\n\n if (activeInteractions >= autoStartMax) {\n return false;\n }\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interactableCount += otherAction === action.name ? 1 : 0;\n\n if (interactableCount >= maxActions) {\n return false;\n }\n\n if (interaction.element === element) {\n elementCount++;\n\n if (otherAction === action.name && elementCount >= maxPerElement) {\n return false;\n }\n }\n }\n\n return autoStartMax > 0;\n}\n\nfunction maxInteractions(newValue, scope) {\n if (is.number(newValue)) {\n scope.autoStart.maxInteractions = newValue;\n return this;\n }\n\n return scope.autoStart.maxInteractions;\n}\n\nfunction setCursor(element, cursor, scope) {\n const {\n cursorElement: prevCursorElement\n } = scope.autoStart;\n\n if (prevCursorElement && prevCursorElement !== element) {\n prevCursorElement.style.cursor = '';\n }\n\n element.ownerDocument.documentElement.style.cursor = cursor;\n element.style.cursor = cursor;\n scope.autoStart.cursorElement = cursor ? element : null;\n}\n\nfunction setInteractionCursor(interaction, scope) {\n const {\n interactable,\n element,\n prepared\n } = interaction;\n\n if (!(interaction.pointerType === 'mouse' && interactable && interactable.options.styleCursor)) {\n // clear previous target element cursor\n if (scope.autoStart.cursorElement) {\n setCursor(scope.autoStart.cursorElement, '', scope);\n }\n\n return;\n }\n\n let cursor = '';\n\n if (prepared.name) {\n const cursorChecker = interactable.options[prepared.name].cursorChecker;\n\n if (is.func(cursorChecker)) {\n cursor = cursorChecker(prepared, interactable, element, interaction._interacting);\n } else {\n cursor = scope.actions.map[prepared.name].getCursor(prepared);\n }\n }\n\n setCursor(interaction.element, cursor || '', scope);\n}\n\nconst autoStart = {\n id: 'auto-start/base',\n before: ['actions'],\n install,\n listeners: {\n 'interactions:down': prepareOnDown,\n 'interactions:move': (arg, scope) => {\n prepareOnMove(arg, scope);\n startOnMove(arg, scope);\n },\n 'interactions:stop': clearCursorOnStop\n },\n maxInteractions,\n withinInteractionLimit,\n validateAction\n};\nexport default autoStart;\n//# sourceMappingURL=base.js.map","import { parentNode } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport autoStart from \"./base.js\";\n\nfunction beforeStart({\n interaction,\n eventTarget,\n dx,\n dy\n}, scope) {\n if (interaction.prepared.name !== 'drag') {\n return;\n } // check if a drag is in the correct axis\n\n\n const absX = Math.abs(dx);\n const absY = Math.abs(dy);\n const targetOptions = interaction.interactable.options.drag;\n const startAxis = targetOptions.startAxis;\n const currentAxis = absX > absY ? 'x' : absX < absY ? 'y' : 'xy';\n interaction.prepared.axis = targetOptions.lockAxis === 'start' ? currentAxis[0] // always lock to one axis even if currentAxis === 'xy'\n : targetOptions.lockAxis; // if the movement isn't in the startAxis of the interactable\n\n if (currentAxis !== 'xy' && startAxis !== 'xy' && startAxis !== currentAxis) {\n // cancel the prepared action\n interaction.prepared.name = null; // then try to get a drag from another ineractable\n\n let element = eventTarget;\n\n const getDraggable = function (interactable) {\n if (interactable === interaction.interactable) {\n return;\n }\n\n const options = interaction.interactable.options.drag;\n\n if (!options.manualStart && interactable.testIgnoreAllow(options, element, eventTarget)) {\n const action = interactable.getAction(interaction.downPointer, interaction.downEvent, interaction, element);\n\n if (action && action.name === 'drag' && checkStartAxis(currentAxis, interactable) && autoStart.validateAction(action, interactable, element, eventTarget, scope)) {\n return interactable;\n }\n }\n }; // check all interactables\n\n\n while (is.element(element)) {\n const interactable = scope.interactables.forEachMatch(element, getDraggable);\n\n if (interactable) {\n interaction.prepared.name = 'drag';\n interaction.interactable = interactable;\n interaction.element = element;\n break;\n }\n\n element = parentNode(element);\n }\n }\n}\n\nfunction checkStartAxis(startAxis, interactable) {\n if (!interactable) {\n return false;\n }\n\n const thisAxis = interactable.options.drag.startAxis;\n return startAxis === 'xy' || thisAxis === 'xy' || thisAxis === startAxis;\n}\n\nexport default {\n id: 'auto-start/dragAxis',\n listeners: {\n 'autoStart:before-start': beforeStart\n }\n};\n//# sourceMappingURL=dragAxis.js.map","import Interaction from \"../core/Interaction.js\";\nimport basePlugin from \"./base.js\";\n\nfunction install(scope) {\n const {\n defaults\n } = scope;\n scope.usePlugin(basePlugin);\n defaults.perAction.hold = 0;\n defaults.perAction.delay = 0;\n}\n\nfunction getHoldDuration(interaction) {\n const actionName = interaction.prepared && interaction.prepared.name;\n\n if (!actionName) {\n return null;\n }\n\n const options = interaction.interactable.options;\n return options[actionName].hold || options[actionName].delay;\n}\n\nconst hold = {\n id: 'auto-start/hold',\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.autoStartHoldTimer = null;\n },\n 'autoStart:prepared': ({\n interaction\n }) => {\n const hold = getHoldDuration(interaction);\n\n if (hold > 0) {\n interaction.autoStartHoldTimer = setTimeout(() => {\n interaction.start(interaction.prepared, interaction.interactable, interaction.element);\n }, hold);\n }\n },\n 'interactions:move': ({\n interaction,\n duplicate\n }) => {\n if (interaction.autoStartHoldTimer && interaction.pointerWasMoved && !duplicate) {\n clearTimeout(interaction.autoStartHoldTimer);\n interaction.autoStartHoldTimer = null;\n }\n },\n // prevent regular down->move autoStart\n 'autoStart:before-start': ({\n interaction\n }) => {\n const holdDuration = getHoldDuration(interaction);\n\n if (holdDuration > 0) {\n interaction.prepared.name = null;\n }\n }\n },\n getHoldDuration\n};\nexport default hold;\n//# sourceMappingURL=hold.js.map","import autoStart from \"./base.js\";\nimport dragAxis from \"./dragAxis.js\";\nimport hold from \"./hold.js\";\nexport default {\n id: 'auto-start',\n\n install(scope) {\n scope.usePlugin(autoStart);\n scope.usePlugin(hold);\n scope.usePlugin(dragAxis);\n }\n\n};\n//# sourceMappingURL=plugin.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n Interactable,\n defaults\n } = scope;\n Interactable.prototype.draggable = drag.draggable;\n actions.map.drag = drag;\n actions.methodDict.drag = 'draggable';\n defaults.actions.drag = drag.defaults;\n}\n\nfunction beforeMove({\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x') {\n interaction.coords.cur.page.y = interaction.coords.start.page.y;\n interaction.coords.cur.client.y = interaction.coords.start.client.y;\n interaction.coords.velocity.client.y = 0;\n interaction.coords.velocity.page.y = 0;\n } else if (axis === 'y') {\n interaction.coords.cur.page.x = interaction.coords.start.page.x;\n interaction.coords.cur.client.x = interaction.coords.start.client.x;\n interaction.coords.velocity.client.x = 0;\n interaction.coords.velocity.page.x = 0;\n }\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x' || axis === 'y') {\n const opposite = axis === 'x' ? 'y' : 'x';\n iEvent.page[opposite] = interaction.coords.start.page[opposite];\n iEvent.client[opposite] = interaction.coords.start.client[opposite];\n iEvent.delta[opposite] = 0;\n }\n}\n/**\n * ```js\n * interact(element).draggable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * // the axis in which the first movement must be\n * // for the drag sequence to start\n * // 'xy' by default - any direction\n * startAxis: 'x' || 'y' || 'xy',\n *\n * // 'xy' by default - don't restrict to one axis (move in any direction)\n * // 'x' or 'y' to restrict movement to either axis\n * // 'start' to restrict movement to the axis the drag started in\n * lockAxis: 'x' || 'y' || 'xy' || 'start',\n *\n * // max number of drags that can happen concurrently\n * // with elements of this Interactable. Infinity by default\n * max: Infinity,\n *\n * // max number of drags that can target the same element+Interactable\n * // 1 by default\n * maxPerElement: 2\n * })\n *\n * var isDraggable = interact('element').draggable(); // true\n * ```\n *\n * Get or set whether drag actions can be performed on the target\n *\n * @alias Interactable.prototype.draggable\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on drag events (object makes the Interactable\n * draggable)\n * @return {boolean | Interactable} boolean indicating if this can be the\n * target of drag events, or this Interctable\n */\n\n\nconst draggable = function draggable(options) {\n if (is.object(options)) {\n this.options.drag.enabled = options.enabled !== false;\n this.setPerAction('drag', options);\n this.setOnEvents('drag', options);\n\n if (/^(xy|x|y|start)$/.test(options.lockAxis)) {\n this.options.drag.lockAxis = options.lockAxis;\n }\n\n if (/^(xy|x|y)$/.test(options.startAxis)) {\n this.options.drag.startAxis = options.startAxis;\n }\n\n return this;\n }\n\n if (is.bool(options)) {\n this.options.drag.enabled = options;\n return this;\n }\n\n return this.options.drag;\n};\n\nconst drag = {\n id: 'actions/drag',\n install,\n listeners: {\n 'interactions:before-action-move': beforeMove,\n 'interactions:action-resume': beforeMove,\n // dragmove\n 'interactions:action-move': move,\n 'auto-start:check': arg => {\n const {\n interaction,\n interactable,\n buttons\n } = arg;\n const dragOptions = interactable.options.drag;\n\n if (!(dragOptions && dragOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & interactable.options.drag.mouseButtons) === 0) {\n return undefined;\n }\n\n arg.action = {\n name: 'drag',\n axis: dragOptions.lockAxis === 'start' ? dragOptions.startAxis : dragOptions.lockAxis\n };\n return false;\n }\n },\n draggable,\n beforeMove,\n move,\n defaults: {\n startAxis: 'xy',\n lockAxis: 'xy'\n },\n\n getCursor() {\n return 'move';\n }\n\n};\nexport default drag;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport { Interaction } from \"../../core/Interaction.js\";\nimport * as dom from \"../../utils/domUtils.js\";\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n browser,\n\n /** @lends Interactable */\n Interactable,\n // tslint:disable-line no-shadowed-variable\n defaults\n } = scope; // Less Precision with touch input\n\n resize.cursors = initCursors(browser);\n resize.defaultMargin = browser.supportsTouch || browser.supportsPointerEvent ? 20 : 10;\n /**\n * ```js\n * interact(element).resizable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * edges: {\n * top : true, // Use pointer coords to check for resize.\n * left : false, // Disable resizing from left edge.\n * bottom: '.resize-s',// Resize if pointer target matches selector\n * right : handleEl // Resize if pointer target is the given Element\n * },\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height are adjusted at a 1:1 ratio.\n * square: false,\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height maintain the aspect ratio they had when resizing started.\n * preserveAspectRatio: false,\n *\n * // a value of 'none' will limit the resize rect to a minimum of 0x0\n * // 'negate' will allow the rect to have negative width/height\n * // 'reposition' will keep the width/height positive by swapping\n * // the top and bottom edges and/or swapping the left and right edges\n * invert: 'none' || 'negate' || 'reposition'\n *\n * // limit multiple resizes.\n * // See the explanation in the {@link Interactable.draggable} example\n * max: Infinity,\n * maxPerElement: 1,\n * })\n *\n * var isResizeable = interact(element).resizable()\n * ```\n *\n * Gets or sets whether resize actions can be performed on the target\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on resize events (object makes the Interactable\n * resizable)\n * @return {boolean | Interactable} A boolean indicating if this can be the\n * target of resize elements, or this Interactable\n */\n\n Interactable.prototype.resizable = function (options) {\n return resizable(this, options, scope);\n };\n\n actions.map.resize = resize;\n actions.methodDict.resize = 'resizable';\n defaults.actions.resize = resize.defaults;\n}\n\nfunction resizeChecker(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n buttons\n } = arg;\n\n if (!rect) {\n return undefined;\n }\n\n const page = extend({}, interaction.coords.cur.page);\n const resizeOptions = interactable.options.resize;\n\n if (!(resizeOptions && resizeOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & resizeOptions.mouseButtons) === 0) {\n return undefined;\n } // if using resize.edges\n\n\n if (is.object(resizeOptions.edges)) {\n const resizeEdges = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n\n for (const edge in resizeEdges) {\n resizeEdges[edge] = checkResizeEdge(edge, resizeOptions.edges[edge], page, interaction._latestPointer.eventTarget, element, rect, resizeOptions.margin || resize.defaultMargin);\n }\n\n resizeEdges.left = resizeEdges.left && !resizeEdges.right;\n resizeEdges.top = resizeEdges.top && !resizeEdges.bottom;\n\n if (resizeEdges.left || resizeEdges.right || resizeEdges.top || resizeEdges.bottom) {\n arg.action = {\n name: 'resize',\n edges: resizeEdges\n };\n }\n } else {\n const right = resizeOptions.axis !== 'y' && page.x > rect.right - resize.defaultMargin;\n const bottom = resizeOptions.axis !== 'x' && page.y > rect.bottom - resize.defaultMargin;\n\n if (right || bottom) {\n arg.action = {\n name: 'resize',\n axes: (right ? 'x' : '') + (bottom ? 'y' : '')\n };\n }\n }\n\n return arg.action ? false : undefined;\n}\n\nfunction resizable(interactable, options, scope) {\n if (is.object(options)) {\n interactable.options.resize.enabled = options.enabled !== false;\n interactable.setPerAction('resize', options);\n interactable.setOnEvents('resize', options);\n\n if (is.string(options.axis) && /^x$|^y$|^xy$/.test(options.axis)) {\n interactable.options.resize.axis = options.axis;\n } else if (options.axis === null) {\n interactable.options.resize.axis = scope.defaults.actions.resize.axis;\n }\n\n if (is.bool(options.preserveAspectRatio)) {\n interactable.options.resize.preserveAspectRatio = options.preserveAspectRatio;\n } else if (is.bool(options.square)) {\n interactable.options.resize.square = options.square;\n }\n\n return interactable;\n }\n\n if (is.bool(options)) {\n interactable.options.resize.enabled = options;\n return interactable;\n }\n\n return interactable.options.resize;\n}\n\nfunction checkResizeEdge(name, value, page, element, interactableElement, rect, margin) {\n // false, '', undefined, null\n if (!value) {\n return false;\n } // true value, use pointer coords and element rect\n\n\n if (value === true) {\n // if dimensions are negative, \"switch\" edges\n const width = is.number(rect.width) ? rect.width : rect.right - rect.left;\n const height = is.number(rect.height) ? rect.height : rect.bottom - rect.top; // don't use margin greater than half the relevent dimension\n\n margin = Math.min(margin, Math.abs((name === 'left' || name === 'right' ? width : height) / 2));\n\n if (width < 0) {\n if (name === 'left') {\n name = 'right';\n } else if (name === 'right') {\n name = 'left';\n }\n }\n\n if (height < 0) {\n if (name === 'top') {\n name = 'bottom';\n } else if (name === 'bottom') {\n name = 'top';\n }\n }\n\n if (name === 'left') {\n return page.x < (width >= 0 ? rect.left : rect.right) + margin;\n }\n\n if (name === 'top') {\n return page.y < (height >= 0 ? rect.top : rect.bottom) + margin;\n }\n\n if (name === 'right') {\n return page.x > (width >= 0 ? rect.right : rect.left) - margin;\n }\n\n if (name === 'bottom') {\n return page.y > (height >= 0 ? rect.bottom : rect.top) - margin;\n }\n } // the remaining checks require an element\n\n\n if (!is.element(element)) {\n return false;\n }\n\n return is.element(value) // the value is an element to use as a resize handle\n ? value === element // otherwise check if element matches value as selector\n : dom.matchesUpTo(element, value, interactableElement);\n}\n/* eslint-disable multiline-ternary */\n\n\nfunction initCursors(browser) {\n return browser.isIe9 ? {\n x: 'e-resize',\n y: 's-resize',\n xy: 'se-resize',\n top: 'n-resize',\n left: 'w-resize',\n bottom: 's-resize',\n right: 'e-resize',\n topleft: 'se-resize',\n bottomright: 'se-resize',\n topright: 'ne-resize',\n bottomleft: 'ne-resize'\n } : {\n x: 'ew-resize',\n y: 'ns-resize',\n xy: 'nwse-resize',\n top: 'ns-resize',\n left: 'ew-resize',\n bottom: 'ns-resize',\n right: 'ew-resize',\n topleft: 'nwse-resize',\n bottomright: 'nwse-resize',\n topright: 'nesw-resize',\n bottomleft: 'nesw-resize'\n };\n}\n/* eslint-enable multiline-ternary */\n\n\nfunction start({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const rect = interaction.rect;\n interaction._rects = {\n start: extend({}, rect),\n corrected: extend({}, rect),\n previous: extend({}, rect),\n delta: {\n left: 0,\n right: 0,\n width: 0,\n top: 0,\n bottom: 0,\n height: 0\n }\n };\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const resizeOptions = interaction.interactable.options.resize;\n const invert = resizeOptions.invert;\n const invertible = invert === 'reposition' || invert === 'negate';\n const current = interaction.rect;\n const {\n start: startRect,\n corrected,\n delta: deltaRect,\n previous\n } = interaction._rects;\n extend(previous, corrected);\n\n if (invertible) {\n // if invertible, copy the current rect\n extend(corrected, current);\n\n if (invert === 'reposition') {\n // swap edge values if necessary to keep width/height positive\n if (corrected.top > corrected.bottom) {\n const swap = corrected.top;\n corrected.top = corrected.bottom;\n corrected.bottom = swap;\n }\n\n if (corrected.left > corrected.right) {\n const swap = corrected.left;\n corrected.left = corrected.right;\n corrected.right = swap;\n }\n }\n } else {\n // if not invertible, restrict to minimum of 0x0 rect\n corrected.top = Math.min(current.top, startRect.bottom);\n corrected.bottom = Math.max(current.bottom, startRect.top);\n corrected.left = Math.min(current.left, startRect.right);\n corrected.right = Math.max(current.right, startRect.left);\n }\n\n corrected.width = corrected.right - corrected.left;\n corrected.height = corrected.bottom - corrected.top;\n\n for (const edge in corrected) {\n deltaRect[edge] = corrected[edge] - previous[edge];\n }\n\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = corrected;\n resizeEvent.deltaRect = deltaRect;\n}\n\nfunction end({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction updateEventAxes({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.resizeAxes) {\n return;\n }\n\n const options = interaction.interactable.options;\n const resizeEvent = iEvent;\n\n if (options.resize.square) {\n if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = resizeEvent.delta.y;\n } else {\n resizeEvent.delta.y = resizeEvent.delta.x;\n }\n\n resizeEvent.axes = 'xy';\n } else {\n resizeEvent.axes = interaction.resizeAxes;\n\n if (interaction.resizeAxes === 'x') {\n resizeEvent.delta.y = 0;\n } else if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = 0;\n }\n }\n}\n\nconst resize = {\n id: 'actions/resize',\n before: ['actions/drag'],\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.resizeAxes = 'xy';\n },\n 'interactions:action-start': arg => {\n start(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-move': arg => {\n move(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-end': end,\n 'auto-start:check': resizeChecker\n },\n defaults: {\n square: false,\n preserveAspectRatio: false,\n axis: 'xy',\n // use default margin\n margin: NaN,\n // object with props left, right, top, bottom which are\n // true/false values to resize when the pointer is over that edge,\n // CSS selectors to match the handles for each direction\n // or the Elements for each handle\n edges: null,\n // a value of 'none' will limit the resize rect to a minimum of 0x0\n // 'negate' will alow the rect to have negative width/height\n // 'reposition' will keep the width/height positive by swapping\n // the top and bottom edges and/or swapping the left and right edges\n invert: 'none'\n },\n cursors: null,\n\n getCursor({\n edges,\n axis,\n name\n }) {\n const cursors = resize.cursors;\n let result = null;\n\n if (axis) {\n result = cursors[name + axis];\n } else if (edges) {\n let cursorKey = '';\n\n for (const edge of ['top', 'bottom', 'left', 'right']) {\n if (edges[edge]) {\n cursorKey += edge;\n }\n }\n\n result = cursors[cursorKey];\n }\n\n return result;\n },\n\n defaultMargin: null\n};\nexport default resize;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export default (() => {});\n//# sourceMappingURL=edgeTarget.js.map","export default (() => {});\n//# sourceMappingURL=elements.js.map","export default (grid => {\n const coordFields = [['x', 'y'], ['left', 'top'], ['right', 'bottom'], ['width', 'height']].filter(([xField, yField]) => xField in grid || yField in grid);\n\n const gridFunc = (x, y) => {\n const {\n range,\n limits = {\n left: -Infinity,\n right: Infinity,\n top: -Infinity,\n bottom: Infinity\n },\n offset = {\n x: 0,\n y: 0\n }\n } = grid;\n const result = {\n range,\n grid,\n x: null,\n y: null\n };\n\n for (const [xField, yField] of coordFields) {\n const gridx = Math.round((x - offset.x) / grid[xField]);\n const gridy = Math.round((y - offset.y) / grid[yField]);\n result[xField] = Math.max(limits.left, Math.min(limits.right, gridx * grid[xField] + offset.x));\n result[yField] = Math.max(limits.top, Math.min(limits.bottom, gridy * grid[yField] + offset.y));\n }\n\n return result;\n };\n\n gridFunc.grid = grid;\n gridFunc.coordFields = coordFields;\n return gridFunc;\n});\n//# sourceMappingURL=grid.js.map","import extend from \"../utils/extend.js\";\nimport * as allSnappers from \"./all.js\";\nconst snappersPlugin = {\n id: 'snappers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n interact.snappers = extend(interact.snappers || {}, allSnappers);\n interact.createSnapGrid = interact.snappers.grid;\n }\n\n};\nexport default snappersPlugin;\n//# sourceMappingURL=plugin.js.map","import clone from \"../utils/clone.js\";\nimport extend from \"../utils/extend.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nexport default class Modification {\n constructor(interaction) {\n this.states = [];\n this.startOffset = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n };\n this.startDelta = null;\n this.result = null;\n this.endResult = null;\n this.edges = void 0;\n this.interaction = void 0;\n this.interaction = interaction;\n this.result = createResult();\n }\n\n start({\n phase\n }, pageCoords) {\n const {\n interaction\n } = this;\n const modifierList = getModifierList(interaction);\n this.prepareStates(modifierList);\n this.edges = extend({}, interaction.edges);\n this.startOffset = getRectOffset(interaction.rect, pageCoords);\n this.startDelta = {\n x: 0,\n y: 0\n };\n const arg = {\n phase,\n pageCoords,\n preEnd: false\n };\n this.result = createResult();\n this.startAll(arg);\n const result = this.result = this.setAll(arg);\n return result;\n }\n\n fillArg(arg) {\n const {\n interaction\n } = this;\n arg.interaction = interaction;\n arg.interactable = interaction.interactable;\n arg.element = interaction.element;\n arg.rect = arg.rect || interaction.rect;\n arg.edges = this.edges;\n arg.startOffset = this.startOffset;\n }\n\n startAll(arg) {\n this.fillArg(arg);\n\n for (const state of this.states) {\n if (state.methods.start) {\n arg.state = state;\n state.methods.start(arg);\n }\n }\n }\n\n setAll(arg) {\n this.fillArg(arg);\n const {\n phase,\n preEnd,\n skipModifiers,\n rect: unmodifiedRect\n } = arg;\n arg.coords = extend({}, arg.pageCoords);\n arg.rect = extend({}, unmodifiedRect);\n const states = skipModifiers ? this.states.slice(skipModifiers) : this.states;\n const newResult = createResult(arg.coords, arg.rect);\n\n for (const state of states) {\n const {\n options\n } = state;\n const lastModifierCoords = extend({}, arg.coords);\n let returnValue = null;\n\n if (state.methods.set && this.shouldDo(options, preEnd, phase)) {\n arg.state = state;\n returnValue = state.methods.set(arg);\n rectUtils.addEdges(this.interaction.edges, arg.rect, {\n x: arg.coords.x - lastModifierCoords.x,\n y: arg.coords.y - lastModifierCoords.y\n });\n }\n\n newResult.eventProps.push(returnValue);\n }\n\n newResult.delta.x = arg.coords.x - arg.pageCoords.x;\n newResult.delta.y = arg.coords.y - arg.pageCoords.y;\n newResult.rectDelta.left = arg.rect.left - unmodifiedRect.left;\n newResult.rectDelta.right = arg.rect.right - unmodifiedRect.right;\n newResult.rectDelta.top = arg.rect.top - unmodifiedRect.top;\n newResult.rectDelta.bottom = arg.rect.bottom - unmodifiedRect.bottom;\n const prevCoords = this.result.coords;\n const prevRect = this.result.rect;\n\n if (prevCoords && prevRect) {\n const rectChanged = newResult.rect.left !== prevRect.left || newResult.rect.right !== prevRect.right || newResult.rect.top !== prevRect.top || newResult.rect.bottom !== prevRect.bottom;\n newResult.changed = rectChanged || prevCoords.x !== newResult.coords.x || prevCoords.y !== newResult.coords.y;\n }\n\n return newResult;\n }\n\n applyToInteraction(arg) {\n const {\n interaction\n } = this;\n const {\n phase\n } = arg;\n const curCoords = interaction.coords.cur;\n const startCoords = interaction.coords.start;\n const {\n result,\n startDelta\n } = this;\n const curDelta = result.delta;\n\n if (phase === 'start') {\n extend(this.startDelta, result.delta);\n }\n\n for (const [coordsSet, delta] of [[startCoords, startDelta], [curCoords, curDelta]]) {\n coordsSet.page.x += delta.x;\n coordsSet.page.y += delta.y;\n coordsSet.client.x += delta.x;\n coordsSet.client.y += delta.y;\n }\n\n const {\n rectDelta\n } = this.result;\n const rect = arg.rect || interaction.rect;\n rect.left += rectDelta.left;\n rect.right += rectDelta.right;\n rect.top += rectDelta.top;\n rect.bottom += rectDelta.bottom;\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n setAndApply(arg) {\n const {\n interaction\n } = this;\n const {\n phase,\n preEnd,\n skipModifiers\n } = arg;\n const result = this.setAll({\n preEnd,\n phase,\n pageCoords: arg.modifiedCoords || interaction.coords.cur.page\n });\n this.result = result; // don't fire an action move if a modifier would keep the event in the same\n // cordinates as before\n\n if (!result.changed && (!skipModifiers || skipModifiers < this.states.length) && interaction.interacting()) {\n return false;\n }\n\n if (arg.modifiedCoords) {\n const {\n page\n } = interaction.coords.cur;\n const adjustment = {\n x: arg.modifiedCoords.x - page.x,\n y: arg.modifiedCoords.y - page.y\n };\n result.coords.x += adjustment.x;\n result.coords.y += adjustment.y;\n result.delta.x += adjustment.x;\n result.delta.y += adjustment.y;\n }\n\n this.applyToInteraction(arg);\n }\n\n beforeEnd(arg) {\n const {\n interaction,\n event\n } = arg;\n const states = this.states;\n\n if (!states || !states.length) {\n return;\n }\n\n let doPreend = false;\n\n for (const state of states) {\n arg.state = state;\n const {\n options,\n methods\n } = state;\n const endPosition = methods.beforeEnd && methods.beforeEnd(arg);\n\n if (endPosition) {\n this.endResult = endPosition;\n return false;\n }\n\n doPreend = doPreend || !doPreend && this.shouldDo(options, true, arg.phase, true);\n }\n\n if (doPreend) {\n // trigger a final modified move before ending\n interaction.move({\n event,\n preEnd: true\n });\n }\n }\n\n stop(arg) {\n const {\n interaction\n } = arg;\n\n if (!this.states || !this.states.length) {\n return;\n }\n\n const modifierArg = extend({\n states: this.states,\n interactable: interaction.interactable,\n element: interaction.element,\n rect: null\n }, arg);\n this.fillArg(modifierArg);\n\n for (const state of this.states) {\n modifierArg.state = state;\n\n if (state.methods.stop) {\n state.methods.stop(modifierArg);\n }\n }\n\n this.states = null;\n this.endResult = null;\n }\n\n prepareStates(modifierList) {\n this.states = [];\n\n for (let index = 0; index < modifierList.length; index++) {\n const {\n options,\n methods,\n name\n } = modifierList[index];\n this.states.push({\n options,\n methods,\n index,\n name\n });\n }\n\n return this.states;\n }\n\n restoreInteractionCoords({\n interaction: {\n coords,\n rect,\n modification\n }\n }) {\n if (!modification.result) {\n return;\n }\n\n const {\n startDelta\n } = modification;\n const {\n delta: curDelta,\n rectDelta\n } = modification.result;\n const coordsAndDeltas = [[coords.start, startDelta], [coords.cur, curDelta]];\n\n for (const [coordsSet, delta] of coordsAndDeltas) {\n coordsSet.page.x -= delta.x;\n coordsSet.page.y -= delta.y;\n coordsSet.client.x -= delta.x;\n coordsSet.client.y -= delta.y;\n }\n\n rect.left -= rectDelta.left;\n rect.right -= rectDelta.right;\n rect.top -= rectDelta.top;\n rect.bottom -= rectDelta.bottom;\n }\n\n shouldDo(options, preEnd, phase, requireEndOnly) {\n if ( // ignore disabled modifiers\n !options || options.enabled === false || // check if we require endOnly option to fire move before end\n requireEndOnly && !options.endOnly || // don't apply endOnly modifiers when not ending\n options.endOnly && !preEnd || // check if modifier should run be applied on start\n phase === 'start' && !options.setStart) {\n return false;\n }\n\n return true;\n }\n\n copyFrom(other) {\n this.startOffset = other.startOffset;\n this.startDelta = other.startDelta;\n this.edges = other.edges;\n this.states = other.states.map(s => clone(s));\n this.result = createResult(extend({}, other.result.coords), extend({}, other.result.rect));\n }\n\n destroy() {\n for (const prop in this) {\n this[prop] = null;\n }\n }\n\n}\n\nfunction createResult(coords, rect) {\n return {\n rect,\n coords,\n delta: {\n x: 0,\n y: 0\n },\n rectDelta: {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n },\n eventProps: [],\n changed: true\n };\n}\n\nfunction getModifierList(interaction) {\n const actionOptions = interaction.interactable.options[interaction.prepared.name];\n const actionModifiers = actionOptions.modifiers;\n\n if (actionModifiers && actionModifiers.length) {\n return actionModifiers;\n }\n\n return ['snap', 'snapSize', 'snapEdges', 'restrict', 'restrictEdges', 'restrictSize'].map(type => {\n const options = actionOptions[type];\n return options && options.enabled && {\n options,\n methods: options._methods\n };\n }).filter(m => !!m);\n}\n\nexport function getRectOffset(rect, coords) {\n return rect ? {\n left: coords.x - rect.left,\n top: coords.y - rect.top,\n right: rect.right - coords.x,\n bottom: rect.bottom - coords.y\n } : {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n };\n}\n//# sourceMappingURL=Modification.js.map","import { InteractEvent } from \"../core/InteractEvent.js\";\nimport Interaction from \"../core/Interaction.js\";\nimport Modification from \"./Modification.js\";\nexport function makeModifier(module, name) {\n const {\n defaults\n } = module;\n const methods = {\n start: module.start,\n set: module.set,\n beforeEnd: module.beforeEnd,\n stop: module.stop\n };\n\n const modifier = _options => {\n const options = _options || {};\n options.enabled = options.enabled !== false; // add missing defaults to options\n\n for (const prop in defaults) {\n if (!(prop in options)) {\n options[prop] = defaults[prop];\n }\n }\n\n const m = {\n options,\n methods,\n name,\n enable: () => {\n options.enabled = true;\n return m;\n },\n disable: () => {\n options.enabled = false;\n return m;\n }\n };\n return m;\n };\n\n if (name && typeof name === 'string') {\n // for backwrads compatibility\n modifier._defaults = defaults;\n modifier._methods = methods;\n }\n\n return modifier;\n}\nexport function addEventModifiers({\n iEvent,\n interaction: {\n modification: {\n result\n }\n }\n}) {\n if (result) {\n iEvent.modifiers = result.eventProps;\n }\n}\nconst modifiersBase = {\n id: 'modifiers/base',\n before: ['actions'],\n install: scope => {\n scope.defaults.perAction.modifiers = [];\n },\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.modification = new Modification(interaction);\n },\n 'interactions:before-action-start': arg => {\n const {\n modification\n } = arg.interaction;\n modification.start(arg, arg.interaction.coords.start.page);\n arg.interaction.edges = modification.edges;\n modification.applyToInteraction(arg);\n },\n 'interactions:before-action-move': arg => arg.interaction.modification.setAndApply(arg),\n 'interactions:before-action-end': arg => arg.interaction.modification.beforeEnd(arg),\n 'interactions:action-start': addEventModifiers,\n 'interactions:action-move': addEventModifiers,\n 'interactions:action-end': addEventModifiers,\n 'interactions:after-action-start': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:after-action-move': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:stop': arg => arg.interaction.modification.stop(arg)\n }\n};\nexport default modifiersBase;\n//# sourceMappingURL=base.js.map","/**\n * @module modifiers/aspectRatio\n *\n * @description\n * This module forces elements to be resized with a specified dx/dy ratio.\n *\n * ```js\n * interact(target).resizable({\n * modifiers: [\n * interact.modifiers.snapSize({\n * targets: [ interact.snappers.grid({ x: 20, y: 20 }) ],\n * }),\n * interact.aspectRatio({ ratio: 'preserve' }),\n * ],\n * });\n * ```\n */\nimport extend from \"../utils/extend.js\";\nimport { addEdges } from \"../utils/rect.js\";\nimport Modification from \"./Modification.js\";\nimport { makeModifier } from \"./base.js\";\nconst aspectRatio = {\n start(arg) {\n const {\n state,\n rect,\n edges: originalEdges,\n pageCoords: coords\n } = arg;\n let {\n ratio\n } = state.options;\n const {\n equalDelta,\n modifiers\n } = state.options;\n\n if (ratio === 'preserve') {\n ratio = rect.width / rect.height;\n }\n\n state.startCoords = extend({}, coords);\n state.startRect = extend({}, rect);\n state.ratio = ratio;\n state.equalDelta = equalDelta;\n const linkedEdges = state.linkedEdges = {\n top: originalEdges.top || originalEdges.left && !originalEdges.bottom,\n left: originalEdges.left || originalEdges.top && !originalEdges.right,\n bottom: originalEdges.bottom || originalEdges.right && !originalEdges.top,\n right: originalEdges.right || originalEdges.bottom && !originalEdges.left\n };\n state.xIsPrimaryAxis = !!(originalEdges.left || originalEdges.right);\n\n if (state.equalDelta) {\n state.edgeSign = (linkedEdges.left ? 1 : -1) * (linkedEdges.top ? 1 : -1);\n } else {\n const negativeSecondaryEdge = state.xIsPrimaryAxis ? linkedEdges.top : linkedEdges.left;\n state.edgeSign = negativeSecondaryEdge ? -1 : 1;\n }\n\n extend(arg.edges, linkedEdges);\n\n if (!modifiers || !modifiers.length) {\n return;\n }\n\n const subModification = new Modification(arg.interaction);\n subModification.copyFrom(arg.interaction.modification);\n subModification.prepareStates(modifiers);\n state.subModification = subModification;\n subModification.startAll({ ...arg\n });\n },\n\n set(arg) {\n const {\n state,\n rect,\n coords\n } = arg;\n const initialCoords = extend({}, coords);\n const aspectMethod = state.equalDelta ? setEqualDelta : setRatio;\n aspectMethod(state, state.xIsPrimaryAxis, coords, rect);\n\n if (!state.subModification) {\n return null;\n }\n\n const correctedRect = extend({}, rect);\n addEdges(state.linkedEdges, correctedRect, {\n x: coords.x - initialCoords.x,\n y: coords.y - initialCoords.y\n });\n const result = state.subModification.setAll({ ...arg,\n rect: correctedRect,\n edges: state.linkedEdges,\n pageCoords: coords,\n prevCoords: coords,\n prevRect: correctedRect\n });\n const {\n delta\n } = result;\n\n if (result.changed) {\n const xIsCriticalAxis = Math.abs(delta.x) > Math.abs(delta.y); // do aspect modification again with critical edge axis as primary\n\n aspectMethod(state, xIsCriticalAxis, result.coords, result.rect);\n extend(coords, result.coords);\n }\n\n return result.eventProps;\n },\n\n defaults: {\n ratio: 'preserve',\n equalDelta: false,\n modifiers: [],\n enabled: false\n }\n};\n\nfunction setEqualDelta({\n startCoords,\n edgeSign\n}, xIsPrimaryAxis, coords) {\n if (xIsPrimaryAxis) {\n coords.y = startCoords.y + (coords.x - startCoords.x) * edgeSign;\n } else {\n coords.x = startCoords.x + (coords.y - startCoords.y) * edgeSign;\n }\n}\n\nfunction setRatio({\n startRect,\n startCoords,\n ratio,\n edgeSign\n}, xIsPrimaryAxis, coords, rect) {\n if (xIsPrimaryAxis) {\n const newHeight = rect.width / ratio;\n coords.y = startCoords.y + (newHeight - startRect.height) * edgeSign;\n } else {\n const newWidth = rect.height * ratio;\n coords.x = startCoords.x + (newWidth - startRect.width) * edgeSign;\n }\n}\n\nexport default makeModifier(aspectRatio, 'aspectRatio');\nexport { aspectRatio };\n//# sourceMappingURL=aspectRatio.js.map","const noop = () => {};\n\nnoop._defaults = {};\nexport default noop;\n//# sourceMappingURL=noop.js.map","import extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start({\n rect,\n startOffset,\n state,\n interaction,\n pageCoords\n}) {\n const {\n options\n } = state;\n const {\n elementRect\n } = options;\n const offset = extend({\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n }, options.offset || {});\n\n if (rect && elementRect) {\n const restriction = getRestrictionRect(options.restriction, interaction, pageCoords);\n\n if (restriction) {\n const widthDiff = restriction.right - restriction.left - rect.width;\n const heightDiff = restriction.bottom - restriction.top - rect.height;\n\n if (widthDiff < 0) {\n offset.left += widthDiff;\n offset.right += widthDiff;\n }\n\n if (heightDiff < 0) {\n offset.top += heightDiff;\n offset.bottom += heightDiff;\n }\n }\n\n offset.left += startOffset.left - rect.width * elementRect.left;\n offset.top += startOffset.top - rect.height * elementRect.top;\n offset.right += startOffset.right - rect.width * (1 - elementRect.right);\n offset.bottom += startOffset.bottom - rect.height * (1 - elementRect.bottom);\n }\n\n state.offset = offset;\n}\n\nfunction set({\n coords,\n interaction,\n state\n}) {\n const {\n options,\n offset\n } = state;\n const restriction = getRestrictionRect(options.restriction, interaction, coords);\n\n if (!restriction) {\n return;\n }\n\n const rect = rectUtils.xywhToTlbr(restriction);\n coords.x = Math.max(Math.min(rect.right - offset.right, coords.x), rect.left + offset.left);\n coords.y = Math.max(Math.min(rect.bottom - offset.bottom, coords.y), rect.top + offset.top);\n}\n\nexport function getRestrictionRect(value, interaction, coords) {\n if (is.func(value)) {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element, [coords.x, coords.y, interaction]);\n } else {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element);\n }\n}\nconst defaults = {\n restriction: null,\n elementRect: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrict = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrict, 'restrict');\nexport { restrict };\n//# sourceMappingURL=pointer.js.map","// This module adds the options.resize.restrictEdges setting which sets min and\n// max for the top, left, bottom and right edges of the target being resized.\n//\n// interact(target).resize({\n// edges: { top: true, left: true },\n// restrictEdges: {\n// inner: { top: 200, left: 200, right: 400, bottom: 400 },\n// outer: { top: 0, left: 0, right: 600, bottom: 600 },\n// },\n// })\nimport extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noInner = {\n top: +Infinity,\n left: +Infinity,\n bottom: -Infinity,\n right: -Infinity\n};\nconst noOuter = {\n top: -Infinity,\n left: -Infinity,\n bottom: +Infinity,\n right: +Infinity\n};\n\nfunction start({\n interaction,\n startOffset,\n state\n}) {\n const {\n options\n } = state;\n let offset;\n\n if (options) {\n const offsetRect = getRestrictionRect(options.offset, interaction, interaction.coords.start.page);\n offset = rectUtils.rectToXY(offsetRect);\n }\n\n offset = offset || {\n x: 0,\n y: 0\n };\n state.offset = {\n top: offset.y + startOffset.top,\n left: offset.x + startOffset.left,\n bottom: offset.y - startOffset.bottom,\n right: offset.x - startOffset.right\n };\n}\n\nfunction set({\n coords,\n edges,\n interaction,\n state\n}) {\n const {\n offset,\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const page = extend({}, coords);\n const inner = getRestrictionRect(options.inner, interaction, page) || {};\n const outer = getRestrictionRect(options.outer, interaction, page) || {};\n fixRect(inner, noInner);\n fixRect(outer, noOuter);\n\n if (edges.top) {\n coords.y = Math.min(Math.max(outer.top + offset.top, page.y), inner.top + offset.top);\n } else if (edges.bottom) {\n coords.y = Math.max(Math.min(outer.bottom + offset.bottom, page.y), inner.bottom + offset.bottom);\n }\n\n if (edges.left) {\n coords.x = Math.min(Math.max(outer.left + offset.left, page.x), inner.left + offset.left);\n } else if (edges.right) {\n coords.x = Math.max(Math.min(outer.right + offset.right, page.x), inner.right + offset.right);\n }\n}\n\nfunction fixRect(rect, defaults) {\n for (const edge of ['top', 'left', 'bottom', 'right']) {\n if (!(edge in rect)) {\n rect[edge] = defaults[edge];\n }\n }\n\n return rect;\n}\n\nconst defaults = {\n inner: null,\n outer: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrictEdges = {\n noInner,\n noOuter,\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictEdges, 'restrictEdges');\nexport { restrictEdges };\n//# sourceMappingURL=edges.js.map","import extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrict } from \"./pointer.js\";\nconst defaults = extend({\n get elementRect() {\n return {\n top: 0,\n left: 0,\n bottom: 1,\n right: 1\n };\n },\n\n set elementRect(_) {}\n\n}, restrict.defaults);\nconst restrictRect = {\n start: restrict.start,\n set: restrict.set,\n defaults\n};\nexport default makeModifier(restrictRect, 'restrictRect');\nexport { restrictRect };\n//# sourceMappingURL=rect.js.map","import extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrictEdges } from \"./edges.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noMin = {\n width: -Infinity,\n height: -Infinity\n};\nconst noMax = {\n width: +Infinity,\n height: +Infinity\n};\n\nfunction start(arg) {\n return restrictEdges.start(arg);\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n rect,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const minSize = rectUtils.tlbrToXywh(getRestrictionRect(options.min, interaction, arg.coords)) || noMin;\n const maxSize = rectUtils.tlbrToXywh(getRestrictionRect(options.max, interaction, arg.coords)) || noMax;\n state.options = {\n endOnly: options.endOnly,\n inner: extend({}, restrictEdges.noInner),\n outer: extend({}, restrictEdges.noOuter)\n };\n\n if (edges.top) {\n state.options.inner.top = rect.bottom - minSize.height;\n state.options.outer.top = rect.bottom - maxSize.height;\n } else if (edges.bottom) {\n state.options.inner.bottom = rect.top + minSize.height;\n state.options.outer.bottom = rect.top + maxSize.height;\n }\n\n if (edges.left) {\n state.options.inner.left = rect.right - minSize.width;\n state.options.outer.left = rect.right - maxSize.width;\n } else if (edges.right) {\n state.options.inner.right = rect.left + minSize.width;\n state.options.outer.right = rect.left + maxSize.width;\n }\n\n restrictEdges.set(arg);\n state.options = options;\n}\n\nconst defaults = {\n min: null,\n max: null,\n endOnly: false,\n enabled: false\n};\nconst restrictSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictSize, 'restrictSize');\nexport { restrictSize };\n//# sourceMappingURL=size.js.map","import extend from \"../../utils/extend.js\";\nimport getOriginXY from \"../../utils/getOriginXY.js\";\nimport hypot from \"../../utils/hypot.js\";\nimport is from \"../../utils/is.js\";\nimport { resolveRectLike, rectToXY } from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n state,\n startOffset\n } = arg;\n const {\n options\n } = state;\n const origin = options.offsetWithOrigin ? getOrigin(arg) : {\n x: 0,\n y: 0\n };\n let snapOffset;\n\n if (options.offset === 'startCoords') {\n snapOffset = {\n x: interaction.coords.start.page.x,\n y: interaction.coords.start.page.y\n };\n } else {\n const offsetRect = resolveRectLike(options.offset, interactable, element, [interaction]);\n snapOffset = rectToXY(offsetRect) || {\n x: 0,\n y: 0\n };\n snapOffset.x += origin.x;\n snapOffset.y += origin.y;\n }\n\n const {\n relativePoints\n } = options;\n state.offsets = rect && relativePoints && relativePoints.length ? relativePoints.map((relativePoint, index) => ({\n index,\n relativePoint,\n x: startOffset.left - rect.width * relativePoint.x + snapOffset.x,\n y: startOffset.top - rect.height * relativePoint.y + snapOffset.y\n })) : [extend({\n index: 0,\n relativePoint: null\n }, snapOffset)];\n}\n\nfunction set(arg) {\n const {\n interaction,\n coords,\n state\n } = arg;\n const {\n options,\n offsets\n } = state;\n const origin = getOriginXY(interaction.interactable, interaction.element, interaction.prepared.name);\n const page = extend({}, coords);\n const targets = [];\n\n if (!options.offsetWithOrigin) {\n page.x -= origin.x;\n page.y -= origin.y;\n }\n\n for (const offset of offsets) {\n const relativeX = page.x - offset.x;\n const relativeY = page.y - offset.y;\n\n for (let index = 0, len = options.targets.length; index < len; index++) {\n const snapTarget = options.targets[index];\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relativeX, relativeY, interaction._proxy, offset, index);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n targets.push({\n x: (is.number(target.x) ? target.x : relativeX) + offset.x,\n y: (is.number(target.y) ? target.y : relativeY) + offset.y,\n range: is.number(target.range) ? target.range : options.range,\n source: snapTarget,\n index,\n offset\n });\n }\n }\n\n const closest = {\n target: null,\n inRange: false,\n distance: 0,\n range: 0,\n delta: {\n x: 0,\n y: 0\n }\n };\n\n for (const target of targets) {\n const range = target.range;\n const dx = target.x - page.x;\n const dy = target.y - page.y;\n const distance = hypot(dx, dy);\n let inRange = distance <= range; // Infinite targets count as being out of range\n // compared to non infinite ones that are in range\n\n if (range === Infinity && closest.inRange && closest.range !== Infinity) {\n inRange = false;\n }\n\n if (!closest.target || (inRange // is the closest target in range?\n ? closest.inRange && range !== Infinity // the pointer is relatively deeper in this target\n ? distance / range < closest.distance / closest.range // this target has Infinite range and the closest doesn't\n : range === Infinity && closest.range !== Infinity || // OR this target is closer that the previous closest\n distance < closest.distance : // The other is not in range and the pointer is closer to this target\n !closest.inRange && distance < closest.distance)) {\n closest.target = target;\n closest.distance = distance;\n closest.range = range;\n closest.inRange = inRange;\n closest.delta.x = dx;\n closest.delta.y = dy;\n }\n }\n\n if (closest.inRange) {\n coords.x = closest.target.x;\n coords.y = closest.target.y;\n }\n\n state.closest = closest;\n return closest;\n}\n\nfunction getOrigin(arg) {\n const {\n element\n } = arg.interaction;\n const optionsOrigin = rectToXY(resolveRectLike(arg.state.options.origin, null, null, [element]));\n const origin = optionsOrigin || getOriginXY(arg.interactable, element, arg.interaction.prepared.name);\n return origin;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n offsetWithOrigin: true,\n origin: null,\n relativePoints: null,\n endOnly: false,\n enabled: false\n};\nconst snap = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snap, 'snap');\nexport { snap };\n//# sourceMappingURL=pointer.js.map","// This module allows snapping of the size of targets during resize\n// interactions.\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snap } from \"./pointer.js\";\n\nfunction start(arg) {\n const {\n state,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return null;\n }\n\n arg.state = {\n options: {\n targets: null,\n relativePoints: [{\n x: edges.left ? 0 : 1,\n y: edges.top ? 0 : 1\n }],\n offset: options.offset || 'self',\n origin: {\n x: 0,\n y: 0\n },\n range: options.range\n }\n };\n state.targetFields = state.targetFields || [['width', 'height'], ['x', 'y']];\n snap.start(arg);\n state.offsets = arg.state.offsets;\n arg.state = state;\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n coords\n } = arg;\n const {\n options,\n offsets\n } = state;\n const relative = {\n x: coords.x - offsets[0].x,\n y: coords.y - offsets[0].y\n };\n state.options = extend({}, options);\n state.options.targets = [];\n\n for (const snapTarget of options.targets || []) {\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relative.x, relative.y, interaction);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n for (const [xField, yField] of state.targetFields) {\n if (xField in target || yField in target) {\n target.x = target[xField];\n target.y = target[yField];\n break;\n }\n }\n\n state.options.targets.push(target);\n }\n\n const returnValue = snap.set(arg);\n state.options = options;\n return returnValue;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst snapSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snapSize, 'snapSize');\nexport { snapSize };\n//# sourceMappingURL=size.js.map","/**\n * @module modifiers/snapEdges\n *\n * @description\n * WOW> This module allows snapping of the edges of targets during resize\n * interactions.\n *\n * ```js\n * interact(target).resizable({\n * snapEdges: {\n * targets: [interact.snappers.grid({ x: 100, y: 50 })],\n * },\n * })\n *\n * interact(target).resizable({\n * snapEdges: {\n * targets: [\n * interact.snappers.grid({\n * top: 50,\n * left: 50,\n * bottom: 100,\n * right: 100,\n * }),\n * ],\n * },\n * })\n * ```\n */\nimport clone from \"../../utils/clone.js\";\nimport extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snapSize } from \"./size.js\";\n\nfunction start(arg) {\n const {\n edges\n } = arg;\n\n if (!edges) {\n return null;\n }\n\n arg.state.targetFields = arg.state.targetFields || [[edges.left ? 'left' : 'right', edges.top ? 'top' : 'bottom']];\n return snapSize.start(arg);\n}\n\nconst snapEdges = {\n start,\n set: snapSize.set,\n defaults: extend(clone(snapSize.defaults), {\n targets: null,\n range: null,\n offset: {\n x: 0,\n y: 0\n }\n })\n};\nexport default makeModifier(snapEdges, 'snapEdges');\nexport { snapEdges };\n//# sourceMappingURL=edges.js.map","/* eslint-disable node/no-extraneous-import */\nimport aspectRatio from \"./aspectRatio.js\";\nimport avoid from \"./avoid.js\";\nimport restrictEdges from \"./restrict/edges.js\";\nimport restrict from \"./restrict/pointer.js\";\nimport restrictRect from \"./restrict/rect.js\";\nimport restrictSize from \"./restrict/size.js\";\nimport rubberband from \"./rubberband.js\";\nimport snapEdges from \"./snap/edges.js\";\nimport snap from \"./snap/pointer.js\";\nimport snapSize from \"./snap/size.js\";\nimport spring from \"./spring.js\";\nimport transform from \"./transform.js\";\nexport default {\n aspectRatio,\n restrictEdges,\n restrict,\n restrictRect,\n restrictSize,\n snapEdges,\n snap,\n snapSize,\n spring,\n avoid,\n transform,\n rubberband\n};\n//# sourceMappingURL=all.js.map","import snappers from \"../snappers/plugin.js\";\nimport all from \"./all.js\";\nimport base from \"./base.js\";\nconst modifiers = {\n id: 'modifiers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n scope.usePlugin(base);\n scope.usePlugin(snappers);\n interact.modifiers = all; // for backwrads compatibility\n\n for (const type in all) {\n const {\n _defaults,\n _methods\n } = all[type];\n _defaults._methods = _methods;\n scope.defaults.perAction[type] = _defaults;\n }\n }\n\n};\nexport default modifiers;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable no-console */\nimport { Scope } from \"../core/scope.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { parentNode } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport * as win from \"../utils/window.js\";\nvar CheckName;\n\n(function (CheckName) {\n CheckName[\"touchAction\"] = \"touchAction\";\n CheckName[\"boxSizing\"] = \"boxSizing\";\n CheckName[\"noListeners\"] = \"noListeners\";\n})(CheckName || (CheckName = {}));\n\nconst prefix = '[interact.js] ';\nconst links = {\n touchAction: 'https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action',\n boxSizing: 'https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing'\n}; // eslint-disable-next-line no-undef\n\nconst isProduction = \"development\" === 'production'; // eslint-disable-next-line no-restricted-syntax\n\nfunction install(scope, {\n logger\n} = {}) {\n const {\n Interactable,\n defaults\n } = scope;\n scope.logger = logger || console;\n defaults.base.devTools = {\n ignore: {}\n };\n\n Interactable.prototype.devTools = function (options) {\n if (options) {\n extend(this.options.devTools, options);\n return this;\n }\n\n return this.options.devTools;\n };\n}\n\nconst checks = [{\n name: CheckName.touchAction,\n\n perform({\n element\n }) {\n return !parentHasStyle(element, 'touchAction', /pan-|pinch|none/);\n },\n\n getInfo({\n element\n }) {\n return [element, links.touchAction];\n },\n\n text: 'Consider adding CSS \"touch-action: none\" to this element\\n'\n}, {\n name: CheckName.boxSizing,\n\n perform(interaction) {\n const {\n element\n } = interaction;\n return interaction.prepared.name === 'resize' && element instanceof domObjects.HTMLElement && !hasStyle(element, 'boxSizing', /border-box/);\n },\n\n text: 'Consider adding CSS \"box-sizing: border-box\" to this resizable element',\n\n getInfo({\n element\n }) {\n return [element, links.boxSizing];\n }\n\n}, {\n name: CheckName.noListeners,\n\n perform(interaction) {\n const actionName = interaction.prepared.name;\n const moveListeners = interaction.interactable.events.types[`${actionName}move`] || [];\n return !moveListeners.length;\n },\n\n getInfo(interaction) {\n return [interaction.prepared.name, interaction.interactable];\n },\n\n text: 'There are no listeners set for this action'\n}];\n\nfunction hasStyle(element, prop, styleRe) {\n const value = element.style[prop] || win.window.getComputedStyle(element)[prop];\n return styleRe.test((value || '').toString());\n}\n\nfunction parentHasStyle(element, prop, styleRe) {\n let parent = element;\n\n while (is.element(parent)) {\n if (hasStyle(parent, prop, styleRe)) {\n return true;\n }\n\n parent = parentNode(parent);\n }\n\n return false;\n}\n\nconst id = 'dev-tools';\nconst defaultExport = isProduction ? {\n id,\n install: () => {}\n} : {\n id,\n install,\n listeners: {\n 'interactions:action-start': ({\n interaction\n }, scope) => {\n for (const check of checks) {\n const options = interaction.interactable && interaction.interactable.options;\n\n if (!(options && options.devTools && options.devTools.ignore[check.name]) && check.perform(interaction)) {\n scope.logger.warn(prefix + check.text, ...check.getInfo(interaction));\n }\n }\n }\n },\n checks,\n CheckName,\n links,\n prefix\n};\nexport default defaultExport;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { render } from \"./GridItem.vue?vue&type=template&id=17d5e425\"\nimport script from \"./GridItem.vue?vue&type=script&lang=js\"\nexport * from \"./GridItem.vue?vue&type=script&lang=js\"\n\nimport \"./GridItem.vue?vue&type=style&index=0&id=17d5e425&lang=css\"\n\nimport exportComponent from \"/Users/xingyongqiang/code/testCode/vue-grid-layout/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import _Object$defineProperty from \"@babel/runtime-corejs2/core-js/object/define-property\";\nexport default function _defineProperty(obj, key, value) {\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function(n){return{all:n=n||new Map,on:function(t,e){var i=n.get(t);i&&i.push(e)||n.set(t,[e])},off:function(t,e){var i=n.get(t);i&&i.splice(i.indexOf(e)>>>0,1)},emit:function(t,e){(n.get(t)||[]).slice().map(function(n){n(e)}),(n.get(\"*\")||[]).slice().map(function(n){n(t,e)})}}}\n//# sourceMappingURL=mitt.es.js.map\n","import { render } from \"./GridLayout.vue?vue&type=template&id=2f667182\"\nimport script from \"./GridLayout.vue?vue&type=script&lang=js\"\nexport * from \"./GridLayout.vue?vue&type=script&lang=js\"\n\nimport \"./GridLayout.vue?vue&type=style&index=0&id=2f667182&lang=css\"\n\nimport exportComponent from \"/Users/xingyongqiang/code/testCode/vue-grid-layout/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { App } from 'vue';\n\nimport GridItem from './GridItem.vue';\nimport GridLayout from './GridLayout.vue';\n\nexport { GridLayout, GridItem };\n\nconst install = (app: App) => {\n app.component('grid-layout', GridLayout)\n app.component('grid-item', GridItem)\n}\n\nexport default install;","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","// 20.1.2.2 Number.isFinite(number)\nvar $export = require('./_export');\nvar _isFinite = require('./_global').isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it) {\n return typeof it == 'number' && _isFinite(it);\n }\n});\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-grid-layout.common.js.map b/dist/vue-grid-layout.common.js.map deleted file mode 100644 index 79c7b73e..00000000 --- a/dist/vue-grid-layout.common.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://VueGridLayout/webpack/bootstrap","webpack://VueGridLayout/./node_modules/core-js/modules/_iter-define.js","webpack://VueGridLayout/./node_modules/core-js/modules/_string-at.js","webpack://VueGridLayout/./node_modules/core-js/modules/_advance-string-index.js","webpack://VueGridLayout/./src/components/GridItem.vue?d411","webpack://VueGridLayout/./node_modules/core-js/modules/_flags.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-keys.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-gopd.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-dps.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/detection-strategy/object.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/browser-detector.js","webpack://VueGridLayout/./node_modules/core-js/modules/_fix-re-wks.js","webpack://VueGridLayout/./node_modules/core-js/modules/_dom-create.js","webpack://VueGridLayout/./node_modules/core-js/modules/_classof.js","webpack://VueGridLayout/./node_modules/css-loader/dist/runtime/api.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-gops.js","webpack://VueGridLayout/./node_modules/core-js/modules/_redefine.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-create.js","webpack://VueGridLayout/./node_modules/core-js/modules/_wks.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/id-generator.js","webpack://VueGridLayout/./node_modules/core-js/modules/_library.js","webpack://VueGridLayout/./node_modules/core-js/modules/_cof.js","webpack://VueGridLayout/./node_modules/core-js/modules/_strict-method.js","webpack://VueGridLayout/./node_modules/core-js/modules/_hide.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-gpo.js","webpack://VueGridLayout/./node_modules/core-js/modules/_iter-create.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.object.keys.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-integer.js","webpack://VueGridLayout/./node_modules/core-js/modules/_property-desc.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.regexp.match.js","webpack://VueGridLayout/./src/components/GridItem.vue?3b34","webpack://VueGridLayout/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://VueGridLayout/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/listener-handler.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-object.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/id-handler.js","webpack://VueGridLayout/./node_modules/batch-processor/src/utils.js","webpack://VueGridLayout/./node_modules/core-js/modules/_regexp-exec.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-pie.js","webpack://VueGridLayout/./node_modules/core-js/modules/_shared.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.array.sort.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/element-utils.js","webpack://VueGridLayout/./node_modules/core-js/modules/_export.js","webpack://VueGridLayout/./node_modules/core-js/modules/_inherit-if-required.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-sap.js","webpack://VueGridLayout/./node_modules/core-js/modules/_regexp-exec-abstract.js","webpack://VueGridLayout/./node_modules/core-js/modules/_shared-key.js","webpack://VueGridLayout/./node_modules/core-js/modules/_iobject.js","webpack://VueGridLayout/./src/components/GridLayout.vue?845a","webpack://VueGridLayout/./node_modules/core-js/modules/_to-iobject.js","webpack://VueGridLayout/./node_modules/core-js/modules/_has.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-primitive.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-assign.js","webpack://VueGridLayout/./node_modules/core-js/modules/_global.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-absolute-index.js","webpack://VueGridLayout/./node_modules/core-js/modules/_fails.js","webpack://VueGridLayout/./node_modules/core-js/modules/_set-to-string-tag.js","webpack://VueGridLayout/./node_modules/core-js/modules/_core.js","webpack://VueGridLayout/./src/components/GridLayout.vue?2bad","webpack://VueGridLayout/./node_modules/core-js/modules/_iterators.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-dp.js","webpack://VueGridLayout/./node_modules/@soda/get-current-script/index.js","webpack://VueGridLayout/./node_modules/core-js/modules/_set-proto.js","webpack://VueGridLayout/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VueGridLayout/./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-gopn.js","webpack://VueGridLayout/./src/components/GridLayout.vue?c712","webpack://VueGridLayout/./node_modules/core-js/modules/_own-keys.js","webpack://VueGridLayout/./node_modules/core-js/modules/_ctx.js","webpack://VueGridLayout/./node_modules/core-js/modules/_add-to-unscopables.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-length.js","webpack://VueGridLayout/./node_modules/core-js/modules/_descriptors.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.regexp.replace.js","webpack://VueGridLayout/./node_modules/core-js/modules/_string-trim.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/reporter.js","webpack://VueGridLayout/./node_modules/core-js/modules/web.dom.iterable.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.regexp.exec.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/collection-utils.js","webpack://VueGridLayout/./node_modules/core-js/modules/_defined.js","webpack://VueGridLayout/./node_modules/batch-processor/src/batch-processor.js","webpack://VueGridLayout/./node_modules/core-js/modules/_array-includes.js","webpack://VueGridLayout/./src/components/GridItem.vue?1d19","webpack://VueGridLayout/./node_modules/core-js/modules/es6.number.constructor.js","webpack://VueGridLayout/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/detection-strategy/scroll.js","webpack://VueGridLayout/./node_modules/core-js/modules/_uid.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.array.iterator.js","webpack://VueGridLayout/./node_modules/core-js/modules/_an-object.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-keys-internal.js","webpack://VueGridLayout/./node_modules/core-js/modules/_is-object.js","webpack://VueGridLayout/./node_modules/core-js/modules/_iter-step.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/state-handler.js","webpack://VueGridLayout/./node_modules/core-js/modules/_a-function.js","webpack://VueGridLayout/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/element-resize-detector.js","webpack://VueGridLayout/./node_modules/core-js/modules/_create-property.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.object.assign.js","webpack://VueGridLayout/./node_modules/core-js/modules/_function-to-string.js","webpack://VueGridLayout/./node_modules/core-js/modules/_html.js","webpack://VueGridLayout/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VueGridLayout/./src/components/GridItem.vue","webpack://VueGridLayout/./src/helpers/utils.js","webpack://VueGridLayout/./src/helpers/draggableUtils.js","webpack://VueGridLayout/./src/helpers/responsiveUtils.js","webpack://VueGridLayout/./src/helpers/DOM.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/domObjects.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/isWindow.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/window.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/is.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/browser.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/arr.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/clone.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/extend.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/raf.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/normalizeListeners.js","webpack://VueGridLayout/./node_modules/@interactjs/core/Eventable.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/domUtils.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/rect.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/getOriginXY.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/hypot.js","webpack://VueGridLayout/./node_modules/@interactjs/core/BaseEvent.js","webpack://VueGridLayout/./node_modules/@interactjs/core/defaultOptions.js","webpack://VueGridLayout/./node_modules/@interactjs/core/InteractEvent.js","webpack://VueGridLayout/./node_modules/@interactjs/core/isNonNativeEvent.js","webpack://VueGridLayout/./node_modules/@interactjs/core/Interactable.js","webpack://VueGridLayout/./node_modules/@interactjs/core/InteractableSet.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/pointerExtend.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/pointerUtils.js","webpack://VueGridLayout/./node_modules/@interactjs/core/events.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/misc.js","webpack://VueGridLayout/./node_modules/@interactjs/core/interactStatic.js","webpack://VueGridLayout/./node_modules/@interactjs/core/PointerInfo.js","webpack://VueGridLayout/./node_modules/@interactjs/core/Interaction.js","webpack://VueGridLayout/./node_modules/@interactjs/core/interactablePreventDefault.js","webpack://VueGridLayout/./node_modules/@interactjs/core/interactionFinder.js","webpack://VueGridLayout/./node_modules/@interactjs/core/interactions.js","webpack://VueGridLayout/./node_modules/@interactjs/core/scope.js","webpack://VueGridLayout/./node_modules/@interactjs/interact/index.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/InteractableMethods.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/base.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/dragAxis.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/hold.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/index.js","webpack://VueGridLayout/./node_modules/@interactjs/actions/drag/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/actions/drag/index.js","webpack://VueGridLayout/./node_modules/@interactjs/actions/resize/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/actions/resize/index.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/edgeTarget.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/elements.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/grid.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/all.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/Modification.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/base.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/aspectRatio.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/noop.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/restrict/pointer.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/restrict/edges.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/restrict/rect.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/restrict/size.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/snap/pointer.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/snap/size.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/snap/edges.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/all.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/index.js","webpack://VueGridLayout/./node_modules/@interactjs/dev-tools/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/dev-tools/index.js","webpack://VueGridLayout/./src/components/GridItem.vue?b8d1","webpack://VueGridLayout/./src/components/GridItem.vue?0590","webpack://VueGridLayout/./src/components/GridLayout.vue","webpack://VueGridLayout/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://VueGridLayout/./node_modules/mitt/dist/mitt.es.js","webpack://VueGridLayout/./src/components/GridLayout.vue?373d","webpack://VueGridLayout/./src/components/GridLayout.vue?19aa","webpack://VueGridLayout/./src/components/index.js","webpack://VueGridLayout/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.number.is-finite.js","webpack://VueGridLayout/./node_modules/core-js/modules/_string-ws.js"],"names":["bottom","layout","max","bottomY","i","len","length","y","h","cloneLayout","newLayout","Array","cloneLayoutItem","layoutItem","JSON","parse","stringify","collides","l1","l2","x","w","compact","verticalCompact","compareWith","getStatics","sorted","sortLayoutItemsByRowCol","out","l","static","compactItem","push","indexOf","moved","getFirstCollision","correctBounds","bounds","collidesWith","cols","getLayoutItem","id","getAllCollisions","filter","moveElement","isUserAction","preventCollision","oldX","oldY","movingUp","reverse","collisions","collision","moveElementAwayFromCollision","itemToMove","fakeItem","Math","undefined","perc","num","setTransform","top","left","width","height","translate","transform","WebkitTransform","MozTransform","msTransform","OTransform","position","setTransformRtl","right","setTopLeft","setTopRight","concat","sort","a","b","validateLayout","contextName","subProps","keyArr","isArray","Error","item","j","autoBindHandlers","el","fns","forEach","key","bind","createMarkup","obj","keys","Object","result","val","hyphenate","addPx","IS_UNITLESS","animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridRow","gridColumn","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","stopOpacity","strokeDashoffset","strokeOpacity","strokeWidth","name","value","hyphenateRE","str","replace","toLowerCase","findItemInArray","array","property","findAndRemove","index","splice","getControlPosition","e","offsetXYFromParentOf","evt","offsetParent","target","document","body","offsetParentRect","getBoundingClientRect","clientX","scrollLeft","clientY","scrollTop","createCoreData","lastX","lastY","isStart","isNum","deltaX","deltaY","isNaN","getBreakpointFromWidth","breakpoints","sortBreakpoints","matching","breakpointName","getColsFromBreakpoint","breakpoint","findOrGenerateResponsiveLayout","orgLayout","layouts","lastBreakpoint","breakpointsSorted","breakpointsAbove","slice","generateResponsiveLayout","currentDir","hasDocument","hasWindow","window","getDocumentDir","direction","dir","getElementsByTagName","getAttribute","setDocumentDir","html","setAttribute","addWindowEventListener","event","callback","addEventListener","removeWindowEventListener","removeEventListener","install","app","component","GridLayout","GridItem"],"mappings":";;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;AClFa;AACb,cAAc,mBAAO,CAAC,MAAY;AAClC,cAAc,mBAAO,CAAC,MAAW;AACjC,eAAe,mBAAO,CAAC,MAAa;AACpC,WAAW,mBAAO,CAAC,MAAS;AAC5B,gBAAgB,mBAAO,CAAC,MAAc;AACtC,kBAAkB,mBAAO,CAAC,MAAgB;AAC1C,qBAAqB,mBAAO,CAAC,MAAsB;AACnD,qBAAqB,mBAAO,CAAC,MAAe;AAC5C,eAAe,mBAAO,CAAC,MAAQ;AAC/B,8CAA8C;AAC9C;AACA;AACA;;AAEA,8BAA8B,aAAa;;AAE3C;AACA;AACA;AACA;AACA;AACA,yCAAyC,oCAAoC;AAC7E,6CAA6C,oCAAoC;AACjF,KAAK,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A;;AAEa;;AAEb,sBAAsB,mBAAO,CAAC,MAAqB;;AAEnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,yDAAyD,OAAO;;AAEhE;AACA;;AAEA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;;AAE7B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACtPa;;AAEb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;;;;;;;;ACtCa;AACb,mBAAO,CAAC,MAAmB;AAC3B,eAAe,mBAAO,CAAC,MAAa;AACpC,WAAW,mBAAO,CAAC,MAAS;AAC5B,YAAY,mBAAO,CAAC,MAAU;AAC9B,cAAc,mBAAO,CAAC,MAAY;AAClC,UAAU,mBAAO,CAAC,MAAQ;AAC1B,iBAAiB,mBAAO,CAAC,MAAgB;;AAEzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,yBAAyB,4CAA4C;AACrE;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA,6BAA6B,UAAU;AACvC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,2BAA2B,mBAAmB,aAAa;AAC3D;AACA;AACA;AACA;AACA,6CAA6C,WAAW;AACxD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA,kBAAkB;AAClB;AACA,gBAAgB;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,qCAAqC;AACrE;AACA;AACA,2BAA2B,gCAAgC;AAC3D;AACA;AACA;;;;;;;;AC/FA,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAW;AAClC;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA,UAAU,mBAAO,CAAC,MAAQ;AAC1B,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA,2BAA2B,kBAAkB,EAAE;;AAE/C;AACA;AAC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AC1BA;AACA;AACA;AACA;AACA;;AAEyC;;AAEzC;;AAEA;AACA;AACA;AACA;AACA,UAAU,iBAAiB;AAC3B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;;AAEA,eAAe,YAAY;AAC3B;;AAEA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA,KAAK;AACL;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA,uBAAuB,2BAA2B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA,YAAY,uBAAuB;AACnC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,qBAAqB,uBAAuB;AAC5C;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC7Na;;AAEb;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,+CAA+C,SAAS;AACxD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,QAAQ;AAC/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3DA;AACA,cAAc,mBAAO,CAAC,MAAY;AAClC;AACA;AACA;;;;;;;;;ACJa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,mBAAmB;AACpC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,mBAAmB;AACpC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;AC9Ca;;AAEb;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;ACda;;AAEb,kBAAkB,mBAAO,CAAC,MAAU;;AAEpC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;;;;;;;;ACzDA,cAAc;;;;;;;;ACAd,WAAW,mBAAO,CAAC,MAAS;AAC5B,aAAa,mBAAO,CAAC,MAAW;AAChC;AACA,kDAAkD;;AAElD;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;;;;;;;ACLA;AACA,kBAAkB,mBAAO,CAAC,MAAU;AACpC,iCAAiC,QAAQ,mBAAmB,UAAU,EAAE,EAAE;AAC1E,CAAC;;;;;;;;;ACHY;;AAEb,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAc;AACrC,gBAAgB,mBAAO,CAAC,MAAe;AACvC,yBAAyB,mBAAO,CAAC,MAAyB;AAC1D,iBAAiB,mBAAO,CAAC,MAAyB;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAO,CAAC,MAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,oBAAoB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;ACrHD,cAAc,mBAAO,CAAC,MAAW;AACjC,cAAc,mBAAO,CAAC,MAAY;AAClC,YAAY,mBAAO,CAAC,MAAU;AAC9B,aAAa,mBAAO,CAAC,MAAc;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;AC7Ba;;AAEb;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA,iBAAiB;AACjB,mCAAmC,sBAAsB;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,E;;;;;;;AC1CA,iBAAiB,mBAAO,CAAC,MAAsB;AAC/C,cAAc,mBAAO,CAAC,MAAgB;AACtC,eAAe,mBAAO,CAAC,MAAa;AACpC,aAAa,mBAAO,CAAC,MAAW;AAChC,WAAW,mBAAO,CAAC,MAAS;AAC5B,gBAAgB,mBAAO,CAAC,MAAc;AACtC,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oDAAoD,wBAAwB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzDa;AACb,iBAAiB,mBAAO,CAAC,MAAgB;AACzC,mBAAO,CAAC,MAAW;AACnB;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;;;;;;;;;ACRY;;AAEb;;AAEA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,SAAS;AACpB,aAAa,EAAE;AACf;AACA;AACA,kBAAkB,uBAAuB;AACzC;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;;;;;;;;;ACJa;;AAEb,YAAY,mBAAO,CAAC,MAAS;;AAE7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AM,YAAY,EAAE,OAAO,YAAY,EAAE,EAAE;AACzI;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oEAAoE;AACpE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;A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AAC,MAAgB;AACtD,8BAA8B,mBAAO,CAAC,MAAc;AACpD,8BAA8B,mBAAO,CAAC,MAAY;AAClD,8BAA8B,mBAAO,CAAC,MAAoB;AAC1D,8BAA8B,mBAAO,CAAC,MAAiB;AACvD,8BAA8B,mBAAO,CAAC,MAAiB;;AAEvD;AACA,8BAA8B,mBAAO,CAAC,MAAgC;AACtE,8BAA8B,mBAAO,CAAC,MAAgC;;AAEtE;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB;;AAEA;AACA;AACA,UAAU;AACV,cAAc,QAAQ;AACtB;AACA;AACA,cAAc,UAAU;AACxB;AACA,cAAc,SAAS;AACvB;AACA;AACA,cAAc,QAAQ;AACtB;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,qCAAqC,6CAA6C,EAAE;AACpF;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mFAAmF,qBAAqB;;AAExG;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,SAAS;AACxB,eAAe,kBAAkB;AACjC,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA,8EAA8E;AAC9E;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA,yDAAyD,6CAA6C;AACtG;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;ACvUa;AACb,sBAAsB,mBAAO,CAAC,MAAc;AAC5C,iBAAiB,mBAAO,CAAC,MAAkB;;AAE3C;AACA;AACA;AACA;;;;;;;;ACPA;AACA,cAAc,mBAAO,CAAC,MAAW;;AAEjC,0CAA0C,SAAS,mBAAO,CAAC,MAAkB,GAAG;;;;;;;;ACHhF,iBAAiB,mBAAO,CAAC,MAAW;;;;;;;;ACApC,eAAe,mBAAO,CAAC,MAAW;AAClC;;;;;;;;;;;;;;;;;;;;;;;;ACDA;;AAEA;AACA;AACA,MAAM,IAAuC;AAC7C,2BAA2B,mBAAO,CAAC,MAA0B;AAC7D;;AAEA;AACA;AACA,wDAAwD,wBAAwB;AAChF;AACA;;AAEA;AACA;AACA,IAAI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A;AACA,qC;;ACxEmC;AACM;AAChB;AACU;AAC5B;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACO,SAAS,gBAAO;AACvB,SAAS,EAAE;AACX;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACO;AACP;;AAEA,MAAM,EAAE;AACR;AACA;AACA,qCAAqC,EAAE;AACvC;AACA;;AAEA;AACA;;AAEA;AACA;AACO;AACP;AACA,MAAM,GAAU,KAAK,UAAc;AACnC;AACA;;AAEA,iBAAiB,aAAO;AACxB;;AAEA,iDAAiD;;;AAG1C;AACP;AACA;;AAEA,iBAAiB,qBAAqB;AACtC;AACA,mDAAmD;;AAEnD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,qDAAqD;AACrD;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;;;AAGP;AACA;AACA;AACA;;AAEA;AACA,KAAK;;;AAGL;AACA,sBAAsB;;AAEtB,+BAA+B,gBAAU,uCAAuC,gBAAU,wCAAwC,gBAAU;AAC5I;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;;AAEA;AACA,wBAAwB;;AAExB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,+BAA+B,SAAa;AAC5C,8BAA8B,SAAa;AAC3C;AACA;;AAEO;AACP,SAAS,EAAE;AACX;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACO;AACP,qCAAqC,GAAU;AAC/C;AACA;AACA;AACA;AACA;AACO;AACP,wCAAwC,gBAAU;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;;AAEA,OAAO,aAAO;AACd,+BAA+B,SAAa;AAC5C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP,OAAO,EAAE;AACT;AACA,GAAG;;;AAGH,EAAE,gBAAU;AACZ;AACA;AACA,oC;;AC/NoE;AACnC;AACR;AAClB;AACP;AACA,WAAW,UAAU;AACrB;;AAEA;AACA;AACA;;AAEA,SAAS,gBAAO;AAChB;AACO;AACP;;AAEA,MAAM,EAAE;AACR;AACA,GAAG,UAAU,EAAE;AACf;AACA;;AAEA,MAAM,EAAE;AACR,kBAAkB,cAAc;AAChC;;AAEA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACO;AACP;AACA,WAAW,MAAM,GAAG;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA,WAAW,MAAM,GAAG;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gC;;AC7EsD;AACvC;AACf;AACA;AACA;AACA,qBAAqB,eAAe;AACpC,SAAS,QAAQ;AACjB;AACA;AACA;AACA,CAAC;AACD,uC;;ACXgB,4EAAkC,EAAE;AACpD,iC;;ACDO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA,CAAC;AACD,qC;;AC5CA;AACA;AACO,MAAM,uBAAQ;AACrB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,0C;;AChBwC;AACU;AACZ;AACK;AACI;AACxC,MAAM,2BAAa,SAAS,SAAS;AAC5C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,uBAAQ;AAC7D,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,gBAAgB,MAAM,GAAG;AACzB,kBAAkB,MAAM,GAAG;AAC3B,gBAAgB,MAAM,GAAG;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA,6CAA6C;;AAE7C,oBAAoB,MAAM,GAAG;AAC7B,iBAAiB,KAAK;AACtB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA,CAAC;AACD;;AAEA,wBAAwB,2BAAa;AACrC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,CAAC;AACD,yC;;A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AAa,0BAA0B;AACvC,aAAa,iBAAiB;AAC9B;AACA,cAAc,aAAa;AAC3B;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC;AACA,aAAa,0BAA0B;AACvC,aAAa,iBAAiB;AAC9B;AACA,cAAc,aAAa;AAC3B;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,OAAO;AACrB;;;AAGA;AACA;;AAEA,SAAS,EAAE;AACX;AACA;;AAEA,mBAAmB,KAAK;;AAExB;AACA;AACA;AACA;AACA,oCAAoC,MAAM,CAAC,MAAM,GAAG;AACpD;AACA;;AAEA;AACA,UAAU,EAAE;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA,QAAQ,EAAE;AACV;AACA;AACA;;AAEA,0CAA0C,QAAQ;AAClD;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;;AAEA,4CAA4C,QAAQ;AACpD;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,wC;;AC/YuC;AACU;AACT;AACR;AACzB,MAAM,+BAAe;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT,+BAA+B,EAAE;AACjC,4BAA4B,SAAa;;AAEzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA,cAAc,MAAM,cAAc;AAClC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,uBAAuB,EAAE;AACzB;;AAEA;AACA;AACA;;AAEA,kBAAkB,IAAQ;AAC1B;AACA;;AAEA;AACA;AACA;;AAEA,WAAW,EAAE;AACb,QAAQ,EAAE,kBAAkB,eAAwB;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,2C;;ACtGA;AACA;AACA;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACe,qEAAa,EAAC;AAC7B,yC;;ACzBmC;AACD;AACQ;AACX;AACN;AACsB;AACxC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACO;AACP,4BAA4B,gBAAG,6BAA6B,gBAAG;AAC/D,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA,IAAI;;AAEJ,MAAM,aAAO;AACb;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACO;AACP;;AAEA,MAAM,aAAO;AACb;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACO;AACP,SAAS,EAAE;AACX;AACO;AACP;AACA;AACA;AACA;AACA;AACO;AACP,qBAAqB;;AAErB,MAAM,EAAE;AACR;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA,SAAS,KAAK;AACd;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP,SAAS,EAAE,qDAAqD,EAAE;AAClE;AACA,qDAAqD,gBAAG;AACxD,CAAC;;AAEM;AACP,eAAe,EAAE;AACjB,UAAU,gBAAyB,iCAAiC,gBAAyB;AAC7F;AACO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACO;AACP;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACyB;AACzB,wC;;ACzPmC;AACI;AACU;AACT;AACR;AACgB;AACS;;AAEzD,SAAS,cAAO;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;;AAEA;AACA;AACA,iBAAiB,IAAQ;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yCAAyC,QAAY;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA,wBAAwB,SAAa;AACrC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,8CAA8C,QAAQ;AACtD;AACA;;AAEA;AACA,OAAO;AACP,uBAAuB,0BAA0B;AACjD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,IAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;;AAGL,sCAAsC,YAAY;AAClD,mCAAmC;;AAEnC;AACA;AACA;AACA,SAAS,OAAO;;AAEhB,0CAA0C,QAAQ;AAClD;AACA;AACA;AACA,WAAW,iBAAiB;;AAE5B;AACA;AACA,mCAAmC;AACnC;;AAEA;AACA,yCAAyC;;AAEzC;AACA;AACA,aAAa;;;AAGb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA,0BAA0B,gBAAS;AACnC;AACA,0BAA0B,eAA4B;AACtD,8BAA8B;;AAE9B,WAAW,EAAE;AACb,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA,SAAS;;AAET,YAAY,eAAwB,uBAAuB,YAAqB,0BAA0B,YAAqB;AAC/H;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,UAAmB;AACnC;AACA;;AAEA;AACA;AACA,GAAG;;;AAGH;AACA;;AAEA,MAAM,gBAAS;AACf;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC,IAAI,mBAAO;AACX;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,OAAO,EAAE;AACT;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,MAAM,GAAG;AAC3B;AACA;AACA;AACA;;AAEe;AACf;AACA,SAAS;AACT,CAAC,EAAC;AACF,kC;;ACpRqC;AAC9B;AACP;AACA;AACA;AACA,MAAM,GAAM;AACZ;AACA;;AAEA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA,gC;;AClBA;AAC0C;AACO;AACjB;AACyB;AACb;AACS;AAC9C;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;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GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;;;AAGA;AACA,WAAW,aAAO;AAClB;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;;;AAGA;AACA,WAAW,aAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc;AACd;;;AAGA;AACA,QAAQ,EAAE;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,0C;;AC7PO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uC;;ACfuC;AACC;AACF;AACkB;AACC;AACX;AACK;AACJ;AACxC;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,oCAAoC;;AAE9B;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,sCAAsC;;AAEvC;AACO,MAAM,uBAAW;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,QAAQ;AAC1B;AACA,KAAK;AACL;AACA;AACA,aAAa,SAAsB;AACnC;AACA,YAAY,SAAsB;AAClC;AACA,WAAW,SAAsB;AACjC;AACA,aAAa,SAAsB;AACnC;AACA,gBAAgB,SAAsB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,OAAO;AACP;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,8BAA8B,eAAe;AAC7C;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,qBAAqB;AAClE;AACA;AACA,aAAa,OAAO;AACpB,aAAa,aAAa;AAC1B,aAAa,QAAQ;AACrB,cAAc,QAAQ;AACtB;;;AAGA;AACA;AACA;AACA;;AAEA,IAAI,UAAU;AACd;AACA;AACA;AACA,uCAAuC,MAAM,GAAG;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA,6BAA6B,KAAK;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,gBAA6B;AACnC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,UAAuB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,QAAQ,eAAe;AAChE;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,MAAM,aAA0B;AAChC;;AAEA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA,KAAK,iBAAiB;AACtB;;AAEA;AACA,GAAG;;;AAGH;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,oCAAoC,KAAK;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,aAAa,aAAa;AAC1B;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,YAAyB,UAAU;;AAEzD,mGAAmG,SAAa;AAChH;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,YAAyB;AACxC;AACA;AACA;;AAEA;AACA,wBAAwB,WAAW;AACnC;AACA;AACA,KAAK;AACL;AACA;;AAEA,IAAI,SAAsB;AAC1B,IAAI,cAA2B;;AAE/B;AACA;AACA;AACA;AACA,MAAM,mBAA0B;;AAEhC;AACA,QAAQ,UAAuB;AAC/B,QAAQ,UAAuB;AAC/B;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,2BAAa;AAC5B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,MAAM,QAAkB;AACxB;AACA;AACA;;AAEA,uEAAuE,MAAM;;AAE7E;AACA;AACA;;AAEA;;AAEA,2CAA2C,MAAM;;AAEjD;AACA;AACA;;AAEA;;AAEA,iDAAiD,MAAM;;AAEvD;AACA;;AAEA;AACA;AACA;;AAEA;AACe,4EAAW,EAAC;AACJ;AACvB,uC;;ACxgBiD;AACoB;AACrC;AACe;;AAE/C;AACA;AACA;AACA;AACA;;AAEA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,mCAAmC,WAAW;AAC9C;;;AAGA;AACA,gBAAgB,SAAS;AACzB;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA,GAAG;;;AAGH,MAAM,EAAE,0BAA0B,eAAe;AACjD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEO,SAAS,kCAAO;AACvB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,sBAAsB;AACpC;;AAEA;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA,4EAA4E,YAAY;AACxF;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACe;AACf;AACA,SAAS;AACT;AACA,wBAAwB,UAAU;AAClC;AACA,GAAG,IAAI;AACP,CAAC,EAAC;AACF,sD;;AC/G4C;AAC5C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,UAAc;AAClC;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;;;AAGA;AACA;AACA,KAAK;AACL;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,gDAAgD;AAChD;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEe,4DAAM,EAAC;AACtB,6C;;AC/I+C;AACL;AACM;AACI;AACK;AACV;AAC0B;AAC7B;AAC5C;;AAEA,SAAS,oBAAO;AAChB;;AAEA;AACA;AACA;;AAEA,sBAAsB,aAAO;AAC7B;;AAEA,MAAM,gBAAU;AAChB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,GAAG,EAAE;;AAEL;AACA,oCAAoC,gBAAe;AACnD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;;;AAGP;AACA;AACA;AACA,SAAS,KAAK,YAAY;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,0BAA0B;AAC5C;;AAEA;AACA;AACA;AACA,wBAAwB,cAA2B;AACnD,0CAA0C,eAA4B;AACtE,uBAAuB;;AAEvB;AACA,wCAAwC;;AAExC;AACA;AACA,0BAA0B,YAAyB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,WAAW,aAAO;AAClB;AACA,uBAAuB,4CAA4C;AACnE;AACA,SAAS;AACT;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,YAAyB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;;AAGL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,2BAA2B,iBAAM;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,MAAM,yBAAY;AAClB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,sDAAsD,QAAQ;AAC9D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACe,+EAAY,EAAC;AAC5B,wC;;ACrR0C;AACJ;AACU;AACR;AACN;AACQ;AACC;AACQ;AACkB;AACd;AACR;AACd;AAC0B;AACd;AACtC,MAAM,WAAK;AAClB;AACA;AACA;AACA;AACA;AACA,kCAAkC,gCAAgC;AAClE;AACA;AACA,mBAAmB,aAAO;AAC1B,oBAAoB,KAAK,CAAC,uBAAQ;AAClC,qBAAqB,mBAAS;AAC9B;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,OAAO;AACP,oBAAoB;AACpB;AACA;AACA,0BAA0B,oBAAoB;AAC9C,yBAAyB,2BAAa;AACtC;AACA,6BAA6B,+BAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sCAAsC,yBAAgB;AACtD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAI;;AAEX,YAAY,aAAa;AACzB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAa;AAChC,wBAAwB,MAAM,GAAG;AACjC;AACA;AACA;AACA,KAAK;AACL,oCAAoC;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,mBAAmB,SAAa;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,mBAAmB,2BAA2B;AAC9C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACO;AACP;AACA,EAAE,WAAQ;AACV,EAAE,gBAAU;AACZ,EAAE,aAAO;AACT,EAAE,GAAG;AACL;AACA;AACA,kBAAkB,iBAAY;AAC9B,kBAAkB,MAAM;AACxB;AACA;;AAEA;AACA;AACA;AACA,iC;;ACxOyC;AACzC,MAAM,cAAK,OAAO,WAAK;AACvB,MAAM,iBAAQ,GAAG,cAAK;AACP,0EAAQ,EAAC;AACjB,MAAM,aAAI,UAAU,cAAK;;AAEhC;AACA,EAAE,aAAI;AACN;AACA,iC;;ACTuD;AACvB;AACY;;AAE5C,SAAS,2BAAO;AAChB;AACA;AACA;;AAEA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA,aAAa,wBAAwB;AACrC;AACA,cAAc,0BAA0B;AACxC;AACA;;;AAGA,sCAAsC,QAAQ;AAC9C;AACA,GAAG,6EAA6E,qBAAqB;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,aAAa,wBAAwB;AACrC;AACA,cAAc,0BAA0B;AACxC;AACA;;AAEA,qCAAqC,QAAQ;AAC7C;AACA,GAAG,4EAA4E,oBAAoB;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA,cAAc,wBAAwB;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,cAAc,uBAAuB;AACrC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEe;AACf;AACA,SAAS;AACT,CAAC,EAAC;AACF,+C;;AC7KqD;AACJ;AACT;AACR;AACc;AACa;;AAE3D,SAAS,YAAO;AAChB;AACA;AACA;AACA,GAAG;AACH,kBAAkB,mBAAmB;AACrC;AACA;AACA,EAAE,MAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,CAAC;AACD;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uCAAuC,SAAS;AAChD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS,EAAE;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,cAAc,UAAmB;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,EAAE,UAAU;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;;AAEvB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACe,kDAAS,EAAC;AACzB,gC;;AC9TkD;AAClB;AACE;;AAElC;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;;AAE3B;AACA;AACA,qCAAqC;;AAErC;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,6FAA6F,IAAS;AACtG;AACA;AACA;AACA,MAAM;;;AAGN,WAAW,EAAE;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,UAAU;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA,CAAC,EAAC;AACF,oC;;AC5EiD;AACd;;AAEnC,SAAS,YAAO;AAChB;AACA;AACA,GAAG;AACH,kBAAkB,IAAU;AAC5B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACe,wDAAI,EAAC;AACpB,gC;;AClEkC;AACG;AACR;AACd;AACf;;AAEA;AACA,oBAAoB,IAAS;AAC7B,oBAAoB,eAAI;AACxB,oBAAoB,QAAQ;AAC5B;;AAEA,CAAC,EAAC;AACF,kC;;ACbA;AACsD;AACrB;;AAEjC;AACA,EAAE,aAAI;AACN;;AAEA,oBAAQ,KAAK,iBAAM;AACnB,iC;;ACT0D;AACvB;;AAEnC,SAAS,cAAO;AAChB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC,mCAAmC;AACnC,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA,YAAY,uBAAuB;AACnC;AACA;;;AAGA,MAAM,gBAAS;AACf,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACe,oDAAI,EAAC;AACpB,kC;;AClKA;AACyD;AACxB;;AAEjC;AACA,EAAE,aAAI;AACN;;AAEA,oBAAQ,KAAK,WAAM;AACnB,iC;;ACT0D;AACF;AACT;AACJ;AACR;;AAEnC,SAAS,qBAAO;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG,SAAS;;AAEZ;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC,mCAAmC;AACnC,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,6BAA6B;AACnE;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA,cAAc,uBAAuB;AACrC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,eAAe,MAAM,GAAG;AACxB;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH,MAAM,EAAE;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM,EAAE;AACR;AACA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA,KAAK;AACL;AACA;;AAEA,QAAQ,EAAE;AACV;AACA,KAAK,UAAU,EAAE;AACjB;AACA;;AAEA;AACA;;AAEA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA,kBAAkB,EAAE;AACpB,mBAAmB,EAAE,4DAA4D;;AAEjF;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH,OAAO,EAAE;AACT;AACA;;AAEA,SAAS,EAAE;AACX;AACA,IAAI,WAAe;AACnB;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,MAAM,GAAG;AACpB,eAAe,MAAM,GAAG;AACxB,cAAc,MAAM,GAAG;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,WAAI;AACb;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,EAAE,MAAM;;AAER;AACA;AACA,IAAI,MAAM;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,MAAM,WAAI;AACV;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACe,wDAAM,EAAC;AACtB,kC;;ACjcA;AACyD;AACxB;;AAEjC;AACA,EAAE,aAAI;AACN;;AAEA,oBAAQ,KAAK,aAAM;AACnB,iC;;ACTgB,uDAAQ,EAAE;AAC1B,sC;;ACDgB,8DAAQ,EAAE;AAC1B,oC;;ACDgB;AAChB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH,gC;;ACtCwD;AACJ;AACR;AAC5C,+B;;ACHwC;AACA;AACxC;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,wBAAwB,MAAM,wBAAwB,EAAE,mBAAW;AACnE;AACA;;AAEA;AACe,kEAAc,EAAC;AAC9B,kC;;ACfsC;AACE;AACM;AAC/B,MAAM,yBAAY;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL;AACA;AACA,iBAAiB,MAAM,GAAG;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,iBAAiB,MAAM,GAAG;AAC1B,eAAe,MAAM,GAAG;AACxB;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,iCAAiC,MAAM,GAAG;AAC1C;;AAEA;AACA;AACA;AACA,QAAQ,QAAkB;AAC1B;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,MAAM,MAAM;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,yBAAyB;AACzB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,wBAAwB,MAAM;AAC9B;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,6BAA6B;AACpD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,wCAAwC,KAAK;AAC7C,+BAA+B,MAAM,GAAG,wBAAwB,MAAM,GAAG;AACzE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,wC;;ACvYyD;AACR;AACJ;AACtC;AACP;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL,qCAAqC,yBAAY;AACjD,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,gEAAa,EAAC;AAC7B,gC;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,eAAe;AAC3D,QAAQ;AACR,6BAA6B,oBAAoB;AACjD;AACA,IAAI;AACJ;AACA;AACwC;AACI;AACC;AACJ;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,wBAAwB,MAAM,GAAG;AACjC,sBAAsB,MAAM,GAAG;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,IAAI,MAAM;;AAEV;AACA;AACA;;AAEA,gCAAgC,yBAAY;AAC5C;AACA;AACA;AACA,8BAA8B;AAC9B,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,0BAA0B,MAAM,GAAG;AACnC;AACA;;AAEA;AACA;AACA;;AAEA,0BAA0B,MAAM,GAAG;AACnC,IAAI,QAAQ;AACZ;AACA;AACA,KAAK;AACL,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA,oEAAoE;;AAEpE;AACA,MAAM,MAAM;AACZ;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEe,sEAAY,4BAA4B,EAAC;AACjC;AACvB,uC;;ACtJA;;AAEA;AACe,uDAAI,EAAC;AACpB,gC;;ACJ2C;AACR;AACc;AACP;;AAE1C,SAAS,aAAK;AACd;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,GAAG,sBAAsB;;AAEzB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA,eAAe,UAAoB;AACnC;AACA;AACA;;AAEO;AACP,MAAM,EAAE;AACR,WAAW,eAAyB;AACpC,GAAG;AACH,WAAW,eAAyB;AACpC;AACA;AACA,MAAM,gBAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,UAAU;AACV;AACe,iEAAY,sBAAsB,EAAC;AAC9B;AACpB,mC;;AC7FA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC;AACA,eAAe,+CAA+C;AAC9D,eAAe,+CAA+C;AAC9D,MAAM;AACN,IAAI;AACuC;AACM;AACP;AACQ;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,WAAK;AACd;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;AACH;;AAEA;AACA,uBAAuB,kBAAkB;AACzC,aAAa,QAAkB;AAC/B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,SAAG;AACZ;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,eAAe,MAAM,GAAG;AACxB,gBAAgB,kBAAkB;AAClC,gBAAgB,kBAAkB;AAClC;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,MAAM,cAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,UAAU;AACV;AACe,+DAAY,gCAAgC,EAAC;AACnC;AACzB,iC;;AClH2C;AACD;AACF;AACxC,MAAM,aAAQ,GAAG,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA,CAAC,EAAE,QAAQ;AACX;AACA,SAAS,QAAQ;AACjB,OAAO,QAAQ;AACf,UAAU;AACV;AACe,8DAAY,8BAA8B,EAAC;AAClC;AACxB,gC;;ACvB2C;AACM;AACP;AACC;AACO;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,UAAK;AACd,SAAS,aAAa;AACtB;;AAEA,SAAS,QAAG;AACZ;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,kBAAkB,UAAoB,CAAC,kBAAkB;AACzD,kBAAkB,UAAoB,CAAC,kBAAkB;AACzD;AACA;AACA,WAAW,MAAM,GAAG,EAAE,aAAa;AACnC,WAAW,MAAM,GAAG,EAAE,aAAa;AACnC;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,EAAE,aAAa;AACf;AACA;;AAEA,MAAM,aAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,UAAU;AACV;AACe,qDAAY,8BAA8B,EAAC;AAClC;AACxB,gC;;AC1E2C;AACU;AACZ;AACN;AAC6B;AACtB;;AAE1C,SAAS,kBAAK;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,uBAAuB,eAAe;AACtC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG,MAAM,MAAM;AACf;AACA;AACA,GAAG;AACH;;AAEA,SAAS,WAAG;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH,iBAAiB,WAAW;AAC5B,eAAe,MAAM,GAAG;AACxB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qDAAqD,aAAa;AAClE;AACA;;AAEA,UAAU,EAAE;AACZ;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAY,EAAE;AACd,YAAY,EAAE;AACd,eAAe,EAAE;AACjB;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,KAAK;AAC1B,oCAAoC;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH,wBAAwB,QAAQ,CAAC,eAAe;AAChD,kCAAkC,WAAW;AAC7C;AACA;;AAEA,MAAM,qBAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,UAAU;AACV;AACe,6DAAY,cAAc,EAAC;AAC1B;AAChB,mC;;AC/KA;AACA;AAC2C;AACR;AACO;AACN;;AAEpC,SAAS,eAAK;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,EAAE,IAAI;AACN;AACA;AACA;;AAEA,SAAS,aAAG;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,kBAAkB,MAAM,GAAG;AAC3B;;AAEA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB,IAAI;AAC1B;AACA;AACA;;AAEA,MAAM,kBAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,UAAU;AACV;AACe,0DAAY,sBAAsB,EAAC;AAC9B;AACpB,gC;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,gBAAgB;AACzD,MAAM;AACN,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,MAAM;AACN,IAAI;AACJ;AACA;AACyC;A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I,MAAM,CAAC,MAAP,CAAc,UAAS,GAAT,EAAc;AAC9C,eAAO,CAAC,cAAc,CAAC,IAAf,CAAoB,UAAS,IAAT,EAAe;AACvC,iBAAO,GAAG,CAAC,CAAJ,KAAU,IAAI,CAAC,CAAtB;AACH,SAFO,CAAR;AAGH,OAJqB,CAAtB,CAHkC,CASlC;;AACA,UAAI,eAAc,GAAI,cAAc,CAAC,MAAf,CAAsB,UAAS,GAAT,EAAc;AACtD,eAAO,CAAC,MAAM,CAAC,IAAP,CAAY,UAAS,IAAT,EAAe;AAC/B,iBAAO,GAAG,CAAC,CAAJ,KAAU,IAAI,CAAC,CAAtB;AACH,SAFO,CAAR;AAGH,OAJqB,CAAtB,CAVkC,CAgBlC;;AACA,aAAO,eAAe,CAAC,MAAhB,CAAuB,eAAvB,CAAP;AACJ;AA3MK;AAtOE,CAAf,E;;AG7BkU,C;;;;;ACA/P;AACV;AACL;;AAEa;AACrE,iCAAM,UAAU,8CAAM;;AAEP,gF;;ACPf;AAEA;AACA;AAEA;;AAEA,IAAMI,kBAAO,GAAG,SAAVA,OAAU,CAACC;AAAD;AAAA,EAAc;AAC1BA,KAAG,CAACC,SAAJ,CAAc,aAAd,EAA6BC,UAA7B;AACAF,KAAG,CAACC,SAAJ,CAAc,WAAd,EAA2BE,QAA3B;AACH,CAHD;;AAKeJ,iEAAf,E;;ACZwB;AACA;AACT,yFAAG;AACI;;;;;;;;ACHtB;AACA,cAAc,mBAAO,CAAC,MAAW;AACjC,gBAAgB,mBAAO,CAAC,MAAW;;AAEnC;AACA;AACA;AACA;AACA,CAAC;;;;;;;;ACRD;AACA","file":"vue-grid-layout.common.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","'use strict';\nvar at = require('./_string-at')(true);\n\n // `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? at(S, index).length : 1);\n};\n","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=style&index=0&id=46ff2fc8&lang=css\"","'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = require('./_an-object');\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","/**\n * Resize detection strategy that injects objects to elements in order to detect resize events.\n * Heavily inspired by: http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/\n */\n\n\"use strict\";\n\nvar browserDetector = require(\"../browser-detector\");\n\nmodule.exports = function(options) {\n options = options || {};\n var reporter = options.reporter;\n var batchProcessor = options.batchProcessor;\n var getState = options.stateHandler.getState;\n\n if(!reporter) {\n throw new Error(\"Missing required dependency: reporter.\");\n }\n\n /**\n * Adds a resize event listener to the element.\n * @public\n * @param {element} element The element that should have the listener added.\n * @param {function} listener The listener callback to be called for each resize event of the element. The element will be given as a parameter to the listener callback.\n */\n function addListener(element, listener) {\n function listenerProxy() {\n listener(element);\n }\n\n if(browserDetector.isIE(8)) {\n //IE 8 does not support object, but supports the resize event directly on elements.\n getState(element).object = {\n proxy: listenerProxy\n };\n element.attachEvent(\"onresize\", listenerProxy);\n } else {\n var object = getObject(element);\n\n if(!object) {\n throw new Error(\"Element is not detectable by this strategy.\");\n }\n\n object.contentDocument.defaultView.addEventListener(\"resize\", listenerProxy);\n }\n }\n\n function buildCssTextString(rules) {\n var seperator = options.important ? \" !important; \" : \"; \";\n\n return (rules.join(seperator) + seperator).trim();\n }\n\n /**\n * Makes an element detectable and ready to be listened for resize events. Will call the callback when the element is ready to be listened for resize changes.\n * @private\n * @param {object} options Optional options object.\n * @param {element} element The element to make detectable\n * @param {function} callback The callback to be called when the element is ready to be listened for resize changes. Will be called with the element as first parameter.\n */\n function makeDetectable(options, element, callback) {\n if (!callback) {\n callback = element;\n element = options;\n options = null;\n }\n\n options = options || {};\n var debug = options.debug;\n\n function injectObject(element, callback) {\n var OBJECT_STYLE = buildCssTextString([\"display: block\", \"position: absolute\", \"top: 0\", \"left: 0\", \"width: 100%\", \"height: 100%\", \"border: none\", \"padding: 0\", \"margin: 0\", \"opacity: 0\", \"z-index: -1000\", \"pointer-events: none\"]);\n\n //The target element needs to be positioned (everything except static) so the absolute positioned object will be positioned relative to the target element.\n\n // Position altering may be performed directly or on object load, depending on if style resolution is possible directly or not.\n var positionCheckPerformed = false;\n\n // The element may not yet be attached to the DOM, and therefore the style object may be empty in some browsers.\n // Since the style object is a reference, it will be updated as soon as the element is attached to the DOM.\n var style = window.getComputedStyle(element);\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n getState(element).startSize = {\n width: width,\n height: height\n };\n\n function mutateDom() {\n function alterPositionStyles() {\n if(style.position === \"static\") {\n element.style.setProperty(\"position\", \"relative\", options.important ? \"important\" : \"\");\n\n var removeRelativeStyles = function(reporter, element, style, property) {\n function getNumericalValue(value) {\n return value.replace(/[^-\\d\\.]/g, \"\");\n }\n\n var value = style[property];\n\n if(value !== \"auto\" && getNumericalValue(value) !== \"0\") {\n reporter.warn(\"An element that is positioned static has style.\" + property + \"=\" + value + \" which is ignored due to the static positioning. The element will need to be positioned relative, so the style.\" + property + \" will be set to 0. Element: \", element);\n element.style.setProperty(property, \"0\", options.important ? \"important\" : \"\");\n }\n };\n\n //Check so that there are no accidental styles that will make the element styled differently now that is is relative.\n //If there are any, set them to 0 (this should be okay with the user since the style properties did nothing before [since the element was positioned static] anyway).\n removeRelativeStyles(reporter, element, style, \"top\");\n removeRelativeStyles(reporter, element, style, \"right\");\n removeRelativeStyles(reporter, element, style, \"bottom\");\n removeRelativeStyles(reporter, element, style, \"left\");\n }\n }\n\n function onObjectLoad() {\n // The object has been loaded, which means that the element now is guaranteed to be attached to the DOM.\n if (!positionCheckPerformed) {\n alterPositionStyles();\n }\n\n /*jshint validthis: true */\n\n function getDocument(element, callback) {\n //Opera 12 seem to call the object.onload before the actual document has been created.\n //So if it is not present, poll it with an timeout until it is present.\n //TODO: Could maybe be handled better with object.onreadystatechange or similar.\n if(!element.contentDocument) {\n var state = getState(element);\n if (state.checkForObjectDocumentTimeoutId) {\n window.clearTimeout(state.checkForObjectDocumentTimeoutId);\n }\n state.checkForObjectDocumentTimeoutId = setTimeout(function checkForObjectDocument() {\n state.checkForObjectDocumentTimeoutId = 0;\n getDocument(element, callback);\n }, 100);\n\n return;\n }\n\n callback(element.contentDocument);\n }\n\n //Mutating the object element here seems to fire another load event.\n //Mutating the inner document of the object element is fine though.\n var objectElement = this;\n\n //Create the style element to be added to the object.\n getDocument(objectElement, function onObjectDocumentReady(objectDocument) {\n //Notify that the element is ready to be listened to.\n callback(element);\n });\n }\n\n // The element may be detached from the DOM, and some browsers does not support style resolving of detached elements.\n // The alterPositionStyles needs to be delayed until we know the element has been attached to the DOM (which we are sure of when the onObjectLoad has been fired), if style resolution is not possible.\n if (style.position !== \"\") {\n alterPositionStyles(style);\n positionCheckPerformed = true;\n }\n\n //Add an object element as a child to the target element that will be listened to for resize events.\n var object = document.createElement(\"object\");\n object.style.cssText = OBJECT_STYLE;\n object.tabIndex = -1;\n object.type = \"text/html\";\n object.setAttribute(\"aria-hidden\", \"true\");\n object.onload = onObjectLoad;\n\n //Safari: This must occur before adding the object to the DOM.\n //IE: Does not like that this happens before, even if it is also added after.\n if(!browserDetector.isIE()) {\n object.data = \"about:blank\";\n }\n\n if (!getState(element)) {\n // The element has been uninstalled before the actual loading happened.\n return;\n }\n\n element.appendChild(object);\n getState(element).object = object;\n\n //IE: This must occur after adding the object to the DOM.\n if(browserDetector.isIE()) {\n object.data = \"about:blank\";\n }\n }\n\n if(batchProcessor) {\n batchProcessor.add(mutateDom);\n } else {\n mutateDom();\n }\n }\n\n if(browserDetector.isIE(8)) {\n //IE 8 does not support objects properly. Luckily they do support the resize event.\n //So do not inject the object and notify that the element is already ready to be listened to.\n //The event handler for the resize event is attached in the utils.addListener instead.\n callback(element);\n } else {\n injectObject(element, callback);\n }\n }\n\n /**\n * Returns the child object of the target element.\n * @private\n * @param {element} element The target element.\n * @returns The object element of the target.\n */\n function getObject(element) {\n return getState(element).object;\n }\n\n function uninstall(element) {\n if (!getState(element)) {\n return;\n }\n\n var object = getObject(element);\n\n if (!object) {\n return;\n }\n\n if (browserDetector.isIE(8)) {\n element.detachEvent(\"onresize\", object.proxy);\n } else {\n element.removeChild(object);\n }\n\n if (getState(element).checkForObjectDocumentTimeoutId) {\n window.clearTimeout(getState(element).checkForObjectDocumentTimeoutId);\n }\n\n delete getState(element).object;\n }\n\n return {\n makeDetectable: makeDetectable,\n addListener: addListener,\n uninstall: uninstall\n };\n};\n","\"use strict\";\n\nvar detector = module.exports = {};\n\ndetector.isIE = function(version) {\n function isAnyIeVersion() {\n var agent = navigator.userAgent.toLowerCase();\n return agent.indexOf(\"msie\") !== -1 || agent.indexOf(\"trident\") !== -1 || agent.indexOf(\" edge/\") !== -1;\n }\n\n if(!isAnyIeVersion()) {\n return false;\n }\n\n if(!version) {\n return true;\n }\n\n //Shamelessly stolen from https://gist.github.com/padolsey/527683\n var ieVersion = (function(){\n var undef,\n v = 3,\n div = document.createElement(\"div\"),\n all = div.getElementsByTagName(\"i\");\n\n do {\n div.innerHTML = \"\";\n }\n while (all[0]);\n\n return v > 4 ? v : undef;\n }());\n\n return version === ieVersion;\n};\n\ndetector.isLegacyOpera = function() {\n return !!window.opera;\n};\n","'use strict';\nrequire('./es6.regexp.exec');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\nvar regexpExec = require('./_regexp-exec');\n\nvar SPECIES = wks('species');\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$') !== '7';\n});\n\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {\n // Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length === 2 && result[0] === 'a' && result[1] === 'b';\n})();\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n re.exec = function () { execCalled = true; return null; };\n if (KEY === 'split') {\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n }\n re[SYMBOL]('');\n return !execCalled;\n }) : undefined;\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||\n (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var fns = exec(\n defined,\n SYMBOL,\n ''[KEY],\n function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n }\n );\n var strfn = fns[0];\n var rxfn = fns[1];\n\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || '').concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}","exports.f = Object.getOwnPropertySymbols;\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","\"use strict\";\n\nmodule.exports = function() {\n var idCount = 1;\n\n /**\n * Generates a new unique id in the context.\n * @public\n * @returns {number} A unique id in the context.\n */\n function generate() {\n return idCount++;\n }\n\n return {\n generate: generate\n };\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\n\n// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match\n function (regexp) {\n var res = maybeCallNative($match, regexp, this);\n if (res.done) return res.value;\n var rx = anObject(regexp);\n var S = String(this);\n if (!rx.global) return regExpExec(rx, S);\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = String(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }\n ];\n});\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item,.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url(\\\"data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+\\\");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of \r\n\r\n","// @flow\r\nexport type LayoutItemRequired = {w: number, h: number, x: number, y: number, i: string};\r\nexport type LayoutItem = LayoutItemRequired &\r\n {minW?: number, minH?: number, maxW?: number, maxH?: number,\r\n moved?: boolean, static?: boolean,\r\n isDraggable?: ?boolean, isResizable?: ?boolean};\r\nexport type Layout = Array;\r\n// export type Position = {left: number, top: number, width: number, height: number};\r\n/*\r\nexport type DragCallbackData = {\r\n node: HTMLElement,\r\n x: number, y: number,\r\n deltaX: number, deltaY: number,\r\n lastX: number, lastY: number\r\n};\r\n*/\r\n// export type DragEvent = {e: Event} & DragCallbackData;\r\nexport type Size = {width: number, height: number};\r\n// export type ResizeEvent = {e: Event, node: HTMLElement, size: Size};\r\n\r\n// const isProduction = process.env.NODE_ENV === 'production';\r\n/**\r\n * Return the bottom coordinate of the layout.\r\n *\r\n * @param {Array} layout Layout array.\r\n * @return {Number} Bottom coordinate.\r\n */\r\nexport function bottom(layout: Layout): number {\r\n let max = 0, bottomY;\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n bottomY = layout[i]. y + layout[i].h;\r\n if (bottomY > max) max = bottomY;\r\n }\r\n return max;\r\n}\r\n\r\nexport function cloneLayout(layout: Layout): Layout {\r\n const newLayout = Array(layout.length);\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n newLayout[i] = cloneLayoutItem(layout[i]);\r\n }\r\n return newLayout;\r\n}\r\n\r\n// Fast path to cloning, since this is monomorphic\r\nexport function cloneLayoutItem(layoutItem: LayoutItem): LayoutItem {\r\n /*return {\r\n w: layoutItem.w, h: layoutItem.h, x: layoutItem.x, y: layoutItem.y, i: layoutItem.i,\r\n minW: layoutItem.minW, maxW: layoutItem.maxW, minH: layoutItem.minH, maxH: layoutItem.maxH,\r\n moved: Boolean(layoutItem.moved), static: Boolean(layoutItem.static),\r\n // These can be null\r\n isDraggable: layoutItem.isDraggable, isResizable: layoutItem.isResizable\r\n };*/\r\n return JSON.parse(JSON.stringify(layoutItem));\r\n}\r\n\r\n/**\r\n * Given two layoutitems, check if they collide.\r\n *\r\n * @return {Boolean} True if colliding.\r\n */\r\nexport function collides(l1: LayoutItem, l2: LayoutItem): boolean {\r\n if (l1 === l2) return false; // same element\r\n if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2\r\n if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2\r\n if (l1.y + l1.h <= l2.y) return false; // l1 is above l2\r\n if (l1.y >= l2.y + l2.h) return false; // l1 is below l2\r\n return true; // boxes overlap\r\n}\r\n\r\n/**\r\n * Given a layout, compact it. This involves going down each y coordinate and removing gaps\r\n * between items.\r\n *\r\n * @param {Array} layout Layout.\r\n * @param {Boolean} verticalCompact Whether or not to compact the layout\r\n * vertically.\r\n * @return {Array} Compacted Layout.\r\n */\r\nexport function compact(layout: Layout, verticalCompact: Boolean): Layout {\r\n // Statics go in the compareWith array right away so items flow around them.\r\n const compareWith = getStatics(layout);\r\n // We go through the items by row and column.\r\n const sorted = sortLayoutItemsByRowCol(layout);\r\n // Holding for new items.\r\n const out = Array(layout.length);\r\n\r\n for (let i = 0, len = sorted.length; i < len; i++) {\r\n let l = sorted[i];\r\n\r\n // Don't move static elements\r\n if (!l.static) {\r\n l = compactItem(compareWith, l, verticalCompact);\r\n\r\n // Add to comparison array. We only collide with items before this one.\r\n // Statics are already in this array.\r\n compareWith.push(l);\r\n }\r\n\r\n // Add to output array to make sure they still come out in the right order.\r\n out[layout.indexOf(l)] = l;\r\n\r\n // Clear moved flag, if it exists.\r\n l.moved = false;\r\n }\r\n\r\n return out;\r\n}\r\n\r\n/**\r\n * Compact an item in the layout.\r\n */\r\nexport function compactItem(compareWith: Layout, l: LayoutItem, verticalCompact: boolean): LayoutItem {\r\n if (verticalCompact) {\r\n // Move the element up as far as it can go without colliding.\r\n while (l.y > 0 && !getFirstCollision(compareWith, l)) {\r\n l.y--;\r\n }\r\n }\r\n\r\n // Move it down, and keep moving it down if it's colliding.\r\n let collides;\r\n while((collides = getFirstCollision(compareWith, l))) {\r\n l.y = collides.y + collides.h;\r\n }\r\n return l;\r\n}\r\n\r\n/**\r\n * Given a layout, make sure all elements fit within its bounds.\r\n *\r\n * @param {Array} layout Layout array.\r\n * @param {Number} bounds Number of columns.\r\n */\r\nexport function correctBounds(layout: Layout, bounds: {cols: number}): Layout {\r\n const collidesWith = getStatics(layout);\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n const l = layout[i];\r\n // Overflows right\r\n if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;\r\n // Overflows left\r\n if (l.x < 0) {\r\n l.x = 0;\r\n l.w = bounds.cols;\r\n }\r\n if (!l.static) collidesWith.push(l);\r\n else {\r\n // If this is static and collides with other statics, we must move it down.\r\n // We have to do something nicer than just letting them overlap.\r\n while(getFirstCollision(collidesWith, l)) {\r\n l.y++;\r\n }\r\n }\r\n }\r\n return layout;\r\n}\r\n\r\n/**\r\n * Get a layout item by ID. Used so we can override later on if necessary.\r\n *\r\n * @param {Array} layout Layout array.\r\n * @param {String} id ID\r\n * @return {LayoutItem} Item at ID.\r\n */\r\nexport function getLayoutItem(layout: Layout, id: string): ?LayoutItem {\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n if (layout[i].i === id) return layout[i];\r\n }\r\n}\r\n\r\n/**\r\n * Returns the first item this layout collides with.\r\n * It doesn't appear to matter which order we approach this from, although\r\n * perhaps that is the wrong thing to do.\r\n *\r\n * @param {Object} layoutItem Layout item.\r\n * @return {Object|undefined} A colliding layout item, or undefined.\r\n */\r\nexport function getFirstCollision(layout: Layout, layoutItem: LayoutItem): ?LayoutItem {\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n if (collides(layout[i], layoutItem)) return layout[i];\r\n }\r\n}\r\n\r\nexport function getAllCollisions(layout: Layout, layoutItem: LayoutItem): Array {\r\n return layout.filter((l) => collides(l, layoutItem));\r\n}\r\n\r\n/**\r\n * Get all static elements.\r\n * @param {Array} layout Array of layout objects.\r\n * @return {Array} Array of static layout items..\r\n */\r\nexport function getStatics(layout: Layout): Array {\r\n //return [];\r\n return layout.filter((l) => l.static);\r\n}\r\n\r\n/**\r\n * Move an element. Responsible for doing cascading movements of other elements.\r\n *\r\n * @param {Array} layout Full layout to modify.\r\n * @param {LayoutItem} l element to move.\r\n * @param {Number} [x] X position in grid units.\r\n * @param {Number} [y] Y position in grid units.\r\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is\r\n * being dragged/resized by th euser.\r\n */\r\nexport function moveElement(layout: Layout, l: LayoutItem, x: Number, y: Number, isUserAction: Boolean, preventCollision: Boolean): Layout {\r\n if (l.static) return layout;\r\n\r\n // Short-circuit if nothing to do.\r\n //if (l.y === y && l.x === x) return layout;\r\n\r\n const oldX = l.x;\r\n const oldY = l.y;\r\n\r\n const movingUp = y && l.y > y;\r\n // This is quite a bit faster than extending the object\r\n if (typeof x === 'number') l.x = x;\r\n if (typeof y === 'number') l.y = y;\r\n l.moved = true;\r\n\r\n // If this collides with anything, move it.\r\n // When doing this comparison, we have to sort the items we compare with\r\n // to ensure, in the case of multiple collisions, that we're getting the\r\n // nearest collision.\r\n let sorted = sortLayoutItemsByRowCol(layout);\r\n if (movingUp) sorted = sorted.reverse();\r\n const collisions = getAllCollisions(sorted, l);\r\n\r\n if (preventCollision && collisions.length) {\r\n l.x = oldX;\r\n l.y = oldY;\r\n l.moved = false;\r\n return layout;\r\n }\r\n\r\n // Move each item that collides away from this element.\r\n for (let i = 0, len = collisions.length; i < len; i++) {\r\n const collision = collisions[i];\r\n // console.log('resolving collision between', l.i, 'at', l.y, 'and', collision.i, 'at', collision.y);\r\n\r\n // Short circuit so we can't infinite loop\r\n if (collision.moved) continue;\r\n\r\n // This makes it feel a bit more precise by waiting to swap for just a bit when moving up.\r\n if (l.y > collision.y && l.y - collision.y > collision.h / 4) continue;\r\n\r\n // Don't move static items - we have to move *this* element away\r\n if (collision.static) {\r\n layout = moveElementAwayFromCollision(layout, collision, l, isUserAction);\r\n } else {\r\n layout = moveElementAwayFromCollision(layout, l, collision, isUserAction);\r\n }\r\n }\r\n\r\n return layout;\r\n}\r\n\r\n/**\r\n * This is where the magic needs to happen - given a collision, move an element away from the collision.\r\n * We attempt to move it up if there's room, otherwise it goes below.\r\n *\r\n * @param {Array} layout Full layout to modify.\r\n * @param {LayoutItem} collidesWith Layout item we're colliding with.\r\n * @param {LayoutItem} itemToMove Layout item we're moving.\r\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is being dragged/resized\r\n * by the user.\r\n */\r\nexport function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem,\r\n itemToMove: LayoutItem, isUserAction: ?boolean): Layout {\r\n\r\n const preventCollision = false // we're already colliding\r\n // If there is enough space above the collision to put this element, move it there.\r\n // We only do this on the main collision as this can get funky in cascades and cause\r\n // unwanted swapping behavior.\r\n if (isUserAction) {\r\n // Make a mock item so we don't modify the item here, only modify in moveElement.\r\n const fakeItem: LayoutItem = {\r\n x: itemToMove.x,\r\n y: itemToMove.y,\r\n w: itemToMove.w,\r\n h: itemToMove.h,\r\n i: '-1'\r\n };\r\n fakeItem.y = Math.max(collidesWith.y - itemToMove.h, 0);\r\n if (!getFirstCollision(layout, fakeItem)) {\r\n return moveElement(layout, itemToMove, undefined, fakeItem.y, preventCollision);\r\n }\r\n }\r\n\r\n // Previously this was optimized to move below the collision directly, but this can cause problems\r\n // with cascading moves, as an item may actually leapflog a collision and cause a reversal in order.\r\n return moveElement(layout, itemToMove, undefined, itemToMove.y + 1, preventCollision);\r\n}\r\n\r\n/**\r\n * Helper to convert a number to a percentage string.\r\n *\r\n * @param {Number} num Any number\r\n * @return {String} That number as a percentage.\r\n */\r\nexport function perc(num: number): string {\r\n return num * 100 + '%';\r\n}\r\n\r\nexport function setTransform(top, left, width, height): Object {\r\n // Replace unitless items with px\r\n const translate = \"translate3d(\" + left + \"px,\" + top + \"px, 0)\";\r\n return {\r\n transform: translate,\r\n WebkitTransform: translate,\r\n MozTransform: translate,\r\n msTransform: translate,\r\n OTransform: translate,\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n/**\r\n * Just like the setTransform method, but instead it will return a negative value of right.\r\n *\r\n * @param top\r\n * @param right\r\n * @param width\r\n * @param height\r\n * @returns {{transform: string, WebkitTransform: string, MozTransform: string, msTransform: string, OTransform: string, width: string, height: string, position: string}}\r\n */\r\nexport function setTransformRtl(top, right, width, height): Object {\r\n // Replace unitless items with px\r\n const translate = \"translate3d(\" + right * -1 + \"px,\" + top + \"px, 0)\";\r\n return {\r\n transform: translate,\r\n WebkitTransform: translate,\r\n MozTransform: translate,\r\n msTransform: translate,\r\n OTransform: translate,\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n\r\nexport function setTopLeft(top, left, width, height): Object {\r\n return {\r\n top: top + \"px\",\r\n left: left + \"px\",\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n/**\r\n * Just like the setTopLeft method, but instead, it will return a right property instead of left.\r\n *\r\n * @param top\r\n * @param right\r\n * @param width\r\n * @param height\r\n * @returns {{top: string, right: string, width: string, height: string, position: string}}\r\n */\r\nexport function setTopRight(top, right, width, height): Object {\r\n return {\r\n top: top + \"px\",\r\n right: right+ \"px\",\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n\r\n\r\n/**\r\n * Get layout items sorted from top left to right and down.\r\n *\r\n * @return {Array} Array of layout objects.\r\n * @return {Array} Layout, sorted static items first.\r\n */\r\nexport function sortLayoutItemsByRowCol(layout: Layout): Layout {\r\n return [].concat(layout).sort(function(a, b) {\r\n if (a.y === b.y && a.x === b.x) {\r\n return 0;\r\n }\r\n\r\n if (a.y > b.y || (a.y === b.y && a.x > b.x)) {\r\n return 1;\r\n }\r\n\r\n return -1;\r\n });\r\n}\r\n\r\n/**\r\n * Generate a layout using the initialLayout and children as a template.\r\n * Missing entries will be added, extraneous ones will be truncated.\r\n *\r\n * @param {Array} initialLayout Layout passed in through props.\r\n * @param {String} breakpoint Current responsive breakpoint.\r\n * @param {Boolean} verticalCompact Whether or not to compact the layout vertically.\r\n * @return {Array} Working layout.\r\n */\r\n/*\r\nexport function synchronizeLayoutWithChildren(initialLayout: Layout, children: Array|React.Element,\r\n cols: number, verticalCompact: boolean): Layout {\r\n // ensure 'children' is always an array\r\n if (!Array.isArray(children)) {\r\n children = [children];\r\n }\r\n initialLayout = initialLayout || [];\r\n\r\n // Generate one layout item per child.\r\n let layout: Layout = [];\r\n for (let i = 0, len = children.length; i < len; i++) {\r\n let newItem;\r\n const child = children[i];\r\n\r\n // Don't overwrite if it already exists.\r\n const exists = getLayoutItem(initialLayout, child.key || \"1\" /!* FIXME satisfies Flow *!/);\r\n if (exists) {\r\n newItem = exists;\r\n } else {\r\n const g = child.props._grid;\r\n\r\n // Hey, this item has a _grid property, use it.\r\n if (g) {\r\n if (!isProduction) {\r\n validateLayout([g], 'ReactGridLayout.children');\r\n }\r\n // Validated; add it to the layout. Bottom 'y' possible is the bottom of the layout.\r\n // This allows you to do nice stuff like specify {y: Infinity}\r\n if (verticalCompact) {\r\n newItem = cloneLayoutItem({...g, y: Math.min(bottom(layout), g.y), i: child.key});\r\n } else {\r\n newItem = cloneLayoutItem({...g, y: g.y, i: child.key});\r\n }\r\n }\r\n // Nothing provided: ensure this is added to the bottom\r\n else {\r\n newItem = cloneLayoutItem({w: 1, h: 1, x: 0, y: bottom(layout), i: child.key || \"1\"});\r\n }\r\n }\r\n layout[i] = newItem;\r\n }\r\n\r\n // Correct the layout.\r\n layout = correctBounds(layout, {cols: cols});\r\n layout = compact(layout, verticalCompact);\r\n\r\n return layout;\r\n}\r\n*/\r\n\r\n/**\r\n * Validate a layout. Throws errors.\r\n *\r\n * @param {Array} layout Array of layout items.\r\n * @param {String} [contextName] Context name for errors.\r\n * @throw {Error} Validation error.\r\n */\r\nexport function validateLayout(layout: Layout, contextName: string): void {\r\n contextName = contextName || \"Layout\";\r\n const subProps = ['x', 'y', 'w', 'h'];\r\n let keyArr = [];\r\n if (!Array.isArray(layout)) throw new Error(contextName + \" must be an array!\");\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n const item = layout[i];\r\n for (let j = 0; j < subProps.length; j++) {\r\n if (typeof item[subProps[j]] !== 'number') {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].' + subProps[j] + ' must be a number!');\r\n }\r\n }\r\n\r\n if (item.i === undefined || item.i === null) {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i cannot be null!');\r\n }\r\n\r\n if (typeof item.i !== 'number' && typeof item.i !== 'string') {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be a string or number!');\r\n }\r\n\r\n if (keyArr.indexOf(item.i) >= 0) {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be unique!');\r\n }\r\n keyArr.push(item.i);\r\n\r\n if (item.static !== undefined && typeof item.static !== 'boolean') {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].static must be a boolean!');\r\n }\r\n }\r\n}\r\n\r\n// Flow can't really figure this out, so we just use Object\r\nexport function autoBindHandlers(el: Object, fns: Array): void {\r\n fns.forEach((key) => el[key] = el[key].bind(el));\r\n}\r\n\r\n\r\n\r\n/**\r\n * Convert a JS object to CSS string. Similar to React's output of CSS.\r\n * @param obj\r\n * @returns {string}\r\n */\r\nexport function createMarkup(obj) {\r\n var keys = Object.keys(obj);\r\n if (!keys.length) return '';\r\n var i, len = keys.length;\r\n var result = '';\r\n\r\n for (i = 0; i < len; i++) {\r\n var key = keys[i];\r\n var val = obj[key];\r\n result += hyphenate(key) + ':' + addPx(key, val) + ';';\r\n }\r\n\r\n return result;\r\n}\r\n\r\n\r\n/* The following list is defined in React's core */\r\nexport var IS_UNITLESS = {\r\n animationIterationCount: true,\r\n boxFlex: true,\r\n boxFlexGroup: true,\r\n boxOrdinalGroup: true,\r\n columnCount: true,\r\n flex: true,\r\n flexGrow: true,\r\n flexPositive: true,\r\n flexShrink: true,\r\n flexNegative: true,\r\n flexOrder: true,\r\n gridRow: true,\r\n gridColumn: true,\r\n fontWeight: true,\r\n lineClamp: true,\r\n lineHeight: true,\r\n opacity: true,\r\n order: true,\r\n orphans: true,\r\n tabSize: true,\r\n widows: true,\r\n zIndex: true,\r\n zoom: true,\r\n\r\n // SVG-related properties\r\n fillOpacity: true,\r\n stopOpacity: true,\r\n strokeDashoffset: true,\r\n strokeOpacity: true,\r\n strokeWidth: true\r\n};\r\n\r\n\r\n/**\r\n * Will add px to the end of style values which are Numbers.\r\n * @param name\r\n * @param value\r\n * @returns {*}\r\n */\r\nexport function addPx(name, value) {\r\n if(typeof value === 'number' && !IS_UNITLESS[ name ]) {\r\n return value + 'px';\r\n } else {\r\n return value;\r\n }\r\n}\r\n\r\n\r\n/**\r\n * Hyphenate a camelCase string.\r\n *\r\n * @param {String} str\r\n * @return {String}\r\n */\r\n\r\nexport var hyphenateRE = /([a-z\\d])([A-Z])/g;\r\n\r\nexport function hyphenate(str) {\r\n return str.replace(hyphenateRE, '$1-$2').toLowerCase();\r\n}\r\n\r\n\r\nexport function findItemInArray(array, property, value) {\r\n for (var i=0; i < array.length; i++)\r\n if (array[i][property] == value)\r\n return true;\r\n\r\n return false;\r\n}\r\n\r\nexport function findAndRemove(array, property, value) {\r\n array.forEach(function (result, index) {\r\n if (result[property] === value) {\r\n //Remove from array\r\n array.splice(index, 1);\r\n }\r\n });\r\n}\r\n","// Get {x, y} positions from event.\r\nexport function getControlPosition(e) {\r\n return offsetXYFromParentOf(e);\r\n}\r\n\r\n\r\n// Get from offsetParent\r\nexport function offsetXYFromParentOf(evt) {\r\n const offsetParent = evt.target.offsetParent || document.body;\r\n const offsetParentRect = evt.offsetParent === document.body ? {left: 0, top: 0} : offsetParent.getBoundingClientRect();\r\n\r\n const x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left;\r\n const y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top;\r\n\r\n /*const x = Math.round(evt.clientX + offsetParent.scrollLeft - offsetParentRect.left);\r\n const y = Math.round(evt.clientY + offsetParent.scrollTop - offsetParentRect.top);*/\r\n\r\n\r\n return {x, y};\r\n}\r\n\r\n\r\n// Create an data object exposed by 's events\r\nexport function createCoreData(lastX, lastY, x, y) {\r\n // State changes are often (but not always!) async. We want the latest value.\r\n const isStart = !isNum(lastX);\r\n\r\n if (isStart) {\r\n // If this is our first move, use the x and y as last coords.\r\n return {\r\n deltaX: 0, deltaY: 0,\r\n lastX: x, lastY: y,\r\n x: x, y: y\r\n };\r\n } else {\r\n // Otherwise calculate proper values.\r\n return {\r\n deltaX: x - lastX, deltaY: y - lastY,\r\n lastX: lastX, lastY: lastY,\r\n x: x, y: y\r\n };\r\n }\r\n}\r\n\r\n\r\nfunction isNum(num) {\r\n return typeof num === 'number' && !isNaN(num);\r\n}\r\n\r\n","// @flow\r\n\r\nimport {cloneLayout, compact, correctBounds} from './utils';\r\n\r\nimport type {Layout} from './utils';\r\nexport type ResponsiveLayout = {lg?: Layout, md?: Layout, sm?: Layout, xs?: Layout, xxs?: Layout};\r\ntype Breakpoint = string;\r\ntype Breakpoints = {lg?: number, md?: number, sm?: number, xs?: number, xxs?: number};\r\n\r\n/**\r\n * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).\r\n *\r\n * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})\r\n * @param {Number} width Screen width.\r\n * @return {String} Highest breakpoint that is less than width.\r\n */\r\nexport function getBreakpointFromWidth(breakpoints: Breakpoints, width: number): Breakpoint {\r\n const sorted = sortBreakpoints(breakpoints);\r\n let matching = sorted[0];\r\n for (let i = 1, len = sorted.length; i < len; i++) {\r\n const breakpointName = sorted[i];\r\n if (width > breakpoints[breakpointName]) matching = breakpointName;\r\n }\r\n return matching;\r\n}\r\n\r\n\r\n/**\r\n * Given a breakpoint, get the # of cols set for it.\r\n * @param {String} breakpoint Breakpoint name.\r\n * @param {Object} cols Map of breakpoints to cols.\r\n * @return {Number} Number of cols.\r\n */\r\nexport function getColsFromBreakpoint(breakpoint: Breakpoint, cols: Breakpoints): number {\r\n if (!cols[breakpoint]) {\r\n throw new Error(\"ResponsiveGridLayout: `cols` entry for breakpoint \" + breakpoint + \" is missing!\");\r\n }\r\n return cols[breakpoint];\r\n}\r\n\r\n/**\r\n * Given existing layouts and a new breakpoint, find or generate a new layout.\r\n *\r\n * This finds the layout above the new one and generates from it, if it exists.\r\n *\r\n * @param {Array} orgLayout Original layout.\r\n * @param {Object} layouts Existing layouts.\r\n * @param {Array} breakpoints All breakpoints.\r\n * @param {String} breakpoint New breakpoint.\r\n * @param {String} breakpoint Last breakpoint (for fallback).\r\n * @param {Number} cols Column count at new breakpoint.\r\n * @param {Boolean} verticalCompact Whether or not to compact the layout\r\n * vertically.\r\n * @return {Array} New layout.\r\n */\r\nexport function findOrGenerateResponsiveLayout(orgLayout: Layout, layouts: ResponsiveLayout, breakpoints: Breakpoints,\r\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\r\n cols: number, verticalCompact: boolean): Layout {\r\n // If it already exists, just return it.\r\n if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\r\n // Find or generate the next layout\r\n let layout = orgLayout;\r\n\r\n const breakpointsSorted = sortBreakpoints(breakpoints);\r\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\r\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\r\n const b = breakpointsAbove[i];\r\n if (layouts[b]) {\r\n layout = layouts[b];\r\n break;\r\n }\r\n }\r\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\r\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\r\n}\r\n\r\nexport function generateResponsiveLayout(layout: Layout, breakpoints: Breakpoints,\r\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\r\n cols: number, verticalCompact: boolean): Layout {\r\n // If it already exists, just return it.\r\n /*if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\r\n // Find or generate the next layout\r\n let layout = layouts[lastBreakpoint];*/\r\n /*const breakpointsSorted = sortBreakpoints(breakpoints);\r\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\r\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\r\n const b = breakpointsAbove[i];\r\n if (layouts[b]) {\r\n layout = layouts[b];\r\n break;\r\n }\r\n }*/\r\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\r\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\r\n}\r\n\r\n/**\r\n * Given breakpoints, return an array of breakpoints sorted by width. This is usually\r\n * e.g. ['xxs', 'xs', 'sm', ...]\r\n *\r\n * @param {Object} breakpoints Key/value pair of breakpoint names to widths.\r\n * @return {Array} Sorted breakpoints.\r\n */\r\nexport function sortBreakpoints(breakpoints: Breakpoints): Array {\r\n const keys: Array = Object.keys(breakpoints);\r\n return keys.sort(function(a, b) {\r\n return breakpoints[a] - breakpoints[b];\r\n });\r\n}\r\n","let currentDir: \"ltr\" | \"rtl\" | \"auto\" = \"auto\";\r\n// let currentDir = \"auto\";\r\n\r\nfunction hasDocument(){\r\n return (typeof document !== \"undefined\");\r\n}\r\n\r\nfunction hasWindow(){\r\n return (typeof window !== \"undefined\");\r\n}\r\n\r\nexport function getDocumentDir(){\r\n if(!hasDocument()){\r\n return currentDir;\r\n }\r\n const direction = (typeof document.dir !== \"undefined\") ?\r\n document.dir :\r\n document.getElementsByTagName(\"html\")[0].getAttribute(\"dir\");\r\n return direction;\r\n}\r\n\r\nexport function setDocumentDir(dir: \"ltr\" | \"rtl\" | \"auto\"){\r\n// export function setDocumentDir(dir){\r\n if(!hasDocument){\r\n currentDir = dir;\r\n return;\r\n }\r\n\r\n const html = document.getElementsByTagName(\"html\")[0];\r\n html.setAttribute(\"dir\", dir);\r\n}\r\n\r\nexport function addWindowEventListener(event:string, callback: () => mixed){\r\n if(!hasWindow){\r\n\r\n callback();\r\n return;\r\n }\r\n window.addEventListener(event, callback);\r\n}\r\n\r\nexport function removeWindowEventListener(event:string, callback: () => mixed){\r\n if(!hasWindow){\r\n return;\r\n }\r\n window.removeEventListener(event, callback);\r\n}\r\n\r\n\r\n\r\n","const domObjects = {\n init,\n document: null,\n DocumentFragment: null,\n SVGElement: null,\n SVGSVGElement: null,\n SVGElementInstance: null,\n Element: null,\n HTMLElement: null,\n Event: null,\n Touch: null,\n PointerEvent: null\n};\n\nfunction blank() {}\n\nexport default domObjects;\n\nfunction init(window) {\n const win = window;\n domObjects.document = win.document;\n domObjects.DocumentFragment = win.DocumentFragment || blank;\n domObjects.SVGElement = win.SVGElement || blank;\n domObjects.SVGSVGElement = win.SVGSVGElement || blank;\n domObjects.SVGElementInstance = win.SVGElementInstance || blank;\n domObjects.Element = win.Element || blank;\n domObjects.HTMLElement = win.HTMLElement || domObjects.Element;\n domObjects.Event = win.Event;\n domObjects.Touch = win.Touch || blank;\n domObjects.PointerEvent = win.PointerEvent || win.MSPointerEvent;\n}\n//# sourceMappingURL=domObjects.js.map","export default (thing => !!(thing && thing.Window) && thing instanceof thing.Window);\n//# sourceMappingURL=isWindow.js.map","import isWindow from \"./isWindow.js\";\nexport let realWindow = undefined;\nlet win = undefined;\nexport { win as window };\nexport function init(window) {\n // get wrapped window if using Shadow DOM polyfill\n realWindow = window; // create a TextNode\n\n const el = window.document.createTextNode(''); // check if it's wrapped by a polyfill\n\n if (el.ownerDocument !== window.document && typeof window.wrap === 'function' && window.wrap(el) === el) {\n // use wrapped window\n window = window.wrap(window);\n }\n\n win = window;\n}\n\nif (typeof window !== 'undefined' && !!window) {\n init(window);\n}\n\nexport function getWindow(node) {\n if (isWindow(node)) {\n return node;\n }\n\n const rootNode = node.ownerDocument || node;\n return rootNode.defaultView || win.window;\n}\n//# sourceMappingURL=window.js.map","import isWindow from \"./isWindow.js\";\nimport * as win from \"./window.js\";\n\nconst window = thing => thing === win.window || isWindow(thing);\n\nconst docFrag = thing => object(thing) && thing.nodeType === 11;\n\nconst object = thing => !!thing && typeof thing === 'object';\n\nconst func = thing => typeof thing === 'function';\n\nconst number = thing => typeof thing === 'number';\n\nconst bool = thing => typeof thing === 'boolean';\n\nconst string = thing => typeof thing === 'string';\n\nconst element = thing => {\n if (!thing || typeof thing !== 'object') {\n return false;\n } // eslint-disable-next-line import/no-named-as-default-member\n\n\n const _window = win.getWindow(thing) || win.window;\n\n return /object|function/.test(typeof _window.Element) ? thing instanceof _window.Element // DOM2\n : thing.nodeType === 1 && typeof thing.nodeName === 'string';\n};\n\nconst plainObject = thing => object(thing) && !!thing.constructor && /function Object\\b/.test(thing.constructor.toString());\n\nconst array = thing => object(thing) && typeof thing.length !== 'undefined' && func(thing.splice);\n\nexport default {\n window,\n docFrag,\n object,\n func,\n number,\n bool,\n string,\n element,\n plainObject,\n array\n};\n//# sourceMappingURL=is.js.map","import domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nconst browser = {\n init,\n supportsTouch: null,\n supportsPointerEvent: null,\n isIOS7: null,\n isIOS: null,\n isIe9: null,\n isOperaMobile: null,\n prefixedMatchesSelector: null,\n pEventTypes: null,\n wheelEvent: null\n};\n\nfunction init(window) {\n const Element = domObjects.Element;\n const navigator = win.window.navigator; // Does the browser support touch input?\n\n browser.supportsTouch = 'ontouchstart' in window || is.func(window.DocumentTouch) && domObjects.document instanceof window.DocumentTouch; // Does the browser support PointerEvents\n\n browser.supportsPointerEvent = navigator.pointerEnabled !== false && !!domObjects.PointerEvent;\n browser.isIOS = /iP(hone|od|ad)/.test(navigator.platform); // scrolling doesn't change the result of getClientRects on iOS 7\n\n browser.isIOS7 = /iP(hone|od|ad)/.test(navigator.platform) && /OS 7[^\\d]/.test(navigator.appVersion);\n browser.isIe9 = /MSIE 9/.test(navigator.userAgent); // Opera Mobile must be handled differently\n\n browser.isOperaMobile = navigator.appName === 'Opera' && browser.supportsTouch && /Presto/.test(navigator.userAgent); // prefix matchesSelector\n\n browser.prefixedMatchesSelector = 'matches' in Element.prototype ? 'matches' : 'webkitMatchesSelector' in Element.prototype ? 'webkitMatchesSelector' : 'mozMatchesSelector' in Element.prototype ? 'mozMatchesSelector' : 'oMatchesSelector' in Element.prototype ? 'oMatchesSelector' : 'msMatchesSelector';\n browser.pEventTypes = browser.supportsPointerEvent ? domObjects.PointerEvent === window.MSPointerEvent ? {\n up: 'MSPointerUp',\n down: 'MSPointerDown',\n over: 'mouseover',\n out: 'mouseout',\n move: 'MSPointerMove',\n cancel: 'MSPointerCancel'\n } : {\n up: 'pointerup',\n down: 'pointerdown',\n over: 'pointerover',\n out: 'pointerout',\n move: 'pointermove',\n cancel: 'pointercancel'\n } : null; // because Webkit and Opera still use 'mousewheel' event type\n\n browser.wheelEvent = 'onmousewheel' in domObjects.document ? 'mousewheel' : 'wheel';\n}\n\nexport default browser;\n//# sourceMappingURL=browser.js.map","export const contains = (array, target) => array.indexOf(target) !== -1;\nexport const remove = (array, target) => array.splice(array.indexOf(target), 1);\nexport const merge = (target, source) => {\n for (const item of source) {\n target.push(item);\n }\n\n return target;\n};\nexport const from = source => merge([], source);\nexport const findIndex = (array, func) => {\n for (let i = 0; i < array.length; i++) {\n if (func(array[i], i, array)) {\n return i;\n }\n }\n\n return -1;\n};\nexport const find = (array, func) => array[findIndex(array, func)];\n//# sourceMappingURL=arr.js.map","import * as arr from \"./arr.js\";\nimport is from \"./is.js\"; // tslint:disable-next-line ban-types\n\nexport default function clone(source) {\n const dest = {};\n\n for (const prop in source) {\n const value = source[prop];\n\n if (is.plainObject(value)) {\n dest[prop] = clone(value);\n } else if (is.array(value)) {\n dest[prop] = arr.from(value);\n } else {\n dest[prop] = value;\n }\n }\n\n return dest;\n}\n//# sourceMappingURL=clone.js.map","export default function extend(dest, source) {\n for (const prop in source) {\n dest[prop] = source[prop];\n }\n\n const ret = dest;\n return ret;\n}\n//# sourceMappingURL=extend.js.map","let lastTime = 0;\nlet request;\nlet cancel;\n\nfunction init(window) {\n request = window.requestAnimationFrame;\n cancel = window.cancelAnimationFrame;\n\n if (!request) {\n const vendors = ['ms', 'moz', 'webkit', 'o'];\n\n for (const vendor of vendors) {\n request = window[`${vendor}RequestAnimationFrame`];\n cancel = window[`${vendor}CancelAnimationFrame`] || window[`${vendor}CancelRequestAnimationFrame`];\n }\n }\n\n request = request && request.bind(window);\n cancel = cancel && cancel.bind(window);\n\n if (!request) {\n request = callback => {\n const currTime = Date.now();\n const timeToCall = Math.max(0, 16 - (currTime - lastTime)); // eslint-disable-next-line node/no-callback-literal\n\n const token = window.setTimeout(() => {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return token;\n };\n\n cancel = token => clearTimeout(token);\n }\n}\n\nexport default {\n request: callback => request(callback),\n cancel: token => cancel(token),\n init\n};\n//# sourceMappingURL=raf.js.map","import extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport default function normalize(type, listeners, result) {\n result = result || {};\n\n if (is.string(type) && type.search(' ') !== -1) {\n type = split(type);\n }\n\n if (is.array(type)) {\n return type.reduce((acc, t) => extend(acc, normalize(t, listeners, result)), result);\n } // ({ type: fn }) -> ('', { type: fn })\n\n\n if (is.object(type)) {\n listeners = type;\n type = '';\n }\n\n if (is.func(listeners)) {\n result[type] = result[type] || [];\n result[type].push(listeners);\n } else if (is.array(listeners)) {\n for (const l of listeners) {\n normalize(type, l, result);\n }\n } else if (is.object(listeners)) {\n for (const prefix in listeners) {\n const combinedTypes = split(prefix).map(p => `${type}${p}`);\n normalize(combinedTypes, listeners[prefix], result);\n }\n }\n\n return result;\n}\n\nfunction split(type) {\n return type.trim().split(/ +/);\n}\n//# sourceMappingURL=normalizeListeners.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport normalize from \"../utils/normalizeListeners.js\";\n\nfunction fireUntilImmediateStopped(event, listeners) {\n for (const listener of listeners) {\n if (event.immediatePropagationStopped) {\n break;\n }\n\n listener(event);\n }\n}\n\nexport class Eventable {\n constructor(options) {\n this.options = void 0;\n this.types = {};\n this.propagationStopped = false;\n this.immediatePropagationStopped = false;\n this.global = void 0;\n this.options = extend({}, options || {});\n }\n\n fire(event) {\n let listeners;\n const global = this.global; // Interactable#on() listeners\n // tslint:disable no-conditional-assignment\n\n if (listeners = this.types[event.type]) {\n fireUntilImmediateStopped(event, listeners);\n } // interact.on() listeners\n\n\n if (!event.propagationStopped && global && (listeners = global[event.type])) {\n fireUntilImmediateStopped(event, listeners);\n }\n }\n\n on(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n this.types[type] = arr.merge(this.types[type] || [], listeners[type]);\n }\n }\n\n off(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n const eventList = this.types[type];\n\n if (!eventList || !eventList.length) {\n continue;\n }\n\n for (const subListener of listeners[type]) {\n const index = eventList.indexOf(subListener);\n\n if (index !== -1) {\n eventList.splice(index, 1);\n }\n }\n }\n }\n\n getRect(_element) {\n return null;\n }\n\n}\n//# sourceMappingURL=Eventable.js.map","import browser from \"./browser.js\";\nimport domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nexport function nodeContains(parent, child) {\n if (parent.contains) {\n return parent.contains(child);\n }\n\n while (child) {\n if (child === parent) {\n return true;\n }\n\n child = child.parentNode;\n }\n\n return false;\n}\nexport function closest(element, selector) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return element;\n }\n\n element = parentNode(element);\n }\n\n return null;\n}\nexport function parentNode(node) {\n let parent = node.parentNode;\n\n if (is.docFrag(parent)) {\n // skip past #shado-root fragments\n // tslint:disable-next-line\n while ((parent = parent.host) && is.docFrag(parent)) {\n continue;\n }\n\n return parent;\n }\n\n return parent;\n}\nexport function matchesSelector(element, selector) {\n // remove /deep/ from selectors if shadowDOM polyfill is used\n if (win.window !== win.realWindow) {\n selector = selector.replace(/\\/deep\\//g, ' ');\n }\n\n return element[browser.prefixedMatchesSelector](selector);\n}\n\nconst getParent = el => el.parentNode || el.host; // Test for the element that's \"above\" all other qualifiers\n\n\nexport function indexOfDeepestElement(elements) {\n let deepestNodeParents = [];\n let deepestNodeIndex;\n\n for (let i = 0; i < elements.length; i++) {\n const currentNode = elements[i];\n const deepestNode = elements[deepestNodeIndex]; // node may appear in elements array multiple times\n\n if (!currentNode || i === deepestNodeIndex) {\n continue;\n }\n\n if (!deepestNode) {\n deepestNodeIndex = i;\n continue;\n }\n\n const currentNodeParent = getParent(currentNode);\n const deepestNodeParent = getParent(deepestNode); // check if the deepest or current are document.documentElement/rootElement\n // - if the current node is, do nothing and continue\n\n if (currentNodeParent === currentNode.ownerDocument) {\n continue;\n } // - if deepest is, update with the current node and continue to next\n else if (deepestNodeParent === currentNode.ownerDocument) {\n deepestNodeIndex = i;\n continue;\n } // compare zIndex of siblings\n\n\n if (currentNodeParent === deepestNodeParent) {\n if (zIndexIsHigherThan(currentNode, deepestNode)) {\n deepestNodeIndex = i;\n }\n\n continue;\n } // populate the ancestry array for the latest deepest node\n\n\n deepestNodeParents = deepestNodeParents.length ? deepestNodeParents : getNodeParents(deepestNode);\n let ancestryStart; // if the deepest node is an HTMLElement and the current node is a non root svg element\n\n if (deepestNode instanceof domObjects.HTMLElement && currentNode instanceof domObjects.SVGElement && !(currentNode instanceof domObjects.SVGSVGElement)) {\n // TODO: is this check necessary? Was this for HTML elements embedded in SVG?\n if (currentNode === deepestNodeParent) {\n continue;\n }\n\n ancestryStart = currentNode.ownerSVGElement;\n } else {\n ancestryStart = currentNode;\n }\n\n const currentNodeParents = getNodeParents(ancestryStart, deepestNode.ownerDocument);\n let commonIndex = 0; // get (position of closest common ancestor) + 1\n\n while (currentNodeParents[commonIndex] && currentNodeParents[commonIndex] === deepestNodeParents[commonIndex]) {\n commonIndex++;\n }\n\n const parents = [currentNodeParents[commonIndex - 1], currentNodeParents[commonIndex], deepestNodeParents[commonIndex]];\n let child = parents[0].lastChild;\n\n while (child) {\n if (child === parents[1]) {\n deepestNodeIndex = i;\n deepestNodeParents = currentNodeParents;\n break;\n } else if (child === parents[2]) {\n break;\n }\n\n child = child.previousSibling;\n }\n }\n\n return deepestNodeIndex;\n}\n\nfunction getNodeParents(node, limit) {\n const parents = [];\n let parent = node;\n let parentParent;\n\n while ((parentParent = getParent(parent)) && parent !== limit && parentParent !== parent.ownerDocument) {\n parents.unshift(parent);\n parent = parentParent;\n }\n\n return parents;\n}\n\nfunction zIndexIsHigherThan(higherNode, lowerNode) {\n const higherIndex = parseInt(win.getWindow(higherNode).getComputedStyle(higherNode).zIndex, 10) || 0;\n const lowerIndex = parseInt(win.getWindow(lowerNode).getComputedStyle(lowerNode).zIndex, 10) || 0;\n return higherIndex >= lowerIndex;\n}\n\nexport function matchesUpTo(element, selector, limit) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return true;\n }\n\n element = parentNode(element);\n\n if (element === limit) {\n return matchesSelector(element, selector);\n }\n }\n\n return false;\n}\nexport function getActualElement(element) {\n return element.correspondingUseElement || element;\n}\nexport function getScrollXY(relevantWindow) {\n relevantWindow = relevantWindow || win.window;\n return {\n x: relevantWindow.scrollX || relevantWindow.document.documentElement.scrollLeft,\n y: relevantWindow.scrollY || relevantWindow.document.documentElement.scrollTop\n };\n}\nexport function getElementClientRect(element) {\n const clientRect = element instanceof domObjects.SVGElement ? element.getBoundingClientRect() : element.getClientRects()[0];\n return clientRect && {\n left: clientRect.left,\n right: clientRect.right,\n top: clientRect.top,\n bottom: clientRect.bottom,\n width: clientRect.width || clientRect.right - clientRect.left,\n height: clientRect.height || clientRect.bottom - clientRect.top\n };\n}\nexport function getElementRect(element) {\n const clientRect = getElementClientRect(element);\n\n if (!browser.isIOS7 && clientRect) {\n const scroll = getScrollXY(win.getWindow(element));\n clientRect.left += scroll.x;\n clientRect.right += scroll.x;\n clientRect.top += scroll.y;\n clientRect.bottom += scroll.y;\n }\n\n return clientRect;\n}\nexport function getPath(node) {\n const path = [];\n\n while (node) {\n path.push(node);\n node = parentNode(node);\n }\n\n return path;\n}\nexport function trySelector(value) {\n if (!is.string(value)) {\n return false;\n } // an exception will be raised if it is invalid\n\n\n domObjects.document.querySelector(value);\n return true;\n}\n//# sourceMappingURL=domUtils.js.map","import { closest, getElementRect, parentNode } from \"./domUtils.js\";\nimport extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport function getStringOptionResult(value, target, element) {\n if (value === 'parent') {\n return parentNode(element);\n }\n\n if (value === 'self') {\n return target.getRect(element);\n }\n\n return closest(element, value);\n}\nexport function resolveRectLike(value, target, element, functionArgs) {\n let returnValue = value;\n\n if (is.string(returnValue)) {\n returnValue = getStringOptionResult(returnValue, target, element);\n } else if (is.func(returnValue)) {\n returnValue = returnValue(...functionArgs);\n }\n\n if (is.element(returnValue)) {\n returnValue = getElementRect(returnValue);\n }\n\n return returnValue;\n}\nexport function rectToXY(rect) {\n return rect && {\n x: 'x' in rect ? rect.x : rect.left,\n y: 'y' in rect ? rect.y : rect.top\n };\n}\nexport function xywhToTlbr(rect) {\n if (rect && !('left' in rect && 'top' in rect)) {\n rect = extend({}, rect);\n rect.left = rect.x || 0;\n rect.top = rect.y || 0;\n rect.right = rect.right || rect.left + rect.width;\n rect.bottom = rect.bottom || rect.top + rect.height;\n }\n\n return rect;\n}\nexport function tlbrToXywh(rect) {\n if (rect && !('x' in rect && 'y' in rect)) {\n rect = extend({}, rect);\n rect.x = rect.left || 0;\n rect.y = rect.top || 0;\n rect.width = rect.width || (rect.right || 0) - rect.x;\n rect.height = rect.height || (rect.bottom || 0) - rect.y;\n }\n\n return rect;\n}\nexport function addEdges(edges, rect, delta) {\n if (edges.left) {\n rect.left += delta.x;\n }\n\n if (edges.right) {\n rect.right += delta.x;\n }\n\n if (edges.top) {\n rect.top += delta.y;\n }\n\n if (edges.bottom) {\n rect.bottom += delta.y;\n }\n\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n}\n//# sourceMappingURL=rect.js.map","import { rectToXY, resolveRectLike } from \"./rect.js\";\nexport default function (target, element, actionName) {\n const actionOptions = target.options[actionName];\n const actionOrigin = actionOptions && actionOptions.origin;\n const origin = actionOrigin || target.options.origin;\n const originRect = resolveRectLike(origin, target, element, [target && element]);\n return rectToXY(originRect) || {\n x: 0,\n y: 0\n };\n}\n//# sourceMappingURL=getOriginXY.js.map","export default ((x, y) => Math.sqrt(x * x + y * y));\n//# sourceMappingURL=hypot.js.map","export class BaseEvent {\n constructor(interaction) {\n this.type = void 0;\n this.target = void 0;\n this.currentTarget = void 0;\n this.interactable = void 0;\n this._interaction = void 0;\n this.timeStamp = void 0;\n this.immediatePropagationStopped = false;\n this.propagationStopped = false;\n this._interaction = interaction;\n }\n\n preventDefault() {}\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n\n} // defined outside of class definition to avoid assignment of undefined during\n// construction\n\n// getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\nObject.defineProperty(BaseEvent.prototype, 'interaction', {\n get() {\n return this._interaction._proxy;\n },\n\n set() {}\n\n});\n//# sourceMappingURL=BaseEvent.js.map","// eslint-disable-next-line @typescript-eslint/no-empty-interface\n// export interface Options extends BaseDefaults, PerActionDefaults {}\nexport const defaults = {\n base: {\n preventDefault: 'auto',\n deltaSource: 'page'\n },\n perAction: {\n enabled: false,\n origin: {\n x: 0,\n y: 0\n }\n },\n actions: {}\n};\n//# sourceMappingURL=defaultOptions.js.map","import extend from \"../utils/extend.js\";\nimport getOriginXY from \"../utils/getOriginXY.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { BaseEvent } from \"./BaseEvent.js\";\nimport { defaults } from \"./defaultOptions.js\";\nexport class InteractEvent extends BaseEvent {\n // resize\n\n /** */\n constructor(interaction, event, actionName, phase, element, preEnd, type) {\n super(interaction);\n this.target = void 0;\n this.currentTarget = void 0;\n this.relatedTarget = null;\n this.screenX = void 0;\n this.screenY = void 0;\n this.button = void 0;\n this.buttons = void 0;\n this.ctrlKey = void 0;\n this.shiftKey = void 0;\n this.altKey = void 0;\n this.metaKey = void 0;\n this.page = void 0;\n this.client = void 0;\n this.delta = void 0;\n this.rect = void 0;\n this.x0 = void 0;\n this.y0 = void 0;\n this.t0 = void 0;\n this.dt = void 0;\n this.duration = void 0;\n this.clientX0 = void 0;\n this.clientY0 = void 0;\n this.velocity = void 0;\n this.speed = void 0;\n this.swipe = void 0;\n this.timeStamp = void 0;\n this.axes = void 0;\n this.preEnd = void 0;\n element = element || interaction.element;\n const target = interaction.interactable;\n const deltaSource = (target && target.options || defaults).deltaSource;\n const origin = getOriginXY(target, element, actionName);\n const starting = phase === 'start';\n const ending = phase === 'end';\n const prevEvent = starting ? this : interaction.prevEvent;\n const coords = starting ? interaction.coords.start : ending ? {\n page: prevEvent.page,\n client: prevEvent.client,\n timeStamp: interaction.coords.cur.timeStamp\n } : interaction.coords.cur;\n this.page = extend({}, coords.page);\n this.client = extend({}, coords.client);\n this.rect = extend({}, interaction.rect);\n this.timeStamp = coords.timeStamp;\n\n if (!ending) {\n this.page.x -= origin.x;\n this.page.y -= origin.y;\n this.client.x -= origin.x;\n this.client.y -= origin.y;\n }\n\n this.ctrlKey = event.ctrlKey;\n this.altKey = event.altKey;\n this.shiftKey = event.shiftKey;\n this.metaKey = event.metaKey;\n this.button = event.button;\n this.buttons = event.buttons;\n this.target = element;\n this.currentTarget = element;\n this.preEnd = preEnd;\n this.type = type || actionName + (phase || '');\n this.interactable = target;\n this.t0 = starting ? interaction.pointers[interaction.pointers.length - 1].downTime : prevEvent.t0;\n this.x0 = interaction.coords.start.page.x - origin.x;\n this.y0 = interaction.coords.start.page.y - origin.y;\n this.clientX0 = interaction.coords.start.client.x - origin.x;\n this.clientY0 = interaction.coords.start.client.y - origin.y;\n\n if (starting || ending) {\n this.delta = {\n x: 0,\n y: 0\n };\n } else {\n this.delta = {\n x: this[deltaSource].x - prevEvent[deltaSource].x,\n y: this[deltaSource].y - prevEvent[deltaSource].y\n };\n }\n\n this.dt = interaction.coords.delta.timeStamp;\n this.duration = this.timeStamp - this.t0; // velocity and speed in pixels per second\n\n this.velocity = extend({}, interaction.coords.velocity[deltaSource]);\n this.speed = hypot(this.velocity.x, this.velocity.y);\n this.swipe = ending || phase === 'inertiastart' ? this.getSwipe() : null;\n }\n\n getSwipe() {\n const interaction = this._interaction;\n\n if (interaction.prevEvent.speed < 600 || this.timeStamp - interaction.prevEvent.timeStamp > 150) {\n return null;\n }\n\n let angle = 180 * Math.atan2(interaction.prevEvent.velocityY, interaction.prevEvent.velocityX) / Math.PI;\n const overlap = 22.5;\n\n if (angle < 0) {\n angle += 360;\n }\n\n const left = 135 - overlap <= angle && angle < 225 + overlap;\n const up = 225 - overlap <= angle && angle < 315 + overlap;\n const right = !left && (315 - overlap <= angle || angle < 45 + overlap);\n const down = !up && 45 - overlap <= angle && angle < 135 + overlap;\n return {\n up,\n down,\n left,\n right,\n angle,\n speed: interaction.prevEvent.speed,\n velocity: {\n x: interaction.prevEvent.velocityX,\n y: interaction.prevEvent.velocityY\n }\n };\n }\n\n preventDefault() {}\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n\n} // getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\n\nObject.defineProperties(InteractEvent.prototype, {\n pageX: {\n get() {\n return this.page.x;\n },\n\n set(value) {\n this.page.x = value;\n }\n\n },\n pageY: {\n get() {\n return this.page.y;\n },\n\n set(value) {\n this.page.y = value;\n }\n\n },\n clientX: {\n get() {\n return this.client.x;\n },\n\n set(value) {\n this.client.x = value;\n }\n\n },\n clientY: {\n get() {\n return this.client.y;\n },\n\n set(value) {\n this.client.y = value;\n }\n\n },\n dx: {\n get() {\n return this.delta.x;\n },\n\n set(value) {\n this.delta.x = value;\n }\n\n },\n dy: {\n get() {\n return this.delta.y;\n },\n\n set(value) {\n this.delta.y = value;\n }\n\n },\n velocityX: {\n get() {\n return this.velocity.x;\n },\n\n set(value) {\n this.velocity.x = value;\n }\n\n },\n velocityY: {\n get() {\n return this.velocity.y;\n },\n\n set(value) {\n this.velocity.y = value;\n }\n\n }\n});\n//# sourceMappingURL=InteractEvent.js.map","export default function isNonNativeEvent(type, actions) {\n if (actions.phaselessTypes[type]) {\n return true;\n }\n\n for (const name in actions.map) {\n if (type.indexOf(name) === 0 && type.substr(name.length) in actions.phases) {\n return true;\n }\n }\n\n return false;\n}\n//# sourceMappingURL=isNonNativeEvent.js.map","/* eslint-disable no-dupe-class-members */\nimport * as arr from \"../utils/arr.js\";\nimport browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport { getElementRect, matchesUpTo, nodeContains, trySelector } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport normalizeListeners from \"../utils/normalizeListeners.js\";\nimport { getWindow } from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\n\n/** */\nexport class Interactable {\n /** @internal */\n get _defaults() {\n return {\n base: {},\n perAction: {},\n actions: {}\n };\n }\n\n /** */\n constructor(target, options, defaultContext, scopeEvents) {\n this.options = void 0;\n this._actions = void 0;\n this.target = void 0;\n this.events = new Eventable();\n this._context = void 0;\n this._win = void 0;\n this._doc = void 0;\n this._scopeEvents = void 0;\n this._rectChecker = void 0;\n this._actions = options.actions;\n this.target = target;\n this._context = options.context || defaultContext;\n this._win = getWindow(trySelector(target) ? this._context : target);\n this._doc = this._win.document;\n this._scopeEvents = scopeEvents;\n this.set(options);\n }\n\n setOnEvents(actionName, phases) {\n if (is.func(phases.onstart)) {\n this.on(`${actionName}start`, phases.onstart);\n }\n\n if (is.func(phases.onmove)) {\n this.on(`${actionName}move`, phases.onmove);\n }\n\n if (is.func(phases.onend)) {\n this.on(`${actionName}end`, phases.onend);\n }\n\n if (is.func(phases.oninertiastart)) {\n this.on(`${actionName}inertiastart`, phases.oninertiastart);\n }\n\n return this;\n }\n\n updatePerActionListeners(actionName, prev, cur) {\n if (is.array(prev) || is.object(prev)) {\n this.off(actionName, prev);\n }\n\n if (is.array(cur) || is.object(cur)) {\n this.on(actionName, cur);\n }\n }\n\n setPerAction(actionName, options) {\n const defaults = this._defaults; // for all the default per-action options\n\n for (const optionName_ in options) {\n const optionName = optionName_;\n const actionOptions = this.options[actionName];\n const optionValue = options[optionName]; // remove old event listeners and add new ones\n\n if (optionName === 'listeners') {\n this.updatePerActionListeners(actionName, actionOptions.listeners, optionValue);\n } // if the option value is an array\n\n\n if (is.array(optionValue)) {\n actionOptions[optionName] = arr.from(optionValue);\n } // if the option value is an object\n else if (is.plainObject(optionValue)) {\n // copy the object\n actionOptions[optionName] = extend(actionOptions[optionName] || {}, clone(optionValue)); // set anabled field to true if it exists in the defaults\n\n if (is.object(defaults.perAction[optionName]) && 'enabled' in defaults.perAction[optionName]) {\n actionOptions[optionName].enabled = optionValue.enabled !== false;\n }\n } // if the option value is a boolean and the default is an object\n else if (is.bool(optionValue) && is.object(defaults.perAction[optionName])) {\n actionOptions[optionName].enabled = optionValue;\n } // if it's anything else, do a plain assignment\n else {\n actionOptions[optionName] = optionValue;\n }\n }\n }\n /**\n * The default function to get an Interactables bounding rect. Can be\n * overridden using {@link Interactable.rectChecker}.\n *\n * @param {Element} [element] The element to measure.\n * @return {Rect} The object's bounding rectangle.\n */\n\n\n getRect(element) {\n element = element || (is.element(this.target) ? this.target : null);\n\n if (is.string(this.target)) {\n element = element || this._context.querySelector(this.target);\n }\n\n return getElementRect(element);\n }\n /**\n * Returns or sets the function used to calculate the interactable's\n * element's rectangle\n *\n * @param {function} [checker] A function which returns this Interactable's\n * bounding rectangle. See {@link Interactable.getRect}\n * @return {function | object} The checker function or this Interactable\n */\n\n\n rectChecker(checker) {\n if (is.func(checker)) {\n this._rectChecker = checker;\n\n this.getRect = element => {\n const rect = extend({}, this._rectChecker(element));\n\n if (!('width' in rect)) {\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n return rect;\n };\n\n return this;\n }\n\n if (checker === null) {\n delete this.getRect;\n delete this._rectChecker;\n return this;\n }\n\n return this.getRect;\n }\n\n _backCompatOption(optionName, newValue) {\n if (trySelector(newValue) || is.object(newValue)) {\n this.options[optionName] = newValue;\n\n for (const action in this._actions.map) {\n this.options[action][optionName] = newValue;\n }\n\n return this;\n }\n\n return this.options[optionName];\n }\n /**\n * Gets or sets the origin of the Interactable's element. The x and y\n * of the origin will be subtracted from action event coordinates.\n *\n * @param {Element | object | string} [origin] An HTML or SVG Element whose\n * rect will be used, an object eg. { x: 0, y: 0 } or string 'parent', 'self'\n * or any CSS selector\n *\n * @return {object} The current origin or this Interactable\n */\n\n\n origin(newValue) {\n return this._backCompatOption('origin', newValue);\n }\n /**\n * Returns or sets the mouse coordinate types used to calculate the\n * movement of the pointer.\n *\n * @param {string} [newValue] Use 'client' if you will be scrolling while\n * interacting; Use 'page' if you want autoScroll to work\n * @return {string | object} The current deltaSource or this Interactable\n */\n\n\n deltaSource(newValue) {\n if (newValue === 'page' || newValue === 'client') {\n this.options.deltaSource = newValue;\n return this;\n }\n\n return this.options.deltaSource;\n }\n /**\n * Gets the selector context Node of the Interactable. The default is\n * `window.document`.\n *\n * @return {Node} The context Node of this Interactable\n */\n\n\n context() {\n return this._context;\n }\n\n inContext(element) {\n return this._context === element.ownerDocument || nodeContains(this._context, element);\n }\n\n testIgnoreAllow(options, targetNode, eventTarget) {\n return !this.testIgnore(options.ignoreFrom, targetNode, eventTarget) && this.testAllow(options.allowFrom, targetNode, eventTarget);\n }\n\n testAllow(allowFrom, targetNode, element) {\n if (!allowFrom) {\n return true;\n }\n\n if (!is.element(element)) {\n return false;\n }\n\n if (is.string(allowFrom)) {\n return matchesUpTo(element, allowFrom, targetNode);\n } else if (is.element(allowFrom)) {\n return nodeContains(allowFrom, element);\n }\n\n return false;\n }\n\n testIgnore(ignoreFrom, targetNode, element) {\n if (!ignoreFrom || !is.element(element)) {\n return false;\n }\n\n if (is.string(ignoreFrom)) {\n return matchesUpTo(element, ignoreFrom, targetNode);\n } else if (is.element(ignoreFrom)) {\n return nodeContains(ignoreFrom, element);\n }\n\n return false;\n }\n /**\n * Calls listeners for the given InteractEvent type bound globally\n * and directly to this Interactable\n *\n * @param {InteractEvent} iEvent The InteractEvent object to be fired on this\n * Interactable\n * @return {Interactable} this Interactable\n */\n\n\n fire(iEvent) {\n this.events.fire(iEvent);\n return this;\n }\n\n _onOff(method, typeArg, listenerArg, options) {\n if (is.object(typeArg) && !is.array(typeArg)) {\n options = listenerArg;\n listenerArg = null;\n }\n\n const addRemove = method === 'on' ? 'add' : 'remove';\n const listeners = normalizeListeners(typeArg, listenerArg);\n\n for (let type in listeners) {\n if (type === 'wheel') {\n type = browser.wheelEvent;\n }\n\n for (const listener of listeners[type]) {\n // if it is an action event type\n if (isNonNativeEvent(type, this._actions)) {\n this.events[method](type, listener);\n } // delegated event\n else if (is.string(this.target)) {\n this._scopeEvents[`${addRemove}Delegate`](this.target, this._context, type, listener, options);\n } // remove listener from this Interactable's element\n else {\n this._scopeEvents[addRemove](this.target, type, listener, options);\n }\n }\n }\n\n return this;\n }\n /**\n * Binds a listener for an InteractEvent, pointerEvent or DOM event.\n *\n * @param {string | array | object} types The types of events to listen\n * for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * addEventListener\n * @return {Interactable} This Interactable\n */\n\n\n on(types, listener, options) {\n return this._onOff('on', types, listener, options);\n }\n /**\n * Removes an InteractEvent, pointerEvent or DOM event listener.\n *\n * @param {string | array | object} types The types of events that were\n * listened for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * removeEventListener\n * @return {Interactable} This Interactable\n */\n\n\n off(types, listener, options) {\n return this._onOff('off', types, listener, options);\n }\n /**\n * Reset the options of this Interactable\n *\n * @param {object} options The new settings to apply\n * @return {object} This Interactable\n */\n\n\n set(options) {\n const defaults = this._defaults;\n\n if (!is.object(options)) {\n options = {};\n }\n\n this.options = clone(defaults.base);\n\n for (const actionName_ in this._actions.methodDict) {\n const actionName = actionName_;\n const methodName = this._actions.methodDict[actionName];\n this.options[actionName] = {};\n this.setPerAction(actionName, extend(extend({}, defaults.perAction), defaults.actions[actionName]));\n this[methodName](options[actionName]);\n }\n\n for (const setting in options) {\n if (is.func(this[setting])) {\n this[setting](options[setting]);\n }\n }\n\n return this;\n }\n /**\n * Remove this interactable from the list of interactables and remove it's\n * action capabilities and event listeners\n */\n\n\n unset() {\n if (is.string(this.target)) {\n // remove delegated events\n for (const type in this._scopeEvents.delegatedEvents) {\n const delegated = this._scopeEvents.delegatedEvents[type];\n\n for (let i = delegated.length - 1; i >= 0; i--) {\n const {\n selector,\n context,\n listeners\n } = delegated[i];\n\n if (selector === this.target && context === this._context) {\n delegated.splice(i, 1);\n }\n\n for (let l = listeners.length - 1; l >= 0; l--) {\n this._scopeEvents.removeDelegate(this.target, this._context, type, listeners[l][0], listeners[l][1]);\n }\n }\n }\n } else {\n this._scopeEvents.remove(this.target, 'all');\n }\n }\n\n}\n//# sourceMappingURL=Interactable.js.map","import * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nexport class InteractableSet {\n // all set interactables\n constructor(scope) {\n this.list = [];\n this.selectorMap = {};\n this.scope = void 0;\n this.scope = scope;\n scope.addListeners({\n 'interactable:unset': ({\n interactable\n }) => {\n const {\n target,\n _context: context\n } = interactable;\n const targetMappings = is.string(target) ? this.selectorMap[target] : target[this.scope.id];\n const targetIndex = arr.findIndex(targetMappings, m => m.context === context);\n\n if (targetMappings[targetIndex]) {\n // Destroying mappingInfo's context and interactable\n targetMappings[targetIndex].context = null;\n targetMappings[targetIndex].interactable = null;\n }\n\n targetMappings.splice(targetIndex, 1);\n }\n });\n }\n\n new(target, options) {\n options = extend(options || {}, {\n actions: this.scope.actions\n });\n const interactable = new this.scope.Interactable(target, options, this.scope.document, this.scope.events);\n const mappingInfo = {\n context: interactable._context,\n interactable\n };\n this.scope.addDocument(interactable._doc);\n this.list.push(interactable);\n\n if (is.string(target)) {\n if (!this.selectorMap[target]) {\n this.selectorMap[target] = [];\n }\n\n this.selectorMap[target].push(mappingInfo);\n } else {\n if (!interactable.target[this.scope.id]) {\n Object.defineProperty(target, this.scope.id, {\n value: [],\n configurable: true\n });\n }\n\n target[this.scope.id].push(mappingInfo);\n }\n\n this.scope.fire('interactable:new', {\n target,\n options,\n interactable,\n win: this.scope._win\n });\n return interactable;\n }\n\n get(target, options) {\n const context = options && options.context || this.scope.document;\n const isSelector = is.string(target);\n const targetMappings = isSelector ? this.selectorMap[target] : target[this.scope.id];\n\n if (!targetMappings) {\n return null;\n }\n\n const found = arr.find(targetMappings, m => m.context === context && (isSelector || m.interactable.inContext(target)));\n return found && found.interactable;\n }\n\n forEachMatch(node, callback) {\n for (const interactable of this.list) {\n let ret;\n\n if ((is.string(interactable.target) // target is a selector and the element matches\n ? is.element(node) && domUtils.matchesSelector(node, interactable.target) : // target is the element\n node === interactable.target) && // the element is in context\n interactable.inContext(node)) {\n ret = callback(interactable);\n }\n\n if (ret !== undefined) {\n return ret;\n }\n }\n }\n\n}\n//# sourceMappingURL=InteractableSet.js.map","function pointerExtend(dest, source) {\n for (const prop in source) {\n const prefixedPropREs = pointerExtend.prefixedPropREs;\n let deprecated = false; // skip deprecated prefixed properties\n\n for (const vendor in prefixedPropREs) {\n if (prop.indexOf(vendor) === 0 && prefixedPropREs[vendor].test(prop)) {\n deprecated = true;\n break;\n }\n }\n\n if (!deprecated && typeof source[prop] !== 'function') {\n dest[prop] = source[prop];\n }\n }\n\n return dest;\n}\n\npointerExtend.prefixedPropREs = {\n webkit: /(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,\n moz: /(Pressure)$/\n};\nexport default pointerExtend;\n//# sourceMappingURL=pointerExtend.js.map","import browser from \"./browser.js\";\nimport dom from \"./domObjects.js\";\nimport * as domUtils from \"./domUtils.js\";\nimport hypot from \"./hypot.js\";\nimport is from \"./is.js\";\nimport pointerExtend from \"./pointerExtend.js\";\nexport function copyCoords(dest, src) {\n dest.page = dest.page || {};\n dest.page.x = src.page.x;\n dest.page.y = src.page.y;\n dest.client = dest.client || {};\n dest.client.x = src.client.x;\n dest.client.y = src.client.y;\n dest.timeStamp = src.timeStamp;\n}\nexport function setCoordDeltas(targetObj, prev, cur) {\n targetObj.page.x = cur.page.x - prev.page.x;\n targetObj.page.y = cur.page.y - prev.page.y;\n targetObj.client.x = cur.client.x - prev.client.x;\n targetObj.client.y = cur.client.y - prev.client.y;\n targetObj.timeStamp = cur.timeStamp - prev.timeStamp;\n}\nexport function setCoordVelocity(targetObj, delta) {\n const dt = Math.max(delta.timeStamp / 1000, 0.001);\n targetObj.page.x = delta.page.x / dt;\n targetObj.page.y = delta.page.y / dt;\n targetObj.client.x = delta.client.x / dt;\n targetObj.client.y = delta.client.y / dt;\n targetObj.timeStamp = dt;\n}\nexport function setZeroCoords(targetObj) {\n targetObj.page.x = 0;\n targetObj.page.y = 0;\n targetObj.client.x = 0;\n targetObj.client.y = 0;\n}\nexport function isNativePointer(pointer) {\n return pointer instanceof dom.Event || pointer instanceof dom.Touch;\n} // Get specified X/Y coords for mouse or event.touches[0]\n\nexport function getXY(type, pointer, xy) {\n xy = xy || {};\n type = type || 'page';\n xy.x = pointer[type + 'X'];\n xy.y = pointer[type + 'Y'];\n return xy;\n}\nexport function getPageXY(pointer, page) {\n page = page || {\n x: 0,\n y: 0\n }; // Opera Mobile handles the viewport and scrolling oddly\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n getXY('screen', pointer, page);\n page.x += window.scrollX;\n page.y += window.scrollY;\n } else {\n getXY('page', pointer, page);\n }\n\n return page;\n}\nexport function getClientXY(pointer, client) {\n client = client || {};\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n // Opera Mobile handles the viewport and scrolling oddly\n getXY('screen', pointer, client);\n } else {\n getXY('client', pointer, client);\n }\n\n return client;\n}\nexport function getPointerId(pointer) {\n return is.number(pointer.pointerId) ? pointer.pointerId : pointer.identifier;\n}\nexport function setCoords(dest, pointers, timeStamp) {\n const pointer = pointers.length > 1 ? pointerAverage(pointers) : pointers[0];\n getPageXY(pointer, dest.page);\n getClientXY(pointer, dest.client);\n dest.timeStamp = timeStamp;\n}\nexport function getTouchPair(event) {\n const touches = []; // array of touches is supplied\n\n if (is.array(event)) {\n touches[0] = event[0];\n touches[1] = event[1];\n } // an event\n else {\n if (event.type === 'touchend') {\n if (event.touches.length === 1) {\n touches[0] = event.touches[0];\n touches[1] = event.changedTouches[0];\n } else if (event.touches.length === 0) {\n touches[0] = event.changedTouches[0];\n touches[1] = event.changedTouches[1];\n }\n } else {\n touches[0] = event.touches[0];\n touches[1] = event.touches[1];\n }\n }\n\n return touches;\n}\nexport function pointerAverage(pointers) {\n const average = {\n pageX: 0,\n pageY: 0,\n clientX: 0,\n clientY: 0,\n screenX: 0,\n screenY: 0\n };\n\n for (const pointer of pointers) {\n for (const prop in average) {\n average[prop] += pointer[prop];\n }\n }\n\n for (const prop in average) {\n average[prop] /= pointers.length;\n }\n\n return average;\n}\nexport function touchBBox(event) {\n if (!event.length) {\n return null;\n }\n\n const touches = getTouchPair(event);\n const minX = Math.min(touches[0].pageX, touches[1].pageX);\n const minY = Math.min(touches[0].pageY, touches[1].pageY);\n const maxX = Math.max(touches[0].pageX, touches[1].pageX);\n const maxY = Math.max(touches[0].pageY, touches[1].pageY);\n return {\n x: minX,\n y: minY,\n left: minX,\n top: minY,\n right: maxX,\n bottom: maxY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nexport function touchDistance(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[0][sourceX] - touches[1][sourceX];\n const dy = touches[0][sourceY] - touches[1][sourceY];\n return hypot(dx, dy);\n}\nexport function touchAngle(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[1][sourceX] - touches[0][sourceX];\n const dy = touches[1][sourceY] - touches[0][sourceY];\n const angle = 180 * Math.atan2(dy, dx) / Math.PI;\n return angle;\n}\nexport function getPointerType(pointer) {\n return is.string(pointer.pointerType) ? pointer.pointerType : is.number(pointer.pointerType) ? [undefined, undefined, 'touch', 'pen', 'mouse'][pointer.pointerType] // if the PointerEvent API isn't available, then the \"pointer\" must\n // be either a MouseEvent, TouchEvent, or Touch object\n : /touch/.test(pointer.type) || pointer instanceof dom.Touch ? 'touch' : 'mouse';\n} // [ event.target, event.currentTarget ]\n\nexport function getEventTargets(event) {\n const path = is.func(event.composedPath) ? event.composedPath() : event.path;\n return [domUtils.getActualElement(path ? path[0] : event.target), domUtils.getActualElement(event.currentTarget)];\n}\nexport function newCoords() {\n return {\n page: {\n x: 0,\n y: 0\n },\n client: {\n x: 0,\n y: 0\n },\n timeStamp: 0\n };\n}\nexport function coordsToEvent(coords) {\n const event = {\n coords,\n\n get page() {\n return this.coords.page;\n },\n\n get client() {\n return this.coords.client;\n },\n\n get timeStamp() {\n return this.coords.timeStamp;\n },\n\n get pageX() {\n return this.coords.page.x;\n },\n\n get pageY() {\n return this.coords.page.y;\n },\n\n get clientX() {\n return this.coords.client.x;\n },\n\n get clientY() {\n return this.coords.client.y;\n },\n\n get pointerId() {\n return this.coords.pointerId;\n },\n\n get target() {\n return this.coords.target;\n },\n\n get type() {\n return this.coords.type;\n },\n\n get pointerType() {\n return this.coords.pointerType;\n },\n\n get buttons() {\n return this.coords.buttons;\n },\n\n preventDefault() {}\n\n };\n return event;\n}\nexport { pointerExtend };\n//# sourceMappingURL=pointerUtils.js.map","import { Scope } from \"./scope.js\";\nimport * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport pExtend from \"../utils/pointerExtend.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\n\nfunction install(scope) {\n const targets = [];\n const delegatedEvents = {};\n const documents = [];\n const eventsMethods = {\n add,\n remove,\n addDelegate,\n removeDelegate,\n delegateListener,\n delegateUseCapture,\n delegatedEvents,\n documents,\n targets,\n supportsOptions: false,\n supportsPassive: false\n }; // check if browser supports passive events and options arg\n\n scope.document.createElement('div').addEventListener('test', null, {\n get capture() {\n return eventsMethods.supportsOptions = true;\n },\n\n get passive() {\n return eventsMethods.supportsPassive = true;\n }\n\n });\n scope.events = eventsMethods;\n\n function add(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n let target = arr.find(targets, t => t.eventTarget === eventTarget);\n\n if (!target) {\n target = {\n eventTarget,\n events: {}\n };\n targets.push(target);\n }\n\n if (!target.events[type]) {\n target.events[type] = [];\n }\n\n if (eventTarget.addEventListener && !arr.contains(target.events[type], listener)) {\n eventTarget.addEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n target.events[type].push(listener);\n }\n }\n\n function remove(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const targetIndex = arr.findIndex(targets, t => t.eventTarget === eventTarget);\n const target = targets[targetIndex];\n\n if (!target || !target.events) {\n return;\n }\n\n if (type === 'all') {\n for (type in target.events) {\n if (target.events.hasOwnProperty(type)) {\n remove(eventTarget, type, 'all');\n }\n }\n\n return;\n }\n\n let typeIsEmpty = false;\n const typeListeners = target.events[type];\n\n if (typeListeners) {\n if (listener === 'all') {\n for (let i = typeListeners.length - 1; i >= 0; i--) {\n remove(eventTarget, type, typeListeners[i], options);\n }\n\n return;\n } else {\n for (let i = 0; i < typeListeners.length; i++) {\n if (typeListeners[i] === listener) {\n eventTarget.removeEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n typeListeners.splice(i, 1);\n\n if (typeListeners.length === 0) {\n delete target.events[type];\n typeIsEmpty = true;\n }\n\n break;\n }\n }\n }\n }\n\n if (typeIsEmpty && !Object.keys(target.events).length) {\n targets.splice(targetIndex, 1);\n }\n }\n\n function addDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n\n if (!delegatedEvents[type]) {\n delegatedEvents[type] = []; // add delegate listener functions\n\n for (const doc of documents) {\n add(doc, type, delegateListener);\n add(doc, type, delegateUseCapture, true);\n }\n }\n\n const delegates = delegatedEvents[type];\n let delegate = arr.find(delegates, d => d.selector === selector && d.context === context);\n\n if (!delegate) {\n delegate = {\n selector,\n context,\n listeners: []\n };\n delegates.push(delegate);\n }\n\n delegate.listeners.push([listener, options]);\n }\n\n function removeDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const delegates = delegatedEvents[type];\n let matchFound = false;\n let index;\n\n if (!delegates) {\n return;\n } // count from last index of delegated to 0\n\n\n for (index = delegates.length - 1; index >= 0; index--) {\n const cur = delegates[index]; // look for matching selector and context Node\n\n if (cur.selector === selector && cur.context === context) {\n const {\n listeners\n } = cur; // each item of the listeners array is an array: [function, capture, passive]\n\n for (let i = listeners.length - 1; i >= 0; i--) {\n const [fn, {\n capture,\n passive\n }] = listeners[i]; // check if the listener functions and capture and passive flags match\n\n if (fn === listener && capture === options.capture && passive === options.passive) {\n // remove the listener from the array of listeners\n listeners.splice(i, 1); // if all listeners for this target have been removed\n // remove the target from the delegates array\n\n if (!listeners.length) {\n delegates.splice(index, 1); // remove delegate function from context\n\n remove(context, type, delegateListener);\n remove(context, type, delegateUseCapture, true);\n } // only remove one listener\n\n\n matchFound = true;\n break;\n }\n }\n\n if (matchFound) {\n break;\n }\n }\n }\n } // bound to the interactable context when a DOM event\n // listener is added to a selector interactable\n\n\n function delegateListener(event, optionalArg) {\n const options = getOptions(optionalArg);\n const fakeEvent = new FakeEvent(event);\n const delegates = delegatedEvents[event.type];\n const [eventTarget] = pointerUtils.getEventTargets(event);\n let element = eventTarget; // climb up document tree looking for selector matches\n\n while (is.element(element)) {\n for (let i = 0; i < delegates.length; i++) {\n const cur = delegates[i];\n const {\n selector,\n context\n } = cur;\n\n if (domUtils.matchesSelector(element, selector) && domUtils.nodeContains(context, eventTarget) && domUtils.nodeContains(context, element)) {\n const {\n listeners\n } = cur;\n fakeEvent.currentTarget = element;\n\n for (const [fn, {\n capture,\n passive\n }] of listeners) {\n if (capture === options.capture && passive === options.passive) {\n fn(fakeEvent);\n }\n }\n }\n }\n\n element = domUtils.parentNode(element);\n }\n }\n\n function delegateUseCapture(event) {\n return delegateListener.call(this, event, true);\n } // for type inferrence\n\n\n return eventsMethods;\n}\n\nclass FakeEvent {\n constructor(originalEvent) {\n this.currentTarget = void 0;\n this.originalEvent = void 0;\n this.type = void 0;\n this.originalEvent = originalEvent; // duplicate the event so that currentTarget can be changed\n\n pExtend(this, originalEvent);\n }\n\n preventOriginalDefault() {\n this.originalEvent.preventDefault();\n }\n\n stopPropagation() {\n this.originalEvent.stopPropagation();\n }\n\n stopImmediatePropagation() {\n this.originalEvent.stopImmediatePropagation();\n }\n\n}\n\nfunction getOptions(param) {\n if (!is.object(param)) {\n return {\n capture: !!param,\n passive: false\n };\n }\n\n const options = extend({}, param);\n options.capture = !!param.capture;\n options.passive = !!param.passive;\n return options;\n}\n\nexport default {\n id: 'events',\n install\n};\n//# sourceMappingURL=events.js.map","import { window } from \"./window.js\";\nexport function warnOnce(method, message) {\n let warned = false;\n return function () {\n if (!warned) {\n window.console.warn(message);\n warned = true;\n }\n\n return method.apply(this, arguments);\n };\n}\nexport function copyAction(dest, src) {\n dest.name = src.name;\n dest.axis = src.axis;\n dest.edges = src.edges;\n return dest;\n}\n//# sourceMappingURL=misc.js.map","/** @module interact */\nimport browser from \"../utils/browser.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport { warnOnce } from \"../utils/misc.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\nexport function createInteractStatic(scope) {\n /**\n * ```js\n * interact('#draggable').draggable(true)\n *\n * var rectables = interact('rect')\n * rectables\n * .gesturable(true)\n * .on('gesturemove', function (event) {\n * // ...\n * })\n * ```\n *\n * The methods of this variable can be used to set elements as interactables\n * and also to change various default settings.\n *\n * Calling it as a function and passing an element or a valid CSS selector\n * string returns an Interactable object which has various methods to configure\n * it.\n *\n * @global\n *\n * @param {Element | string} target The HTML or SVG Element to interact with\n * or CSS selector\n * @return {Interactable}\n */\n const interact = (target, options) => {\n let interactable = scope.interactables.get(target, options);\n\n if (!interactable) {\n interactable = scope.interactables.new(target, options);\n interactable.events.global = interact.globalEvents;\n }\n\n return interactable;\n }; // expose the functions used to calculate multi-touch properties\n\n\n interact.getPointerAverage = pointerUtils.pointerAverage;\n interact.getTouchBBox = pointerUtils.touchBBox;\n interact.getTouchDistance = pointerUtils.touchDistance;\n interact.getTouchAngle = pointerUtils.touchAngle;\n interact.getElementRect = domUtils.getElementRect;\n interact.getElementClientRect = domUtils.getElementClientRect;\n interact.matchesSelector = domUtils.matchesSelector;\n interact.closest = domUtils.closest;\n interact.globalEvents = {}; // eslint-disable-next-line no-undef\n\n interact.version = \"1.10.2\";\n interact.scope = scope;\n /**\n * Use a plugin\n *\n * @alias module:interact.use\n *\n */\n\n interact.use = function (plugin, options) {\n this.scope.usePlugin(plugin, options);\n return this;\n };\n /**\n * Check if an element or selector has been set with the {@link interact}\n * function\n *\n * @alias module:interact.isSet\n *\n * @param {Target} target The Element or string being searched for\n * @param {object} options\n * @return {boolean} Indicates if the element or CSS selector was previously\n * passed to interact\n */\n\n\n interact.isSet = function (target, options) {\n return !!this.scope.interactables.get(target, options && options.context);\n };\n /**\n * @deprecated\n * Add a global listener for an InteractEvent or adds a DOM event to `document`\n *\n * @alias module:interact.on\n *\n * @param {string | array | object} type The types of events to listen for\n * @param {function} listener The function event (s)\n * @param {object | boolean} [options] object or useCapture flag for\n * addEventListener\n * @return {object} interact\n */\n\n\n interact.on = warnOnce(function on(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.on(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.on(prop, type[prop], listener);\n }\n\n return this;\n } // if it is an InteractEvent type, add listener to globalEvents\n\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n // if this type of event was never bound\n if (!this.globalEvents[type]) {\n this.globalEvents[type] = [listener];\n } else {\n this.globalEvents[type].push(listener);\n }\n } // If non InteractEvent type, addEventListener to document\n else {\n this.scope.events.add(this.scope.document, type, listener, {\n options\n });\n }\n\n return this;\n }, 'The interact.on() method is being deprecated');\n /**\n * @deprecated\n * Removes a global InteractEvent listener or DOM event from `document`\n *\n * @alias module:interact.off\n *\n * @param {string | array | object} type The types of events that were listened\n * for\n * @param {function} listener The listener function to be removed\n * @param {object | boolean} options [options] object or useCapture flag for\n * removeEventListener\n * @return {object} interact\n */\n\n interact.off = warnOnce(function off(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.off(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.off(prop, type[prop], listener);\n }\n\n return this;\n }\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n let index;\n\n if (type in this.globalEvents && (index = this.globalEvents[type].indexOf(listener)) !== -1) {\n this.globalEvents[type].splice(index, 1);\n }\n } else {\n this.scope.events.remove(this.scope.document, type, listener, options);\n }\n\n return this;\n }, 'The interact.off() method is being deprecated');\n\n interact.debug = function () {\n return this.scope;\n };\n /**\n * @alias module:interact.supportsTouch\n *\n * @return {boolean} Whether or not the browser supports touch input\n */\n\n\n interact.supportsTouch = function () {\n return browser.supportsTouch;\n };\n /**\n * @alias module:interact.supportsPointerEvent\n *\n * @return {boolean} Whether or not the browser supports PointerEvents\n */\n\n\n interact.supportsPointerEvent = function () {\n return browser.supportsPointerEvent;\n };\n /**\n * Cancels all interactions (end events are not fired)\n *\n * @alias module:interact.stop\n *\n * @return {object} interact\n */\n\n\n interact.stop = function () {\n for (const interaction of this.scope.interactions.list) {\n interaction.stop();\n }\n\n return this;\n };\n /**\n * Returns or sets the distance the pointer must be moved before an action\n * sequence occurs. This also affects tolerance for tap events.\n *\n * @alias module:interact.pointerMoveTolerance\n *\n * @param {number} [newValue] The movement from the start position must be greater than this value\n * @return {interact | number}\n */\n\n\n interact.pointerMoveTolerance = function (newValue) {\n if (is.number(newValue)) {\n this.scope.interactions.pointerMoveTolerance = newValue;\n return this;\n }\n\n return this.scope.interactions.pointerMoveTolerance;\n };\n\n interact.addDocument = function (doc, options) {\n this.scope.addDocument(doc, options);\n };\n\n interact.removeDocument = function (doc) {\n this.scope.removeDocument(doc);\n };\n\n return interact;\n}\n//# sourceMappingURL=interactStatic.js.map","export class PointerInfo {\n constructor(id, pointer, event, downTime, downTarget) {\n this.id = void 0;\n this.pointer = void 0;\n this.event = void 0;\n this.downTime = void 0;\n this.downTarget = void 0;\n this.id = id;\n this.pointer = pointer;\n this.event = event;\n this.downTime = downTime;\n this.downTarget = downTarget;\n }\n\n}\n//# sourceMappingURL=PointerInfo.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { warnOnce, copyAction } from \"../utils/misc.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { PointerInfo } from \"./PointerInfo.js\";\nexport let _ProxyValues;\n\n(function (_ProxyValues) {\n _ProxyValues[\"interactable\"] = \"\";\n _ProxyValues[\"element\"] = \"\";\n _ProxyValues[\"prepared\"] = \"\";\n _ProxyValues[\"pointerIsDown\"] = \"\";\n _ProxyValues[\"pointerWasMoved\"] = \"\";\n _ProxyValues[\"_proxy\"] = \"\";\n})(_ProxyValues || (_ProxyValues = {}));\n\nexport let _ProxyMethods;\n\n(function (_ProxyMethods) {\n _ProxyMethods[\"start\"] = \"\";\n _ProxyMethods[\"move\"] = \"\";\n _ProxyMethods[\"end\"] = \"\";\n _ProxyMethods[\"stop\"] = \"\";\n _ProxyMethods[\"interacting\"] = \"\";\n})(_ProxyMethods || (_ProxyMethods = {}));\n\nlet idCounter = 0;\nexport class Interaction {\n // current interactable being interacted with\n // the target element of the interactable\n // action that's ready to be fired on next move event\n // keep track of added pointers\n // pointerdown/mousedown/touchstart event\n // previous action event\n\n /** @internal */\n get pointerMoveTolerance() {\n return 1;\n }\n /**\n * @alias Interaction.prototype.move\n */\n\n\n /** */\n constructor({\n pointerType,\n scopeFire\n }) {\n this.interactable = null;\n this.element = null;\n this.rect = void 0;\n this._rects = void 0;\n this.edges = void 0;\n this._scopeFire = void 0;\n this.prepared = {\n name: null,\n axis: null,\n edges: null\n };\n this.pointerType = void 0;\n this.pointers = [];\n this.downEvent = null;\n this.downPointer = {};\n this._latestPointer = {\n pointer: null,\n event: null,\n eventTarget: null\n };\n this.prevEvent = null;\n this.pointerIsDown = false;\n this.pointerWasMoved = false;\n this._interacting = false;\n this._ending = false;\n this._stopped = true;\n this._proxy = null;\n this.simulation = null;\n this.doMove = warnOnce(function (signalArg) {\n this.move(signalArg);\n }, 'The interaction.doMove() method has been renamed to interaction.move()');\n this.coords = {\n // Starting InteractEvent pointer coordinates\n start: pointerUtils.newCoords(),\n // Previous native pointer move event coordinates\n prev: pointerUtils.newCoords(),\n // current native pointer move event coordinates\n cur: pointerUtils.newCoords(),\n // Change in coordinates and time of the pointer\n delta: pointerUtils.newCoords(),\n // pointer velocity\n velocity: pointerUtils.newCoords()\n };\n this._id = idCounter++;\n this._scopeFire = scopeFire;\n this.pointerType = pointerType;\n const that = this;\n this._proxy = {};\n\n for (const key in _ProxyValues) {\n Object.defineProperty(this._proxy, key, {\n get() {\n return that[key];\n }\n\n });\n }\n\n for (const key in _ProxyMethods) {\n Object.defineProperty(this._proxy, key, {\n value: (...args) => that[key](...args)\n });\n }\n\n this._scopeFire('interactions:new', {\n interaction: this\n });\n }\n\n pointerDown(pointer, event, eventTarget) {\n const pointerIndex = this.updatePointer(pointer, event, eventTarget, true);\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:down', {\n pointer,\n event,\n eventTarget,\n pointerIndex,\n pointerInfo,\n type: 'down',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable({\n * // disable the default drag start by down->move\n * manualStart: true\n * })\n * // start dragging after the user holds the pointer down\n * .on('hold', function (event) {\n * var interaction = event.interaction\n *\n * if (!interaction.interacting()) {\n * interaction.start({ name: 'drag' },\n * event.interactable,\n * event.currentTarget)\n * }\n * })\n * ```\n *\n * Start an action with the given Interactable and Element as tartgets. The\n * action must be enabled for the target Interactable and an appropriate\n * number of pointers must be held down - 1 for drag/resize, 2 for gesture.\n *\n * Use it with `interactable.able({ manualStart: false })` to always\n * [start actions manually](https://github.com/taye/interact.js/issues/114)\n *\n * @param {object} action The action to be performed - drag, resize, etc.\n * @param {Interactable} target The Interactable to target\n * @param {Element} element The DOM Element to target\n * @return {Boolean} Whether the interaction was successfully started\n */\n\n\n start(action, interactable, element) {\n if (this.interacting() || !this.pointerIsDown || this.pointers.length < (action.name === 'gesture' ? 2 : 1) || !interactable.options[action.name].enabled) {\n return false;\n }\n\n copyAction(this.prepared, action);\n this.interactable = interactable;\n this.element = element;\n this.rect = interactable.getRect(element);\n this.edges = this.prepared.edges ? extend({}, this.prepared.edges) : {\n left: true,\n right: true,\n top: true,\n bottom: true\n };\n this._stopped = false;\n this._interacting = this._doPhase({\n interaction: this,\n event: this.downEvent,\n phase: 'start'\n }) && !this._stopped;\n return this._interacting;\n }\n\n pointerMove(pointer, event, eventTarget) {\n if (!this.simulation && !(this.modification && this.modification.endResult)) {\n this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const duplicateMove = 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;\n let dx;\n let dy; // register movement greater than pointerMoveTolerance\n\n if (this.pointerIsDown && !this.pointerWasMoved) {\n dx = this.coords.cur.client.x - this.coords.start.client.x;\n dy = this.coords.cur.client.y - this.coords.start.client.y;\n this.pointerWasMoved = hypot(dx, dy) > this.pointerMoveTolerance;\n }\n\n const pointerIndex = this.getPointerIndex(pointer);\n const signalArg = {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n type: 'move',\n eventTarget,\n dx,\n dy,\n duplicate: duplicateMove,\n interaction: this\n };\n\n if (!duplicateMove) {\n // set pointer coordinate, time changes and velocity\n pointerUtils.setCoordVelocity(this.coords.velocity, this.coords.delta);\n }\n\n this._scopeFire('interactions:move', signalArg);\n\n if (!duplicateMove && !this.simulation) {\n // if interacting, fire an 'action-move' signal etc\n if (this.interacting()) {\n signalArg.type = null;\n this.move(signalArg);\n }\n\n if (this.pointerWasMoved) {\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n }\n }\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('dragmove', function (event) {\n * if (someCondition) {\n * // change the snap settings\n * event.interactable.draggable({ snap: { targets: [] }})\n * // fire another move event with re-calculated snap\n * event.interaction.move()\n * }\n * })\n * ```\n *\n * Force a move of the current action at the same coordinates. Useful if\n * snap/restrict has been changed and you want a movement with the new\n * settings.\n */\n\n\n move(signalArg) {\n if (!signalArg || !signalArg.event) {\n pointerUtils.setZeroCoords(this.coords.delta);\n }\n\n signalArg = extend({\n pointer: this._latestPointer.pointer,\n event: this._latestPointer.event,\n eventTarget: this._latestPointer.eventTarget,\n interaction: this\n }, signalArg || {});\n signalArg.phase = 'move';\n\n this._doPhase(signalArg);\n } // End interact move events and stop auto-scroll unless simulation is running\n\n\n pointerUp(pointer, event, eventTarget, curEventTarget) {\n let pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n pointerIndex = this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const type = /cancel$/i.test(event.type) ? 'cancel' : 'up';\n\n this._scopeFire(`interactions:${type}`, {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n eventTarget,\n type: type,\n curEventTarget,\n interaction: this\n });\n\n if (!this.simulation) {\n this.end(event);\n }\n\n this.removePointer(pointer, event);\n }\n\n documentBlur(event) {\n this.end(event);\n\n this._scopeFire('interactions:blur', {\n event,\n type: 'blur',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('move', function (event) {\n * if (event.pageX > 1000) {\n * // end the current action\n * event.interaction.end()\n * // stop all further listeners from being called\n * event.stopImmediatePropagation()\n * }\n * })\n * ```\n *\n * @param {PointerEvent} [event]\n */\n\n\n end(event) {\n this._ending = true;\n event = event || this._latestPointer.event;\n let endPhaseResult;\n\n if (this.interacting()) {\n endPhaseResult = this._doPhase({\n event,\n interaction: this,\n phase: 'end'\n });\n }\n\n this._ending = false;\n\n if (endPhaseResult === true) {\n this.stop();\n }\n }\n\n currentAction() {\n return this._interacting ? this.prepared.name : null;\n }\n\n interacting() {\n return this._interacting;\n }\n /** */\n\n\n stop() {\n this._scopeFire('interactions:stop', {\n interaction: this\n });\n\n this.interactable = this.element = null;\n this._interacting = false;\n this._stopped = true;\n this.prepared.name = this.prevEvent = null;\n }\n\n getPointerIndex(pointer) {\n const pointerId = pointerUtils.getPointerId(pointer); // mouse and pen interactions may have only one pointer\n\n return this.pointerType === 'mouse' || this.pointerType === 'pen' ? this.pointers.length - 1 : arr.findIndex(this.pointers, curPointer => curPointer.id === pointerId);\n }\n\n getPointerInfo(pointer) {\n return this.pointers[this.getPointerIndex(pointer)];\n }\n\n updatePointer(pointer, event, eventTarget, down) {\n const id = pointerUtils.getPointerId(pointer);\n let pointerIndex = this.getPointerIndex(pointer);\n let pointerInfo = this.pointers[pointerIndex];\n down = down === false ? false : down || /(down|start)$/i.test(event.type);\n\n if (!pointerInfo) {\n pointerInfo = new PointerInfo(id, pointer, event, null, null);\n pointerIndex = this.pointers.length;\n this.pointers.push(pointerInfo);\n } else {\n pointerInfo.pointer = pointer;\n }\n\n pointerUtils.setCoords(this.coords.cur, this.pointers.map(p => p.pointer), this._now());\n pointerUtils.setCoordDeltas(this.coords.delta, this.coords.prev, this.coords.cur);\n\n if (down) {\n this.pointerIsDown = true;\n pointerInfo.downTime = this.coords.cur.timeStamp;\n pointerInfo.downTarget = eventTarget;\n pointerUtils.pointerExtend(this.downPointer, pointer);\n\n if (!this.interacting()) {\n pointerUtils.copyCoords(this.coords.start, this.coords.cur);\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n this.downEvent = event;\n this.pointerWasMoved = false;\n }\n }\n\n this._updateLatestPointer(pointer, event, eventTarget);\n\n this._scopeFire('interactions:update-pointer', {\n pointer,\n event,\n eventTarget,\n down,\n pointerInfo,\n pointerIndex,\n interaction: this\n });\n\n return pointerIndex;\n }\n\n removePointer(pointer, event) {\n const pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n return;\n }\n\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:remove-pointer', {\n pointer,\n event,\n eventTarget: null,\n pointerIndex,\n pointerInfo,\n interaction: this\n });\n\n this.pointers.splice(pointerIndex, 1);\n this.pointerIsDown = false;\n }\n\n _updateLatestPointer(pointer, event, eventTarget) {\n this._latestPointer.pointer = pointer;\n this._latestPointer.event = event;\n this._latestPointer.eventTarget = eventTarget;\n }\n\n destroy() {\n this._latestPointer.pointer = null;\n this._latestPointer.event = null;\n this._latestPointer.eventTarget = null;\n }\n\n _createPreparedEvent(event, phase, preEnd, type) {\n return new InteractEvent(this, event, this.prepared.name, phase, this.element, preEnd, type);\n }\n\n _fireEvent(iEvent) {\n this.interactable.fire(iEvent);\n\n if (!this.prevEvent || iEvent.timeStamp >= this.prevEvent.timeStamp) {\n this.prevEvent = iEvent;\n }\n }\n\n _doPhase(signalArg) {\n const {\n event,\n phase,\n preEnd,\n type\n } = signalArg;\n const {\n rect\n } = this;\n\n if (rect && phase === 'move') {\n // update the rect changes due to pointer move\n rectUtils.addEdges(this.edges, rect, this.coords.delta[this.interactable.options.deltaSource]);\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n const beforeResult = this._scopeFire(`interactions:before-action-${phase}`, signalArg);\n\n if (beforeResult === false) {\n return false;\n }\n\n const iEvent = signalArg.iEvent = this._createPreparedEvent(event, phase, preEnd, type);\n\n this._scopeFire(`interactions:action-${phase}`, signalArg);\n\n if (phase === 'start') {\n this.prevEvent = iEvent;\n }\n\n this._fireEvent(iEvent);\n\n this._scopeFire(`interactions:after-action-${phase}`, signalArg);\n\n return true;\n }\n\n _now() {\n return Date.now();\n }\n\n}\nexport default Interaction;\nexport { PointerInfo };\n//# sourceMappingURL=Interaction.js.map","import { Interactable } from \"./Interactable.js\";\nimport { matchesSelector, nodeContains } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport { getWindow } from \"../utils/window.js\";\n\nfunction preventDefault(newValue) {\n if (/^(always|never|auto)$/.test(newValue)) {\n this.options.preventDefault = newValue;\n return this;\n }\n\n if (is.bool(newValue)) {\n this.options.preventDefault = newValue ? 'always' : 'never';\n return this;\n }\n\n return this.options.preventDefault;\n}\n\nfunction checkAndPreventDefault(interactable, scope, event) {\n const setting = interactable.options.preventDefault;\n\n if (setting === 'never') {\n return;\n }\n\n if (setting === 'always') {\n event.preventDefault();\n return;\n } // setting === 'auto'\n // if the browser supports passive event listeners and isn't running on iOS,\n // don't preventDefault of touch{start,move} events. CSS touch-action and\n // user-select should be used instead of calling event.preventDefault().\n\n\n if (scope.events.supportsPassive && /^touch(start|move)$/.test(event.type)) {\n const doc = getWindow(event.target).document;\n const docOptions = scope.getDocOptions(doc);\n\n if (!(docOptions && docOptions.events) || docOptions.events.passive !== false) {\n return;\n }\n } // don't preventDefault of pointerdown events\n\n\n if (/^(mouse|pointer|touch)*(down|start)/i.test(event.type)) {\n return;\n } // don't preventDefault on editable elements\n\n\n if (is.element(event.target) && matchesSelector(event.target, 'input,select,textarea,[contenteditable=true],[contenteditable=true] *')) {\n return;\n }\n\n event.preventDefault();\n}\n\nfunction onInteractionEvent({\n interaction,\n event\n}) {\n if (interaction.interactable) {\n interaction.interactable.checkAndPreventDefault(event);\n }\n}\n\nexport function install(scope) {\n /** @lends Interactable */\n const {\n Interactable\n } = scope;\n /**\n * Returns or sets whether to prevent the browser's default behaviour in\n * response to pointer events. Can be set to:\n * - `'always'` to always prevent\n * - `'never'` to never prevent\n * - `'auto'` to let interact.js try to determine what would be best\n *\n * @param {string} [newValue] `'always'`, `'never'` or `'auto'`\n * @return {string | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.preventDefault = preventDefault;\n\n Interactable.prototype.checkAndPreventDefault = function (event) {\n return checkAndPreventDefault(this, scope, event);\n }; // prevent native HTML5 drag on interact.js target elements\n\n\n scope.interactions.docEvents.push({\n type: 'dragstart',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n if (interaction.element && (interaction.element === event.target || nodeContains(interaction.element, event.target))) {\n interaction.interactable.checkAndPreventDefault(event);\n return;\n }\n }\n }\n\n });\n}\nexport default {\n id: 'core/interactablePreventDefault',\n install,\n listeners: ['down', 'move', 'up', 'cancel'].reduce((acc, eventType) => {\n acc[`interactions:${eventType}`] = onInteractionEvent;\n return acc;\n }, {})\n};\n//# sourceMappingURL=interactablePreventDefault.js.map","import * as dom from \"../utils/domUtils.js\";\nconst finder = {\n methodOrder: ['simulationResume', 'mouseOrPen', 'hasPointer', 'idle'],\n\n search(details) {\n for (const method of finder.methodOrder) {\n const interaction = finder[method](details);\n\n if (interaction) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // try to resume simulation with a new pointer\n simulationResume({\n pointerType,\n eventType,\n eventTarget,\n scope\n }) {\n if (!/down|start/i.test(eventType)) {\n return null;\n }\n\n for (const interaction of scope.interactions.list) {\n let element = eventTarget;\n\n if (interaction.simulation && interaction.simulation.allowResume && interaction.pointerType === pointerType) {\n while (element) {\n // if the element is the interaction element\n if (element === interaction.element) {\n return interaction;\n }\n\n element = dom.parentNode(element);\n }\n }\n }\n\n return null;\n },\n\n // if it's a mouse or pen interaction\n mouseOrPen({\n pointerId,\n pointerType,\n eventType,\n scope\n }) {\n if (pointerType !== 'mouse' && pointerType !== 'pen') {\n return null;\n }\n\n let firstNonActive;\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType) {\n // if it's a down event, skip interactions with running simulations\n if (interaction.simulation && !hasPointerId(interaction, pointerId)) {\n continue;\n } // if the interaction is active, return it immediately\n\n\n if (interaction.interacting()) {\n return interaction;\n } // otherwise save it and look for another active interaction\n else if (!firstNonActive) {\n firstNonActive = interaction;\n }\n }\n } // if no active mouse interaction was found use the first inactive mouse\n // interaction\n\n\n if (firstNonActive) {\n return firstNonActive;\n } // find any mouse or pen interaction.\n // ignore the interaction if the eventType is a *down, and a simulation\n // is active\n\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType && !(/down/i.test(eventType) && interaction.simulation)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get interaction that has this pointer\n hasPointer({\n pointerId,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n if (hasPointerId(interaction, pointerId)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get first idle interaction with a matching pointerType\n idle({\n pointerType,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n // if there's already a pointer held down\n if (interaction.pointers.length === 1) {\n const target = interaction.interactable; // don't add this pointer if there is a target interactable and it\n // isn't gesturable\n\n if (target && !(target.options.gesture && target.options.gesture.enabled)) {\n continue;\n }\n } // maximum of 2 pointers per interaction\n else if (interaction.pointers.length >= 2) {\n continue;\n }\n\n if (!interaction.interacting() && pointerType === interaction.pointerType) {\n return interaction;\n }\n }\n\n return null;\n }\n\n};\n\nfunction hasPointerId(interaction, pointerId) {\n return interaction.pointers.some(({\n id\n }) => id === pointerId);\n}\n\nexport default finder;\n//# sourceMappingURL=interactionFinder.js.map","import { Scope, SignalArgs } from \"./scope.js\";\nimport browser from \"../utils/browser.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { nodeContains } from \"../utils/domUtils.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport InteractionBase from \"./Interaction.js\";\nimport interactablePreventDefault from \"./interactablePreventDefault.js\";\nimport finder from \"./interactionFinder.js\";\nconst methodNames = ['pointerDown', 'pointerMove', 'pointerUp', 'updatePointer', 'removePointer', 'windowBlur'];\n\nfunction install(scope) {\n const listeners = {};\n\n for (const method of methodNames) {\n listeners[method] = doOnInteractions(method, scope);\n }\n\n const pEventTypes = browser.pEventTypes;\n let docEvents;\n\n if (domObjects.PointerEvent) {\n docEvents = [{\n type: pEventTypes.down,\n listener: releasePointersOnRemovedEls\n }, {\n type: pEventTypes.down,\n listener: listeners.pointerDown\n }, {\n type: pEventTypes.move,\n listener: listeners.pointerMove\n }, {\n type: pEventTypes.up,\n listener: listeners.pointerUp\n }, {\n type: pEventTypes.cancel,\n listener: listeners.pointerUp\n }];\n } else {\n docEvents = [{\n type: 'mousedown',\n listener: listeners.pointerDown\n }, {\n type: 'mousemove',\n listener: listeners.pointerMove\n }, {\n type: 'mouseup',\n listener: listeners.pointerUp\n }, {\n type: 'touchstart',\n listener: releasePointersOnRemovedEls\n }, {\n type: 'touchstart',\n listener: listeners.pointerDown\n }, {\n type: 'touchmove',\n listener: listeners.pointerMove\n }, {\n type: 'touchend',\n listener: listeners.pointerUp\n }, {\n type: 'touchcancel',\n listener: listeners.pointerUp\n }];\n }\n\n docEvents.push({\n type: 'blur',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n interaction.documentBlur(event);\n }\n }\n\n }); // for ignoring browser's simulated mouse events\n\n scope.prevTouchTime = 0;\n scope.Interaction = class extends InteractionBase {\n get pointerMoveTolerance() {\n return scope.interactions.pointerMoveTolerance;\n }\n\n set pointerMoveTolerance(value) {\n scope.interactions.pointerMoveTolerance = value;\n }\n\n _now() {\n return scope.now();\n }\n\n };\n scope.interactions = {\n // all active and idle interactions\n list: [],\n\n new(options) {\n options.scopeFire = (name, arg) => scope.fire(name, arg);\n\n const interaction = new scope.Interaction(options);\n scope.interactions.list.push(interaction);\n return interaction;\n },\n\n listeners,\n docEvents,\n pointerMoveTolerance: 1\n };\n\n function releasePointersOnRemovedEls() {\n // for all inactive touch interactions with pointers down\n for (const interaction of scope.interactions.list) {\n if (!interaction.pointerIsDown || interaction.pointerType !== 'touch' || interaction._interacting) {\n continue;\n } // if a pointer is down on an element that is no longer in the DOM tree\n\n\n for (const pointer of interaction.pointers) {\n if (!scope.documents.some(({\n doc\n }) => nodeContains(doc, pointer.downTarget))) {\n // remove the pointer from the interaction\n interaction.removePointer(pointer.pointer, pointer.event);\n }\n }\n }\n }\n\n scope.usePlugin(interactablePreventDefault);\n}\n\nfunction doOnInteractions(method, scope) {\n return function (event) {\n const interactions = scope.interactions.list;\n const pointerType = pointerUtils.getPointerType(event);\n const [eventTarget, curEventTarget] = pointerUtils.getEventTargets(event);\n const matches = []; // [ [pointer, interaction], ...]\n\n if (/^touch/.test(event.type)) {\n scope.prevTouchTime = scope.now(); // @ts-expect-error\n\n for (const changedTouch of event.changedTouches) {\n const pointer = changedTouch;\n const pointerId = pointerUtils.getPointerId(pointer);\n const searchDetails = {\n pointer,\n pointerId,\n pointerType,\n eventType: event.type,\n eventTarget,\n curEventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } else {\n let invalidPointer = false;\n\n if (!browser.supportsPointerEvent && /mouse/.test(event.type)) {\n // ignore mouse events while touch interactions are active\n for (let i = 0; i < interactions.length && !invalidPointer; i++) {\n invalidPointer = interactions[i].pointerType !== 'mouse' && interactions[i].pointerIsDown;\n } // try to ignore mouse events that are simulated by the browser\n // after a touch event\n\n\n invalidPointer = invalidPointer || scope.now() - scope.prevTouchTime < 500 || // on iOS and Firefox Mobile, MouseEvent.timeStamp is zero if simulated\n event.timeStamp === 0;\n }\n\n if (!invalidPointer) {\n const searchDetails = {\n pointer: event,\n pointerId: pointerUtils.getPointerId(event),\n pointerType,\n eventType: event.type,\n curEventTarget,\n eventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } // eslint-disable-next-line no-shadow\n\n\n for (const [pointer, eventTarget, curEventTarget, interaction] of matches) {\n interaction[method](pointer, event, eventTarget, curEventTarget);\n }\n };\n}\n\nfunction getInteraction(searchDetails) {\n const {\n pointerType,\n scope\n } = searchDetails;\n const foundInteraction = finder.search(searchDetails);\n const signalArg = {\n interaction: foundInteraction,\n searchDetails\n };\n scope.fire('interactions:find', signalArg);\n return signalArg.interaction || scope.interactions.new({\n pointerType\n });\n}\n\nfunction onDocSignal({\n doc,\n scope,\n options\n}, eventMethodName) {\n const {\n interactions: {\n docEvents\n },\n events\n } = scope;\n const eventMethod = events[eventMethodName];\n\n if (scope.browser.isIOS && !options.events) {\n options.events = {\n passive: false\n };\n } // delegate event listener\n\n\n for (const eventType in events.delegatedEvents) {\n eventMethod(doc, eventType, events.delegateListener);\n eventMethod(doc, eventType, events.delegateUseCapture, true);\n }\n\n const eventOptions = options && options.events;\n\n for (const {\n type,\n listener\n } of docEvents) {\n eventMethod(doc, type, listener, eventOptions);\n }\n}\n\nconst interactions = {\n id: 'core/interactions',\n install,\n listeners: {\n 'scope:add-document': arg => onDocSignal(arg, 'add'),\n 'scope:remove-document': arg => onDocSignal(arg, 'remove'),\n 'interactable:unset': ({\n interactable\n }, scope) => {\n // Stop and destroy related interactions when an Interactable is unset\n for (let i = scope.interactions.list.length - 1; i >= 0; i--) {\n const interaction = scope.interactions.list[i];\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interaction.stop();\n scope.fire('interactions:destroy', {\n interaction\n });\n interaction.destroy();\n\n if (scope.interactions.list.length > 2) {\n scope.interactions.list.splice(i, 1);\n }\n }\n }\n },\n onDocSignal,\n doOnInteractions,\n methodNames\n};\nexport default interactions;\n//# sourceMappingURL=interactions.js.map","import browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport extend from \"../utils/extend.js\";\nimport raf from \"../utils/raf.js\";\nimport * as win from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { Interactable as InteractableBase } from \"./Interactable.js\";\nimport { InteractableSet } from \"./InteractableSet.js\";\nimport { defaults } from \"./defaultOptions.js\";\nimport events from \"./events.js\";\nimport { createInteractStatic } from \"./interactStatic.js\";\nimport interactions from \"./interactions.js\";\nexport class Scope {\n // main window\n // main document\n // main window\n // all documents being listened to\n constructor() {\n this.id = `__interact_scope_${Math.floor(Math.random() * 100)}`;\n this.isInitialized = false;\n this.listenerMaps = [];\n this.browser = browser;\n this.defaults = clone(defaults);\n this.Eventable = Eventable;\n this.actions = {\n map: {},\n phases: {\n start: true,\n move: true,\n end: true\n },\n methodDict: {},\n phaselessTypes: {}\n };\n this.interactStatic = createInteractStatic(this);\n this.InteractEvent = InteractEvent;\n this.Interactable = void 0;\n this.interactables = new InteractableSet(this);\n this._win = void 0;\n this.document = void 0;\n this.window = void 0;\n this.documents = [];\n this._plugins = {\n list: [],\n map: {}\n };\n\n this.onWindowUnload = event => this.removeDocument(event.target);\n\n const scope = this;\n this.Interactable = class extends InteractableBase {\n get _defaults() {\n return scope.defaults;\n }\n\n set(options) {\n super.set(options);\n scope.fire('interactable:set', {\n options,\n interactable: this\n });\n return this;\n }\n\n unset() {\n super.unset();\n scope.interactables.list.splice(scope.interactables.list.indexOf(this), 1);\n scope.fire('interactable:unset', {\n interactable: this\n });\n }\n\n };\n }\n\n addListeners(map, id) {\n this.listenerMaps.push({\n id,\n map\n });\n }\n\n fire(name, arg) {\n for (const {\n map: {\n [name]: listener\n }\n } of this.listenerMaps) {\n if (!!listener && listener(arg, this, name) === false) {\n return false;\n }\n }\n }\n\n init(window) {\n return this.isInitialized ? this : initScope(this, window);\n }\n\n pluginIsInstalled(plugin) {\n return this._plugins.map[plugin.id] || this._plugins.list.indexOf(plugin) !== -1;\n }\n\n usePlugin(plugin, options) {\n if (!this.isInitialized) {\n return this;\n }\n\n if (this.pluginIsInstalled(plugin)) {\n return this;\n }\n\n if (plugin.id) {\n this._plugins.map[plugin.id] = plugin;\n }\n\n this._plugins.list.push(plugin);\n\n if (plugin.install) {\n plugin.install(this, options);\n }\n\n if (plugin.listeners && plugin.before) {\n let index = 0;\n const len = this.listenerMaps.length;\n const before = plugin.before.reduce((acc, id) => {\n acc[id] = true;\n acc[pluginIdRoot(id)] = true;\n return acc;\n }, {});\n\n for (; index < len; index++) {\n const otherId = this.listenerMaps[index].id;\n\n if (before[otherId] || before[pluginIdRoot(otherId)]) {\n break;\n }\n }\n\n this.listenerMaps.splice(index, 0, {\n id: plugin.id,\n map: plugin.listeners\n });\n } else if (plugin.listeners) {\n this.listenerMaps.push({\n id: plugin.id,\n map: plugin.listeners\n });\n }\n\n return this;\n }\n\n addDocument(doc, options) {\n // do nothing if document is already known\n if (this.getDocIndex(doc) !== -1) {\n return false;\n }\n\n const window = win.getWindow(doc);\n options = options ? extend({}, options) : {};\n this.documents.push({\n doc,\n options\n });\n this.events.documents.push(doc); // don't add an unload event for the main document\n // so that the page may be cached in browser history\n\n if (doc !== this.document) {\n this.events.add(window, 'unload', this.onWindowUnload);\n }\n\n this.fire('scope:add-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n removeDocument(doc) {\n const index = this.getDocIndex(doc);\n const window = win.getWindow(doc);\n const options = this.documents[index].options;\n this.events.remove(window, 'unload', this.onWindowUnload);\n this.documents.splice(index, 1);\n this.events.documents.splice(index, 1);\n this.fire('scope:remove-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n getDocIndex(doc) {\n for (let i = 0; i < this.documents.length; i++) {\n if (this.documents[i].doc === doc) {\n return i;\n }\n }\n\n return -1;\n }\n\n getDocOptions(doc) {\n const docIndex = this.getDocIndex(doc);\n return docIndex === -1 ? null : this.documents[docIndex].options;\n }\n\n now() {\n return (this.window.Date || Date).now();\n }\n\n}\nexport function initScope(scope, window) {\n scope.isInitialized = true;\n win.init(window);\n domObjects.init(window);\n browser.init(window);\n raf.init(window);\n scope.window = window;\n scope.document = window.document;\n scope.usePlugin(interactions);\n scope.usePlugin(events);\n return scope;\n}\n\nfunction pluginIdRoot(id) {\n return id && id.replace(/\\/.*$/, '');\n}\n//# sourceMappingURL=scope.js.map","import { Scope } from \"../core/scope.js\";\nconst scope = new Scope();\nconst interact = scope.interactStatic;\nexport default interact;\nexport const init = win => scope.init(win);\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../core/Interactable.js\";\nimport is from \"../utils/is.js\";\nimport { warnOnce } from \"../utils/misc.js\";\n\nfunction install(scope) {\n const {\n /** @lends Interactable */\n Interactable // tslint:disable-line no-shadowed-variable\n\n } = scope;\n\n Interactable.prototype.getAction = function getAction(pointer, event, interaction, element) {\n const action = defaultActionChecker(this, event, interaction, element, scope);\n\n if (this.options.actionChecker) {\n return this.options.actionChecker(pointer, event, action, this, element, interaction);\n }\n\n return action;\n };\n /**\n * If the target of the `mousedown`, `pointerdown` or `touchstart` event or any\n * of it's parents match the given CSS selector or Element, no\n * drag/resize/gesture is started.\n *\n * @deprecated\n * Don't use this method. Instead set the `ignoreFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .draggable({\n * ignoreFrom: 'input, textarea, a[href]'',\n * })\n * .pointerEvents({\n * ignoreFrom: '[no-pointer]',\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to not ignore any elements\n * @return {string | Element | object} The current ignoreFrom value or this\n * Interactable\n */\n\n\n Interactable.prototype.ignoreFrom = warnOnce(function (newValue) {\n return this._backCompatOption('ignoreFrom', newValue);\n }, 'Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue}).');\n /**\n *\n * A drag/resize/gesture is started only If the target of the `mousedown`,\n * `pointerdown` or `touchstart` event or any of it's parents match the given\n * CSS selector or Element.\n *\n * @deprecated\n * Don't use this method. Instead set the `allowFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .resizable({\n * allowFrom: '.resize-handle',\n * .pointerEvents({\n * allowFrom: '.handle',,\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to allow from any element\n * @return {string | Element | object} The current allowFrom value or this\n * Interactable\n */\n\n Interactable.prototype.allowFrom = warnOnce(function (newValue) {\n return this._backCompatOption('allowFrom', newValue);\n }, 'Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue}).');\n /**\n * ```js\n * interact('.resize-drag')\n * .resizable(true)\n * .draggable(true)\n * .actionChecker(function (pointer, event, action, interactable, element, interaction) {\n *\n * if (interact.matchesSelector(event.target, '.drag-handle')) {\n * // force drag with handle target\n * action.name = drag\n * }\n * else {\n * // resize from the top and right edges\n * action.name = 'resize'\n * action.edges = { top: true, right: true }\n * }\n *\n * return action\n * })\n * ```\n *\n * Returns or sets the function used to check action to be performed on\n * pointerDown\n *\n * @param {function | null} [checker] A function which takes a pointer event,\n * defaultAction string, interactable, element and interaction as parameters\n * and returns an object with name property 'drag' 'resize' or 'gesture' and\n * optionally an `edges` object with boolean 'top', 'left', 'bottom' and right\n * props.\n * @return {Function | Interactable} The checker function or this Interactable\n */\n\n Interactable.prototype.actionChecker = actionChecker;\n /**\n * Returns or sets whether the the cursor should be changed depending on the\n * action that would be performed if the mouse were pressed and dragged.\n *\n * @param {boolean} [newValue]\n * @return {boolean | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.styleCursor = styleCursor;\n}\n\nfunction defaultActionChecker(interactable, event, interaction, element, scope) {\n const rect = interactable.getRect(element);\n const buttons = event.buttons || {\n 0: 1,\n 1: 4,\n 3: 8,\n 4: 16\n }[event.button];\n const arg = {\n action: null,\n interactable,\n interaction,\n element,\n rect,\n buttons\n };\n scope.fire('auto-start:check', arg);\n return arg.action;\n}\n\nfunction styleCursor(newValue) {\n if (is.bool(newValue)) {\n this.options.styleCursor = newValue;\n return this;\n }\n\n if (newValue === null) {\n delete this.options.styleCursor;\n return this;\n }\n\n return this.options.styleCursor;\n}\n\nfunction actionChecker(checker) {\n if (is.func(checker)) {\n this.options.actionChecker = checker;\n return this;\n }\n\n if (checker === null) {\n delete this.options.actionChecker;\n return this;\n }\n\n return this.options.actionChecker;\n}\n\nexport default {\n id: 'auto-start/interactableMethods',\n install\n};\n//# sourceMappingURL=InteractableMethods.js.map","import { Scope, SignalArgs } from \"../core/scope.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport { copyAction } from \"../utils/misc.js\";\nimport InteractableMethods from \"./InteractableMethods.js\";\n\nfunction install(scope) {\n const {\n interactStatic: interact,\n defaults\n } = scope;\n scope.usePlugin(InteractableMethods);\n defaults.base.actionChecker = null;\n defaults.base.styleCursor = true;\n extend(defaults.perAction, {\n manualStart: false,\n max: Infinity,\n maxPerElement: 1,\n allowFrom: null,\n ignoreFrom: null,\n // only allow left button by default\n // see https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons#Return_value\n mouseButtons: 1\n });\n /**\n * Returns or sets the maximum number of concurrent interactions allowed. By\n * default only 1 interaction is allowed at a time (for backwards\n * compatibility). To allow multiple interactions on the same Interactables and\n * elements, you need to enable it in the draggable, resizable and gesturable\n * `'max'` and `'maxPerElement'` options.\n *\n * @alias module:interact.maxInteractions\n *\n * @param {number} [newValue] Any number. newValue <= 0 means no interactions.\n */\n\n interact.maxInteractions = newValue => maxInteractions(newValue, scope);\n\n scope.autoStart = {\n // Allow this many interactions to happen simultaneously\n maxInteractions: Infinity,\n withinInteractionLimit,\n cursorElement: null\n };\n}\n\nfunction prepareOnDown({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction prepareOnMove({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.pointerType !== 'mouse' || interaction.pointerIsDown || interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction startOnMove(arg, scope) {\n const {\n interaction\n } = arg;\n\n if (!interaction.pointerIsDown || interaction.interacting() || !interaction.pointerWasMoved || !interaction.prepared.name) {\n return;\n }\n\n scope.fire('autoStart:before-start', arg);\n const {\n interactable\n } = interaction;\n const actionName = interaction.prepared.name;\n\n if (actionName && interactable) {\n // check manualStart and interaction limit\n if (interactable.options[actionName].manualStart || !withinInteractionLimit(interactable, interaction.element, interaction.prepared, scope)) {\n interaction.stop();\n } else {\n interaction.start(interaction.prepared, interactable, interaction.element);\n setInteractionCursor(interaction, scope);\n }\n }\n}\n\nfunction clearCursorOnStop({\n interaction\n}, scope) {\n const {\n interactable\n } = interaction;\n\n if (interactable && interactable.options.styleCursor) {\n setCursor(interaction.element, '', scope);\n }\n} // Check if the current interactable supports the action.\n// If so, return the validated action. Otherwise, return null\n\n\nfunction validateAction(action, interactable, element, eventTarget, scope) {\n if (interactable.testIgnoreAllow(interactable.options[action.name], element, eventTarget) && interactable.options[action.name].enabled && withinInteractionLimit(interactable, element, action, scope)) {\n return action;\n }\n\n return null;\n}\n\nfunction validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope) {\n for (let i = 0, len = matches.length; i < len; i++) {\n const match = matches[i];\n const matchElement = matchElements[i];\n const matchAction = match.getAction(pointer, event, interaction, matchElement);\n\n if (!matchAction) {\n continue;\n }\n\n const action = validateAction(matchAction, match, matchElement, eventTarget, scope);\n\n if (action) {\n return {\n action,\n interactable: match,\n element: matchElement\n };\n }\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction getActionInfo(interaction, pointer, event, eventTarget, scope) {\n let matches = [];\n let matchElements = [];\n let element = eventTarget;\n\n function pushMatches(interactable) {\n matches.push(interactable);\n matchElements.push(element);\n }\n\n while (is.element(element)) {\n matches = [];\n matchElements = [];\n scope.interactables.forEachMatch(element, pushMatches);\n const actionInfo = validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope);\n\n if (actionInfo.action && !actionInfo.interactable.options[actionInfo.action.name].manualStart) {\n return actionInfo;\n }\n\n element = domUtils.parentNode(element);\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction prepare(interaction, {\n action,\n interactable,\n element\n}, scope) {\n action = action || {\n name: null\n };\n interaction.interactable = interactable;\n interaction.element = element;\n copyAction(interaction.prepared, action);\n interaction.rect = interactable && action.name ? interactable.getRect(element) : null;\n setInteractionCursor(interaction, scope);\n scope.fire('autoStart:prepared', {\n interaction\n });\n}\n\nfunction withinInteractionLimit(interactable, element, action, scope) {\n const options = interactable.options;\n const maxActions = options[action.name].max;\n const maxPerElement = options[action.name].maxPerElement;\n const autoStartMax = scope.autoStart.maxInteractions;\n let activeInteractions = 0;\n let interactableCount = 0;\n let elementCount = 0; // no actions if any of these values == 0\n\n if (!(maxActions && maxPerElement && autoStartMax)) {\n return false;\n }\n\n for (const interaction of scope.interactions.list) {\n const otherAction = interaction.prepared.name;\n\n if (!interaction.interacting()) {\n continue;\n }\n\n activeInteractions++;\n\n if (activeInteractions >= autoStartMax) {\n return false;\n }\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interactableCount += otherAction === action.name ? 1 : 0;\n\n if (interactableCount >= maxActions) {\n return false;\n }\n\n if (interaction.element === element) {\n elementCount++;\n\n if (otherAction === action.name && elementCount >= maxPerElement) {\n return false;\n }\n }\n }\n\n return autoStartMax > 0;\n}\n\nfunction maxInteractions(newValue, scope) {\n if (is.number(newValue)) {\n scope.autoStart.maxInteractions = newValue;\n return this;\n }\n\n return scope.autoStart.maxInteractions;\n}\n\nfunction setCursor(element, cursor, scope) {\n const {\n cursorElement: prevCursorElement\n } = scope.autoStart;\n\n if (prevCursorElement && prevCursorElement !== element) {\n prevCursorElement.style.cursor = '';\n }\n\n element.ownerDocument.documentElement.style.cursor = cursor;\n element.style.cursor = cursor;\n scope.autoStart.cursorElement = cursor ? element : null;\n}\n\nfunction setInteractionCursor(interaction, scope) {\n const {\n interactable,\n element,\n prepared\n } = interaction;\n\n if (!(interaction.pointerType === 'mouse' && interactable && interactable.options.styleCursor)) {\n // clear previous target element cursor\n if (scope.autoStart.cursorElement) {\n setCursor(scope.autoStart.cursorElement, '', scope);\n }\n\n return;\n }\n\n let cursor = '';\n\n if (prepared.name) {\n const cursorChecker = interactable.options[prepared.name].cursorChecker;\n\n if (is.func(cursorChecker)) {\n cursor = cursorChecker(prepared, interactable, element, interaction._interacting);\n } else {\n cursor = scope.actions.map[prepared.name].getCursor(prepared);\n }\n }\n\n setCursor(interaction.element, cursor || '', scope);\n}\n\nconst autoStart = {\n id: 'auto-start/base',\n before: ['actions'],\n install,\n listeners: {\n 'interactions:down': prepareOnDown,\n 'interactions:move': (arg, scope) => {\n prepareOnMove(arg, scope);\n startOnMove(arg, scope);\n },\n 'interactions:stop': clearCursorOnStop\n },\n maxInteractions,\n withinInteractionLimit,\n validateAction\n};\nexport default autoStart;\n//# sourceMappingURL=base.js.map","import { parentNode } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport autoStart from \"./base.js\";\n\nfunction beforeStart({\n interaction,\n eventTarget,\n dx,\n dy\n}, scope) {\n if (interaction.prepared.name !== 'drag') {\n return;\n } // check if a drag is in the correct axis\n\n\n const absX = Math.abs(dx);\n const absY = Math.abs(dy);\n const targetOptions = interaction.interactable.options.drag;\n const startAxis = targetOptions.startAxis;\n const currentAxis = absX > absY ? 'x' : absX < absY ? 'y' : 'xy';\n interaction.prepared.axis = targetOptions.lockAxis === 'start' ? currentAxis[0] // always lock to one axis even if currentAxis === 'xy'\n : targetOptions.lockAxis; // if the movement isn't in the startAxis of the interactable\n\n if (currentAxis !== 'xy' && startAxis !== 'xy' && startAxis !== currentAxis) {\n // cancel the prepared action\n interaction.prepared.name = null; // then try to get a drag from another ineractable\n\n let element = eventTarget;\n\n const getDraggable = function (interactable) {\n if (interactable === interaction.interactable) {\n return;\n }\n\n const options = interaction.interactable.options.drag;\n\n if (!options.manualStart && interactable.testIgnoreAllow(options, element, eventTarget)) {\n const action = interactable.getAction(interaction.downPointer, interaction.downEvent, interaction, element);\n\n if (action && action.name === 'drag' && checkStartAxis(currentAxis, interactable) && autoStart.validateAction(action, interactable, element, eventTarget, scope)) {\n return interactable;\n }\n }\n }; // check all interactables\n\n\n while (is.element(element)) {\n const interactable = scope.interactables.forEachMatch(element, getDraggable);\n\n if (interactable) {\n interaction.prepared.name = 'drag';\n interaction.interactable = interactable;\n interaction.element = element;\n break;\n }\n\n element = parentNode(element);\n }\n }\n}\n\nfunction checkStartAxis(startAxis, interactable) {\n if (!interactable) {\n return false;\n }\n\n const thisAxis = interactable.options.drag.startAxis;\n return startAxis === 'xy' || thisAxis === 'xy' || thisAxis === startAxis;\n}\n\nexport default {\n id: 'auto-start/dragAxis',\n listeners: {\n 'autoStart:before-start': beforeStart\n }\n};\n//# sourceMappingURL=dragAxis.js.map","import Interaction from \"../core/Interaction.js\";\nimport basePlugin from \"./base.js\";\n\nfunction install(scope) {\n const {\n defaults\n } = scope;\n scope.usePlugin(basePlugin);\n defaults.perAction.hold = 0;\n defaults.perAction.delay = 0;\n}\n\nfunction getHoldDuration(interaction) {\n const actionName = interaction.prepared && interaction.prepared.name;\n\n if (!actionName) {\n return null;\n }\n\n const options = interaction.interactable.options;\n return options[actionName].hold || options[actionName].delay;\n}\n\nconst hold = {\n id: 'auto-start/hold',\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.autoStartHoldTimer = null;\n },\n 'autoStart:prepared': ({\n interaction\n }) => {\n const hold = getHoldDuration(interaction);\n\n if (hold > 0) {\n interaction.autoStartHoldTimer = setTimeout(() => {\n interaction.start(interaction.prepared, interaction.interactable, interaction.element);\n }, hold);\n }\n },\n 'interactions:move': ({\n interaction,\n duplicate\n }) => {\n if (interaction.autoStartHoldTimer && interaction.pointerWasMoved && !duplicate) {\n clearTimeout(interaction.autoStartHoldTimer);\n interaction.autoStartHoldTimer = null;\n }\n },\n // prevent regular down->move autoStart\n 'autoStart:before-start': ({\n interaction\n }) => {\n const holdDuration = getHoldDuration(interaction);\n\n if (holdDuration > 0) {\n interaction.prepared.name = null;\n }\n }\n },\n getHoldDuration\n};\nexport default hold;\n//# sourceMappingURL=hold.js.map","import autoStart from \"./base.js\";\nimport dragAxis from \"./dragAxis.js\";\nimport hold from \"./hold.js\";\nexport default {\n id: 'auto-start',\n\n install(scope) {\n scope.usePlugin(autoStart);\n scope.usePlugin(hold);\n scope.usePlugin(dragAxis);\n }\n\n};\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n Interactable,\n defaults\n } = scope;\n Interactable.prototype.draggable = drag.draggable;\n actions.map.drag = drag;\n actions.methodDict.drag = 'draggable';\n defaults.actions.drag = drag.defaults;\n}\n\nfunction beforeMove({\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x') {\n interaction.coords.cur.page.y = interaction.coords.start.page.y;\n interaction.coords.cur.client.y = interaction.coords.start.client.y;\n interaction.coords.velocity.client.y = 0;\n interaction.coords.velocity.page.y = 0;\n } else if (axis === 'y') {\n interaction.coords.cur.page.x = interaction.coords.start.page.x;\n interaction.coords.cur.client.x = interaction.coords.start.client.x;\n interaction.coords.velocity.client.x = 0;\n interaction.coords.velocity.page.x = 0;\n }\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x' || axis === 'y') {\n const opposite = axis === 'x' ? 'y' : 'x';\n iEvent.page[opposite] = interaction.coords.start.page[opposite];\n iEvent.client[opposite] = interaction.coords.start.client[opposite];\n iEvent.delta[opposite] = 0;\n }\n}\n/**\n * ```js\n * interact(element).draggable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * // the axis in which the first movement must be\n * // for the drag sequence to start\n * // 'xy' by default - any direction\n * startAxis: 'x' || 'y' || 'xy',\n *\n * // 'xy' by default - don't restrict to one axis (move in any direction)\n * // 'x' or 'y' to restrict movement to either axis\n * // 'start' to restrict movement to the axis the drag started in\n * lockAxis: 'x' || 'y' || 'xy' || 'start',\n *\n * // max number of drags that can happen concurrently\n * // with elements of this Interactable. Infinity by default\n * max: Infinity,\n *\n * // max number of drags that can target the same element+Interactable\n * // 1 by default\n * maxPerElement: 2\n * })\n *\n * var isDraggable = interact('element').draggable(); // true\n * ```\n *\n * Get or set whether drag actions can be performed on the target\n *\n * @alias Interactable.prototype.draggable\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on drag events (object makes the Interactable\n * draggable)\n * @return {boolean | Interactable} boolean indicating if this can be the\n * target of drag events, or this Interctable\n */\n\n\nconst draggable = function draggable(options) {\n if (is.object(options)) {\n this.options.drag.enabled = options.enabled !== false;\n this.setPerAction('drag', options);\n this.setOnEvents('drag', options);\n\n if (/^(xy|x|y|start)$/.test(options.lockAxis)) {\n this.options.drag.lockAxis = options.lockAxis;\n }\n\n if (/^(xy|x|y)$/.test(options.startAxis)) {\n this.options.drag.startAxis = options.startAxis;\n }\n\n return this;\n }\n\n if (is.bool(options)) {\n this.options.drag.enabled = options;\n return this;\n }\n\n return this.options.drag;\n};\n\nconst drag = {\n id: 'actions/drag',\n install,\n listeners: {\n 'interactions:before-action-move': beforeMove,\n 'interactions:action-resume': beforeMove,\n // dragmove\n 'interactions:action-move': move,\n 'auto-start:check': arg => {\n const {\n interaction,\n interactable,\n buttons\n } = arg;\n const dragOptions = interactable.options.drag;\n\n if (!(dragOptions && dragOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & interactable.options.drag.mouseButtons) === 0) {\n return undefined;\n }\n\n arg.action = {\n name: 'drag',\n axis: dragOptions.lockAxis === 'start' ? dragOptions.startAxis : dragOptions.lockAxis\n };\n return false;\n }\n },\n draggable,\n beforeMove,\n move,\n defaults: {\n startAxis: 'xy',\n lockAxis: 'xy'\n },\n\n getCursor() {\n return 'move';\n }\n\n};\nexport default drag;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport { Interaction } from \"../../core/Interaction.js\";\nimport * as dom from \"../../utils/domUtils.js\";\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n browser,\n\n /** @lends Interactable */\n Interactable,\n // tslint:disable-line no-shadowed-variable\n defaults\n } = scope; // Less Precision with touch input\n\n resize.cursors = initCursors(browser);\n resize.defaultMargin = browser.supportsTouch || browser.supportsPointerEvent ? 20 : 10;\n /**\n * ```js\n * interact(element).resizable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * edges: {\n * top : true, // Use pointer coords to check for resize.\n * left : false, // Disable resizing from left edge.\n * bottom: '.resize-s',// Resize if pointer target matches selector\n * right : handleEl // Resize if pointer target is the given Element\n * },\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height are adjusted at a 1:1 ratio.\n * square: false,\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height maintain the aspect ratio they had when resizing started.\n * preserveAspectRatio: false,\n *\n * // a value of 'none' will limit the resize rect to a minimum of 0x0\n * // 'negate' will allow the rect to have negative width/height\n * // 'reposition' will keep the width/height positive by swapping\n * // the top and bottom edges and/or swapping the left and right edges\n * invert: 'none' || 'negate' || 'reposition'\n *\n * // limit multiple resizes.\n * // See the explanation in the {@link Interactable.draggable} example\n * max: Infinity,\n * maxPerElement: 1,\n * })\n *\n * var isResizeable = interact(element).resizable()\n * ```\n *\n * Gets or sets whether resize actions can be performed on the target\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on resize events (object makes the Interactable\n * resizable)\n * @return {boolean | Interactable} A boolean indicating if this can be the\n * target of resize elements, or this Interactable\n */\n\n Interactable.prototype.resizable = function (options) {\n return resizable(this, options, scope);\n };\n\n actions.map.resize = resize;\n actions.methodDict.resize = 'resizable';\n defaults.actions.resize = resize.defaults;\n}\n\nfunction resizeChecker(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n buttons\n } = arg;\n\n if (!rect) {\n return undefined;\n }\n\n const page = extend({}, interaction.coords.cur.page);\n const resizeOptions = interactable.options.resize;\n\n if (!(resizeOptions && resizeOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & resizeOptions.mouseButtons) === 0) {\n return undefined;\n } // if using resize.edges\n\n\n if (is.object(resizeOptions.edges)) {\n const resizeEdges = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n\n for (const edge in resizeEdges) {\n resizeEdges[edge] = checkResizeEdge(edge, resizeOptions.edges[edge], page, interaction._latestPointer.eventTarget, element, rect, resizeOptions.margin || resize.defaultMargin);\n }\n\n resizeEdges.left = resizeEdges.left && !resizeEdges.right;\n resizeEdges.top = resizeEdges.top && !resizeEdges.bottom;\n\n if (resizeEdges.left || resizeEdges.right || resizeEdges.top || resizeEdges.bottom) {\n arg.action = {\n name: 'resize',\n edges: resizeEdges\n };\n }\n } else {\n const right = resizeOptions.axis !== 'y' && page.x > rect.right - resize.defaultMargin;\n const bottom = resizeOptions.axis !== 'x' && page.y > rect.bottom - resize.defaultMargin;\n\n if (right || bottom) {\n arg.action = {\n name: 'resize',\n axes: (right ? 'x' : '') + (bottom ? 'y' : '')\n };\n }\n }\n\n return arg.action ? false : undefined;\n}\n\nfunction resizable(interactable, options, scope) {\n if (is.object(options)) {\n interactable.options.resize.enabled = options.enabled !== false;\n interactable.setPerAction('resize', options);\n interactable.setOnEvents('resize', options);\n\n if (is.string(options.axis) && /^x$|^y$|^xy$/.test(options.axis)) {\n interactable.options.resize.axis = options.axis;\n } else if (options.axis === null) {\n interactable.options.resize.axis = scope.defaults.actions.resize.axis;\n }\n\n if (is.bool(options.preserveAspectRatio)) {\n interactable.options.resize.preserveAspectRatio = options.preserveAspectRatio;\n } else if (is.bool(options.square)) {\n interactable.options.resize.square = options.square;\n }\n\n return interactable;\n }\n\n if (is.bool(options)) {\n interactable.options.resize.enabled = options;\n return interactable;\n }\n\n return interactable.options.resize;\n}\n\nfunction checkResizeEdge(name, value, page, element, interactableElement, rect, margin) {\n // false, '', undefined, null\n if (!value) {\n return false;\n } // true value, use pointer coords and element rect\n\n\n if (value === true) {\n // if dimensions are negative, \"switch\" edges\n const width = is.number(rect.width) ? rect.width : rect.right - rect.left;\n const height = is.number(rect.height) ? rect.height : rect.bottom - rect.top; // don't use margin greater than half the relevent dimension\n\n margin = Math.min(margin, Math.abs((name === 'left' || name === 'right' ? width : height) / 2));\n\n if (width < 0) {\n if (name === 'left') {\n name = 'right';\n } else if (name === 'right') {\n name = 'left';\n }\n }\n\n if (height < 0) {\n if (name === 'top') {\n name = 'bottom';\n } else if (name === 'bottom') {\n name = 'top';\n }\n }\n\n if (name === 'left') {\n return page.x < (width >= 0 ? rect.left : rect.right) + margin;\n }\n\n if (name === 'top') {\n return page.y < (height >= 0 ? rect.top : rect.bottom) + margin;\n }\n\n if (name === 'right') {\n return page.x > (width >= 0 ? rect.right : rect.left) - margin;\n }\n\n if (name === 'bottom') {\n return page.y > (height >= 0 ? rect.bottom : rect.top) - margin;\n }\n } // the remaining checks require an element\n\n\n if (!is.element(element)) {\n return false;\n }\n\n return is.element(value) // the value is an element to use as a resize handle\n ? value === element // otherwise check if element matches value as selector\n : dom.matchesUpTo(element, value, interactableElement);\n}\n/* eslint-disable multiline-ternary */\n\n\nfunction initCursors(browser) {\n return browser.isIe9 ? {\n x: 'e-resize',\n y: 's-resize',\n xy: 'se-resize',\n top: 'n-resize',\n left: 'w-resize',\n bottom: 's-resize',\n right: 'e-resize',\n topleft: 'se-resize',\n bottomright: 'se-resize',\n topright: 'ne-resize',\n bottomleft: 'ne-resize'\n } : {\n x: 'ew-resize',\n y: 'ns-resize',\n xy: 'nwse-resize',\n top: 'ns-resize',\n left: 'ew-resize',\n bottom: 'ns-resize',\n right: 'ew-resize',\n topleft: 'nwse-resize',\n bottomright: 'nwse-resize',\n topright: 'nesw-resize',\n bottomleft: 'nesw-resize'\n };\n}\n/* eslint-enable multiline-ternary */\n\n\nfunction start({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const rect = interaction.rect;\n interaction._rects = {\n start: extend({}, rect),\n corrected: extend({}, rect),\n previous: extend({}, rect),\n delta: {\n left: 0,\n right: 0,\n width: 0,\n top: 0,\n bottom: 0,\n height: 0\n }\n };\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const resizeOptions = interaction.interactable.options.resize;\n const invert = resizeOptions.invert;\n const invertible = invert === 'reposition' || invert === 'negate';\n const current = interaction.rect;\n const {\n start: startRect,\n corrected,\n delta: deltaRect,\n previous\n } = interaction._rects;\n extend(previous, corrected);\n\n if (invertible) {\n // if invertible, copy the current rect\n extend(corrected, current);\n\n if (invert === 'reposition') {\n // swap edge values if necessary to keep width/height positive\n if (corrected.top > corrected.bottom) {\n const swap = corrected.top;\n corrected.top = corrected.bottom;\n corrected.bottom = swap;\n }\n\n if (corrected.left > corrected.right) {\n const swap = corrected.left;\n corrected.left = corrected.right;\n corrected.right = swap;\n }\n }\n } else {\n // if not invertible, restrict to minimum of 0x0 rect\n corrected.top = Math.min(current.top, startRect.bottom);\n corrected.bottom = Math.max(current.bottom, startRect.top);\n corrected.left = Math.min(current.left, startRect.right);\n corrected.right = Math.max(current.right, startRect.left);\n }\n\n corrected.width = corrected.right - corrected.left;\n corrected.height = corrected.bottom - corrected.top;\n\n for (const edge in corrected) {\n deltaRect[edge] = corrected[edge] - previous[edge];\n }\n\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = corrected;\n resizeEvent.deltaRect = deltaRect;\n}\n\nfunction end({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction updateEventAxes({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.resizeAxes) {\n return;\n }\n\n const options = interaction.interactable.options;\n const resizeEvent = iEvent;\n\n if (options.resize.square) {\n if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = resizeEvent.delta.y;\n } else {\n resizeEvent.delta.y = resizeEvent.delta.x;\n }\n\n resizeEvent.axes = 'xy';\n } else {\n resizeEvent.axes = interaction.resizeAxes;\n\n if (interaction.resizeAxes === 'x') {\n resizeEvent.delta.y = 0;\n } else if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = 0;\n }\n }\n}\n\nconst resize = {\n id: 'actions/resize',\n before: ['actions/drag'],\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.resizeAxes = 'xy';\n },\n 'interactions:action-start': arg => {\n start(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-move': arg => {\n move(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-end': end,\n 'auto-start:check': resizeChecker\n },\n defaults: {\n square: false,\n preserveAspectRatio: false,\n axis: 'xy',\n // use default margin\n margin: NaN,\n // object with props left, right, top, bottom which are\n // true/false values to resize when the pointer is over that edge,\n // CSS selectors to match the handles for each direction\n // or the Elements for each handle\n edges: null,\n // a value of 'none' will limit the resize rect to a minimum of 0x0\n // 'negate' will alow the rect to have negative width/height\n // 'reposition' will keep the width/height positive by swapping\n // the top and bottom edges and/or swapping the left and right edges\n invert: 'none'\n },\n cursors: null,\n\n getCursor({\n edges,\n axis,\n name\n }) {\n const cursors = resize.cursors;\n let result = null;\n\n if (axis) {\n result = cursors[name + axis];\n } else if (edges) {\n let cursorKey = '';\n\n for (const edge of ['top', 'bottom', 'left', 'right']) {\n if (edges[edge]) {\n cursorKey += edge;\n }\n }\n\n result = cursors[cursorKey];\n }\n\n return result;\n },\n\n defaultMargin: null\n};\nexport default resize;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export default (() => {});\n//# sourceMappingURL=edgeTarget.js.map","export default (() => {});\n//# sourceMappingURL=elements.js.map","export default (grid => {\n const coordFields = [['x', 'y'], ['left', 'top'], ['right', 'bottom'], ['width', 'height']].filter(([xField, yField]) => xField in grid || yField in grid);\n\n const gridFunc = (x, y) => {\n const {\n range,\n limits = {\n left: -Infinity,\n right: Infinity,\n top: -Infinity,\n bottom: Infinity\n },\n offset = {\n x: 0,\n y: 0\n }\n } = grid;\n const result = {\n range,\n grid,\n x: null,\n y: null\n };\n\n for (const [xField, yField] of coordFields) {\n const gridx = Math.round((x - offset.x) / grid[xField]);\n const gridy = Math.round((y - offset.y) / grid[yField]);\n result[xField] = Math.max(limits.left, Math.min(limits.right, gridx * grid[xField] + offset.x));\n result[yField] = Math.max(limits.top, Math.min(limits.bottom, gridy * grid[yField] + offset.y));\n }\n\n return result;\n };\n\n gridFunc.grid = grid;\n gridFunc.coordFields = coordFields;\n return gridFunc;\n});\n//# sourceMappingURL=grid.js.map","export { default as edgeTarget } from \"./edgeTarget.js\";\nexport { default as elements } from \"./elements.js\";\nexport { default as grid } from \"./grid.js\";\n//# sourceMappingURL=all.js.map","import extend from \"../utils/extend.js\";\nimport * as allSnappers from \"./all.js\";\nconst snappersPlugin = {\n id: 'snappers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n interact.snappers = extend(interact.snappers || {}, allSnappers);\n interact.createSnapGrid = interact.snappers.grid;\n }\n\n};\nexport default snappersPlugin;\n//# sourceMappingURL=plugin.js.map","import clone from \"../utils/clone.js\";\nimport extend from \"../utils/extend.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nexport default class Modification {\n constructor(interaction) {\n this.states = [];\n this.startOffset = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n };\n this.startDelta = null;\n this.result = null;\n this.endResult = null;\n this.edges = void 0;\n this.interaction = void 0;\n this.interaction = interaction;\n this.result = createResult();\n }\n\n start({\n phase\n }, pageCoords) {\n const {\n interaction\n } = this;\n const modifierList = getModifierList(interaction);\n this.prepareStates(modifierList);\n this.edges = extend({}, interaction.edges);\n this.startOffset = getRectOffset(interaction.rect, pageCoords);\n this.startDelta = {\n x: 0,\n y: 0\n };\n const arg = {\n phase,\n pageCoords,\n preEnd: false\n };\n this.result = createResult();\n this.startAll(arg);\n const result = this.result = this.setAll(arg);\n return result;\n }\n\n fillArg(arg) {\n const {\n interaction\n } = this;\n arg.interaction = interaction;\n arg.interactable = interaction.interactable;\n arg.element = interaction.element;\n arg.rect = arg.rect || interaction.rect;\n arg.edges = this.edges;\n arg.startOffset = this.startOffset;\n }\n\n startAll(arg) {\n this.fillArg(arg);\n\n for (const state of this.states) {\n if (state.methods.start) {\n arg.state = state;\n state.methods.start(arg);\n }\n }\n }\n\n setAll(arg) {\n this.fillArg(arg);\n const {\n phase,\n preEnd,\n skipModifiers,\n rect: unmodifiedRect\n } = arg;\n arg.coords = extend({}, arg.pageCoords);\n arg.rect = extend({}, unmodifiedRect);\n const states = skipModifiers ? this.states.slice(skipModifiers) : this.states;\n const newResult = createResult(arg.coords, arg.rect);\n\n for (const state of states) {\n const {\n options\n } = state;\n const lastModifierCoords = extend({}, arg.coords);\n let returnValue = null;\n\n if (state.methods.set && this.shouldDo(options, preEnd, phase)) {\n arg.state = state;\n returnValue = state.methods.set(arg);\n rectUtils.addEdges(this.interaction.edges, arg.rect, {\n x: arg.coords.x - lastModifierCoords.x,\n y: arg.coords.y - lastModifierCoords.y\n });\n }\n\n newResult.eventProps.push(returnValue);\n }\n\n newResult.delta.x = arg.coords.x - arg.pageCoords.x;\n newResult.delta.y = arg.coords.y - arg.pageCoords.y;\n newResult.rectDelta.left = arg.rect.left - unmodifiedRect.left;\n newResult.rectDelta.right = arg.rect.right - unmodifiedRect.right;\n newResult.rectDelta.top = arg.rect.top - unmodifiedRect.top;\n newResult.rectDelta.bottom = arg.rect.bottom - unmodifiedRect.bottom;\n const prevCoords = this.result.coords;\n const prevRect = this.result.rect;\n\n if (prevCoords && prevRect) {\n const rectChanged = newResult.rect.left !== prevRect.left || newResult.rect.right !== prevRect.right || newResult.rect.top !== prevRect.top || newResult.rect.bottom !== prevRect.bottom;\n newResult.changed = rectChanged || prevCoords.x !== newResult.coords.x || prevCoords.y !== newResult.coords.y;\n }\n\n return newResult;\n }\n\n applyToInteraction(arg) {\n const {\n interaction\n } = this;\n const {\n phase\n } = arg;\n const curCoords = interaction.coords.cur;\n const startCoords = interaction.coords.start;\n const {\n result,\n startDelta\n } = this;\n const curDelta = result.delta;\n\n if (phase === 'start') {\n extend(this.startDelta, result.delta);\n }\n\n for (const [coordsSet, delta] of [[startCoords, startDelta], [curCoords, curDelta]]) {\n coordsSet.page.x += delta.x;\n coordsSet.page.y += delta.y;\n coordsSet.client.x += delta.x;\n coordsSet.client.y += delta.y;\n }\n\n const {\n rectDelta\n } = this.result;\n const rect = arg.rect || interaction.rect;\n rect.left += rectDelta.left;\n rect.right += rectDelta.right;\n rect.top += rectDelta.top;\n rect.bottom += rectDelta.bottom;\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n setAndApply(arg) {\n const {\n interaction\n } = this;\n const {\n phase,\n preEnd,\n skipModifiers\n } = arg;\n const result = this.setAll({\n preEnd,\n phase,\n pageCoords: arg.modifiedCoords || interaction.coords.cur.page\n });\n this.result = result; // don't fire an action move if a modifier would keep the event in the same\n // cordinates as before\n\n if (!result.changed && (!skipModifiers || skipModifiers < this.states.length) && interaction.interacting()) {\n return false;\n }\n\n if (arg.modifiedCoords) {\n const {\n page\n } = interaction.coords.cur;\n const adjustment = {\n x: arg.modifiedCoords.x - page.x,\n y: arg.modifiedCoords.y - page.y\n };\n result.coords.x += adjustment.x;\n result.coords.y += adjustment.y;\n result.delta.x += adjustment.x;\n result.delta.y += adjustment.y;\n }\n\n this.applyToInteraction(arg);\n }\n\n beforeEnd(arg) {\n const {\n interaction,\n event\n } = arg;\n const states = this.states;\n\n if (!states || !states.length) {\n return;\n }\n\n let doPreend = false;\n\n for (const state of states) {\n arg.state = state;\n const {\n options,\n methods\n } = state;\n const endPosition = methods.beforeEnd && methods.beforeEnd(arg);\n\n if (endPosition) {\n this.endResult = endPosition;\n return false;\n }\n\n doPreend = doPreend || !doPreend && this.shouldDo(options, true, arg.phase, true);\n }\n\n if (doPreend) {\n // trigger a final modified move before ending\n interaction.move({\n event,\n preEnd: true\n });\n }\n }\n\n stop(arg) {\n const {\n interaction\n } = arg;\n\n if (!this.states || !this.states.length) {\n return;\n }\n\n const modifierArg = extend({\n states: this.states,\n interactable: interaction.interactable,\n element: interaction.element,\n rect: null\n }, arg);\n this.fillArg(modifierArg);\n\n for (const state of this.states) {\n modifierArg.state = state;\n\n if (state.methods.stop) {\n state.methods.stop(modifierArg);\n }\n }\n\n this.states = null;\n this.endResult = null;\n }\n\n prepareStates(modifierList) {\n this.states = [];\n\n for (let index = 0; index < modifierList.length; index++) {\n const {\n options,\n methods,\n name\n } = modifierList[index];\n this.states.push({\n options,\n methods,\n index,\n name\n });\n }\n\n return this.states;\n }\n\n restoreInteractionCoords({\n interaction: {\n coords,\n rect,\n modification\n }\n }) {\n if (!modification.result) {\n return;\n }\n\n const {\n startDelta\n } = modification;\n const {\n delta: curDelta,\n rectDelta\n } = modification.result;\n const coordsAndDeltas = [[coords.start, startDelta], [coords.cur, curDelta]];\n\n for (const [coordsSet, delta] of coordsAndDeltas) {\n coordsSet.page.x -= delta.x;\n coordsSet.page.y -= delta.y;\n coordsSet.client.x -= delta.x;\n coordsSet.client.y -= delta.y;\n }\n\n rect.left -= rectDelta.left;\n rect.right -= rectDelta.right;\n rect.top -= rectDelta.top;\n rect.bottom -= rectDelta.bottom;\n }\n\n shouldDo(options, preEnd, phase, requireEndOnly) {\n if ( // ignore disabled modifiers\n !options || options.enabled === false || // check if we require endOnly option to fire move before end\n requireEndOnly && !options.endOnly || // don't apply endOnly modifiers when not ending\n options.endOnly && !preEnd || // check if modifier should run be applied on start\n phase === 'start' && !options.setStart) {\n return false;\n }\n\n return true;\n }\n\n copyFrom(other) {\n this.startOffset = other.startOffset;\n this.startDelta = other.startDelta;\n this.edges = other.edges;\n this.states = other.states.map(s => clone(s));\n this.result = createResult(extend({}, other.result.coords), extend({}, other.result.rect));\n }\n\n destroy() {\n for (const prop in this) {\n this[prop] = null;\n }\n }\n\n}\n\nfunction createResult(coords, rect) {\n return {\n rect,\n coords,\n delta: {\n x: 0,\n y: 0\n },\n rectDelta: {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n },\n eventProps: [],\n changed: true\n };\n}\n\nfunction getModifierList(interaction) {\n const actionOptions = interaction.interactable.options[interaction.prepared.name];\n const actionModifiers = actionOptions.modifiers;\n\n if (actionModifiers && actionModifiers.length) {\n return actionModifiers;\n }\n\n return ['snap', 'snapSize', 'snapEdges', 'restrict', 'restrictEdges', 'restrictSize'].map(type => {\n const options = actionOptions[type];\n return options && options.enabled && {\n options,\n methods: options._methods\n };\n }).filter(m => !!m);\n}\n\nexport function getRectOffset(rect, coords) {\n return rect ? {\n left: coords.x - rect.left,\n top: coords.y - rect.top,\n right: rect.right - coords.x,\n bottom: rect.bottom - coords.y\n } : {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n };\n}\n//# sourceMappingURL=Modification.js.map","import { InteractEvent } from \"../core/InteractEvent.js\";\nimport Interaction from \"../core/Interaction.js\";\nimport Modification from \"./Modification.js\";\nexport function makeModifier(module, name) {\n const {\n defaults\n } = module;\n const methods = {\n start: module.start,\n set: module.set,\n beforeEnd: module.beforeEnd,\n stop: module.stop\n };\n\n const modifier = _options => {\n const options = _options || {};\n options.enabled = options.enabled !== false; // add missing defaults to options\n\n for (const prop in defaults) {\n if (!(prop in options)) {\n options[prop] = defaults[prop];\n }\n }\n\n const m = {\n options,\n methods,\n name,\n enable: () => {\n options.enabled = true;\n return m;\n },\n disable: () => {\n options.enabled = false;\n return m;\n }\n };\n return m;\n };\n\n if (name && typeof name === 'string') {\n // for backwrads compatibility\n modifier._defaults = defaults;\n modifier._methods = methods;\n }\n\n return modifier;\n}\nexport function addEventModifiers({\n iEvent,\n interaction: {\n modification: {\n result\n }\n }\n}) {\n if (result) {\n iEvent.modifiers = result.eventProps;\n }\n}\nconst modifiersBase = {\n id: 'modifiers/base',\n before: ['actions'],\n install: scope => {\n scope.defaults.perAction.modifiers = [];\n },\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.modification = new Modification(interaction);\n },\n 'interactions:before-action-start': arg => {\n const {\n modification\n } = arg.interaction;\n modification.start(arg, arg.interaction.coords.start.page);\n arg.interaction.edges = modification.edges;\n modification.applyToInteraction(arg);\n },\n 'interactions:before-action-move': arg => arg.interaction.modification.setAndApply(arg),\n 'interactions:before-action-end': arg => arg.interaction.modification.beforeEnd(arg),\n 'interactions:action-start': addEventModifiers,\n 'interactions:action-move': addEventModifiers,\n 'interactions:action-end': addEventModifiers,\n 'interactions:after-action-start': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:after-action-move': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:stop': arg => arg.interaction.modification.stop(arg)\n }\n};\nexport default modifiersBase;\n//# sourceMappingURL=base.js.map","/**\n * @module modifiers/aspectRatio\n *\n * @description\n * This module forces elements to be resized with a specified dx/dy ratio.\n *\n * ```js\n * interact(target).resizable({\n * modifiers: [\n * interact.modifiers.snapSize({\n * targets: [ interact.snappers.grid({ x: 20, y: 20 }) ],\n * }),\n * interact.aspectRatio({ ratio: 'preserve' }),\n * ],\n * });\n * ```\n */\nimport extend from \"../utils/extend.js\";\nimport { addEdges } from \"../utils/rect.js\";\nimport Modification from \"./Modification.js\";\nimport { makeModifier } from \"./base.js\";\nconst aspectRatio = {\n start(arg) {\n const {\n state,\n rect,\n edges: originalEdges,\n pageCoords: coords\n } = arg;\n let {\n ratio\n } = state.options;\n const {\n equalDelta,\n modifiers\n } = state.options;\n\n if (ratio === 'preserve') {\n ratio = rect.width / rect.height;\n }\n\n state.startCoords = extend({}, coords);\n state.startRect = extend({}, rect);\n state.ratio = ratio;\n state.equalDelta = equalDelta;\n const linkedEdges = state.linkedEdges = {\n top: originalEdges.top || originalEdges.left && !originalEdges.bottom,\n left: originalEdges.left || originalEdges.top && !originalEdges.right,\n bottom: originalEdges.bottom || originalEdges.right && !originalEdges.top,\n right: originalEdges.right || originalEdges.bottom && !originalEdges.left\n };\n state.xIsPrimaryAxis = !!(originalEdges.left || originalEdges.right);\n\n if (state.equalDelta) {\n state.edgeSign = (linkedEdges.left ? 1 : -1) * (linkedEdges.top ? 1 : -1);\n } else {\n const negativeSecondaryEdge = state.xIsPrimaryAxis ? linkedEdges.top : linkedEdges.left;\n state.edgeSign = negativeSecondaryEdge ? -1 : 1;\n }\n\n extend(arg.edges, linkedEdges);\n\n if (!modifiers || !modifiers.length) {\n return;\n }\n\n const subModification = new Modification(arg.interaction);\n subModification.copyFrom(arg.interaction.modification);\n subModification.prepareStates(modifiers);\n state.subModification = subModification;\n subModification.startAll({ ...arg\n });\n },\n\n set(arg) {\n const {\n state,\n rect,\n coords\n } = arg;\n const initialCoords = extend({}, coords);\n const aspectMethod = state.equalDelta ? setEqualDelta : setRatio;\n aspectMethod(state, state.xIsPrimaryAxis, coords, rect);\n\n if (!state.subModification) {\n return null;\n }\n\n const correctedRect = extend({}, rect);\n addEdges(state.linkedEdges, correctedRect, {\n x: coords.x - initialCoords.x,\n y: coords.y - initialCoords.y\n });\n const result = state.subModification.setAll({ ...arg,\n rect: correctedRect,\n edges: state.linkedEdges,\n pageCoords: coords,\n prevCoords: coords,\n prevRect: correctedRect\n });\n const {\n delta\n } = result;\n\n if (result.changed) {\n const xIsCriticalAxis = Math.abs(delta.x) > Math.abs(delta.y); // do aspect modification again with critical edge axis as primary\n\n aspectMethod(state, xIsCriticalAxis, result.coords, result.rect);\n extend(coords, result.coords);\n }\n\n return result.eventProps;\n },\n\n defaults: {\n ratio: 'preserve',\n equalDelta: false,\n modifiers: [],\n enabled: false\n }\n};\n\nfunction setEqualDelta({\n startCoords,\n edgeSign\n}, xIsPrimaryAxis, coords) {\n if (xIsPrimaryAxis) {\n coords.y = startCoords.y + (coords.x - startCoords.x) * edgeSign;\n } else {\n coords.x = startCoords.x + (coords.y - startCoords.y) * edgeSign;\n }\n}\n\nfunction setRatio({\n startRect,\n startCoords,\n ratio,\n edgeSign\n}, xIsPrimaryAxis, coords, rect) {\n if (xIsPrimaryAxis) {\n const newHeight = rect.width / ratio;\n coords.y = startCoords.y + (newHeight - startRect.height) * edgeSign;\n } else {\n const newWidth = rect.height * ratio;\n coords.x = startCoords.x + (newWidth - startRect.width) * edgeSign;\n }\n}\n\nexport default makeModifier(aspectRatio, 'aspectRatio');\nexport { aspectRatio };\n//# sourceMappingURL=aspectRatio.js.map","const noop = () => {};\n\nnoop._defaults = {};\nexport default noop;\n//# sourceMappingURL=noop.js.map","import extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start({\n rect,\n startOffset,\n state,\n interaction,\n pageCoords\n}) {\n const {\n options\n } = state;\n const {\n elementRect\n } = options;\n const offset = extend({\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n }, options.offset || {});\n\n if (rect && elementRect) {\n const restriction = getRestrictionRect(options.restriction, interaction, pageCoords);\n\n if (restriction) {\n const widthDiff = restriction.right - restriction.left - rect.width;\n const heightDiff = restriction.bottom - restriction.top - rect.height;\n\n if (widthDiff < 0) {\n offset.left += widthDiff;\n offset.right += widthDiff;\n }\n\n if (heightDiff < 0) {\n offset.top += heightDiff;\n offset.bottom += heightDiff;\n }\n }\n\n offset.left += startOffset.left - rect.width * elementRect.left;\n offset.top += startOffset.top - rect.height * elementRect.top;\n offset.right += startOffset.right - rect.width * (1 - elementRect.right);\n offset.bottom += startOffset.bottom - rect.height * (1 - elementRect.bottom);\n }\n\n state.offset = offset;\n}\n\nfunction set({\n coords,\n interaction,\n state\n}) {\n const {\n options,\n offset\n } = state;\n const restriction = getRestrictionRect(options.restriction, interaction, coords);\n\n if (!restriction) {\n return;\n }\n\n const rect = rectUtils.xywhToTlbr(restriction);\n coords.x = Math.max(Math.min(rect.right - offset.right, coords.x), rect.left + offset.left);\n coords.y = Math.max(Math.min(rect.bottom - offset.bottom, coords.y), rect.top + offset.top);\n}\n\nexport function getRestrictionRect(value, interaction, coords) {\n if (is.func(value)) {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element, [coords.x, coords.y, interaction]);\n } else {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element);\n }\n}\nconst defaults = {\n restriction: null,\n elementRect: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrict = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrict, 'restrict');\nexport { restrict };\n//# sourceMappingURL=pointer.js.map","// This module adds the options.resize.restrictEdges setting which sets min and\n// max for the top, left, bottom and right edges of the target being resized.\n//\n// interact(target).resize({\n// edges: { top: true, left: true },\n// restrictEdges: {\n// inner: { top: 200, left: 200, right: 400, bottom: 400 },\n// outer: { top: 0, left: 0, right: 600, bottom: 600 },\n// },\n// })\nimport extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noInner = {\n top: +Infinity,\n left: +Infinity,\n bottom: -Infinity,\n right: -Infinity\n};\nconst noOuter = {\n top: -Infinity,\n left: -Infinity,\n bottom: +Infinity,\n right: +Infinity\n};\n\nfunction start({\n interaction,\n startOffset,\n state\n}) {\n const {\n options\n } = state;\n let offset;\n\n if (options) {\n const offsetRect = getRestrictionRect(options.offset, interaction, interaction.coords.start.page);\n offset = rectUtils.rectToXY(offsetRect);\n }\n\n offset = offset || {\n x: 0,\n y: 0\n };\n state.offset = {\n top: offset.y + startOffset.top,\n left: offset.x + startOffset.left,\n bottom: offset.y - startOffset.bottom,\n right: offset.x - startOffset.right\n };\n}\n\nfunction set({\n coords,\n edges,\n interaction,\n state\n}) {\n const {\n offset,\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const page = extend({}, coords);\n const inner = getRestrictionRect(options.inner, interaction, page) || {};\n const outer = getRestrictionRect(options.outer, interaction, page) || {};\n fixRect(inner, noInner);\n fixRect(outer, noOuter);\n\n if (edges.top) {\n coords.y = Math.min(Math.max(outer.top + offset.top, page.y), inner.top + offset.top);\n } else if (edges.bottom) {\n coords.y = Math.max(Math.min(outer.bottom + offset.bottom, page.y), inner.bottom + offset.bottom);\n }\n\n if (edges.left) {\n coords.x = Math.min(Math.max(outer.left + offset.left, page.x), inner.left + offset.left);\n } else if (edges.right) {\n coords.x = Math.max(Math.min(outer.right + offset.right, page.x), inner.right + offset.right);\n }\n}\n\nfunction fixRect(rect, defaults) {\n for (const edge of ['top', 'left', 'bottom', 'right']) {\n if (!(edge in rect)) {\n rect[edge] = defaults[edge];\n }\n }\n\n return rect;\n}\n\nconst defaults = {\n inner: null,\n outer: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrictEdges = {\n noInner,\n noOuter,\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictEdges, 'restrictEdges');\nexport { restrictEdges };\n//# sourceMappingURL=edges.js.map","import extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrict } from \"./pointer.js\";\nconst defaults = extend({\n get elementRect() {\n return {\n top: 0,\n left: 0,\n bottom: 1,\n right: 1\n };\n },\n\n set elementRect(_) {}\n\n}, restrict.defaults);\nconst restrictRect = {\n start: restrict.start,\n set: restrict.set,\n defaults\n};\nexport default makeModifier(restrictRect, 'restrictRect');\nexport { restrictRect };\n//# sourceMappingURL=rect.js.map","import extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrictEdges } from \"./edges.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noMin = {\n width: -Infinity,\n height: -Infinity\n};\nconst noMax = {\n width: +Infinity,\n height: +Infinity\n};\n\nfunction start(arg) {\n return restrictEdges.start(arg);\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n rect,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const minSize = rectUtils.tlbrToXywh(getRestrictionRect(options.min, interaction, arg.coords)) || noMin;\n const maxSize = rectUtils.tlbrToXywh(getRestrictionRect(options.max, interaction, arg.coords)) || noMax;\n state.options = {\n endOnly: options.endOnly,\n inner: extend({}, restrictEdges.noInner),\n outer: extend({}, restrictEdges.noOuter)\n };\n\n if (edges.top) {\n state.options.inner.top = rect.bottom - minSize.height;\n state.options.outer.top = rect.bottom - maxSize.height;\n } else if (edges.bottom) {\n state.options.inner.bottom = rect.top + minSize.height;\n state.options.outer.bottom = rect.top + maxSize.height;\n }\n\n if (edges.left) {\n state.options.inner.left = rect.right - minSize.width;\n state.options.outer.left = rect.right - maxSize.width;\n } else if (edges.right) {\n state.options.inner.right = rect.left + minSize.width;\n state.options.outer.right = rect.left + maxSize.width;\n }\n\n restrictEdges.set(arg);\n state.options = options;\n}\n\nconst defaults = {\n min: null,\n max: null,\n endOnly: false,\n enabled: false\n};\nconst restrictSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictSize, 'restrictSize');\nexport { restrictSize };\n//# sourceMappingURL=size.js.map","import extend from \"../../utils/extend.js\";\nimport getOriginXY from \"../../utils/getOriginXY.js\";\nimport hypot from \"../../utils/hypot.js\";\nimport is from \"../../utils/is.js\";\nimport { resolveRectLike, rectToXY } from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n state,\n startOffset\n } = arg;\n const {\n options\n } = state;\n const origin = options.offsetWithOrigin ? getOrigin(arg) : {\n x: 0,\n y: 0\n };\n let snapOffset;\n\n if (options.offset === 'startCoords') {\n snapOffset = {\n x: interaction.coords.start.page.x,\n y: interaction.coords.start.page.y\n };\n } else {\n const offsetRect = resolveRectLike(options.offset, interactable, element, [interaction]);\n snapOffset = rectToXY(offsetRect) || {\n x: 0,\n y: 0\n };\n snapOffset.x += origin.x;\n snapOffset.y += origin.y;\n }\n\n const {\n relativePoints\n } = options;\n state.offsets = rect && relativePoints && relativePoints.length ? relativePoints.map((relativePoint, index) => ({\n index,\n relativePoint,\n x: startOffset.left - rect.width * relativePoint.x + snapOffset.x,\n y: startOffset.top - rect.height * relativePoint.y + snapOffset.y\n })) : [extend({\n index: 0,\n relativePoint: null\n }, snapOffset)];\n}\n\nfunction set(arg) {\n const {\n interaction,\n coords,\n state\n } = arg;\n const {\n options,\n offsets\n } = state;\n const origin = getOriginXY(interaction.interactable, interaction.element, interaction.prepared.name);\n const page = extend({}, coords);\n const targets = [];\n\n if (!options.offsetWithOrigin) {\n page.x -= origin.x;\n page.y -= origin.y;\n }\n\n for (const offset of offsets) {\n const relativeX = page.x - offset.x;\n const relativeY = page.y - offset.y;\n\n for (let index = 0, len = options.targets.length; index < len; index++) {\n const snapTarget = options.targets[index];\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relativeX, relativeY, interaction._proxy, offset, index);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n targets.push({\n x: (is.number(target.x) ? target.x : relativeX) + offset.x,\n y: (is.number(target.y) ? target.y : relativeY) + offset.y,\n range: is.number(target.range) ? target.range : options.range,\n source: snapTarget,\n index,\n offset\n });\n }\n }\n\n const closest = {\n target: null,\n inRange: false,\n distance: 0,\n range: 0,\n delta: {\n x: 0,\n y: 0\n }\n };\n\n for (const target of targets) {\n const range = target.range;\n const dx = target.x - page.x;\n const dy = target.y - page.y;\n const distance = hypot(dx, dy);\n let inRange = distance <= range; // Infinite targets count as being out of range\n // compared to non infinite ones that are in range\n\n if (range === Infinity && closest.inRange && closest.range !== Infinity) {\n inRange = false;\n }\n\n if (!closest.target || (inRange // is the closest target in range?\n ? closest.inRange && range !== Infinity // the pointer is relatively deeper in this target\n ? distance / range < closest.distance / closest.range // this target has Infinite range and the closest doesn't\n : range === Infinity && closest.range !== Infinity || // OR this target is closer that the previous closest\n distance < closest.distance : // The other is not in range and the pointer is closer to this target\n !closest.inRange && distance < closest.distance)) {\n closest.target = target;\n closest.distance = distance;\n closest.range = range;\n closest.inRange = inRange;\n closest.delta.x = dx;\n closest.delta.y = dy;\n }\n }\n\n if (closest.inRange) {\n coords.x = closest.target.x;\n coords.y = closest.target.y;\n }\n\n state.closest = closest;\n return closest;\n}\n\nfunction getOrigin(arg) {\n const {\n element\n } = arg.interaction;\n const optionsOrigin = rectToXY(resolveRectLike(arg.state.options.origin, null, null, [element]));\n const origin = optionsOrigin || getOriginXY(arg.interactable, element, arg.interaction.prepared.name);\n return origin;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n offsetWithOrigin: true,\n origin: null,\n relativePoints: null,\n endOnly: false,\n enabled: false\n};\nconst snap = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snap, 'snap');\nexport { snap };\n//# sourceMappingURL=pointer.js.map","// This module allows snapping of the size of targets during resize\n// interactions.\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snap } from \"./pointer.js\";\n\nfunction start(arg) {\n const {\n state,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return null;\n }\n\n arg.state = {\n options: {\n targets: null,\n relativePoints: [{\n x: edges.left ? 0 : 1,\n y: edges.top ? 0 : 1\n }],\n offset: options.offset || 'self',\n origin: {\n x: 0,\n y: 0\n },\n range: options.range\n }\n };\n state.targetFields = state.targetFields || [['width', 'height'], ['x', 'y']];\n snap.start(arg);\n state.offsets = arg.state.offsets;\n arg.state = state;\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n coords\n } = arg;\n const {\n options,\n offsets\n } = state;\n const relative = {\n x: coords.x - offsets[0].x,\n y: coords.y - offsets[0].y\n };\n state.options = extend({}, options);\n state.options.targets = [];\n\n for (const snapTarget of options.targets || []) {\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relative.x, relative.y, interaction);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n for (const [xField, yField] of state.targetFields) {\n if (xField in target || yField in target) {\n target.x = target[xField];\n target.y = target[yField];\n break;\n }\n }\n\n state.options.targets.push(target);\n }\n\n const returnValue = snap.set(arg);\n state.options = options;\n return returnValue;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst snapSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snapSize, 'snapSize');\nexport { snapSize };\n//# sourceMappingURL=size.js.map","/**\n * @module modifiers/snapEdges\n *\n * @description\n * WOW> This module allows snapping of the edges of targets during resize\n * interactions.\n *\n * ```js\n * interact(target).resizable({\n * snapEdges: {\n * targets: [interact.snappers.grid({ x: 100, y: 50 })],\n * },\n * })\n *\n * interact(target).resizable({\n * snapEdges: {\n * targets: [\n * interact.snappers.grid({\n * top: 50,\n * left: 50,\n * bottom: 100,\n * right: 100,\n * }),\n * ],\n * },\n * })\n * ```\n */\nimport clone from \"../../utils/clone.js\";\nimport extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snapSize } from \"./size.js\";\n\nfunction start(arg) {\n const {\n edges\n } = arg;\n\n if (!edges) {\n return null;\n }\n\n arg.state.targetFields = arg.state.targetFields || [[edges.left ? 'left' : 'right', edges.top ? 'top' : 'bottom']];\n return snapSize.start(arg);\n}\n\nconst snapEdges = {\n start,\n set: snapSize.set,\n defaults: extend(clone(snapSize.defaults), {\n targets: null,\n range: null,\n offset: {\n x: 0,\n y: 0\n }\n })\n};\nexport default makeModifier(snapEdges, 'snapEdges');\nexport { snapEdges };\n//# sourceMappingURL=edges.js.map","/* eslint-disable node/no-extraneous-import */\nimport aspectRatio from \"./aspectRatio.js\";\nimport avoid from \"./avoid.js\";\nimport restrictEdges from \"./restrict/edges.js\";\nimport restrict from \"./restrict/pointer.js\";\nimport restrictRect from \"./restrict/rect.js\";\nimport restrictSize from \"./restrict/size.js\";\nimport rubberband from \"./rubberband.js\";\nimport snapEdges from \"./snap/edges.js\";\nimport snap from \"./snap/pointer.js\";\nimport snapSize from \"./snap/size.js\";\nimport spring from \"./spring.js\";\nimport transform from \"./transform.js\";\nexport default {\n aspectRatio,\n restrictEdges,\n restrict,\n restrictRect,\n restrictSize,\n snapEdges,\n snap,\n snapSize,\n spring,\n avoid,\n transform,\n rubberband\n};\n//# sourceMappingURL=all.js.map","import snappers from \"../snappers/plugin.js\";\nimport all from \"./all.js\";\nimport base from \"./base.js\";\nconst modifiers = {\n id: 'modifiers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n scope.usePlugin(base);\n scope.usePlugin(snappers);\n interact.modifiers = all; // for backwrads compatibility\n\n for (const type in all) {\n const {\n _defaults,\n _methods\n } = all[type];\n _defaults._methods = _methods;\n scope.defaults.perAction[type] = _defaults;\n }\n }\n\n};\nexport default modifiers;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","/* eslint-disable no-console */\nimport { Scope } from \"../core/scope.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { parentNode } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport * as win from \"../utils/window.js\";\nvar CheckName;\n\n(function (CheckName) {\n CheckName[\"touchAction\"] = \"touchAction\";\n CheckName[\"boxSizing\"] = \"boxSizing\";\n CheckName[\"noListeners\"] = \"noListeners\";\n})(CheckName || (CheckName = {}));\n\nconst prefix = '[interact.js] ';\nconst links = {\n touchAction: 'https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action',\n boxSizing: 'https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing'\n}; // eslint-disable-next-line no-undef\n\nconst isProduction = \"development\" === 'production'; // eslint-disable-next-line no-restricted-syntax\n\nfunction install(scope, {\n logger\n} = {}) {\n const {\n Interactable,\n defaults\n } = scope;\n scope.logger = logger || console;\n defaults.base.devTools = {\n ignore: {}\n };\n\n Interactable.prototype.devTools = function (options) {\n if (options) {\n extend(this.options.devTools, options);\n return this;\n }\n\n return this.options.devTools;\n };\n}\n\nconst checks = [{\n name: CheckName.touchAction,\n\n perform({\n element\n }) {\n return !parentHasStyle(element, 'touchAction', /pan-|pinch|none/);\n },\n\n getInfo({\n element\n }) {\n return [element, links.touchAction];\n },\n\n text: 'Consider adding CSS \"touch-action: none\" to this element\\n'\n}, {\n name: CheckName.boxSizing,\n\n perform(interaction) {\n const {\n element\n } = interaction;\n return interaction.prepared.name === 'resize' && element instanceof domObjects.HTMLElement && !hasStyle(element, 'boxSizing', /border-box/);\n },\n\n text: 'Consider adding CSS \"box-sizing: border-box\" to this resizable element',\n\n getInfo({\n element\n }) {\n return [element, links.boxSizing];\n }\n\n}, {\n name: CheckName.noListeners,\n\n perform(interaction) {\n const actionName = interaction.prepared.name;\n const moveListeners = interaction.interactable.events.types[`${actionName}move`] || [];\n return !moveListeners.length;\n },\n\n getInfo(interaction) {\n return [interaction.prepared.name, interaction.interactable];\n },\n\n text: 'There are no listeners set for this action'\n}];\n\nfunction hasStyle(element, prop, styleRe) {\n const value = element.style[prop] || win.window.getComputedStyle(element)[prop];\n return styleRe.test((value || '').toString());\n}\n\nfunction parentHasStyle(element, prop, styleRe) {\n let parent = element;\n\n while (is.element(parent)) {\n if (hasStyle(parent, prop, styleRe)) {\n return true;\n }\n\n parent = parentNode(parent);\n }\n\n return false;\n}\n\nconst id = 'dev-tools';\nconst defaultExport = isProduction ? {\n id,\n install: () => {}\n} : {\n id,\n install,\n listeners: {\n 'interactions:action-start': ({\n interaction\n }, scope) => {\n for (const check of checks) {\n const options = interaction.interactable && interaction.interactable.options;\n\n if (!(options && options.devTools && options.devTools.ignore[check.name]) && check.perform(interaction)) {\n scope.logger.warn(prefix + check.text, ...check.getInfo(interaction));\n }\n }\n }\n },\n checks,\n CheckName,\n links,\n prefix\n};\nexport default defaultExport;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export { default } from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=script&lang=js\"","import { render } from \"./GridItem.vue?vue&type=template&id=46ff2fc8\"\nimport script from \"./GridItem.vue?vue&type=script&lang=js\"\nexport * from \"./GridItem.vue?vue&type=script&lang=js\"\n\nimport \"./GridItem.vue?vue&type=style&index=0&id=46ff2fc8&lang=css\"\nscript.render = render\n\nexport default script","\r\n\r\n\r\n","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function(n){return{all:n=n||new Map,on:function(t,e){var i=n.get(t);i&&i.push(e)||n.set(t,[e])},off:function(t,e){var i=n.get(t);i&&i.splice(i.indexOf(e)>>>0,1)},emit:function(t,e){(n.get(t)||[]).slice().map(function(n){n(e)}),(n.get(\"*\")||[]).slice().map(function(n){n(t,e)})}}}\n//# sourceMappingURL=mitt.es.js.map\n","export { default } from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridLayout.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridLayout.vue?vue&type=script&lang=js\"","import { render } from \"./GridLayout.vue?vue&type=template&id=fc5948f6\"\nimport script from \"./GridLayout.vue?vue&type=script&lang=js\"\nexport * from \"./GridLayout.vue?vue&type=script&lang=js\"\n\nimport \"./GridLayout.vue?vue&type=style&index=0&id=fc5948f6&lang=css\"\nscript.render = render\n\nexport default script","import { App } from 'vue';\r\n\r\nimport GridItem from './GridItem.vue';\r\nimport GridLayout from './GridLayout.vue';\r\n\r\nexport { GridLayout, GridItem };\r\n\r\nconst install = (app: App) => {\r\n app.component('grid-layout', GridLayout)\r\n app.component('grid-item', GridItem)\r\n}\r\n\r\nexport default install;","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","// 20.1.2.2 Number.isFinite(number)\nvar $export = require('./_export');\nvar _isFinite = require('./_global').isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it) {\n return typeof it == 'number' && _isFinite(it);\n }\n});\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-grid-layout.umd.js.map b/dist/vue-grid-layout.umd.js.map deleted file mode 100644 index 83c6bc46..00000000 --- a/dist/vue-grid-layout.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://VueGridLayout/webpack/universalModuleDefinition","webpack://VueGridLayout/webpack/bootstrap","webpack://VueGridLayout/./node_modules/core-js/modules/_iter-define.js","webpack://VueGridLayout/./node_modules/core-js/modules/_string-at.js","webpack://VueGridLayout/./node_modules/core-js/modules/_advance-string-index.js","webpack://VueGridLayout/./src/components/GridItem.vue?d411","webpack://VueGridLayout/./node_modules/core-js/modules/_flags.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-keys.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-gopd.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-dps.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/detection-strategy/object.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/browser-detector.js","webpack://VueGridLayout/./node_modules/core-js/modules/_fix-re-wks.js","webpack://VueGridLayout/./node_modules/core-js/modules/_dom-create.js","webpack://VueGridLayout/./node_modules/core-js/modules/_classof.js","webpack://VueGridLayout/./node_modules/css-loader/dist/runtime/api.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-gops.js","webpack://VueGridLayout/./node_modules/core-js/modules/_redefine.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-create.js","webpack://VueGridLayout/./node_modules/core-js/modules/_wks.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/id-generator.js","webpack://VueGridLayout/./node_modules/core-js/modules/_library.js","webpack://VueGridLayout/./node_modules/core-js/modules/_cof.js","webpack://VueGridLayout/./node_modules/core-js/modules/_strict-method.js","webpack://VueGridLayout/./node_modules/core-js/modules/_hide.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-gpo.js","webpack://VueGridLayout/./node_modules/core-js/modules/_iter-create.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.object.keys.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-integer.js","webpack://VueGridLayout/./node_modules/core-js/modules/_property-desc.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.regexp.match.js","webpack://VueGridLayout/./src/components/GridItem.vue?3b34","webpack://VueGridLayout/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://VueGridLayout/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/listener-handler.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-object.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/id-handler.js","webpack://VueGridLayout/./node_modules/batch-processor/src/utils.js","webpack://VueGridLayout/./node_modules/core-js/modules/_regexp-exec.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-pie.js","webpack://VueGridLayout/./node_modules/core-js/modules/_shared.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.array.sort.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/element-utils.js","webpack://VueGridLayout/./node_modules/core-js/modules/_export.js","webpack://VueGridLayout/./node_modules/core-js/modules/_inherit-if-required.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-sap.js","webpack://VueGridLayout/./node_modules/core-js/modules/_regexp-exec-abstract.js","webpack://VueGridLayout/./node_modules/core-js/modules/_shared-key.js","webpack://VueGridLayout/./node_modules/core-js/modules/_iobject.js","webpack://VueGridLayout/./src/components/GridLayout.vue?845a","webpack://VueGridLayout/./node_modules/core-js/modules/_to-iobject.js","webpack://VueGridLayout/./node_modules/core-js/modules/_has.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-primitive.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-assign.js","webpack://VueGridLayout/./node_modules/core-js/modules/_global.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-absolute-index.js","webpack://VueGridLayout/./node_modules/core-js/modules/_fails.js","webpack://VueGridLayout/./node_modules/core-js/modules/_set-to-string-tag.js","webpack://VueGridLayout/./node_modules/core-js/modules/_core.js","webpack://VueGridLayout/./src/components/GridLayout.vue?2bad","webpack://VueGridLayout/./node_modules/core-js/modules/_iterators.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-dp.js","webpack://VueGridLayout/./node_modules/@soda/get-current-script/index.js","webpack://VueGridLayout/./node_modules/core-js/modules/_set-proto.js","webpack://VueGridLayout/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VueGridLayout/./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-gopn.js","webpack://VueGridLayout/./src/components/GridLayout.vue?c712","webpack://VueGridLayout/./node_modules/core-js/modules/_own-keys.js","webpack://VueGridLayout/./node_modules/core-js/modules/_ctx.js","webpack://VueGridLayout/./node_modules/core-js/modules/_add-to-unscopables.js","webpack://VueGridLayout/./node_modules/core-js/modules/_to-length.js","webpack://VueGridLayout/./node_modules/core-js/modules/_descriptors.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.regexp.replace.js","webpack://VueGridLayout/./node_modules/core-js/modules/_string-trim.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/reporter.js","webpack://VueGridLayout/./node_modules/core-js/modules/web.dom.iterable.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.regexp.exec.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/collection-utils.js","webpack://VueGridLayout/./node_modules/core-js/modules/_defined.js","webpack://VueGridLayout/./node_modules/batch-processor/src/batch-processor.js","webpack://VueGridLayout/./node_modules/core-js/modules/_array-includes.js","webpack://VueGridLayout/./src/components/GridItem.vue?1d19","webpack://VueGridLayout/./node_modules/core-js/modules/es6.number.constructor.js","webpack://VueGridLayout/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/detection-strategy/scroll.js","webpack://VueGridLayout/./node_modules/core-js/modules/_uid.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.array.iterator.js","webpack://VueGridLayout/./node_modules/core-js/modules/_an-object.js","webpack://VueGridLayout/./node_modules/core-js/modules/_object-keys-internal.js","webpack://VueGridLayout/./node_modules/core-js/modules/_is-object.js","webpack://VueGridLayout/./node_modules/core-js/modules/_iter-step.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/state-handler.js","webpack://VueGridLayout/./node_modules/core-js/modules/_a-function.js","webpack://VueGridLayout/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://VueGridLayout/./node_modules/element-resize-detector/src/element-resize-detector.js","webpack://VueGridLayout/./node_modules/core-js/modules/_create-property.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.object.assign.js","webpack://VueGridLayout/./node_modules/core-js/modules/_function-to-string.js","webpack://VueGridLayout/./node_modules/core-js/modules/_html.js","webpack://VueGridLayout/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VueGridLayout/./src/components/GridItem.vue","webpack://VueGridLayout/./src/helpers/utils.js","webpack://VueGridLayout/./src/helpers/draggableUtils.js","webpack://VueGridLayout/./src/helpers/responsiveUtils.js","webpack://VueGridLayout/./src/helpers/DOM.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/domObjects.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/isWindow.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/window.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/is.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/browser.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/arr.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/clone.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/extend.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/raf.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/normalizeListeners.js","webpack://VueGridLayout/./node_modules/@interactjs/core/Eventable.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/domUtils.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/rect.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/getOriginXY.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/hypot.js","webpack://VueGridLayout/./node_modules/@interactjs/core/BaseEvent.js","webpack://VueGridLayout/./node_modules/@interactjs/core/defaultOptions.js","webpack://VueGridLayout/./node_modules/@interactjs/core/InteractEvent.js","webpack://VueGridLayout/./node_modules/@interactjs/core/isNonNativeEvent.js","webpack://VueGridLayout/./node_modules/@interactjs/core/Interactable.js","webpack://VueGridLayout/./node_modules/@interactjs/core/InteractableSet.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/pointerExtend.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/pointerUtils.js","webpack://VueGridLayout/./node_modules/@interactjs/core/events.js","webpack://VueGridLayout/./node_modules/@interactjs/utils/misc.js","webpack://VueGridLayout/./node_modules/@interactjs/core/interactStatic.js","webpack://VueGridLayout/./node_modules/@interactjs/core/PointerInfo.js","webpack://VueGridLayout/./node_modules/@interactjs/core/Interaction.js","webpack://VueGridLayout/./node_modules/@interactjs/core/interactablePreventDefault.js","webpack://VueGridLayout/./node_modules/@interactjs/core/interactionFinder.js","webpack://VueGridLayout/./node_modules/@interactjs/core/interactions.js","webpack://VueGridLayout/./node_modules/@interactjs/core/scope.js","webpack://VueGridLayout/./node_modules/@interactjs/interact/index.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/InteractableMethods.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/base.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/dragAxis.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/hold.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/auto-start/index.js","webpack://VueGridLayout/./node_modules/@interactjs/actions/drag/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/actions/drag/index.js","webpack://VueGridLayout/./node_modules/@interactjs/actions/resize/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/actions/resize/index.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/edgeTarget.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/elements.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/grid.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/all.js","webpack://VueGridLayout/./node_modules/@interactjs/snappers/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/Modification.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/base.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/aspectRatio.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/noop.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/restrict/pointer.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/restrict/edges.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/restrict/rect.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/restrict/size.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/snap/pointer.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/snap/size.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/snap/edges.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/all.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/modifiers/index.js","webpack://VueGridLayout/./node_modules/@interactjs/dev-tools/plugin.js","webpack://VueGridLayout/./node_modules/@interactjs/dev-tools/index.js","webpack://VueGridLayout/./src/components/GridItem.vue?b8d1","webpack://VueGridLayout/./src/components/GridItem.vue?0590","webpack://VueGridLayout/./src/components/GridLayout.vue","webpack://VueGridLayout/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://VueGridLayout/./node_modules/mitt/dist/mitt.es.js","webpack://VueGridLayout/./src/components/GridLayout.vue?373d","webpack://VueGridLayout/./src/components/GridLayout.vue?19aa","webpack://VueGridLayout/./src/components/index.js","webpack://VueGridLayout/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js","webpack://VueGridLayout/./node_modules/core-js/modules/es6.number.is-finite.js","webpack://VueGridLayout/./node_modules/core-js/modules/_string-ws.js"],"names":["bottom","layout","max","bottomY","i","len","length","y","h","cloneLayout","newLayout","Array","cloneLayoutItem","layoutItem","JSON","parse","stringify","collides","l1","l2","x","w","compact","verticalCompact","compareWith","getStatics","sorted","sortLayoutItemsByRowCol","out","l","static","compactItem","push","indexOf","moved","getFirstCollision","correctBounds","bounds","collidesWith","cols","getLayoutItem","id","getAllCollisions","filter","moveElement","isUserAction","preventCollision","oldX","oldY","movingUp","reverse","collisions","collision","moveElementAwayFromCollision","itemToMove","fakeItem","Math","undefined","perc","num","setTransform","top","left","width","height","translate","transform","WebkitTransform","MozTransform","msTransform","OTransform","position","setTransformRtl","right","setTopLeft","setTopRight","concat","sort","a","b","validateLayout","contextName","subProps","keyArr","isArray","Error","item","j","autoBindHandlers","el","fns","forEach","key","bind","createMarkup","obj","keys","Object","result","val","hyphenate","addPx","IS_UNITLESS","animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridRow","gridColumn","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","stopOpacity","strokeDashoffset","strokeOpacity","strokeWidth","name","value","hyphenateRE","str","replace","toLowerCase","findItemInArray","array","property","findAndRemove","index","splice","getControlPosition","e","offsetXYFromParentOf","evt","offsetParent","target","document","body","offsetParentRect","getBoundingClientRect","clientX","scrollLeft","clientY","scrollTop","createCoreData","lastX","lastY","isStart","isNum","deltaX","deltaY","isNaN","getBreakpointFromWidth","breakpoints","sortBreakpoints","matching","breakpointName","getColsFromBreakpoint","breakpoint","findOrGenerateResponsiveLayout","orgLayout","layouts","lastBreakpoint","breakpointsSorted","breakpointsAbove","slice","generateResponsiveLayout","currentDir","hasDocument","hasWindow","window","getDocumentDir","direction","dir","getElementsByTagName","getAttribute","setDocumentDir","html","setAttribute","addWindowEventListener","event","callback","addEventListener","removeWindowEventListener","removeEventListener","install","app","component","GridLayout","GridItem"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;AClFa;AACb,cAAc,mBAAO,CAAC,MAAY;AAClC,cAAc,mBAAO,CAAC,MAAW;AACjC,eAAe,mBAAO,CAAC,MAAa;AACpC,WAAW,mBAAO,CAAC,MAAS;AAC5B,gBAAgB,mBAAO,CAAC,MAAc;AACtC,kBAAkB,mBAAO,CAAC,MAAgB;AAC1C,qBAAqB,mBAAO,CAAC,MAAsB;AACnD,qBAAqB,mBAAO,CAAC,MAAe;AAC5C,eAAe,mBAAO,CAAC,MAAQ;AAC/B,8CAA8C;AAC9C;AACA;AACA;;AAEA,8BAA8B,aAAa;;AAE3C;AACA;AACA;AACA;AACA;AACA,yCAAyC,oCAAoC;AAC7E,6CAA6C,oCAAoC;AACjF,KAAK,4BAA4B,oCAAoC;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB;AACnC;AACA;AACA,kCAAkC,2BAA2B;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;;;;;;;ACpEA,gBAAgB,mBAAO,CAAC,MAAe;AACvC,cAAc,mBAAO,CAAC,MAAY;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChBa;AACb,SAAS,mBAAO,CAAC,MAAc;;AAE/B;AACA;AACA;AACA;AACA;;;;;;;;;ACPA;AAAA;AAAA;;;;;;;;;ACAa;AACb;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACZ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EA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;;AAE7B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACtPa;;AAEb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;;;;;;;;ACtCa;AACb,mBAAO,CAAC,MAAmB;AAC3B,eAAe,mBAAO,CAAC,MAAa;AACpC,WAAW,mBAAO,CAAC,MAAS;AAC5B,YAAY,mBAAO,CAAC,MAAU;AAC9B,cAAc,mBAAO,CAAC,MAAY;AAClC,UAAU,mBAAO,CAAC,MAAQ;AAC1B,iBAAiB,mBAAO,CAAC,MAAgB;;AAEzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,yBAAyB,4CAA4C;AACrE;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA,6BAA6B,UAAU;AACvC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,2BAA2B,mBAAmB,aAAa;AAC3D;AACA;AACA;AACA;AACA,6CAA6C,WAAW;AACxD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA,kBAAkB;AAClB;AACA,gBAAgB;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,qCAAqC;AACrE;AACA;AACA,2BAA2B,gCAAgC;AAC3D;AACA;AACA;;;;;;;;AC/FA,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAW;AAClC;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA,UAAU,mBAAO,CAAC,MAAQ;AAC1B,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA,2BAA2B,kBAAkB,EAAE;;AAE/C;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACtBa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA;;AAEA;AACA,4CAA4C,qBAAqB;AACjE;;AAEA;AACA,KAAK;AACL,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qBAAqB,iBAAiB;AACtC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,qBAAqB;AACzC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,8BAA8B;;AAE9B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,CAAC;;;AAGD;AACA;AACA;AACA,qDAAqD,cAAc;AACnE;AACA,C;;;;;;;AC7FA;;;;;;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ACL;AACA,qBAAqB,uBAAuB;AAC5C;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC7Na;;AAEb;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,+CAA+C,SAAS;AACxD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,QAAQ;AAC/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3DA;AACA,cAAc,mBAAO,CAAC,MAAY;AAClC;AACA;AACA;;;;;;;;;ACJa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,mBAAmB;AACpC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,mBAAm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AACA;AACA,GAAG,YAAY;AACf;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;;AAEA;;AAEA;AACA,MAAM,IAA0C;AAChD,IAAI,iCAAO,EAAE,oCAAE,OAAO;AAAA;AAAA;AAAA,oGAAC;AACvB,GAAG,MAAM,EAIN;AACH,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D;;AAE1D;AACA;AACA,+DAA+D,qBAAqB;AACpF;AACA;;AAEA,qBAAqB,oBAAoB;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;AC9ED;AACA;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA,cAAc,mBAAO,CAAC,MAAQ,iBAAiB,mBAAO,CAAC,MAAgB;AACvE;AACA;AACA,OAAO,YAAY,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;AACA;;;;;;;;ACxBA,mD;;;;;;;ACAA;AACA,cAAc,mBAAO,CAAC,MAAW;AACjC,cAAc,mBAAO,CAAC,MAAa;AACnC,gBAAgB,mBAAO,CAAC,MAAe;AACvC,WAAW,mBAAO,CAAC,MAAgB;AACnC,qBAAqB,mBAAO,CAAC,MAAoB;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;ACrBD;AACA,YAAY,mBAAO,CAAC,MAAyB;AAC7C,iBAAiB,mBAAO,CAAC,MAAkB;;AAE3C;AACA;AACA;;;;;;;;ACNA;;AAEA;AACA,cAAc,mBA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A;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;ACrHD,cAAc,mBAAO,CAAC,MAAW;AACjC,cAAc,mBAAO,CAAC,MAAY;AAClC,YAAY,mBAAO,CAAC,MAAU;AAC9B,aAAa,mBAAO,CAAC,MAAc;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;AC7Ba;;AAEb;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA,iBAAiB;AACjB,mCAAmC,sBAAsB;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,E;;;;;;;AC1CA,iBAAiB,mBAAO,CAAC,MAAsB;AAC/C,cAAc,mBAAO,CAAC,MAAgB;AACtC,eAAe,mBAAO,CAAC,MAAa;AACpC,aAAa,mBAAO,CAAC,MAAW;AAChC,WAAW,mBAAO,CAAC,MAAS;AAC5B,gBAAgB,mBAAO,CAAC,MAAc;AACtC,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oDAAoD,wBAAwB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzDa;AACb,iBAAiB,mBAAO,CAAC,MAAgB;AACzC,mBAAO,CAAC,MAAW;AACnB;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;;;;;;;;;ACRY;;AAEb;;AAEA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,SAAS;AACpB,aAAa,EAAE;AACf;AACA;AACA,kBAAkB,uBAAuB;AACzC;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;;;;;;;;;ACJa;;AAEb,YAAY,mBAAO,CAAC,MAAS;;AAE7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,4IAA4I,kCAAkC;AAC9K,gCAAgC,0BAA0B;AAC1D;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oCAAoC,mBAAmB;AACvD;;AAEA,0BAA0B,gBAAgB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzIA;AACA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC,eAAe,mBAAO,CAAC,MAAc;AACrC,sBAAsB,mBAAO,CAAC,MAA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AAE,EAAE;AACvG,CAAC;;;;;;;;;ACFD;AACA;AACA;AACA;;AAEa;;AAEb,cAAc,mBAAO,CAAC,MAAqB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,yDAAyD,OAAO;;AAEhE;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wEAAwE,gDAAgD;AACxH,8DAA8D,mMAAmM;AACjQ,2EAA2E,KAAK,YAAY,EAAE,MAAM,YAAY,EAAE,OAAO,YAAY,EAAE,EAAE;AACzI,2EAA2E,KAAK,YAAY,EAAE,MAAM,YAAY,EAAE,OAAO,YAAY,EAAE,EAAE;AACzI;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oEAAoE;AACpE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACppBA;AACA;AACA;AACA;AACA;;;;;;;;;ACJa;AACb,uBAAuB,mBAAO,CAAC,MAAuB;AACtD,WAAW,mBAAO,CAAC,MAAc;AACjC,gBAAgB,mBAAO,CAAC,MAAc;AACtC,gBAAgB,mBAAO,CAAC,MAAe;;AAEvC;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,MAAgB;AACzC,gCAAgC;AAChC,cAAc;AACd,iBAAiB;AACjB;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;;;;;;;;ACjCA,eAAe,mBAAO,CAA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ACA;AACA,qCAAqC,6CAA6C,EAAE;AACpF;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mFAAmF,qBAAqB;;AAExG;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,SAAS;AACxB,eAAe,kBAAkB;AACjC,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA,8EAA8E;AAC9E;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA,yDAAyD,6CAA6C;AACtG;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;A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;;AAEA,MAAM,EAAE;AACR;AACA;AACA,GAAG,UAAU,EAAE;AACf;AACA;AACA;AACA,GAAG,UAAU,EAAE;AACf;AACA,sDAAsD,KAAK,EAAE,EAAE;AAC/D;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,8C;;ACvCuC;AACC;AACe;;AAEvD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEO,MAAM,mBAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,MAAM,GAAG,eAAe;AAC3C;;AAEA;AACA;AACA,+BAA+B;AAC/B;;AAEA;AACA;AACA,KAAK;;;AAGL;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,SAAS;;AAE/B;AACA,yBAAyB,KAAS;AAClC;AACA;;AAEA;AACA,sBAAsB,SAAS;;AAE/B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,qC;;ACxEmC;AACM;AAChB;AACU;AAC5B;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACO,SAAS,gBAAO;AACvB,SAAS,EAAE;AACX;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACO;AACP;;AAEA,MAAM,EAAE;AACR;AACA;AACA,qCAAqC,EAAE;AACvC;AACA;;AAEA;AACA;;AAEA;AACA;AACO;AACP;AACA,MAAM,GAAU,KAAK,UAAc;AACnC;AACA;;AAEA,iBAAiB,aAAO;AACxB;;AAEA,iDAAiD;;;AAG1C;AACP;AACA;;AAEA,iBAAiB,qBAAqB;AACtC;AACA,mDAAmD;;AAEnD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,qDAAqD;AACrD;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;;;AAGP;AACA;AACA;AACA;;AAEA;AACA,KAAK;;;AAGL;AACA,sBAAsB;;AAEtB,+BAA+B,gBAAU,uCAAuC,gBAAU,wCAAwC,gBAAU;AAC5I;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;;AAEA;AACA,wBAAwB;;AAExB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,+BAA+B,SAAa;AAC5C,8BAA8B,SAAa;AAC3C;AACA;;AAEO;AACP,SAAS,EAAE;AACX;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACO;AACP,qCAAqC,GAAU;AAC/C;AACA;AACA;AACA;AACA;AACO;AACP,wCAAwC,gBAAU;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;;AAEA,OAAO,aAAO;AACd,+BAA+B,SAAa;AAC5C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP,OAAO,EAAE;AACT;AACA,GAAG;;;AAGH,EAAE,gBAAU;AACZ;AACA;AACA,oC;;AC/NoE;AACnC;AACR;AAClB;AACP;AACA,WAAW,UAAU;AACrB;;AAEA;AACA;AACA;;AAEA,SAAS,gBAAO;AAChB;AACO;AACP;;AAEA,MAAM,EAAE;AACR;AACA,GAAG,UAAU,EAAE;AACf;AACA;;AAEA,MAAM,EAAE;AACR,kBAAkB,cAAc;AAChC;;AAEA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACO;AACP;AACA,WAAW,MAAM,GAAG;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA,WAAW,MAAM,GAAG;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gC;;AC7EsD;AACvC;AACf;AACA;AACA;AACA,qBAAqB,eAAe;AACpC,SAAS,QAAQ;AACjB;AACA;AACA;AACA,CAAC;AACD,uC;;ACXgB,4EAAkC,EAAE;AACpD,iC;;ACDO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA,CAAC;AACD,qC;;AC5CA;AACA;AACO,MAAM,uBAAQ;AACrB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,0C;;AChBwC;AACU;AACZ;AACK;AACI;AACxC,MAAM,2BAAa,SAAS,SAAS;AAC5C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,uBAAQ;AAC7D,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,gBAAgB,MAAM,GAAG;AACzB,kBAAkB,MAAM,GAAG;AAC3B,gBAAgB,MAAM,GAAG;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA,6CAA6C;;AAE7C,oBAAoB,MAAM,GAAG;AAC7B,iBAAiB,KAAK;AACtB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA,CAAC;AACD;;AAEA,wBAAwB,2BAAa;AACrC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,CAAC;AACD,yC;;AC3Oe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4C;;ACbA;AACuC;AACG;AACJ;AACwD;AACtD;AACR;AACgC;AACjB;AACJ;AACU;;AAErD;AACO,MAAM,yBAAY;AACzB;AACA;AACA;AACA,cAAc;AACd,mBAAmB;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB,mBAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,SAAS,CAAC,WAAW;AACrC;AACA;AACA;AACA;;AAEA;AACA,QAAQ,EAAE;AACV,iBAAiB,WAAW;AAC5B;;AAEA,QAAQ,EAAE;AACV,iBAAiB,WAAW;AAC5B;;AAEA,QAAQ,EAAE;AACV,iBAAiB,WAAW;AAC5B;;AAEA,QAAQ,EAAE;AACV,iBAAiB,WAAW;AAC5B;;AAEA;AACA;;AAEA;AACA,QAAQ,EAAE,gBAAgB,EAAE;AAC5B;AACA;;AAEA,QAAQ,EAAE,eAAe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AK;AACL;AACA;AACA;;AAEA;AACA,wC;;AC/YuC;AACU;AACT;AACR;AACzB,MAAM,+BAAe;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT,+BAA+B,EAAE;AACjC,4BAA4B,SAAa;;AAEzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA,cAAc,MAAM,cAAc;AAClC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,uBAAuB,EAAE;AACzB;;AAEA;AACA;AACA;;AAEA,kBAAkB,IAAQ;AAC1B;AACA;;AAEA;AACA;AACA;;AAEA,WAAW,EAAE;AACb,QAAQ,EAAE,kBAAkB,eAAwB;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,2C;;ACtGA;AACA;AACA;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACe,qEAAa,EAAC;AAC7B,yC;;ACzBmC;AACD;AACQ;AACX;AACN;AACsB;AACxC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACO;AACP,4BAA4B,gBAAG,6BAA6B,gBAAG;AAC/D,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA,IAAI;;AAEJ,MAAM,aAAO;AACb;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACO;AACP;;AAEA,MAAM,aAAO;AACb;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACO;AACP,SAAS,EAAE;AACX;AACO;AACP;AACA;AACA;AACA;AACA;AACO;AACP,qBAAqB;;AAErB,MAAM,EAAE;AACR;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA,SAAS,KAAK;AACd;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP,SAAS,EAAE,qDAAqD,EAAE;AAClE;AACA,qDAAqD,gBAAG;AACxD,CAAC;;AAEM;AACP,eAAe,EAAE;AACjB,UAAU,gBAAyB,iCAAiC,gBAAyB;AAC7F;AACO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACO;AACP;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACyB;AACzB,wC;;ACzPmC;AACI;AACU;AACT;AACR;AACgB;AACS;;AAEzD,SAAS,cAAO;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,GAAG;AACH;;AAEA;AACA;AACA,iBAAiB,IAAQ;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yCAAyC,QAAY;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA,wBAAwB,SAAa;AACrC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,8CAA8C,QAAQ;AACtD;AACA;;AAEA;AACA,OAAO;AACP,uBAAuB,0BAA0B;AACjD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,IAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;;AAGL,sCAAsC,YAAY;AAClD,mCAAmC;;AAEnC;AACA;AACA;AACA,SAAS,OAAO;;AAEhB,0CAA0C,QAAQ;AAClD;AACA;AACA;AACA,WAAW,iBAAiB;;AAE5B;AACA;AACA,mCAAmC;AACnC;;AAEA;AACA,yCAAyC;;AAEzC;AACA;AACA,aAAa;;;AAGb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA,0BAA0B,gBAAS;AACnC;AACA,0BAA0B,eAA4B;AACtD,8BAA8B;;AAE9B,WAAW,EAAE;AACb,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA,SAAS;;AAET,YAAY,eAAwB,uBAAuB,YAAqB,0BAA0B,YAAqB;AAC/H;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,UAAmB;AACnC;AACA;;AAEA;AACA;AACA,GAAG;;;AAGH;AACA;;AAEA,MAAM,gBAAS;AACf;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC,IAAI,mBAAO;AACX;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,OAAO,EAAE;AACT;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,MAAM,GAAG;AAC3B;AACA;AACA;AACA;;AAEe;AACf;AACA,SAAS;AACT,CAAC,EAAC;AACF,kC;;ACpRqC;AAC9B;AACP;AACA;AACA;AACA,MAAM,GAAM;AACZ;AACA;;AAEA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA,gC;;AClBA;AAC0C;AACO;AACjB;AACyB;AACb;AACS;AAC9C;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ,+BAA+B,cAA2B;AAC1D,0BAA0B,SAAsB;AAChD,8BAA8B,aAA0B;AACxD,2BAA2B,UAAuB;AAClD,4BAA4B,cAAuB;AACnD,kCAAkC,oBAA6B;AAC/D,6BAA6B,eAAwB;AACrD,qBAAqB,gBAAgB;AACrC,6BAA6B;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc,QAAQ;AACtB;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,SAAS;AACtB,aAAa,iBAAiB;AAC9B;AACA,cAAc,OAAO;AACrB;;;AAGA,gBAAgB,QAAQ;AACxB,QAAQ,EAAE;AACV;AACA;;AAEA,QAAQ,EAAE;AACV;AACA;AACA;;AAEA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA;AACA;;AAEA;AACA,KAAK;;;AAGL,QAAQ,gBAAgB;AACxB;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC;AACA,aAAa,SAAS;AACtB,aAAa,iBAAiB;AAC9B;AACA,cAAc,OAAO;AACrB;;AAEA,iBAAiB,QAAQ;AACzB,QAAQ,EAAE;AACV;AACA;;AAEA,QAAQ,EAAE;AACV;AACA;AACA;;AAEA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA;AACA;;AAEA;AACA;;AAEA,QAAQ,gBAAgB;AACxB;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;;;AAGA;AACA,WAAW,aAAO;AAClB;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;;;AAGA;AACA,WAAW,aAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc;AACd;;;AAGA;AACA,QAAQ,EAAE;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,0C;;AC7PO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uC;;ACfuC;AACC;AACF;AACkB;AACC;AACX;AACK;AACJ;AACxC;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,oCAAoC;;AAE9B;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,sCAAsC;;AAEvC;AACO,MAAM,uBAAW;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,QAAQ;AAC1B;AACA,KAAK;AACL;AACA;AACA,aAAa,SAAsB;AACnC;AACA,YAAY,SAAsB;AAClC;AACA,WAAW,SAAsB;AACjC;AACA,aAAa,SAAsB;AACnC;AACA,gBAAgB,SAAsB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,OAAO;AACP;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,8BAA8B,eAAe;AAC7C;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,qBAAqB;AAClE;AACA;AACA,aAAa,OAAO;AACpB,aAAa,aAAa;AAC1B,aAAa,QAAQ;AACrB,cAAc,QAAQ;AACtB;;;AAGA;AACA;AACA;AACA;;AAEA,IAAI,UAAU;AACd;AACA;AACA;AACA,uCAAuC,MAAM,GAAG;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA,6BAA6B,KAAK;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,gBAA6B;AACnC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,UAAuB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,QAAQ,eAAe;AAChE;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,MAAM,aAA0B;AAChC;;AAEA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA,KAAK,iBAAiB;AACtB;;AAEA;AACA,GAAG;;;AAGH;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,oCAAoC,KAAK;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,aAAa,aAAa;AAC1B;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,YAAyB,UAAU;;AAEzD,mGAAmG,SAAa;AAChH;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,YAAyB;AACxC;AACA;AACA;;AAEA;AACA,wBAAwB,WAAW;AACnC;AACA;AACA,KAAK;AACL;AACA;;AAEA,IAAI,SAAsB;AAC1B,IAAI,cAA2B;;AAE/B;AACA;AACA;AACA;AACA,MAAM,mBAA0B;;AAEhC;AACA,QAAQ,UAAuB;AAC/B,QAAQ,UAAuB;AAC/B;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,2BAAa;AAC5B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,MAAM,QAAkB;AACxB;AACA;AACA;;AAEA,uEAAuE,MAAM;;AAE7E;AACA;AACA;;AAEA;;AAEA,2CAA2C,MAAM;;AAEjD;AACA;AACA;;AAEA;;AAEA,iDAAiD,MAAM;;AAEvD;AACA;;AAEA;AACA;AACA;;AAEA;AACe,4EAAW,EAAC;AACJ;AACvB,uC;;ACxgBiD;AACoB;AACrC;AACe;;AAE/C;AACA;AACA;AACA;AACA;;AAEA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,mCAAmC,WAAW;AAC9C;;;AAGA;AACA,gBAAgB,SAAS;AACzB;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA,GAAG;;;AAGH,MAAM,EAAE,0BAA0B,eAAe;AACjD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEO,SAAS,kCAAO;AACvB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,sBAAsB;AACpC;;AAEA;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA,4EAA4E,YAAY;AACxF;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACe;AACf;AACA,SAAS;AACT;AACA,wBAAwB,UAAU;AAClC;AACA,GAAG,IAAI;AACP,CAAC,EAAC;AACF,sD;;AC/G4C;AAC5C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,UAAc;AAClC;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;;;AAGA;AACA;AACA,KAAK;AACL;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,gDAAgD;AAChD;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEe,4DAAM,EAAC;AACtB,6C;;AC/I+C;AACL;AACM;AACI;AACK;AACV;AAC0B;AAC7B;AAC5C;;AAEA,SAAS,oBAAO;AAChB;;AAEA;AACA;AACA;;AAEA,sBAAsB,aAAO;AAC7B;;AAEA,MAAM,gBAAU;AAChB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,GAAG,EAAE;;AAEL;AACA,oCAAoC,gBAAe;AACnD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;;;AAGP;AACA;AACA;AACA,SAAS,KAAK,YAAY;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,0BAA0B;AAC5C;;AAEA;AACA;AACA;AACA,wBAAwB,cAA2B;AACnD,0CAA0C,eAA4B;AACtE,uBAAuB;;AAEvB;AACA,wCAAwC;;AAExC;AACA;AACA,0BAA0B,YAAyB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,WAAW,aAAO;AAClB;AACA,uBAAuB,4CAA4C;AACnE;AACA,SAAS;AACT;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,YAAyB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;;AAGL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,2BAA2B,iBAAM;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,MAAM,yBAAY;AAClB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,sDAAsD,QAAQ;AAC9D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACe,+EAAY,EAAC;AAC5B,wC;;ACrR0C;AACJ;AACU;AACR;AACN;AACQ;AACC;AACQ;AACkB;AACd;AACR;AACd;AAC0B;AACd;AACtC,MAAM,WAAK;AAClB;AACA;AACA;AACA;AACA;AACA,kCAAkC,gCAAgC;AAClE;AACA;AACA,mBAAmB,aAAO;AAC1B,oBAAoB,KAAK,CAAC,uBAAQ;AAClC,qBAAqB,mBAAS;AAC9B;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,OAAO;AACP,oBAAoB;AACpB;AACA;AACA,0BAA0B,oBAAoB;AAC9C,yBAAyB,2BAAa;AACtC;AACA,6BAA6B,+BAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sCAAsC,yBAAgB;AACtD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAI;;AAEX,YAAY,aAAa;AACzB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAa;AAChC,wBAAwB,MAAM,GAAG;AACjC;AACA;AACA;AACA,KAAK;AACL,oCAAoC;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,mBAAmB,SAAa;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,mBAAmB,2BAA2B;AAC9C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACO;AACP;AACA,EAAE,WAAQ;AACV,EAAE,gBAAU;AACZ,EAAE,aAAO;AACT,EAAE,GAAG;AACL;AACA;AACA,kBAAkB,iBAAY;AAC9B,kBAAkB,MAAM;AACxB;AACA;;AAEA;AACA;AACA;AACA,iC;;ACxOyC;AACzC,MAAM,cAAK,OAAO,WAAK;AACvB,MAAM,iBAAQ,GAAG,cAAK;AACP,0EAAQ,EAAC;AACjB,MAAM,aAAI,UAAU,cAAK;;AAEhC;AACA,EAAE,aAAI;AACN;AACA,iC;;ACTuD;AACvB;AACY;;AAE5C,SAAS,2BAAO;AAChB;AACA;AACA;;AAEA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA,aAAa,wBAAwB;AACrC;AACA,cAAc,0BAA0B;AACxC;AACA;;;AAGA,sCAAsC,QAAQ;AAC9C;AACA,GAAG,6EAA6E,qBAAqB;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,aAAa,wBAAwB;AACrC;AACA,cAAc,0BAA0B;AACxC;AACA;;AAEA,qCAAqC,QAAQ;AAC7C;AACA,GAAG,4EAA4E,oBAAoB;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA,cAAc,wBAAwB;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,cAAc,uBAAuB;AACrC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEe;AACf;AACA,SAAS;AACT,CAAC,EAAC;AACF,+C;;AC7KqD;AACJ;AACT;AACR;AACc;AACa;;AAE3D,SAAS,YAAO;AAChB;AACA;AACA;AACA,GAAG;AACH,kBAAkB,mBAAmB;AACrC;AACA;AACA,EAAE,MAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,CAAC;AACD;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uCAAuC,SAAS;AAChD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS,EAAE;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,cAAc,UAAmB;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,EAAE,UAAU;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;;AAEvB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACe,kDAAS,EAAC;AACzB,gC;;AC9TkD;AAClB;AACE;;AAElC;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;;AAE3B;AACA;AACA,qCAAqC;;AAErC;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,6FAA6F,IAAS;AACtG;AACA;AACA;AACA,MAAM;;;AAGN,WAAW,EAAE;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,UAAU;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA,CAAC,EAAC;AACF,oC;;AC5EiD;AACd;;AAEnC,SAAS,YAAO;AAChB;AACA;AACA,GAAG;AACH,kBAAkB,IAAU;AAC5B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACe,wDAAI,EAAC;AACpB,gC;;AClEkC;AACG;AACR;AACd;AACf;;AAEA;AACA,oBAAoB,IAAS;AAC7B,oBAAoB,eAAI;AACxB,oBAAoB,QAAQ;AAC5B;;AAEA,CAAC,EAAC;AACF,kC;;ACbA;AACsD;AACrB;;AAEjC;AACA,EAAE,aAAI;AACN;;AAEA,oBAAQ,KAAK,iBAAM;AACnB,iC;;ACT0D;AACvB;;AAEnC,SAAS,cAAO;AAChB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC,mCAAmC;AACnC,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA,YAAY,uBAAuB;AACnC;AACA;;;AAGA,MAAM,gBAAS;AACf,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACe,oDAAI,EAAC;AACpB,kC;;AClKA;AACyD;AACxB;;AAEjC;AACA,EAAE,aAAI;AACN;;AAEA,oBAAQ,KAAK,WAAM;AACnB,iC;;ACT0D;AACF;AACT;AACJ;AACR;;AAEnC,SAAS,qBAAO;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG,SAAS;;AAEZ;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC,mCAAmC;AACnC,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,6BAA6B;AACnE;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA,cAAc,uBAAuB;AACrC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,eAAe,MAAM,GAAG;AACxB;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH,MAAM,EAAE;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM,EAAE;AACR;AACA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA,KAAK;AACL;AACA;;AAEA,QAAQ,EAAE;AACV;AACA,KAAK,UAAU,EAAE;AACjB;AACA;;AAEA;AACA;;AAEA,MAAM,EAAE;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA,kBAAkB,EAAE;AACpB,mBAAmB,EAAE,4DAA4D;;AAEjF;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH,OAAO,EAAE;AACT;AACA;;AAEA,SAAS,EAAE;AACX;AACA,IAAI,WAAe;AACnB;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,MAAM,GAAG;AACpB,eAAe,MAAM,GAAG;AACxB,cAAc,MAAM,GAAG;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,WAAI;AACb;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,EAAE,MAAM;;AAER;AACA;AACA,IAAI,MAAM;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,MAAM,WAAI;AACV;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACe,wDAAM,EAAC;AACtB,kC;;ACjcA;AACyD;AACxB;;AAEjC;AACA,EAAE,aAAI;AACN;;AAEA,oBAAQ,KAAK,aAAM;AACnB,iC;;ACTgB,uDAAQ,EAAE;AAC1B,sC;;ACDgB,8DAAQ,EAAE;AAC1B,oC;;ACDgB;AAChB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH,gC;;ACtCwD;AACJ;AACR;AAC5C,+B;;ACHwC;AACA;AACxC;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,wBAAwB,MAAM,wBAAwB,EAAE,mBAAW;AACnE;AACA;;AAEA;AACe,kEAAc,EAAC;AAC9B,kC;;ACfsC;AACE;AACM;AAC/B,MAAM,yBAAY;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL;AACA;AACA,iBAAiB,MAAM,GAAG;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,iBAAiB,MAAM,GAAG;AAC1B,eAAe,MAAM,GAAG;AACxB;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,iCAAiC,MAAM,GAAG;AAC1C;;AAEA;AACA;AACA;AACA,QAAQ,QAAkB;AAC1B;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,MAAM,MAAM;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,yBAAyB;AACzB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,wBAAwB,MAAM;AAC9B;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,6BAA6B;AACpD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,wCAAwC,KAAK;AAC7C,+BAA+B,MAAM,GAAG,wBAAwB,MAAM,GAAG;AACzE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,wC;;ACvYyD;AACR;AACJ;AACtC;AACP;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL,qCAAqC,yBAAY;AACjD,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,gEAAa,EAAC;AAC7B,gC;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,eAAe;AAC3D,QAAQ;AACR,6BAA6B,oBAAoB;AACjD;AACA,IAAI;AACJ;AACA;AACwC;AACI;AACC;AACJ;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,wBAAwB,MAAM,GAAG;AACjC,sBAAsB,MAAM,GAAG;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,IAAI,MAAM;;AAEV;AACA;AACA;;AAEA,gCAAgC,yBAAY;AAC5C;AACA;AACA;AACA,8BAA8B;AAC9B,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,0BAA0B,MAAM,GAAG;AACnC;AACA;;AAEA;AACA;AACA;;AAEA,0BAA0B,MAAM,GAAG;AACnC,IAAI,QAAQ;AACZ;AACA;AACA,KAAK;AACL,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA,oEAAoE;;AAEpE;AACA,MAAM,MAAM;AACZ;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEe,sEAAY,4BAA4B,EAAC;AACjC;AACvB,uC;;ACtJA;;AAEA;AACe,uDAAI,EAAC;AACpB,gC;;ACJ2C;AACR;AACc;AACP;;AAE1C,SAAS,aAAK;AACd;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,GAAG,sBAAsB;;AAEzB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA,eAAe,UAAoB;AACnC;AACA;AACA;;AAEO;AACP,MAAM,EAAE;AACR,WAAW,eAAyB;AACpC,GAAG;AACH,WAAW,eAAyB;AACpC;AACA;AACA,MAAM,gBAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,UAAU;AACV;AACe,iEAAY,sBAAsB,EAAC;AAC9B;AACpB,mC;;AC7FA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC;AACA,eAAe,+CAA+C;AAC9D,eAAe,+CAA+C;AAC9D,MAAM;AACN,IAAI;AACuC;AACM;AACP;AACQ;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,WAAK;AACd;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,GAAG;AACH;;AAEA;AACA,uBAAuB,kBAAkB;AACzC,aAAa,QAAkB;AAC/B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,SAAG;AACZ;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,eAAe,MAAM,GAAG;AACxB,gBAAgB,kBAAkB;AAClC,gBAAgB,kBAAkB;AAClC;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,MAAM,cAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,UAAU;AACV;AACe,+DAAY,gCAAgC,EAAC;AACnC;AACzB,iC;;AClH2C;AACD;AACF;AACxC,MAAM,aAAQ,GAAG,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA,CAAC,EAAE,QAAQ;AACX;AACA,SAAS,QAAQ;AACjB,OAAO,QAAQ;AACf,UAAU;AACV;AACe,8DAAY,8BAA8B,EAAC;AAClC;AACxB,gC;;ACvB2C;AACM;AACP;AACC;AACO;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,UAAK;AACd,SAAS,aAAa;AACtB;;AAEA,SAAS,QAAG;AACZ;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,kBAAkB,UAAoB,CAAC,kBAAkB;AACzD,kBAAkB,UAAoB,CAAC,kBAAkB;AACzD;AACA;AACA,WAAW,MAAM,GAAG,EAAE,aAAa;AACnC,WAAW,MAAM,GAAG,EAAE,aAAa;AACnC;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,EAAE,aAAa;AACf;AACA;;AAEA,MAAM,aAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,UAAU;AACV;AACe,qDAAY,8BAA8B,EAAC;AAClC;AACxB,gC;;AC1E2C;AACU;AACZ;AACN;AAC6B;AACtB;;AAE1C,SAAS,kBAAK;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,uBAAuB,eAAe;AACtC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG,MAAM,MAAM;AACf;AACA;AACA,GAAG;AACH;;AAEA,SAAS,WAAG;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH,iBAAiB,WAAW;AAC5B,eAAe,MAAM,GAAG;AACxB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qDAAqD,aAAa;AAClE;AACA;;AAEA,UAAU,EAAE;AACZ;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAY,EAAE;AACd,YAAY,EAAE;AACd,eAAe,EAAE;AACjB;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,KAAK;AAC1B,oCAAoC;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH,wBAAwB,QAAQ,CAAC,eAAe;AAChD,kCAAkC,WAAW;AAC7C;AACA;;AAEA,MAAM,qBAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,UAAU;AACV;AACe,6DAAY,cAAc,EAAC;AAC1B;AAChB,mC;;AC/KA;AACA;AAC2C;AACR;AACO;AACN;;AAEpC,SAAS,eAAK;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,EAAE,IAAI;AACN;AACA;AACA;;AAEA,SAAS,aAAG;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,kBAAkB,MAAM,GAAG;AAC3B;;AAEA;AACA;;AAEA,QAAQ,EAAE;AACV;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB,IAAI;AAC1B;AACA;AACA;;AAEA,MAAM,kBAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,UAAU;AACV;AACe,0DAAY,sBAAsB,EAAC;AAC9B;AACpB,gC;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,gBAAgB;AACzD,MAAM;AACN,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,MAAM;AACN,IAAI;AACJ;AACA;AACyC;AACE;AACD;AACL;;AAErC,SAAS,gBAAK;AACd;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA,SAAS,QAAQ;AACjB;;AAEA;AACA,OAAO;AACP,OAAO,QAAQ;AACf,YAAY,MAAM,CAAC,KAAK,CAAC,QAAQ;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACe,2DAAY,wBAAwB,EAAC;AAC/B;AACrB,iC;;AC5DA;AAC2C;AACZ;AACiB;AACH;AACC;AACA;AACL;AACD;AACH;AACC;AACL;AACM;AACxB;AACf,EAAE,kCAAW;AACb,EAAE,6BAAa;AACf,EAAE,0BAAQ;AACV,EAAE,2BAAY;AACd,EAAE,kBAAY;AACd,EAAE,qBAAS;AACX,EAAE,kBAAI;AACN,EAAE,mBAAQ;AACV,EAAE,sBAAM;AACR,EAAE,qBAAK;AACP,EAAE,yBAAS;AACX,EAAE,0BAAU;AACZ,CAAC,EAAC;AACF,+B;;AC3B6C;AAClB;AACE;AAC7B,MAAM,gBAAS;AACf;;AAEA;AACA;AACA;AACA,KAAK;AACL,oBAAoB,cAAI;AACxB,oBAAoB,eAAQ;AAC5B,yBAAyB,aAAG,CAAC;;AAE7B,uBAAuB,aAAG;AAC1B;AACA;AACA;AACA,OAAO,GAAG,aAAG;AACb;AACA;AACA;AACA;;AAEA;AACe,qEAAS,EAAC;AACzB,kC;;AC1BA;AACsD;AACrB;;AAEjC;AACA,EAAE,aAAI;AACN;;AAEA,oBAAQ,KAAK,gBAAM;AACnB,iC;;ACTA;AACyC;AACO;AACE;AACV;AACR;AACU;AAC1C;;AAEA;AACA;AACA;AACA;AACA,CAAC,8BAA8B;;AAE/B;AACA;AACA;AACA;AACA,EAAE;;AAEF,oDAAoD;;AAEpD,SAAS,wBAAO;AAChB;AACA,CAAC,KAAK;AACN;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,MAAM;AACZ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;;AAEH;AACA;AACA,GAAG;AACH;AACA,GAAG;;AAEH;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,KAAK;AACL,wEAAwE,gBAAU;AAClF,GAAG;;AAEH;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA,CAAC;AACD;;AAEA;AACA;AACA,mEAAmE,WAAW;AAC9E;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA,uCAAuC,GAAU;AACjD;AACA;;AAEA;AACA;;AAEA,SAAS,EAAE;AACX;AACA;AACA;;AAEA,aAAa,UAAU;AACvB;;AAEA;AACA;;AAEA,MAAM,SAAE;AACR;AACA,IAAI;AACJ;AACA,CAAC;AACD,IAAI;AACJ,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACe,kEAAa,EAAC;AAC7B,kC;;AC5IA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EA;;AAEA,IAAMI,kBAAO,GAAG,SAAVA,OAAU,CAACC;AAAD;AAAA,EAAc;AAC1BA,KAAG,CAACC,SAAJ,CAAc,aAAd,EAA6BC,UAA7B;AACAF,KAAG,CAACC,SAAJ,CAAc,WAAd,EAA2BE,QAA3B;AACH,CAHD;;AAKeJ,iEAAf,E;;ACZwB;AACA;AACT,yFAAG;AACI;;;;;;;;ACHtB;AACA,cAAc,mBAAO,CAAC,MAAW;AACjC,gBAAgB,mBAAO,CAAC,MAAW;;AAEnC;AACA;AACA;AACA;AACA,CAAC;;;;;;;;ACRD;AACA","file":"vue-grid-layout.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueGridLayout\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"VueGridLayout\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","'use strict';\nvar at = require('./_string-at')(true);\n\n // `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? at(S, index).length : 1);\n};\n","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=style&index=0&id=46ff2fc8&lang=css\"","'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = require('./_an-object');\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","/**\n * Resize detection strategy that injects objects to elements in order to detect resize events.\n * Heavily inspired by: http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/\n */\n\n\"use strict\";\n\nvar browserDetector = require(\"../browser-detector\");\n\nmodule.exports = function(options) {\n options = options || {};\n var reporter = options.reporter;\n var batchProcessor = options.batchProcessor;\n var getState = options.stateHandler.getState;\n\n if(!reporter) {\n throw new Error(\"Missing required dependency: reporter.\");\n }\n\n /**\n * Adds a resize event listener to the element.\n * @public\n * @param {element} element The element that should have the listener added.\n * @param {function} listener The listener callback to be called for each resize event of the element. The element will be given as a parameter to the listener callback.\n */\n function addListener(element, listener) {\n function listenerProxy() {\n listener(element);\n }\n\n if(browserDetector.isIE(8)) {\n //IE 8 does not support object, but supports the resize event directly on elements.\n getState(element).object = {\n proxy: listenerProxy\n };\n element.attachEvent(\"onresize\", listenerProxy);\n } else {\n var object = getObject(element);\n\n if(!object) {\n throw new Error(\"Element is not detectable by this strategy.\");\n }\n\n object.contentDocument.defaultView.addEventListener(\"resize\", listenerProxy);\n }\n }\n\n function buildCssTextString(rules) {\n var seperator = options.important ? \" !important; \" : \"; \";\n\n return (rules.join(seperator) + seperator).trim();\n }\n\n /**\n * Makes an element detectable and ready to be listened for resize events. Will call the callback when the element is ready to be listened for resize changes.\n * @private\n * @param {object} options Optional options object.\n * @param {element} element The element to make detectable\n * @param {function} callback The callback to be called when the element is ready to be listened for resize changes. Will be called with the element as first parameter.\n */\n function makeDetectable(options, element, callback) {\n if (!callback) {\n callback = element;\n element = options;\n options = null;\n }\n\n options = options || {};\n var debug = options.debug;\n\n function injectObject(element, callback) {\n var OBJECT_STYLE = buildCssTextString([\"display: block\", \"position: absolute\", \"top: 0\", \"left: 0\", \"width: 100%\", \"height: 100%\", \"border: none\", \"padding: 0\", \"margin: 0\", \"opacity: 0\", \"z-index: -1000\", \"pointer-events: none\"]);\n\n //The target element needs to be positioned (everything except static) so the absolute positioned object will be positioned relative to the target element.\n\n // Position altering may be performed directly or on object load, depending on if style resolution is possible directly or not.\n var positionCheckPerformed = false;\n\n // The element may not yet be attached to the DOM, and therefore the style object may be empty in some browsers.\n // Since the style object is a reference, it will be updated as soon as the element is attached to the DOM.\n var style = window.getComputedStyle(element);\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n getState(element).startSize = {\n width: width,\n height: height\n };\n\n function mutateDom() {\n function alterPositionStyles() {\n if(style.position === \"static\") {\n element.style.setProperty(\"position\", \"relative\", options.important ? \"important\" : \"\");\n\n var removeRelativeStyles = function(reporter, element, style, property) {\n function getNumericalValue(value) {\n return value.replace(/[^-\\d\\.]/g, \"\");\n }\n\n var value = style[property];\n\n if(value !== \"auto\" && getNumericalValue(value) !== \"0\") {\n reporter.warn(\"An element that is positioned static has style.\" + property + \"=\" + value + \" which is ignored due to the static positioning. The element will need to be positioned relative, so the style.\" + property + \" will be set to 0. Element: \", element);\n element.style.setProperty(property, \"0\", options.important ? \"important\" : \"\");\n }\n };\n\n //Check so that there are no accidental styles that will make the element styled differently now that is is relative.\n //If there are any, set them to 0 (this should be okay with the user since the style properties did nothing before [since the element was positioned static] anyway).\n removeRelativeStyles(reporter, element, style, \"top\");\n removeRelativeStyles(reporter, element, style, \"right\");\n removeRelativeStyles(reporter, element, style, \"bottom\");\n removeRelativeStyles(reporter, element, style, \"left\");\n }\n }\n\n function onObjectLoad() {\n // The object has been loaded, which means that the element now is guaranteed to be attached to the DOM.\n if (!positionCheckPerformed) {\n alterPositionStyles();\n }\n\n /*jshint validthis: true */\n\n function getDocument(element, callback) {\n //Opera 12 seem to call the object.onload before the actual document has been created.\n //So if it is not present, poll it with an timeout until it is present.\n //TODO: Could maybe be handled better with object.onreadystatechange or similar.\n if(!element.contentDocument) {\n var state = getState(element);\n if (state.checkForObjectDocumentTimeoutId) {\n window.clearTimeout(state.checkForObjectDocumentTimeoutId);\n }\n state.checkForObjectDocumentTimeoutId = setTimeout(function checkForObjectDocument() {\n state.checkForObjectDocumentTimeoutId = 0;\n getDocument(element, callback);\n }, 100);\n\n return;\n }\n\n callback(element.contentDocument);\n }\n\n //Mutating the object element here seems to fire another load event.\n //Mutating the inner document of the object element is fine though.\n var objectElement = this;\n\n //Create the style element to be added to the object.\n getDocument(objectElement, function onObjectDocumentReady(objectDocument) {\n //Notify that the element is ready to be listened to.\n callback(element);\n });\n }\n\n // The element may be detached from the DOM, and some browsers does not support style resolving of detached elements.\n // The alterPositionStyles needs to be delayed until we know the element has been attached to the DOM (which we are sure of when the onObjectLoad has been fired), if style resolution is not possible.\n if (style.position !== \"\") {\n alterPositionStyles(style);\n positionCheckPerformed = true;\n }\n\n //Add an object element as a child to the target element that will be listened to for resize events.\n var object = document.createElement(\"object\");\n object.style.cssText = OBJECT_STYLE;\n object.tabIndex = -1;\n object.type = \"text/html\";\n object.setAttribute(\"aria-hidden\", \"true\");\n object.onload = onObjectLoad;\n\n //Safari: This must occur before adding the object to the DOM.\n //IE: Does not like that this happens before, even if it is also added after.\n if(!browserDetector.isIE()) {\n object.data = \"about:blank\";\n }\n\n if (!getState(element)) {\n // The element has been uninstalled before the actual loading happened.\n return;\n }\n\n element.appendChild(object);\n getState(element).object = object;\n\n //IE: This must occur after adding the object to the DOM.\n if(browserDetector.isIE()) {\n object.data = \"about:blank\";\n }\n }\n\n if(batchProcessor) {\n batchProcessor.add(mutateDom);\n } else {\n mutateDom();\n }\n }\n\n if(browserDetector.isIE(8)) {\n //IE 8 does not support objects properly. Luckily they do support the resize event.\n //So do not inject the object and notify that the element is already ready to be listened to.\n //The event handler for the resize event is attached in the utils.addListener instead.\n callback(element);\n } else {\n injectObject(element, callback);\n }\n }\n\n /**\n * Returns the child object of the target element.\n * @private\n * @param {element} element The target element.\n * @returns The object element of the target.\n */\n function getObject(element) {\n return getState(element).object;\n }\n\n function uninstall(element) {\n if (!getState(element)) {\n return;\n }\n\n var object = getObject(element);\n\n if (!object) {\n return;\n }\n\n if (browserDetector.isIE(8)) {\n element.detachEvent(\"onresize\", object.proxy);\n } else {\n element.removeChild(object);\n }\n\n if (getState(element).checkForObjectDocumentTimeoutId) {\n window.clearTimeout(getState(element).checkForObjectDocumentTimeoutId);\n }\n\n delete getState(element).object;\n }\n\n return {\n makeDetectable: makeDetectable,\n addListener: addListener,\n uninstall: uninstall\n };\n};\n","\"use strict\";\n\nvar detector = module.exports = {};\n\ndetector.isIE = function(version) {\n function isAnyIeVersion() {\n var agent = navigator.userAgent.toLowerCase();\n return agent.indexOf(\"msie\") !== -1 || agent.indexOf(\"trident\") !== -1 || agent.indexOf(\" edge/\") !== -1;\n }\n\n if(!isAnyIeVersion()) {\n return false;\n }\n\n if(!version) {\n return true;\n }\n\n //Shamelessly stolen from https://gist.github.com/padolsey/527683\n var ieVersion = (function(){\n var undef,\n v = 3,\n div = document.createElement(\"div\"),\n all = div.getElementsByTagName(\"i\");\n\n do {\n div.innerHTML = \"\";\n }\n while (all[0]);\n\n return v > 4 ? v : undef;\n }());\n\n return version === ieVersion;\n};\n\ndetector.isLegacyOpera = function() {\n return !!window.opera;\n};\n","'use strict';\nrequire('./es6.regexp.exec');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\nvar regexpExec = require('./_regexp-exec');\n\nvar SPECIES = wks('species');\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$') !== '7';\n});\n\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {\n // Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length === 2 && result[0] === 'a' && result[1] === 'b';\n})();\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n re.exec = function () { execCalled = true; return null; };\n if (KEY === 'split') {\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n }\n re[SYMBOL]('');\n return !execCalled;\n }) : undefined;\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||\n (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var fns = exec(\n defined,\n SYMBOL,\n ''[KEY],\n function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n }\n );\n var strfn = fns[0];\n var rxfn = fns[1];\n\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || '').concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}","exports.f = Object.getOwnPropertySymbols;\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","\"use strict\";\n\nmodule.exports = function() {\n var idCount = 1;\n\n /**\n * Generates a new unique id in the context.\n * @public\n * @returns {number} A unique id in the context.\n */\n function generate() {\n return idCount++;\n }\n\n return {\n generate: generate\n };\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\n\n// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match\n function (regexp) {\n var res = maybeCallNative($match, regexp, this);\n if (res.done) return res.value;\n var rx = anObject(regexp);\n var S = String(this);\n if (!rx.global) return regExpExec(rx, S);\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = String(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }\n ];\n});\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item,.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url(\\\"data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+\\\");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of \r\n\r\n","// @flow\r\nexport type LayoutItemRequired = {w: number, h: number, x: number, y: number, i: string};\r\nexport type LayoutItem = LayoutItemRequired &\r\n {minW?: number, minH?: number, maxW?: number, maxH?: number,\r\n moved?: boolean, static?: boolean,\r\n isDraggable?: ?boolean, isResizable?: ?boolean};\r\nexport type Layout = Array;\r\n// export type Position = {left: number, top: number, width: number, height: number};\r\n/*\r\nexport type DragCallbackData = {\r\n node: HTMLElement,\r\n x: number, y: number,\r\n deltaX: number, deltaY: number,\r\n lastX: number, lastY: number\r\n};\r\n*/\r\n// export type DragEvent = {e: Event} & DragCallbackData;\r\nexport type Size = {width: number, height: number};\r\n// export type ResizeEvent = {e: Event, node: HTMLElement, size: Size};\r\n\r\n// const isProduction = process.env.NODE_ENV === 'production';\r\n/**\r\n * Return the bottom coordinate of the layout.\r\n *\r\n * @param {Array} layout Layout array.\r\n * @return {Number} Bottom coordinate.\r\n */\r\nexport function bottom(layout: Layout): number {\r\n let max = 0, bottomY;\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n bottomY = layout[i]. y + layout[i].h;\r\n if (bottomY > max) max = bottomY;\r\n }\r\n return max;\r\n}\r\n\r\nexport function cloneLayout(layout: Layout): Layout {\r\n const newLayout = Array(layout.length);\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n newLayout[i] = cloneLayoutItem(layout[i]);\r\n }\r\n return newLayout;\r\n}\r\n\r\n// Fast path to cloning, since this is monomorphic\r\nexport function cloneLayoutItem(layoutItem: LayoutItem): LayoutItem {\r\n /*return {\r\n w: layoutItem.w, h: layoutItem.h, x: layoutItem.x, y: layoutItem.y, i: layoutItem.i,\r\n minW: layoutItem.minW, maxW: layoutItem.maxW, minH: layoutItem.minH, maxH: layoutItem.maxH,\r\n moved: Boolean(layoutItem.moved), static: Boolean(layoutItem.static),\r\n // These can be null\r\n isDraggable: layoutItem.isDraggable, isResizable: layoutItem.isResizable\r\n };*/\r\n return JSON.parse(JSON.stringify(layoutItem));\r\n}\r\n\r\n/**\r\n * Given two layoutitems, check if they collide.\r\n *\r\n * @return {Boolean} True if colliding.\r\n */\r\nexport function collides(l1: LayoutItem, l2: LayoutItem): boolean {\r\n if (l1 === l2) return false; // same element\r\n if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2\r\n if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2\r\n if (l1.y + l1.h <= l2.y) return false; // l1 is above l2\r\n if (l1.y >= l2.y + l2.h) return false; // l1 is below l2\r\n return true; // boxes overlap\r\n}\r\n\r\n/**\r\n * Given a layout, compact it. This involves going down each y coordinate and removing gaps\r\n * between items.\r\n *\r\n * @param {Array} layout Layout.\r\n * @param {Boolean} verticalCompact Whether or not to compact the layout\r\n * vertically.\r\n * @return {Array} Compacted Layout.\r\n */\r\nexport function compact(layout: Layout, verticalCompact: Boolean): Layout {\r\n // Statics go in the compareWith array right away so items flow around them.\r\n const compareWith = getStatics(layout);\r\n // We go through the items by row and column.\r\n const sorted = sortLayoutItemsByRowCol(layout);\r\n // Holding for new items.\r\n const out = Array(layout.length);\r\n\r\n for (let i = 0, len = sorted.length; i < len; i++) {\r\n let l = sorted[i];\r\n\r\n // Don't move static elements\r\n if (!l.static) {\r\n l = compactItem(compareWith, l, verticalCompact);\r\n\r\n // Add to comparison array. We only collide with items before this one.\r\n // Statics are already in this array.\r\n compareWith.push(l);\r\n }\r\n\r\n // Add to output array to make sure they still come out in the right order.\r\n out[layout.indexOf(l)] = l;\r\n\r\n // Clear moved flag, if it exists.\r\n l.moved = false;\r\n }\r\n\r\n return out;\r\n}\r\n\r\n/**\r\n * Compact an item in the layout.\r\n */\r\nexport function compactItem(compareWith: Layout, l: LayoutItem, verticalCompact: boolean): LayoutItem {\r\n if (verticalCompact) {\r\n // Move the element up as far as it can go without colliding.\r\n while (l.y > 0 && !getFirstCollision(compareWith, l)) {\r\n l.y--;\r\n }\r\n }\r\n\r\n // Move it down, and keep moving it down if it's colliding.\r\n let collides;\r\n while((collides = getFirstCollision(compareWith, l))) {\r\n l.y = collides.y + collides.h;\r\n }\r\n return l;\r\n}\r\n\r\n/**\r\n * Given a layout, make sure all elements fit within its bounds.\r\n *\r\n * @param {Array} layout Layout array.\r\n * @param {Number} bounds Number of columns.\r\n */\r\nexport function correctBounds(layout: Layout, bounds: {cols: number}): Layout {\r\n const collidesWith = getStatics(layout);\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n const l = layout[i];\r\n // Overflows right\r\n if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;\r\n // Overflows left\r\n if (l.x < 0) {\r\n l.x = 0;\r\n l.w = bounds.cols;\r\n }\r\n if (!l.static) collidesWith.push(l);\r\n else {\r\n // If this is static and collides with other statics, we must move it down.\r\n // We have to do something nicer than just letting them overlap.\r\n while(getFirstCollision(collidesWith, l)) {\r\n l.y++;\r\n }\r\n }\r\n }\r\n return layout;\r\n}\r\n\r\n/**\r\n * Get a layout item by ID. Used so we can override later on if necessary.\r\n *\r\n * @param {Array} layout Layout array.\r\n * @param {String} id ID\r\n * @return {LayoutItem} Item at ID.\r\n */\r\nexport function getLayoutItem(layout: Layout, id: string): ?LayoutItem {\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n if (layout[i].i === id) return layout[i];\r\n }\r\n}\r\n\r\n/**\r\n * Returns the first item this layout collides with.\r\n * It doesn't appear to matter which order we approach this from, although\r\n * perhaps that is the wrong thing to do.\r\n *\r\n * @param {Object} layoutItem Layout item.\r\n * @return {Object|undefined} A colliding layout item, or undefined.\r\n */\r\nexport function getFirstCollision(layout: Layout, layoutItem: LayoutItem): ?LayoutItem {\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n if (collides(layout[i], layoutItem)) return layout[i];\r\n }\r\n}\r\n\r\nexport function getAllCollisions(layout: Layout, layoutItem: LayoutItem): Array {\r\n return layout.filter((l) => collides(l, layoutItem));\r\n}\r\n\r\n/**\r\n * Get all static elements.\r\n * @param {Array} layout Array of layout objects.\r\n * @return {Array} Array of static layout items..\r\n */\r\nexport function getStatics(layout: Layout): Array {\r\n //return [];\r\n return layout.filter((l) => l.static);\r\n}\r\n\r\n/**\r\n * Move an element. Responsible for doing cascading movements of other elements.\r\n *\r\n * @param {Array} layout Full layout to modify.\r\n * @param {LayoutItem} l element to move.\r\n * @param {Number} [x] X position in grid units.\r\n * @param {Number} [y] Y position in grid units.\r\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is\r\n * being dragged/resized by th euser.\r\n */\r\nexport function moveElement(layout: Layout, l: LayoutItem, x: Number, y: Number, isUserAction: Boolean, preventCollision: Boolean): Layout {\r\n if (l.static) return layout;\r\n\r\n // Short-circuit if nothing to do.\r\n //if (l.y === y && l.x === x) return layout;\r\n\r\n const oldX = l.x;\r\n const oldY = l.y;\r\n\r\n const movingUp = y && l.y > y;\r\n // This is quite a bit faster than extending the object\r\n if (typeof x === 'number') l.x = x;\r\n if (typeof y === 'number') l.y = y;\r\n l.moved = true;\r\n\r\n // If this collides with anything, move it.\r\n // When doing this comparison, we have to sort the items we compare with\r\n // to ensure, in the case of multiple collisions, that we're getting the\r\n // nearest collision.\r\n let sorted = sortLayoutItemsByRowCol(layout);\r\n if (movingUp) sorted = sorted.reverse();\r\n const collisions = getAllCollisions(sorted, l);\r\n\r\n if (preventCollision && collisions.length) {\r\n l.x = oldX;\r\n l.y = oldY;\r\n l.moved = false;\r\n return layout;\r\n }\r\n\r\n // Move each item that collides away from this element.\r\n for (let i = 0, len = collisions.length; i < len; i++) {\r\n const collision = collisions[i];\r\n // console.log('resolving collision between', l.i, 'at', l.y, 'and', collision.i, 'at', collision.y);\r\n\r\n // Short circuit so we can't infinite loop\r\n if (collision.moved) continue;\r\n\r\n // This makes it feel a bit more precise by waiting to swap for just a bit when moving up.\r\n if (l.y > collision.y && l.y - collision.y > collision.h / 4) continue;\r\n\r\n // Don't move static items - we have to move *this* element away\r\n if (collision.static) {\r\n layout = moveElementAwayFromCollision(layout, collision, l, isUserAction);\r\n } else {\r\n layout = moveElementAwayFromCollision(layout, l, collision, isUserAction);\r\n }\r\n }\r\n\r\n return layout;\r\n}\r\n\r\n/**\r\n * This is where the magic needs to happen - given a collision, move an element away from the collision.\r\n * We attempt to move it up if there's room, otherwise it goes below.\r\n *\r\n * @param {Array} layout Full layout to modify.\r\n * @param {LayoutItem} collidesWith Layout item we're colliding with.\r\n * @param {LayoutItem} itemToMove Layout item we're moving.\r\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is being dragged/resized\r\n * by the user.\r\n */\r\nexport function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem,\r\n itemToMove: LayoutItem, isUserAction: ?boolean): Layout {\r\n\r\n const preventCollision = false // we're already colliding\r\n // If there is enough space above the collision to put this element, move it there.\r\n // We only do this on the main collision as this can get funky in cascades and cause\r\n // unwanted swapping behavior.\r\n if (isUserAction) {\r\n // Make a mock item so we don't modify the item here, only modify in moveElement.\r\n const fakeItem: LayoutItem = {\r\n x: itemToMove.x,\r\n y: itemToMove.y,\r\n w: itemToMove.w,\r\n h: itemToMove.h,\r\n i: '-1'\r\n };\r\n fakeItem.y = Math.max(collidesWith.y - itemToMove.h, 0);\r\n if (!getFirstCollision(layout, fakeItem)) {\r\n return moveElement(layout, itemToMove, undefined, fakeItem.y, preventCollision);\r\n }\r\n }\r\n\r\n // Previously this was optimized to move below the collision directly, but this can cause problems\r\n // with cascading moves, as an item may actually leapflog a collision and cause a reversal in order.\r\n return moveElement(layout, itemToMove, undefined, itemToMove.y + 1, preventCollision);\r\n}\r\n\r\n/**\r\n * Helper to convert a number to a percentage string.\r\n *\r\n * @param {Number} num Any number\r\n * @return {String} That number as a percentage.\r\n */\r\nexport function perc(num: number): string {\r\n return num * 100 + '%';\r\n}\r\n\r\nexport function setTransform(top, left, width, height): Object {\r\n // Replace unitless items with px\r\n const translate = \"translate3d(\" + left + \"px,\" + top + \"px, 0)\";\r\n return {\r\n transform: translate,\r\n WebkitTransform: translate,\r\n MozTransform: translate,\r\n msTransform: translate,\r\n OTransform: translate,\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n/**\r\n * Just like the setTransform method, but instead it will return a negative value of right.\r\n *\r\n * @param top\r\n * @param right\r\n * @param width\r\n * @param height\r\n * @returns {{transform: string, WebkitTransform: string, MozTransform: string, msTransform: string, OTransform: string, width: string, height: string, position: string}}\r\n */\r\nexport function setTransformRtl(top, right, width, height): Object {\r\n // Replace unitless items with px\r\n const translate = \"translate3d(\" + right * -1 + \"px,\" + top + \"px, 0)\";\r\n return {\r\n transform: translate,\r\n WebkitTransform: translate,\r\n MozTransform: translate,\r\n msTransform: translate,\r\n OTransform: translate,\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n\r\nexport function setTopLeft(top, left, width, height): Object {\r\n return {\r\n top: top + \"px\",\r\n left: left + \"px\",\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n/**\r\n * Just like the setTopLeft method, but instead, it will return a right property instead of left.\r\n *\r\n * @param top\r\n * @param right\r\n * @param width\r\n * @param height\r\n * @returns {{top: string, right: string, width: string, height: string, position: string}}\r\n */\r\nexport function setTopRight(top, right, width, height): Object {\r\n return {\r\n top: top + \"px\",\r\n right: right+ \"px\",\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n\r\n\r\n/**\r\n * Get layout items sorted from top left to right and down.\r\n *\r\n * @return {Array} Array of layout objects.\r\n * @return {Array} Layout, sorted static items first.\r\n */\r\nexport function sortLayoutItemsByRowCol(layout: Layout): Layout {\r\n return [].concat(layout).sort(function(a, b) {\r\n if (a.y === b.y && a.x === b.x) {\r\n return 0;\r\n }\r\n\r\n if (a.y > b.y || (a.y === b.y && a.x > b.x)) {\r\n return 1;\r\n }\r\n\r\n return -1;\r\n });\r\n}\r\n\r\n/**\r\n * Generate a layout using the initialLayout and children as a template.\r\n * Missing entries will be added, extraneous ones will be truncated.\r\n *\r\n * @param {Array} initialLayout Layout passed in through props.\r\n * @param {String} breakpoint Current responsive breakpoint.\r\n * @param {Boolean} verticalCompact Whether or not to compact the layout vertically.\r\n * @return {Array} Working layout.\r\n */\r\n/*\r\nexport function synchronizeLayoutWithChildren(initialLayout: Layout, children: Array|React.Element,\r\n cols: number, verticalCompact: boolean): Layout {\r\n // ensure 'children' is always an array\r\n if (!Array.isArray(children)) {\r\n children = [children];\r\n }\r\n initialLayout = initialLayout || [];\r\n\r\n // Generate one layout item per child.\r\n let layout: Layout = [];\r\n for (let i = 0, len = children.length; i < len; i++) {\r\n let newItem;\r\n const child = children[i];\r\n\r\n // Don't overwrite if it already exists.\r\n const exists = getLayoutItem(initialLayout, child.key || \"1\" /!* FIXME satisfies Flow *!/);\r\n if (exists) {\r\n newItem = exists;\r\n } else {\r\n const g = child.props._grid;\r\n\r\n // Hey, this item has a _grid property, use it.\r\n if (g) {\r\n if (!isProduction) {\r\n validateLayout([g], 'ReactGridLayout.children');\r\n }\r\n // Validated; add it to the layout. Bottom 'y' possible is the bottom of the layout.\r\n // This allows you to do nice stuff like specify {y: Infinity}\r\n if (verticalCompact) {\r\n newItem = cloneLayoutItem({...g, y: Math.min(bottom(layout), g.y), i: child.key});\r\n } else {\r\n newItem = cloneLayoutItem({...g, y: g.y, i: child.key});\r\n }\r\n }\r\n // Nothing provided: ensure this is added to the bottom\r\n else {\r\n newItem = cloneLayoutItem({w: 1, h: 1, x: 0, y: bottom(layout), i: child.key || \"1\"});\r\n }\r\n }\r\n layout[i] = newItem;\r\n }\r\n\r\n // Correct the layout.\r\n layout = correctBounds(layout, {cols: cols});\r\n layout = compact(layout, verticalCompact);\r\n\r\n return layout;\r\n}\r\n*/\r\n\r\n/**\r\n * Validate a layout. Throws errors.\r\n *\r\n * @param {Array} layout Array of layout items.\r\n * @param {String} [contextName] Context name for errors.\r\n * @throw {Error} Validation error.\r\n */\r\nexport function validateLayout(layout: Layout, contextName: string): void {\r\n contextName = contextName || \"Layout\";\r\n const subProps = ['x', 'y', 'w', 'h'];\r\n let keyArr = [];\r\n if (!Array.isArray(layout)) throw new Error(contextName + \" must be an array!\");\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n const item = layout[i];\r\n for (let j = 0; j < subProps.length; j++) {\r\n if (typeof item[subProps[j]] !== 'number') {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].' + subProps[j] + ' must be a number!');\r\n }\r\n }\r\n\r\n if (item.i === undefined || item.i === null) {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i cannot be null!');\r\n }\r\n\r\n if (typeof item.i !== 'number' && typeof item.i !== 'string') {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be a string or number!');\r\n }\r\n\r\n if (keyArr.indexOf(item.i) >= 0) {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be unique!');\r\n }\r\n keyArr.push(item.i);\r\n\r\n if (item.static !== undefined && typeof item.static !== 'boolean') {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].static must be a boolean!');\r\n }\r\n }\r\n}\r\n\r\n// Flow can't really figure this out, so we just use Object\r\nexport function autoBindHandlers(el: Object, fns: Array): void {\r\n fns.forEach((key) => el[key] = el[key].bind(el));\r\n}\r\n\r\n\r\n\r\n/**\r\n * Convert a JS object to CSS string. Similar to React's output of CSS.\r\n * @param obj\r\n * @returns {string}\r\n */\r\nexport function createMarkup(obj) {\r\n var keys = Object.keys(obj);\r\n if (!keys.length) return '';\r\n var i, len = keys.length;\r\n var result = '';\r\n\r\n for (i = 0; i < len; i++) {\r\n var key = keys[i];\r\n var val = obj[key];\r\n result += hyphenate(key) + ':' + addPx(key, val) + ';';\r\n }\r\n\r\n return result;\r\n}\r\n\r\n\r\n/* The following list is defined in React's core */\r\nexport var IS_UNITLESS = {\r\n animationIterationCount: true,\r\n boxFlex: true,\r\n boxFlexGroup: true,\r\n boxOrdinalGroup: true,\r\n columnCount: true,\r\n flex: true,\r\n flexGrow: true,\r\n flexPositive: true,\r\n flexShrink: true,\r\n flexNegative: true,\r\n flexOrder: true,\r\n gridRow: true,\r\n gridColumn: true,\r\n fontWeight: true,\r\n lineClamp: true,\r\n lineHeight: true,\r\n opacity: true,\r\n order: true,\r\n orphans: true,\r\n tabSize: true,\r\n widows: true,\r\n zIndex: true,\r\n zoom: true,\r\n\r\n // SVG-related properties\r\n fillOpacity: true,\r\n stopOpacity: true,\r\n strokeDashoffset: true,\r\n strokeOpacity: true,\r\n strokeWidth: true\r\n};\r\n\r\n\r\n/**\r\n * Will add px to the end of style values which are Numbers.\r\n * @param name\r\n * @param value\r\n * @returns {*}\r\n */\r\nexport function addPx(name, value) {\r\n if(typeof value === 'number' && !IS_UNITLESS[ name ]) {\r\n return value + 'px';\r\n } else {\r\n return value;\r\n }\r\n}\r\n\r\n\r\n/**\r\n * Hyphenate a camelCase string.\r\n *\r\n * @param {String} str\r\n * @return {String}\r\n */\r\n\r\nexport var hyphenateRE = /([a-z\\d])([A-Z])/g;\r\n\r\nexport function hyphenate(str) {\r\n return str.replace(hyphenateRE, '$1-$2').toLowerCase();\r\n}\r\n\r\n\r\nexport function findItemInArray(array, property, value) {\r\n for (var i=0; i < array.length; i++)\r\n if (array[i][property] == value)\r\n return true;\r\n\r\n return false;\r\n}\r\n\r\nexport function findAndRemove(array, property, value) {\r\n array.forEach(function (result, index) {\r\n if (result[property] === value) {\r\n //Remove from array\r\n array.splice(index, 1);\r\n }\r\n });\r\n}\r\n","// Get {x, y} positions from event.\r\nexport function getControlPosition(e) {\r\n return offsetXYFromParentOf(e);\r\n}\r\n\r\n\r\n// Get from offsetParent\r\nexport function offsetXYFromParentOf(evt) {\r\n const offsetParent = evt.target.offsetParent || document.body;\r\n const offsetParentRect = evt.offsetParent === document.body ? {left: 0, top: 0} : offsetParent.getBoundingClientRect();\r\n\r\n const x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left;\r\n const y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top;\r\n\r\n /*const x = Math.round(evt.clientX + offsetParent.scrollLeft - offsetParentRect.left);\r\n const y = Math.round(evt.clientY + offsetParent.scrollTop - offsetParentRect.top);*/\r\n\r\n\r\n return {x, y};\r\n}\r\n\r\n\r\n// Create an data object exposed by 's events\r\nexport function createCoreData(lastX, lastY, x, y) {\r\n // State changes are often (but not always!) async. We want the latest value.\r\n const isStart = !isNum(lastX);\r\n\r\n if (isStart) {\r\n // If this is our first move, use the x and y as last coords.\r\n return {\r\n deltaX: 0, deltaY: 0,\r\n lastX: x, lastY: y,\r\n x: x, y: y\r\n };\r\n } else {\r\n // Otherwise calculate proper values.\r\n return {\r\n deltaX: x - lastX, deltaY: y - lastY,\r\n lastX: lastX, lastY: lastY,\r\n x: x, y: y\r\n };\r\n }\r\n}\r\n\r\n\r\nfunction isNum(num) {\r\n return typeof num === 'number' && !isNaN(num);\r\n}\r\n\r\n","// @flow\r\n\r\nimport {cloneLayout, compact, correctBounds} from './utils';\r\n\r\nimport type {Layout} from './utils';\r\nexport type ResponsiveLayout = {lg?: Layout, md?: Layout, sm?: Layout, xs?: Layout, xxs?: Layout};\r\ntype Breakpoint = string;\r\ntype Breakpoints = {lg?: number, md?: number, sm?: number, xs?: number, xxs?: number};\r\n\r\n/**\r\n * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).\r\n *\r\n * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})\r\n * @param {Number} width Screen width.\r\n * @return {String} Highest breakpoint that is less than width.\r\n */\r\nexport function getBreakpointFromWidth(breakpoints: Breakpoints, width: number): Breakpoint {\r\n const sorted = sortBreakpoints(breakpoints);\r\n let matching = sorted[0];\r\n for (let i = 1, len = sorted.length; i < len; i++) {\r\n const breakpointName = sorted[i];\r\n if (width > breakpoints[breakpointName]) matching = breakpointName;\r\n }\r\n return matching;\r\n}\r\n\r\n\r\n/**\r\n * Given a breakpoint, get the # of cols set for it.\r\n * @param {String} breakpoint Breakpoint name.\r\n * @param {Object} cols Map of breakpoints to cols.\r\n * @return {Number} Number of cols.\r\n */\r\nexport function getColsFromBreakpoint(breakpoint: Breakpoint, cols: Breakpoints): number {\r\n if (!cols[breakpoint]) {\r\n throw new Error(\"ResponsiveGridLayout: `cols` entry for breakpoint \" + breakpoint + \" is missing!\");\r\n }\r\n return cols[breakpoint];\r\n}\r\n\r\n/**\r\n * Given existing layouts and a new breakpoint, find or generate a new layout.\r\n *\r\n * This finds the layout above the new one and generates from it, if it exists.\r\n *\r\n * @param {Array} orgLayout Original layout.\r\n * @param {Object} layouts Existing layouts.\r\n * @param {Array} breakpoints All breakpoints.\r\n * @param {String} breakpoint New breakpoint.\r\n * @param {String} breakpoint Last breakpoint (for fallback).\r\n * @param {Number} cols Column count at new breakpoint.\r\n * @param {Boolean} verticalCompact Whether or not to compact the layout\r\n * vertically.\r\n * @return {Array} New layout.\r\n */\r\nexport function findOrGenerateResponsiveLayout(orgLayout: Layout, layouts: ResponsiveLayout, breakpoints: Breakpoints,\r\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\r\n cols: number, verticalCompact: boolean): Layout {\r\n // If it already exists, just return it.\r\n if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\r\n // Find or generate the next layout\r\n let layout = orgLayout;\r\n\r\n const breakpointsSorted = sortBreakpoints(breakpoints);\r\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\r\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\r\n const b = breakpointsAbove[i];\r\n if (layouts[b]) {\r\n layout = layouts[b];\r\n break;\r\n }\r\n }\r\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\r\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\r\n}\r\n\r\nexport function generateResponsiveLayout(layout: Layout, breakpoints: Breakpoints,\r\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\r\n cols: number, verticalCompact: boolean): Layout {\r\n // If it already exists, just return it.\r\n /*if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\r\n // Find or generate the next layout\r\n let layout = layouts[lastBreakpoint];*/\r\n /*const breakpointsSorted = sortBreakpoints(breakpoints);\r\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\r\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\r\n const b = breakpointsAbove[i];\r\n if (layouts[b]) {\r\n layout = layouts[b];\r\n break;\r\n }\r\n }*/\r\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\r\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\r\n}\r\n\r\n/**\r\n * Given breakpoints, return an array of breakpoints sorted by width. This is usually\r\n * e.g. ['xxs', 'xs', 'sm', ...]\r\n *\r\n * @param {Object} breakpoints Key/value pair of breakpoint names to widths.\r\n * @return {Array} Sorted breakpoints.\r\n */\r\nexport function sortBreakpoints(breakpoints: Breakpoints): Array {\r\n const keys: Array = Object.keys(breakpoints);\r\n return keys.sort(function(a, b) {\r\n return breakpoints[a] - breakpoints[b];\r\n });\r\n}\r\n","let currentDir: \"ltr\" | \"rtl\" | \"auto\" = \"auto\";\r\n// let currentDir = \"auto\";\r\n\r\nfunction hasDocument(){\r\n return (typeof document !== \"undefined\");\r\n}\r\n\r\nfunction hasWindow(){\r\n return (typeof window !== \"undefined\");\r\n}\r\n\r\nexport function getDocumentDir(){\r\n if(!hasDocument()){\r\n return currentDir;\r\n }\r\n const direction = (typeof document.dir !== \"undefined\") ?\r\n document.dir :\r\n document.getElementsByTagName(\"html\")[0].getAttribute(\"dir\");\r\n return direction;\r\n}\r\n\r\nexport function setDocumentDir(dir: \"ltr\" | \"rtl\" | \"auto\"){\r\n// export function setDocumentDir(dir){\r\n if(!hasDocument){\r\n currentDir = dir;\r\n return;\r\n }\r\n\r\n const html = document.getElementsByTagName(\"html\")[0];\r\n html.setAttribute(\"dir\", dir);\r\n}\r\n\r\nexport function addWindowEventListener(event:string, callback: () => mixed){\r\n if(!hasWindow){\r\n\r\n callback();\r\n return;\r\n }\r\n window.addEventListener(event, callback);\r\n}\r\n\r\nexport function removeWindowEventListener(event:string, callback: () => mixed){\r\n if(!hasWindow){\r\n return;\r\n }\r\n window.removeEventListener(event, callback);\r\n}\r\n\r\n\r\n\r\n","const domObjects = {\n init,\n document: null,\n DocumentFragment: null,\n SVGElement: null,\n SVGSVGElement: null,\n SVGElementInstance: null,\n Element: null,\n HTMLElement: null,\n Event: null,\n Touch: null,\n PointerEvent: null\n};\n\nfunction blank() {}\n\nexport default domObjects;\n\nfunction init(window) {\n const win = window;\n domObjects.document = win.document;\n domObjects.DocumentFragment = win.DocumentFragment || blank;\n domObjects.SVGElement = win.SVGElement || blank;\n domObjects.SVGSVGElement = win.SVGSVGElement || blank;\n domObjects.SVGElementInstance = win.SVGElementInstance || blank;\n domObjects.Element = win.Element || blank;\n domObjects.HTMLElement = win.HTMLElement || domObjects.Element;\n domObjects.Event = win.Event;\n domObjects.Touch = win.Touch || blank;\n domObjects.PointerEvent = win.PointerEvent || win.MSPointerEvent;\n}\n//# sourceMappingURL=domObjects.js.map","export default (thing => !!(thing && thing.Window) && thing instanceof thing.Window);\n//# sourceMappingURL=isWindow.js.map","import isWindow from \"./isWindow.js\";\nexport let realWindow = undefined;\nlet win = undefined;\nexport { win as window };\nexport function init(window) {\n // get wrapped window if using Shadow DOM polyfill\n realWindow = window; // create a TextNode\n\n const el = window.document.createTextNode(''); // check if it's wrapped by a polyfill\n\n if (el.ownerDocument !== window.document && typeof window.wrap === 'function' && window.wrap(el) === el) {\n // use wrapped window\n window = window.wrap(window);\n }\n\n win = window;\n}\n\nif (typeof window !== 'undefined' && !!window) {\n init(window);\n}\n\nexport function getWindow(node) {\n if (isWindow(node)) {\n return node;\n }\n\n const rootNode = node.ownerDocument || node;\n return rootNode.defaultView || win.window;\n}\n//# sourceMappingURL=window.js.map","import isWindow from \"./isWindow.js\";\nimport * as win from \"./window.js\";\n\nconst window = thing => thing === win.window || isWindow(thing);\n\nconst docFrag = thing => object(thing) && thing.nodeType === 11;\n\nconst object = thing => !!thing && typeof thing === 'object';\n\nconst func = thing => typeof thing === 'function';\n\nconst number = thing => typeof thing === 'number';\n\nconst bool = thing => typeof thing === 'boolean';\n\nconst string = thing => typeof thing === 'string';\n\nconst element = thing => {\n if (!thing || typeof thing !== 'object') {\n return false;\n } // eslint-disable-next-line import/no-named-as-default-member\n\n\n const _window = win.getWindow(thing) || win.window;\n\n return /object|function/.test(typeof _window.Element) ? thing instanceof _window.Element // DOM2\n : thing.nodeType === 1 && typeof thing.nodeName === 'string';\n};\n\nconst plainObject = thing => object(thing) && !!thing.constructor && /function Object\\b/.test(thing.constructor.toString());\n\nconst array = thing => object(thing) && typeof thing.length !== 'undefined' && func(thing.splice);\n\nexport default {\n window,\n docFrag,\n object,\n func,\n number,\n bool,\n string,\n element,\n plainObject,\n array\n};\n//# sourceMappingURL=is.js.map","import domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nconst browser = {\n init,\n supportsTouch: null,\n supportsPointerEvent: null,\n isIOS7: null,\n isIOS: null,\n isIe9: null,\n isOperaMobile: null,\n prefixedMatchesSelector: null,\n pEventTypes: null,\n wheelEvent: null\n};\n\nfunction init(window) {\n const Element = domObjects.Element;\n const navigator = win.window.navigator; // Does the browser support touch input?\n\n browser.supportsTouch = 'ontouchstart' in window || is.func(window.DocumentTouch) && domObjects.document instanceof window.DocumentTouch; // Does the browser support PointerEvents\n\n browser.supportsPointerEvent = navigator.pointerEnabled !== false && !!domObjects.PointerEvent;\n browser.isIOS = /iP(hone|od|ad)/.test(navigator.platform); // scrolling doesn't change the result of getClientRects on iOS 7\n\n browser.isIOS7 = /iP(hone|od|ad)/.test(navigator.platform) && /OS 7[^\\d]/.test(navigator.appVersion);\n browser.isIe9 = /MSIE 9/.test(navigator.userAgent); // Opera Mobile must be handled differently\n\n browser.isOperaMobile = navigator.appName === 'Opera' && browser.supportsTouch && /Presto/.test(navigator.userAgent); // prefix matchesSelector\n\n browser.prefixedMatchesSelector = 'matches' in Element.prototype ? 'matches' : 'webkitMatchesSelector' in Element.prototype ? 'webkitMatchesSelector' : 'mozMatchesSelector' in Element.prototype ? 'mozMatchesSelector' : 'oMatchesSelector' in Element.prototype ? 'oMatchesSelector' : 'msMatchesSelector';\n browser.pEventTypes = browser.supportsPointerEvent ? domObjects.PointerEvent === window.MSPointerEvent ? {\n up: 'MSPointerUp',\n down: 'MSPointerDown',\n over: 'mouseover',\n out: 'mouseout',\n move: 'MSPointerMove',\n cancel: 'MSPointerCancel'\n } : {\n up: 'pointerup',\n down: 'pointerdown',\n over: 'pointerover',\n out: 'pointerout',\n move: 'pointermove',\n cancel: 'pointercancel'\n } : null; // because Webkit and Opera still use 'mousewheel' event type\n\n browser.wheelEvent = 'onmousewheel' in domObjects.document ? 'mousewheel' : 'wheel';\n}\n\nexport default browser;\n//# sourceMappingURL=browser.js.map","export const contains = (array, target) => array.indexOf(target) !== -1;\nexport const remove = (array, target) => array.splice(array.indexOf(target), 1);\nexport const merge = (target, source) => {\n for (const item of source) {\n target.push(item);\n }\n\n return target;\n};\nexport const from = source => merge([], source);\nexport const findIndex = (array, func) => {\n for (let i = 0; i < array.length; i++) {\n if (func(array[i], i, array)) {\n return i;\n }\n }\n\n return -1;\n};\nexport const find = (array, func) => array[findIndex(array, func)];\n//# sourceMappingURL=arr.js.map","import * as arr from \"./arr.js\";\nimport is from \"./is.js\"; // tslint:disable-next-line ban-types\n\nexport default function clone(source) {\n const dest = {};\n\n for (const prop in source) {\n const value = source[prop];\n\n if (is.plainObject(value)) {\n dest[prop] = clone(value);\n } else if (is.array(value)) {\n dest[prop] = arr.from(value);\n } else {\n dest[prop] = value;\n }\n }\n\n return dest;\n}\n//# sourceMappingURL=clone.js.map","export default function extend(dest, source) {\n for (const prop in source) {\n dest[prop] = source[prop];\n }\n\n const ret = dest;\n return ret;\n}\n//# sourceMappingURL=extend.js.map","let lastTime = 0;\nlet request;\nlet cancel;\n\nfunction init(window) {\n request = window.requestAnimationFrame;\n cancel = window.cancelAnimationFrame;\n\n if (!request) {\n const vendors = ['ms', 'moz', 'webkit', 'o'];\n\n for (const vendor of vendors) {\n request = window[`${vendor}RequestAnimationFrame`];\n cancel = window[`${vendor}CancelAnimationFrame`] || window[`${vendor}CancelRequestAnimationFrame`];\n }\n }\n\n request = request && request.bind(window);\n cancel = cancel && cancel.bind(window);\n\n if (!request) {\n request = callback => {\n const currTime = Date.now();\n const timeToCall = Math.max(0, 16 - (currTime - lastTime)); // eslint-disable-next-line node/no-callback-literal\n\n const token = window.setTimeout(() => {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return token;\n };\n\n cancel = token => clearTimeout(token);\n }\n}\n\nexport default {\n request: callback => request(callback),\n cancel: token => cancel(token),\n init\n};\n//# sourceMappingURL=raf.js.map","import extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport default function normalize(type, listeners, result) {\n result = result || {};\n\n if (is.string(type) && type.search(' ') !== -1) {\n type = split(type);\n }\n\n if (is.array(type)) {\n return type.reduce((acc, t) => extend(acc, normalize(t, listeners, result)), result);\n } // ({ type: fn }) -> ('', { type: fn })\n\n\n if (is.object(type)) {\n listeners = type;\n type = '';\n }\n\n if (is.func(listeners)) {\n result[type] = result[type] || [];\n result[type].push(listeners);\n } else if (is.array(listeners)) {\n for (const l of listeners) {\n normalize(type, l, result);\n }\n } else if (is.object(listeners)) {\n for (const prefix in listeners) {\n const combinedTypes = split(prefix).map(p => `${type}${p}`);\n normalize(combinedTypes, listeners[prefix], result);\n }\n }\n\n return result;\n}\n\nfunction split(type) {\n return type.trim().split(/ +/);\n}\n//# sourceMappingURL=normalizeListeners.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport normalize from \"../utils/normalizeListeners.js\";\n\nfunction fireUntilImmediateStopped(event, listeners) {\n for (const listener of listeners) {\n if (event.immediatePropagationStopped) {\n break;\n }\n\n listener(event);\n }\n}\n\nexport class Eventable {\n constructor(options) {\n this.options = void 0;\n this.types = {};\n this.propagationStopped = false;\n this.immediatePropagationStopped = false;\n this.global = void 0;\n this.options = extend({}, options || {});\n }\n\n fire(event) {\n let listeners;\n const global = this.global; // Interactable#on() listeners\n // tslint:disable no-conditional-assignment\n\n if (listeners = this.types[event.type]) {\n fireUntilImmediateStopped(event, listeners);\n } // interact.on() listeners\n\n\n if (!event.propagationStopped && global && (listeners = global[event.type])) {\n fireUntilImmediateStopped(event, listeners);\n }\n }\n\n on(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n this.types[type] = arr.merge(this.types[type] || [], listeners[type]);\n }\n }\n\n off(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n const eventList = this.types[type];\n\n if (!eventList || !eventList.length) {\n continue;\n }\n\n for (const subListener of listeners[type]) {\n const index = eventList.indexOf(subListener);\n\n if (index !== -1) {\n eventList.splice(index, 1);\n }\n }\n }\n }\n\n getRect(_element) {\n return null;\n }\n\n}\n//# sourceMappingURL=Eventable.js.map","import browser from \"./browser.js\";\nimport domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nexport function nodeContains(parent, child) {\n if (parent.contains) {\n return parent.contains(child);\n }\n\n while (child) {\n if (child === parent) {\n return true;\n }\n\n child = child.parentNode;\n }\n\n return false;\n}\nexport function closest(element, selector) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return element;\n }\n\n element = parentNode(element);\n }\n\n return null;\n}\nexport function parentNode(node) {\n let parent = node.parentNode;\n\n if (is.docFrag(parent)) {\n // skip past #shado-root fragments\n // tslint:disable-next-line\n while ((parent = parent.host) && is.docFrag(parent)) {\n continue;\n }\n\n return parent;\n }\n\n return parent;\n}\nexport function matchesSelector(element, selector) {\n // remove /deep/ from selectors if shadowDOM polyfill is used\n if (win.window !== win.realWindow) {\n selector = selector.replace(/\\/deep\\//g, ' ');\n }\n\n return element[browser.prefixedMatchesSelector](selector);\n}\n\nconst getParent = el => el.parentNode || el.host; // Test for the element that's \"above\" all other qualifiers\n\n\nexport function indexOfDeepestElement(elements) {\n let deepestNodeParents = [];\n let deepestNodeIndex;\n\n for (let i = 0; i < elements.length; i++) {\n const currentNode = elements[i];\n const deepestNode = elements[deepestNodeIndex]; // node may appear in elements array multiple times\n\n if (!currentNode || i === deepestNodeIndex) {\n continue;\n }\n\n if (!deepestNode) {\n deepestNodeIndex = i;\n continue;\n }\n\n const currentNodeParent = getParent(currentNode);\n const deepestNodeParent = getParent(deepestNode); // check if the deepest or current are document.documentElement/rootElement\n // - if the current node is, do nothing and continue\n\n if (currentNodeParent === currentNode.ownerDocument) {\n continue;\n } // - if deepest is, update with the current node and continue to next\n else if (deepestNodeParent === currentNode.ownerDocument) {\n deepestNodeIndex = i;\n continue;\n } // compare zIndex of siblings\n\n\n if (currentNodeParent === deepestNodeParent) {\n if (zIndexIsHigherThan(currentNode, deepestNode)) {\n deepestNodeIndex = i;\n }\n\n continue;\n } // populate the ancestry array for the latest deepest node\n\n\n deepestNodeParents = deepestNodeParents.length ? deepestNodeParents : getNodeParents(deepestNode);\n let ancestryStart; // if the deepest node is an HTMLElement and the current node is a non root svg element\n\n if (deepestNode instanceof domObjects.HTMLElement && currentNode instanceof domObjects.SVGElement && !(currentNode instanceof domObjects.SVGSVGElement)) {\n // TODO: is this check necessary? Was this for HTML elements embedded in SVG?\n if (currentNode === deepestNodeParent) {\n continue;\n }\n\n ancestryStart = currentNode.ownerSVGElement;\n } else {\n ancestryStart = currentNode;\n }\n\n const currentNodeParents = getNodeParents(ancestryStart, deepestNode.ownerDocument);\n let commonIndex = 0; // get (position of closest common ancestor) + 1\n\n while (currentNodeParents[commonIndex] && currentNodeParents[commonIndex] === deepestNodeParents[commonIndex]) {\n commonIndex++;\n }\n\n const parents = [currentNodeParents[commonIndex - 1], currentNodeParents[commonIndex], deepestNodeParents[commonIndex]];\n let child = parents[0].lastChild;\n\n while (child) {\n if (child === parents[1]) {\n deepestNodeIndex = i;\n deepestNodeParents = currentNodeParents;\n break;\n } else if (child === parents[2]) {\n break;\n }\n\n child = child.previousSibling;\n }\n }\n\n return deepestNodeIndex;\n}\n\nfunction getNodeParents(node, limit) {\n const parents = [];\n let parent = node;\n let parentParent;\n\n while ((parentParent = getParent(parent)) && parent !== limit && parentParent !== parent.ownerDocument) {\n parents.unshift(parent);\n parent = parentParent;\n }\n\n return parents;\n}\n\nfunction zIndexIsHigherThan(higherNode, lowerNode) {\n const higherIndex = parseInt(win.getWindow(higherNode).getComputedStyle(higherNode).zIndex, 10) || 0;\n const lowerIndex = parseInt(win.getWindow(lowerNode).getComputedStyle(lowerNode).zIndex, 10) || 0;\n return higherIndex >= lowerIndex;\n}\n\nexport function matchesUpTo(element, selector, limit) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return true;\n }\n\n element = parentNode(element);\n\n if (element === limit) {\n return matchesSelector(element, selector);\n }\n }\n\n return false;\n}\nexport function getActualElement(element) {\n return element.correspondingUseElement || element;\n}\nexport function getScrollXY(relevantWindow) {\n relevantWindow = relevantWindow || win.window;\n return {\n x: relevantWindow.scrollX || relevantWindow.document.documentElement.scrollLeft,\n y: relevantWindow.scrollY || relevantWindow.document.documentElement.scrollTop\n };\n}\nexport function getElementClientRect(element) {\n const clientRect = element instanceof domObjects.SVGElement ? element.getBoundingClientRect() : element.getClientRects()[0];\n return clientRect && {\n left: clientRect.left,\n right: clientRect.right,\n top: clientRect.top,\n bottom: clientRect.bottom,\n width: clientRect.width || clientRect.right - clientRect.left,\n height: clientRect.height || clientRect.bottom - clientRect.top\n };\n}\nexport function getElementRect(element) {\n const clientRect = getElementClientRect(element);\n\n if (!browser.isIOS7 && clientRect) {\n const scroll = getScrollXY(win.getWindow(element));\n clientRect.left += scroll.x;\n clientRect.right += scroll.x;\n clientRect.top += scroll.y;\n clientRect.bottom += scroll.y;\n }\n\n return clientRect;\n}\nexport function getPath(node) {\n const path = [];\n\n while (node) {\n path.push(node);\n node = parentNode(node);\n }\n\n return path;\n}\nexport function trySelector(value) {\n if (!is.string(value)) {\n return false;\n } // an exception will be raised if it is invalid\n\n\n domObjects.document.querySelector(value);\n return true;\n}\n//# sourceMappingURL=domUtils.js.map","import { closest, getElementRect, parentNode } from \"./domUtils.js\";\nimport extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport function getStringOptionResult(value, target, element) {\n if (value === 'parent') {\n return parentNode(element);\n }\n\n if (value === 'self') {\n return target.getRect(element);\n }\n\n return closest(element, value);\n}\nexport function resolveRectLike(value, target, element, functionArgs) {\n let returnValue = value;\n\n if (is.string(returnValue)) {\n returnValue = getStringOptionResult(returnValue, target, element);\n } else if (is.func(returnValue)) {\n returnValue = returnValue(...functionArgs);\n }\n\n if (is.element(returnValue)) {\n returnValue = getElementRect(returnValue);\n }\n\n return returnValue;\n}\nexport function rectToXY(rect) {\n return rect && {\n x: 'x' in rect ? rect.x : rect.left,\n y: 'y' in rect ? rect.y : rect.top\n };\n}\nexport function xywhToTlbr(rect) {\n if (rect && !('left' in rect && 'top' in rect)) {\n rect = extend({}, rect);\n rect.left = rect.x || 0;\n rect.top = rect.y || 0;\n rect.right = rect.right || rect.left + rect.width;\n rect.bottom = rect.bottom || rect.top + rect.height;\n }\n\n return rect;\n}\nexport function tlbrToXywh(rect) {\n if (rect && !('x' in rect && 'y' in rect)) {\n rect = extend({}, rect);\n rect.x = rect.left || 0;\n rect.y = rect.top || 0;\n rect.width = rect.width || (rect.right || 0) - rect.x;\n rect.height = rect.height || (rect.bottom || 0) - rect.y;\n }\n\n return rect;\n}\nexport function addEdges(edges, rect, delta) {\n if (edges.left) {\n rect.left += delta.x;\n }\n\n if (edges.right) {\n rect.right += delta.x;\n }\n\n if (edges.top) {\n rect.top += delta.y;\n }\n\n if (edges.bottom) {\n rect.bottom += delta.y;\n }\n\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n}\n//# sourceMappingURL=rect.js.map","import { rectToXY, resolveRectLike } from \"./rect.js\";\nexport default function (target, element, actionName) {\n const actionOptions = target.options[actionName];\n const actionOrigin = actionOptions && actionOptions.origin;\n const origin = actionOrigin || target.options.origin;\n const originRect = resolveRectLike(origin, target, element, [target && element]);\n return rectToXY(originRect) || {\n x: 0,\n y: 0\n };\n}\n//# sourceMappingURL=getOriginXY.js.map","export default ((x, y) => Math.sqrt(x * x + y * y));\n//# sourceMappingURL=hypot.js.map","export class BaseEvent {\n constructor(interaction) {\n this.type = void 0;\n this.target = void 0;\n this.currentTarget = void 0;\n this.interactable = void 0;\n this._interaction = void 0;\n this.timeStamp = void 0;\n this.immediatePropagationStopped = false;\n this.propagationStopped = false;\n this._interaction = interaction;\n }\n\n preventDefault() {}\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n\n} // defined outside of class definition to avoid assignment of undefined during\n// construction\n\n// getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\nObject.defineProperty(BaseEvent.prototype, 'interaction', {\n get() {\n return this._interaction._proxy;\n },\n\n set() {}\n\n});\n//# sourceMappingURL=BaseEvent.js.map","// eslint-disable-next-line @typescript-eslint/no-empty-interface\n// export interface Options extends BaseDefaults, PerActionDefaults {}\nexport const defaults = {\n base: {\n preventDefault: 'auto',\n deltaSource: 'page'\n },\n perAction: {\n enabled: false,\n origin: {\n x: 0,\n y: 0\n }\n },\n actions: {}\n};\n//# sourceMappingURL=defaultOptions.js.map","import extend from \"../utils/extend.js\";\nimport getOriginXY from \"../utils/getOriginXY.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { BaseEvent } from \"./BaseEvent.js\";\nimport { defaults } from \"./defaultOptions.js\";\nexport class InteractEvent extends BaseEvent {\n // resize\n\n /** */\n constructor(interaction, event, actionName, phase, element, preEnd, type) {\n super(interaction);\n this.target = void 0;\n this.currentTarget = void 0;\n this.relatedTarget = null;\n this.screenX = void 0;\n this.screenY = void 0;\n this.button = void 0;\n this.buttons = void 0;\n this.ctrlKey = void 0;\n this.shiftKey = void 0;\n this.altKey = void 0;\n this.metaKey = void 0;\n this.page = void 0;\n this.client = void 0;\n this.delta = void 0;\n this.rect = void 0;\n this.x0 = void 0;\n this.y0 = void 0;\n this.t0 = void 0;\n this.dt = void 0;\n this.duration = void 0;\n this.clientX0 = void 0;\n this.clientY0 = void 0;\n this.velocity = void 0;\n this.speed = void 0;\n this.swipe = void 0;\n this.timeStamp = void 0;\n this.axes = void 0;\n this.preEnd = void 0;\n element = element || interaction.element;\n const target = interaction.interactable;\n const deltaSource = (target && target.options || defaults).deltaSource;\n const origin = getOriginXY(target, element, actionName);\n const starting = phase === 'start';\n const ending = phase === 'end';\n const prevEvent = starting ? this : interaction.prevEvent;\n const coords = starting ? interaction.coords.start : ending ? {\n page: prevEvent.page,\n client: prevEvent.client,\n timeStamp: interaction.coords.cur.timeStamp\n } : interaction.coords.cur;\n this.page = extend({}, coords.page);\n this.client = extend({}, coords.client);\n this.rect = extend({}, interaction.rect);\n this.timeStamp = coords.timeStamp;\n\n if (!ending) {\n this.page.x -= origin.x;\n this.page.y -= origin.y;\n this.client.x -= origin.x;\n this.client.y -= origin.y;\n }\n\n this.ctrlKey = event.ctrlKey;\n this.altKey = event.altKey;\n this.shiftKey = event.shiftKey;\n this.metaKey = event.metaKey;\n this.button = event.button;\n this.buttons = event.buttons;\n this.target = element;\n this.currentTarget = element;\n this.preEnd = preEnd;\n this.type = type || actionName + (phase || '');\n this.interactable = target;\n this.t0 = starting ? interaction.pointers[interaction.pointers.length - 1].downTime : prevEvent.t0;\n this.x0 = interaction.coords.start.page.x - origin.x;\n this.y0 = interaction.coords.start.page.y - origin.y;\n this.clientX0 = interaction.coords.start.client.x - origin.x;\n this.clientY0 = interaction.coords.start.client.y - origin.y;\n\n if (starting || ending) {\n this.delta = {\n x: 0,\n y: 0\n };\n } else {\n this.delta = {\n x: this[deltaSource].x - prevEvent[deltaSource].x,\n y: this[deltaSource].y - prevEvent[deltaSource].y\n };\n }\n\n this.dt = interaction.coords.delta.timeStamp;\n this.duration = this.timeStamp - this.t0; // velocity and speed in pixels per second\n\n this.velocity = extend({}, interaction.coords.velocity[deltaSource]);\n this.speed = hypot(this.velocity.x, this.velocity.y);\n this.swipe = ending || phase === 'inertiastart' ? this.getSwipe() : null;\n }\n\n getSwipe() {\n const interaction = this._interaction;\n\n if (interaction.prevEvent.speed < 600 || this.timeStamp - interaction.prevEvent.timeStamp > 150) {\n return null;\n }\n\n let angle = 180 * Math.atan2(interaction.prevEvent.velocityY, interaction.prevEvent.velocityX) / Math.PI;\n const overlap = 22.5;\n\n if (angle < 0) {\n angle += 360;\n }\n\n const left = 135 - overlap <= angle && angle < 225 + overlap;\n const up = 225 - overlap <= angle && angle < 315 + overlap;\n const right = !left && (315 - overlap <= angle || angle < 45 + overlap);\n const down = !up && 45 - overlap <= angle && angle < 135 + overlap;\n return {\n up,\n down,\n left,\n right,\n angle,\n speed: interaction.prevEvent.speed,\n velocity: {\n x: interaction.prevEvent.velocityX,\n y: interaction.prevEvent.velocityY\n }\n };\n }\n\n preventDefault() {}\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n\n} // getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\n\nObject.defineProperties(InteractEvent.prototype, {\n pageX: {\n get() {\n return this.page.x;\n },\n\n set(value) {\n this.page.x = value;\n }\n\n },\n pageY: {\n get() {\n return this.page.y;\n },\n\n set(value) {\n this.page.y = value;\n }\n\n },\n clientX: {\n get() {\n return this.client.x;\n },\n\n set(value) {\n this.client.x = value;\n }\n\n },\n clientY: {\n get() {\n return this.client.y;\n },\n\n set(value) {\n this.client.y = value;\n }\n\n },\n dx: {\n get() {\n return this.delta.x;\n },\n\n set(value) {\n this.delta.x = value;\n }\n\n },\n dy: {\n get() {\n return this.delta.y;\n },\n\n set(value) {\n this.delta.y = value;\n }\n\n },\n velocityX: {\n get() {\n return this.velocity.x;\n },\n\n set(value) {\n this.velocity.x = value;\n }\n\n },\n velocityY: {\n get() {\n return this.velocity.y;\n },\n\n set(value) {\n this.velocity.y = value;\n }\n\n }\n});\n//# sourceMappingURL=InteractEvent.js.map","export default function isNonNativeEvent(type, actions) {\n if (actions.phaselessTypes[type]) {\n return true;\n }\n\n for (const name in actions.map) {\n if (type.indexOf(name) === 0 && type.substr(name.length) in actions.phases) {\n return true;\n }\n }\n\n return false;\n}\n//# sourceMappingURL=isNonNativeEvent.js.map","/* eslint-disable no-dupe-class-members */\nimport * as arr from \"../utils/arr.js\";\nimport browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport { getElementRect, matchesUpTo, nodeContains, trySelector } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport normalizeListeners from \"../utils/normalizeListeners.js\";\nimport { getWindow } from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\n\n/** */\nexport class Interactable {\n /** @internal */\n get _defaults() {\n return {\n base: {},\n perAction: {},\n actions: {}\n };\n }\n\n /** */\n constructor(target, options, defaultContext, scopeEvents) {\n this.options = void 0;\n this._actions = void 0;\n this.target = void 0;\n this.events = new Eventable();\n this._context = void 0;\n this._win = void 0;\n this._doc = void 0;\n this._scopeEvents = void 0;\n this._rectChecker = void 0;\n this._actions = options.actions;\n this.target = target;\n this._context = options.context || defaultContext;\n this._win = getWindow(trySelector(target) ? this._context : target);\n this._doc = this._win.document;\n this._scopeEvents = scopeEvents;\n this.set(options);\n }\n\n setOnEvents(actionName, phases) {\n if (is.func(phases.onstart)) {\n this.on(`${actionName}start`, phases.onstart);\n }\n\n if (is.func(phases.onmove)) {\n this.on(`${actionName}move`, phases.onmove);\n }\n\n if (is.func(phases.onend)) {\n this.on(`${actionName}end`, phases.onend);\n }\n\n if (is.func(phases.oninertiastart)) {\n this.on(`${actionName}inertiastart`, phases.oninertiastart);\n }\n\n return this;\n }\n\n updatePerActionListeners(actionName, prev, cur) {\n if (is.array(prev) || is.object(prev)) {\n this.off(actionName, prev);\n }\n\n if (is.array(cur) || is.object(cur)) {\n this.on(actionName, cur);\n }\n }\n\n setPerAction(actionName, options) {\n const defaults = this._defaults; // for all the default per-action options\n\n for (const optionName_ in options) {\n const optionName = optionName_;\n const actionOptions = this.options[actionName];\n const optionValue = options[optionName]; // remove old event listeners and add new ones\n\n if (optionName === 'listeners') {\n this.updatePerActionListeners(actionName, actionOptions.listeners, optionValue);\n } // if the option value is an array\n\n\n if (is.array(optionValue)) {\n actionOptions[optionName] = arr.from(optionValue);\n } // if the option value is an object\n else if (is.plainObject(optionValue)) {\n // copy the object\n actionOptions[optionName] = extend(actionOptions[optionName] || {}, clone(optionValue)); // set anabled field to true if it exists in the defaults\n\n if (is.object(defaults.perAction[optionName]) && 'enabled' in defaults.perAction[optionName]) {\n actionOptions[optionName].enabled = optionValue.enabled !== false;\n }\n } // if the option value is a boolean and the default is an object\n else if (is.bool(optionValue) && is.object(defaults.perAction[optionName])) {\n actionOptions[optionName].enabled = optionValue;\n } // if it's anything else, do a plain assignment\n else {\n actionOptions[optionName] = optionValue;\n }\n }\n }\n /**\n * The default function to get an Interactables bounding rect. Can be\n * overridden using {@link Interactable.rectChecker}.\n *\n * @param {Element} [element] The element to measure.\n * @return {Rect} The object's bounding rectangle.\n */\n\n\n getRect(element) {\n element = element || (is.element(this.target) ? this.target : null);\n\n if (is.string(this.target)) {\n element = element || this._context.querySelector(this.target);\n }\n\n return getElementRect(element);\n }\n /**\n * Returns or sets the function used to calculate the interactable's\n * element's rectangle\n *\n * @param {function} [checker] A function which returns this Interactable's\n * bounding rectangle. See {@link Interactable.getRect}\n * @return {function | object} The checker function or this Interactable\n */\n\n\n rectChecker(checker) {\n if (is.func(checker)) {\n this._rectChecker = checker;\n\n this.getRect = element => {\n const rect = extend({}, this._rectChecker(element));\n\n if (!('width' in rect)) {\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n return rect;\n };\n\n return this;\n }\n\n if (checker === null) {\n delete this.getRect;\n delete this._rectChecker;\n return this;\n }\n\n return this.getRect;\n }\n\n _backCompatOption(optionName, newValue) {\n if (trySelector(newValue) || is.object(newValue)) {\n this.options[optionName] = newValue;\n\n for (const action in this._actions.map) {\n this.options[action][optionName] = newValue;\n }\n\n return this;\n }\n\n return this.options[optionName];\n }\n /**\n * Gets or sets the origin of the Interactable's element. The x and y\n * of the origin will be subtracted from action event coordinates.\n *\n * @param {Element | object | string} [origin] An HTML or SVG Element whose\n * rect will be used, an object eg. { x: 0, y: 0 } or string 'parent', 'self'\n * or any CSS selector\n *\n * @return {object} The current origin or this Interactable\n */\n\n\n origin(newValue) {\n return this._backCompatOption('origin', newValue);\n }\n /**\n * Returns or sets the mouse coordinate types used to calculate the\n * movement of the pointer.\n *\n * @param {string} [newValue] Use 'client' if you will be scrolling while\n * interacting; Use 'page' if you want autoScroll to work\n * @return {string | object} The current deltaSource or this Interactable\n */\n\n\n deltaSource(newValue) {\n if (newValue === 'page' || newValue === 'client') {\n this.options.deltaSource = newValue;\n return this;\n }\n\n return this.options.deltaSource;\n }\n /**\n * Gets the selector context Node of the Interactable. The default is\n * `window.document`.\n *\n * @return {Node} The context Node of this Interactable\n */\n\n\n context() {\n return this._context;\n }\n\n inContext(element) {\n return this._context === element.ownerDocument || nodeContains(this._context, element);\n }\n\n testIgnoreAllow(options, targetNode, eventTarget) {\n return !this.testIgnore(options.ignoreFrom, targetNode, eventTarget) && this.testAllow(options.allowFrom, targetNode, eventTarget);\n }\n\n testAllow(allowFrom, targetNode, element) {\n if (!allowFrom) {\n return true;\n }\n\n if (!is.element(element)) {\n return false;\n }\n\n if (is.string(allowFrom)) {\n return matchesUpTo(element, allowFrom, targetNode);\n } else if (is.element(allowFrom)) {\n return nodeContains(allowFrom, element);\n }\n\n return false;\n }\n\n testIgnore(ignoreFrom, targetNode, element) {\n if (!ignoreFrom || !is.element(element)) {\n return false;\n }\n\n if (is.string(ignoreFrom)) {\n return matchesUpTo(element, ignoreFrom, targetNode);\n } else if (is.element(ignoreFrom)) {\n return nodeContains(ignoreFrom, element);\n }\n\n return false;\n }\n /**\n * Calls listeners for the given InteractEvent type bound globally\n * and directly to this Interactable\n *\n * @param {InteractEvent} iEvent The InteractEvent object to be fired on this\n * Interactable\n * @return {Interactable} this Interactable\n */\n\n\n fire(iEvent) {\n this.events.fire(iEvent);\n return this;\n }\n\n _onOff(method, typeArg, listenerArg, options) {\n if (is.object(typeArg) && !is.array(typeArg)) {\n options = listenerArg;\n listenerArg = null;\n }\n\n const addRemove = method === 'on' ? 'add' : 'remove';\n const listeners = normalizeListeners(typeArg, listenerArg);\n\n for (let type in listeners) {\n if (type === 'wheel') {\n type = browser.wheelEvent;\n }\n\n for (const listener of listeners[type]) {\n // if it is an action event type\n if (isNonNativeEvent(type, this._actions)) {\n this.events[method](type, listener);\n } // delegated event\n else if (is.string(this.target)) {\n this._scopeEvents[`${addRemove}Delegate`](this.target, this._context, type, listener, options);\n } // remove listener from this Interactable's element\n else {\n this._scopeEvents[addRemove](this.target, type, listener, options);\n }\n }\n }\n\n return this;\n }\n /**\n * Binds a listener for an InteractEvent, pointerEvent or DOM event.\n *\n * @param {string | array | object} types The types of events to listen\n * for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * addEventListener\n * @return {Interactable} This Interactable\n */\n\n\n on(types, listener, options) {\n return this._onOff('on', types, listener, options);\n }\n /**\n * Removes an InteractEvent, pointerEvent or DOM event listener.\n *\n * @param {string | array | object} types The types of events that were\n * listened for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * removeEventListener\n * @return {Interactable} This Interactable\n */\n\n\n off(types, listener, options) {\n return this._onOff('off', types, listener, options);\n }\n /**\n * Reset the options of this Interactable\n *\n * @param {object} options The new settings to apply\n * @return {object} This Interactable\n */\n\n\n set(options) {\n const defaults = this._defaults;\n\n if (!is.object(options)) {\n options = {};\n }\n\n this.options = clone(defaults.base);\n\n for (const actionName_ in this._actions.methodDict) {\n const actionName = actionName_;\n const methodName = this._actions.methodDict[actionName];\n this.options[actionName] = {};\n this.setPerAction(actionName, extend(extend({}, defaults.perAction), defaults.actions[actionName]));\n this[methodName](options[actionName]);\n }\n\n for (const setting in options) {\n if (is.func(this[setting])) {\n this[setting](options[setting]);\n }\n }\n\n return this;\n }\n /**\n * Remove this interactable from the list of interactables and remove it's\n * action capabilities and event listeners\n */\n\n\n unset() {\n if (is.string(this.target)) {\n // remove delegated events\n for (const type in this._scopeEvents.delegatedEvents) {\n const delegated = this._scopeEvents.delegatedEvents[type];\n\n for (let i = delegated.length - 1; i >= 0; i--) {\n const {\n selector,\n context,\n listeners\n } = delegated[i];\n\n if (selector === this.target && context === this._context) {\n delegated.splice(i, 1);\n }\n\n for (let l = listeners.length - 1; l >= 0; l--) {\n this._scopeEvents.removeDelegate(this.target, this._context, type, listeners[l][0], listeners[l][1]);\n }\n }\n }\n } else {\n this._scopeEvents.remove(this.target, 'all');\n }\n }\n\n}\n//# sourceMappingURL=Interactable.js.map","import * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nexport class InteractableSet {\n // all set interactables\n constructor(scope) {\n this.list = [];\n this.selectorMap = {};\n this.scope = void 0;\n this.scope = scope;\n scope.addListeners({\n 'interactable:unset': ({\n interactable\n }) => {\n const {\n target,\n _context: context\n } = interactable;\n const targetMappings = is.string(target) ? this.selectorMap[target] : target[this.scope.id];\n const targetIndex = arr.findIndex(targetMappings, m => m.context === context);\n\n if (targetMappings[targetIndex]) {\n // Destroying mappingInfo's context and interactable\n targetMappings[targetIndex].context = null;\n targetMappings[targetIndex].interactable = null;\n }\n\n targetMappings.splice(targetIndex, 1);\n }\n });\n }\n\n new(target, options) {\n options = extend(options || {}, {\n actions: this.scope.actions\n });\n const interactable = new this.scope.Interactable(target, options, this.scope.document, this.scope.events);\n const mappingInfo = {\n context: interactable._context,\n interactable\n };\n this.scope.addDocument(interactable._doc);\n this.list.push(interactable);\n\n if (is.string(target)) {\n if (!this.selectorMap[target]) {\n this.selectorMap[target] = [];\n }\n\n this.selectorMap[target].push(mappingInfo);\n } else {\n if (!interactable.target[this.scope.id]) {\n Object.defineProperty(target, this.scope.id, {\n value: [],\n configurable: true\n });\n }\n\n target[this.scope.id].push(mappingInfo);\n }\n\n this.scope.fire('interactable:new', {\n target,\n options,\n interactable,\n win: this.scope._win\n });\n return interactable;\n }\n\n get(target, options) {\n const context = options && options.context || this.scope.document;\n const isSelector = is.string(target);\n const targetMappings = isSelector ? this.selectorMap[target] : target[this.scope.id];\n\n if (!targetMappings) {\n return null;\n }\n\n const found = arr.find(targetMappings, m => m.context === context && (isSelector || m.interactable.inContext(target)));\n return found && found.interactable;\n }\n\n forEachMatch(node, callback) {\n for (const interactable of this.list) {\n let ret;\n\n if ((is.string(interactable.target) // target is a selector and the element matches\n ? is.element(node) && domUtils.matchesSelector(node, interactable.target) : // target is the element\n node === interactable.target) && // the element is in context\n interactable.inContext(node)) {\n ret = callback(interactable);\n }\n\n if (ret !== undefined) {\n return ret;\n }\n }\n }\n\n}\n//# sourceMappingURL=InteractableSet.js.map","function pointerExtend(dest, source) {\n for (const prop in source) {\n const prefixedPropREs = pointerExtend.prefixedPropREs;\n let deprecated = false; // skip deprecated prefixed properties\n\n for (const vendor in prefixedPropREs) {\n if (prop.indexOf(vendor) === 0 && prefixedPropREs[vendor].test(prop)) {\n deprecated = true;\n break;\n }\n }\n\n if (!deprecated && typeof source[prop] !== 'function') {\n dest[prop] = source[prop];\n }\n }\n\n return dest;\n}\n\npointerExtend.prefixedPropREs = {\n webkit: /(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,\n moz: /(Pressure)$/\n};\nexport default pointerExtend;\n//# sourceMappingURL=pointerExtend.js.map","import browser from \"./browser.js\";\nimport dom from \"./domObjects.js\";\nimport * as domUtils from \"./domUtils.js\";\nimport hypot from \"./hypot.js\";\nimport is from \"./is.js\";\nimport pointerExtend from \"./pointerExtend.js\";\nexport function copyCoords(dest, src) {\n dest.page = dest.page || {};\n dest.page.x = src.page.x;\n dest.page.y = src.page.y;\n dest.client = dest.client || {};\n dest.client.x = src.client.x;\n dest.client.y = src.client.y;\n dest.timeStamp = src.timeStamp;\n}\nexport function setCoordDeltas(targetObj, prev, cur) {\n targetObj.page.x = cur.page.x - prev.page.x;\n targetObj.page.y = cur.page.y - prev.page.y;\n targetObj.client.x = cur.client.x - prev.client.x;\n targetObj.client.y = cur.client.y - prev.client.y;\n targetObj.timeStamp = cur.timeStamp - prev.timeStamp;\n}\nexport function setCoordVelocity(targetObj, delta) {\n const dt = Math.max(delta.timeStamp / 1000, 0.001);\n targetObj.page.x = delta.page.x / dt;\n targetObj.page.y = delta.page.y / dt;\n targetObj.client.x = delta.client.x / dt;\n targetObj.client.y = delta.client.y / dt;\n targetObj.timeStamp = dt;\n}\nexport function setZeroCoords(targetObj) {\n targetObj.page.x = 0;\n targetObj.page.y = 0;\n targetObj.client.x = 0;\n targetObj.client.y = 0;\n}\nexport function isNativePointer(pointer) {\n return pointer instanceof dom.Event || pointer instanceof dom.Touch;\n} // Get specified X/Y coords for mouse or event.touches[0]\n\nexport function getXY(type, pointer, xy) {\n xy = xy || {};\n type = type || 'page';\n xy.x = pointer[type + 'X'];\n xy.y = pointer[type + 'Y'];\n return xy;\n}\nexport function getPageXY(pointer, page) {\n page = page || {\n x: 0,\n y: 0\n }; // Opera Mobile handles the viewport and scrolling oddly\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n getXY('screen', pointer, page);\n page.x += window.scrollX;\n page.y += window.scrollY;\n } else {\n getXY('page', pointer, page);\n }\n\n return page;\n}\nexport function getClientXY(pointer, client) {\n client = client || {};\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n // Opera Mobile handles the viewport and scrolling oddly\n getXY('screen', pointer, client);\n } else {\n getXY('client', pointer, client);\n }\n\n return client;\n}\nexport function getPointerId(pointer) {\n return is.number(pointer.pointerId) ? pointer.pointerId : pointer.identifier;\n}\nexport function setCoords(dest, pointers, timeStamp) {\n const pointer = pointers.length > 1 ? pointerAverage(pointers) : pointers[0];\n getPageXY(pointer, dest.page);\n getClientXY(pointer, dest.client);\n dest.timeStamp = timeStamp;\n}\nexport function getTouchPair(event) {\n const touches = []; // array of touches is supplied\n\n if (is.array(event)) {\n touches[0] = event[0];\n touches[1] = event[1];\n } // an event\n else {\n if (event.type === 'touchend') {\n if (event.touches.length === 1) {\n touches[0] = event.touches[0];\n touches[1] = event.changedTouches[0];\n } else if (event.touches.length === 0) {\n touches[0] = event.changedTouches[0];\n touches[1] = event.changedTouches[1];\n }\n } else {\n touches[0] = event.touches[0];\n touches[1] = event.touches[1];\n }\n }\n\n return touches;\n}\nexport function pointerAverage(pointers) {\n const average = {\n pageX: 0,\n pageY: 0,\n clientX: 0,\n clientY: 0,\n screenX: 0,\n screenY: 0\n };\n\n for (const pointer of pointers) {\n for (const prop in average) {\n average[prop] += pointer[prop];\n }\n }\n\n for (const prop in average) {\n average[prop] /= pointers.length;\n }\n\n return average;\n}\nexport function touchBBox(event) {\n if (!event.length) {\n return null;\n }\n\n const touches = getTouchPair(event);\n const minX = Math.min(touches[0].pageX, touches[1].pageX);\n const minY = Math.min(touches[0].pageY, touches[1].pageY);\n const maxX = Math.max(touches[0].pageX, touches[1].pageX);\n const maxY = Math.max(touches[0].pageY, touches[1].pageY);\n return {\n x: minX,\n y: minY,\n left: minX,\n top: minY,\n right: maxX,\n bottom: maxY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nexport function touchDistance(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[0][sourceX] - touches[1][sourceX];\n const dy = touches[0][sourceY] - touches[1][sourceY];\n return hypot(dx, dy);\n}\nexport function touchAngle(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[1][sourceX] - touches[0][sourceX];\n const dy = touches[1][sourceY] - touches[0][sourceY];\n const angle = 180 * Math.atan2(dy, dx) / Math.PI;\n return angle;\n}\nexport function getPointerType(pointer) {\n return is.string(pointer.pointerType) ? pointer.pointerType : is.number(pointer.pointerType) ? [undefined, undefined, 'touch', 'pen', 'mouse'][pointer.pointerType] // if the PointerEvent API isn't available, then the \"pointer\" must\n // be either a MouseEvent, TouchEvent, or Touch object\n : /touch/.test(pointer.type) || pointer instanceof dom.Touch ? 'touch' : 'mouse';\n} // [ event.target, event.currentTarget ]\n\nexport function getEventTargets(event) {\n const path = is.func(event.composedPath) ? event.composedPath() : event.path;\n return [domUtils.getActualElement(path ? path[0] : event.target), domUtils.getActualElement(event.currentTarget)];\n}\nexport function newCoords() {\n return {\n page: {\n x: 0,\n y: 0\n },\n client: {\n x: 0,\n y: 0\n },\n timeStamp: 0\n };\n}\nexport function coordsToEvent(coords) {\n const event = {\n coords,\n\n get page() {\n return this.coords.page;\n },\n\n get client() {\n return this.coords.client;\n },\n\n get timeStamp() {\n return this.coords.timeStamp;\n },\n\n get pageX() {\n return this.coords.page.x;\n },\n\n get pageY() {\n return this.coords.page.y;\n },\n\n get clientX() {\n return this.coords.client.x;\n },\n\n get clientY() {\n return this.coords.client.y;\n },\n\n get pointerId() {\n return this.coords.pointerId;\n },\n\n get target() {\n return this.coords.target;\n },\n\n get type() {\n return this.coords.type;\n },\n\n get pointerType() {\n return this.coords.pointerType;\n },\n\n get buttons() {\n return this.coords.buttons;\n },\n\n preventDefault() {}\n\n };\n return event;\n}\nexport { pointerExtend };\n//# sourceMappingURL=pointerUtils.js.map","import { Scope } from \"./scope.js\";\nimport * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport pExtend from \"../utils/pointerExtend.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\n\nfunction install(scope) {\n const targets = [];\n const delegatedEvents = {};\n const documents = [];\n const eventsMethods = {\n add,\n remove,\n addDelegate,\n removeDelegate,\n delegateListener,\n delegateUseCapture,\n delegatedEvents,\n documents,\n targets,\n supportsOptions: false,\n supportsPassive: false\n }; // check if browser supports passive events and options arg\n\n scope.document.createElement('div').addEventListener('test', null, {\n get capture() {\n return eventsMethods.supportsOptions = true;\n },\n\n get passive() {\n return eventsMethods.supportsPassive = true;\n }\n\n });\n scope.events = eventsMethods;\n\n function add(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n let target = arr.find(targets, t => t.eventTarget === eventTarget);\n\n if (!target) {\n target = {\n eventTarget,\n events: {}\n };\n targets.push(target);\n }\n\n if (!target.events[type]) {\n target.events[type] = [];\n }\n\n if (eventTarget.addEventListener && !arr.contains(target.events[type], listener)) {\n eventTarget.addEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n target.events[type].push(listener);\n }\n }\n\n function remove(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const targetIndex = arr.findIndex(targets, t => t.eventTarget === eventTarget);\n const target = targets[targetIndex];\n\n if (!target || !target.events) {\n return;\n }\n\n if (type === 'all') {\n for (type in target.events) {\n if (target.events.hasOwnProperty(type)) {\n remove(eventTarget, type, 'all');\n }\n }\n\n return;\n }\n\n let typeIsEmpty = false;\n const typeListeners = target.events[type];\n\n if (typeListeners) {\n if (listener === 'all') {\n for (let i = typeListeners.length - 1; i >= 0; i--) {\n remove(eventTarget, type, typeListeners[i], options);\n }\n\n return;\n } else {\n for (let i = 0; i < typeListeners.length; i++) {\n if (typeListeners[i] === listener) {\n eventTarget.removeEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n typeListeners.splice(i, 1);\n\n if (typeListeners.length === 0) {\n delete target.events[type];\n typeIsEmpty = true;\n }\n\n break;\n }\n }\n }\n }\n\n if (typeIsEmpty && !Object.keys(target.events).length) {\n targets.splice(targetIndex, 1);\n }\n }\n\n function addDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n\n if (!delegatedEvents[type]) {\n delegatedEvents[type] = []; // add delegate listener functions\n\n for (const doc of documents) {\n add(doc, type, delegateListener);\n add(doc, type, delegateUseCapture, true);\n }\n }\n\n const delegates = delegatedEvents[type];\n let delegate = arr.find(delegates, d => d.selector === selector && d.context === context);\n\n if (!delegate) {\n delegate = {\n selector,\n context,\n listeners: []\n };\n delegates.push(delegate);\n }\n\n delegate.listeners.push([listener, options]);\n }\n\n function removeDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const delegates = delegatedEvents[type];\n let matchFound = false;\n let index;\n\n if (!delegates) {\n return;\n } // count from last index of delegated to 0\n\n\n for (index = delegates.length - 1; index >= 0; index--) {\n const cur = delegates[index]; // look for matching selector and context Node\n\n if (cur.selector === selector && cur.context === context) {\n const {\n listeners\n } = cur; // each item of the listeners array is an array: [function, capture, passive]\n\n for (let i = listeners.length - 1; i >= 0; i--) {\n const [fn, {\n capture,\n passive\n }] = listeners[i]; // check if the listener functions and capture and passive flags match\n\n if (fn === listener && capture === options.capture && passive === options.passive) {\n // remove the listener from the array of listeners\n listeners.splice(i, 1); // if all listeners for this target have been removed\n // remove the target from the delegates array\n\n if (!listeners.length) {\n delegates.splice(index, 1); // remove delegate function from context\n\n remove(context, type, delegateListener);\n remove(context, type, delegateUseCapture, true);\n } // only remove one listener\n\n\n matchFound = true;\n break;\n }\n }\n\n if (matchFound) {\n break;\n }\n }\n }\n } // bound to the interactable context when a DOM event\n // listener is added to a selector interactable\n\n\n function delegateListener(event, optionalArg) {\n const options = getOptions(optionalArg);\n const fakeEvent = new FakeEvent(event);\n const delegates = delegatedEvents[event.type];\n const [eventTarget] = pointerUtils.getEventTargets(event);\n let element = eventTarget; // climb up document tree looking for selector matches\n\n while (is.element(element)) {\n for (let i = 0; i < delegates.length; i++) {\n const cur = delegates[i];\n const {\n selector,\n context\n } = cur;\n\n if (domUtils.matchesSelector(element, selector) && domUtils.nodeContains(context, eventTarget) && domUtils.nodeContains(context, element)) {\n const {\n listeners\n } = cur;\n fakeEvent.currentTarget = element;\n\n for (const [fn, {\n capture,\n passive\n }] of listeners) {\n if (capture === options.capture && passive === options.passive) {\n fn(fakeEvent);\n }\n }\n }\n }\n\n element = domUtils.parentNode(element);\n }\n }\n\n function delegateUseCapture(event) {\n return delegateListener.call(this, event, true);\n } // for type inferrence\n\n\n return eventsMethods;\n}\n\nclass FakeEvent {\n constructor(originalEvent) {\n this.currentTarget = void 0;\n this.originalEvent = void 0;\n this.type = void 0;\n this.originalEvent = originalEvent; // duplicate the event so that currentTarget can be changed\n\n pExtend(this, originalEvent);\n }\n\n preventOriginalDefault() {\n this.originalEvent.preventDefault();\n }\n\n stopPropagation() {\n this.originalEvent.stopPropagation();\n }\n\n stopImmediatePropagation() {\n this.originalEvent.stopImmediatePropagation();\n }\n\n}\n\nfunction getOptions(param) {\n if (!is.object(param)) {\n return {\n capture: !!param,\n passive: false\n };\n }\n\n const options = extend({}, param);\n options.capture = !!param.capture;\n options.passive = !!param.passive;\n return options;\n}\n\nexport default {\n id: 'events',\n install\n};\n//# sourceMappingURL=events.js.map","import { window } from \"./window.js\";\nexport function warnOnce(method, message) {\n let warned = false;\n return function () {\n if (!warned) {\n window.console.warn(message);\n warned = true;\n }\n\n return method.apply(this, arguments);\n };\n}\nexport function copyAction(dest, src) {\n dest.name = src.name;\n dest.axis = src.axis;\n dest.edges = src.edges;\n return dest;\n}\n//# sourceMappingURL=misc.js.map","/** @module interact */\nimport browser from \"../utils/browser.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport { warnOnce } from \"../utils/misc.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\nexport function createInteractStatic(scope) {\n /**\n * ```js\n * interact('#draggable').draggable(true)\n *\n * var rectables = interact('rect')\n * rectables\n * .gesturable(true)\n * .on('gesturemove', function (event) {\n * // ...\n * })\n * ```\n *\n * The methods of this variable can be used to set elements as interactables\n * and also to change various default settings.\n *\n * Calling it as a function and passing an element or a valid CSS selector\n * string returns an Interactable object which has various methods to configure\n * it.\n *\n * @global\n *\n * @param {Element | string} target The HTML or SVG Element to interact with\n * or CSS selector\n * @return {Interactable}\n */\n const interact = (target, options) => {\n let interactable = scope.interactables.get(target, options);\n\n if (!interactable) {\n interactable = scope.interactables.new(target, options);\n interactable.events.global = interact.globalEvents;\n }\n\n return interactable;\n }; // expose the functions used to calculate multi-touch properties\n\n\n interact.getPointerAverage = pointerUtils.pointerAverage;\n interact.getTouchBBox = pointerUtils.touchBBox;\n interact.getTouchDistance = pointerUtils.touchDistance;\n interact.getTouchAngle = pointerUtils.touchAngle;\n interact.getElementRect = domUtils.getElementRect;\n interact.getElementClientRect = domUtils.getElementClientRect;\n interact.matchesSelector = domUtils.matchesSelector;\n interact.closest = domUtils.closest;\n interact.globalEvents = {}; // eslint-disable-next-line no-undef\n\n interact.version = \"1.10.2\";\n interact.scope = scope;\n /**\n * Use a plugin\n *\n * @alias module:interact.use\n *\n */\n\n interact.use = function (plugin, options) {\n this.scope.usePlugin(plugin, options);\n return this;\n };\n /**\n * Check if an element or selector has been set with the {@link interact}\n * function\n *\n * @alias module:interact.isSet\n *\n * @param {Target} target The Element or string being searched for\n * @param {object} options\n * @return {boolean} Indicates if the element or CSS selector was previously\n * passed to interact\n */\n\n\n interact.isSet = function (target, options) {\n return !!this.scope.interactables.get(target, options && options.context);\n };\n /**\n * @deprecated\n * Add a global listener for an InteractEvent or adds a DOM event to `document`\n *\n * @alias module:interact.on\n *\n * @param {string | array | object} type The types of events to listen for\n * @param {function} listener The function event (s)\n * @param {object | boolean} [options] object or useCapture flag for\n * addEventListener\n * @return {object} interact\n */\n\n\n interact.on = warnOnce(function on(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.on(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.on(prop, type[prop], listener);\n }\n\n return this;\n } // if it is an InteractEvent type, add listener to globalEvents\n\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n // if this type of event was never bound\n if (!this.globalEvents[type]) {\n this.globalEvents[type] = [listener];\n } else {\n this.globalEvents[type].push(listener);\n }\n } // If non InteractEvent type, addEventListener to document\n else {\n this.scope.events.add(this.scope.document, type, listener, {\n options\n });\n }\n\n return this;\n }, 'The interact.on() method is being deprecated');\n /**\n * @deprecated\n * Removes a global InteractEvent listener or DOM event from `document`\n *\n * @alias module:interact.off\n *\n * @param {string | array | object} type The types of events that were listened\n * for\n * @param {function} listener The listener function to be removed\n * @param {object | boolean} options [options] object or useCapture flag for\n * removeEventListener\n * @return {object} interact\n */\n\n interact.off = warnOnce(function off(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.off(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.off(prop, type[prop], listener);\n }\n\n return this;\n }\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n let index;\n\n if (type in this.globalEvents && (index = this.globalEvents[type].indexOf(listener)) !== -1) {\n this.globalEvents[type].splice(index, 1);\n }\n } else {\n this.scope.events.remove(this.scope.document, type, listener, options);\n }\n\n return this;\n }, 'The interact.off() method is being deprecated');\n\n interact.debug = function () {\n return this.scope;\n };\n /**\n * @alias module:interact.supportsTouch\n *\n * @return {boolean} Whether or not the browser supports touch input\n */\n\n\n interact.supportsTouch = function () {\n return browser.supportsTouch;\n };\n /**\n * @alias module:interact.supportsPointerEvent\n *\n * @return {boolean} Whether or not the browser supports PointerEvents\n */\n\n\n interact.supportsPointerEvent = function () {\n return browser.supportsPointerEvent;\n };\n /**\n * Cancels all interactions (end events are not fired)\n *\n * @alias module:interact.stop\n *\n * @return {object} interact\n */\n\n\n interact.stop = function () {\n for (const interaction of this.scope.interactions.list) {\n interaction.stop();\n }\n\n return this;\n };\n /**\n * Returns or sets the distance the pointer must be moved before an action\n * sequence occurs. This also affects tolerance for tap events.\n *\n * @alias module:interact.pointerMoveTolerance\n *\n * @param {number} [newValue] The movement from the start position must be greater than this value\n * @return {interact | number}\n */\n\n\n interact.pointerMoveTolerance = function (newValue) {\n if (is.number(newValue)) {\n this.scope.interactions.pointerMoveTolerance = newValue;\n return this;\n }\n\n return this.scope.interactions.pointerMoveTolerance;\n };\n\n interact.addDocument = function (doc, options) {\n this.scope.addDocument(doc, options);\n };\n\n interact.removeDocument = function (doc) {\n this.scope.removeDocument(doc);\n };\n\n return interact;\n}\n//# sourceMappingURL=interactStatic.js.map","export class PointerInfo {\n constructor(id, pointer, event, downTime, downTarget) {\n this.id = void 0;\n this.pointer = void 0;\n this.event = void 0;\n this.downTime = void 0;\n this.downTarget = void 0;\n this.id = id;\n this.pointer = pointer;\n this.event = event;\n this.downTime = downTime;\n this.downTarget = downTarget;\n }\n\n}\n//# sourceMappingURL=PointerInfo.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { warnOnce, copyAction } from \"../utils/misc.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { PointerInfo } from \"./PointerInfo.js\";\nexport let _ProxyValues;\n\n(function (_ProxyValues) {\n _ProxyValues[\"interactable\"] = \"\";\n _ProxyValues[\"element\"] = \"\";\n _ProxyValues[\"prepared\"] = \"\";\n _ProxyValues[\"pointerIsDown\"] = \"\";\n _ProxyValues[\"pointerWasMoved\"] = \"\";\n _ProxyValues[\"_proxy\"] = \"\";\n})(_ProxyValues || (_ProxyValues = {}));\n\nexport let _ProxyMethods;\n\n(function (_ProxyMethods) {\n _ProxyMethods[\"start\"] = \"\";\n _ProxyMethods[\"move\"] = \"\";\n _ProxyMethods[\"end\"] = \"\";\n _ProxyMethods[\"stop\"] = \"\";\n _ProxyMethods[\"interacting\"] = \"\";\n})(_ProxyMethods || (_ProxyMethods = {}));\n\nlet idCounter = 0;\nexport class Interaction {\n // current interactable being interacted with\n // the target element of the interactable\n // action that's ready to be fired on next move event\n // keep track of added pointers\n // pointerdown/mousedown/touchstart event\n // previous action event\n\n /** @internal */\n get pointerMoveTolerance() {\n return 1;\n }\n /**\n * @alias Interaction.prototype.move\n */\n\n\n /** */\n constructor({\n pointerType,\n scopeFire\n }) {\n this.interactable = null;\n this.element = null;\n this.rect = void 0;\n this._rects = void 0;\n this.edges = void 0;\n this._scopeFire = void 0;\n this.prepared = {\n name: null,\n axis: null,\n edges: null\n };\n this.pointerType = void 0;\n this.pointers = [];\n this.downEvent = null;\n this.downPointer = {};\n this._latestPointer = {\n pointer: null,\n event: null,\n eventTarget: null\n };\n this.prevEvent = null;\n this.pointerIsDown = false;\n this.pointerWasMoved = false;\n this._interacting = false;\n this._ending = false;\n this._stopped = true;\n this._proxy = null;\n this.simulation = null;\n this.doMove = warnOnce(function (signalArg) {\n this.move(signalArg);\n }, 'The interaction.doMove() method has been renamed to interaction.move()');\n this.coords = {\n // Starting InteractEvent pointer coordinates\n start: pointerUtils.newCoords(),\n // Previous native pointer move event coordinates\n prev: pointerUtils.newCoords(),\n // current native pointer move event coordinates\n cur: pointerUtils.newCoords(),\n // Change in coordinates and time of the pointer\n delta: pointerUtils.newCoords(),\n // pointer velocity\n velocity: pointerUtils.newCoords()\n };\n this._id = idCounter++;\n this._scopeFire = scopeFire;\n this.pointerType = pointerType;\n const that = this;\n this._proxy = {};\n\n for (const key in _ProxyValues) {\n Object.defineProperty(this._proxy, key, {\n get() {\n return that[key];\n }\n\n });\n }\n\n for (const key in _ProxyMethods) {\n Object.defineProperty(this._proxy, key, {\n value: (...args) => that[key](...args)\n });\n }\n\n this._scopeFire('interactions:new', {\n interaction: this\n });\n }\n\n pointerDown(pointer, event, eventTarget) {\n const pointerIndex = this.updatePointer(pointer, event, eventTarget, true);\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:down', {\n pointer,\n event,\n eventTarget,\n pointerIndex,\n pointerInfo,\n type: 'down',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable({\n * // disable the default drag start by down->move\n * manualStart: true\n * })\n * // start dragging after the user holds the pointer down\n * .on('hold', function (event) {\n * var interaction = event.interaction\n *\n * if (!interaction.interacting()) {\n * interaction.start({ name: 'drag' },\n * event.interactable,\n * event.currentTarget)\n * }\n * })\n * ```\n *\n * Start an action with the given Interactable and Element as tartgets. The\n * action must be enabled for the target Interactable and an appropriate\n * number of pointers must be held down - 1 for drag/resize, 2 for gesture.\n *\n * Use it with `interactable.able({ manualStart: false })` to always\n * [start actions manually](https://github.com/taye/interact.js/issues/114)\n *\n * @param {object} action The action to be performed - drag, resize, etc.\n * @param {Interactable} target The Interactable to target\n * @param {Element} element The DOM Element to target\n * @return {Boolean} Whether the interaction was successfully started\n */\n\n\n start(action, interactable, element) {\n if (this.interacting() || !this.pointerIsDown || this.pointers.length < (action.name === 'gesture' ? 2 : 1) || !interactable.options[action.name].enabled) {\n return false;\n }\n\n copyAction(this.prepared, action);\n this.interactable = interactable;\n this.element = element;\n this.rect = interactable.getRect(element);\n this.edges = this.prepared.edges ? extend({}, this.prepared.edges) : {\n left: true,\n right: true,\n top: true,\n bottom: true\n };\n this._stopped = false;\n this._interacting = this._doPhase({\n interaction: this,\n event: this.downEvent,\n phase: 'start'\n }) && !this._stopped;\n return this._interacting;\n }\n\n pointerMove(pointer, event, eventTarget) {\n if (!this.simulation && !(this.modification && this.modification.endResult)) {\n this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const duplicateMove = 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;\n let dx;\n let dy; // register movement greater than pointerMoveTolerance\n\n if (this.pointerIsDown && !this.pointerWasMoved) {\n dx = this.coords.cur.client.x - this.coords.start.client.x;\n dy = this.coords.cur.client.y - this.coords.start.client.y;\n this.pointerWasMoved = hypot(dx, dy) > this.pointerMoveTolerance;\n }\n\n const pointerIndex = this.getPointerIndex(pointer);\n const signalArg = {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n type: 'move',\n eventTarget,\n dx,\n dy,\n duplicate: duplicateMove,\n interaction: this\n };\n\n if (!duplicateMove) {\n // set pointer coordinate, time changes and velocity\n pointerUtils.setCoordVelocity(this.coords.velocity, this.coords.delta);\n }\n\n this._scopeFire('interactions:move', signalArg);\n\n if (!duplicateMove && !this.simulation) {\n // if interacting, fire an 'action-move' signal etc\n if (this.interacting()) {\n signalArg.type = null;\n this.move(signalArg);\n }\n\n if (this.pointerWasMoved) {\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n }\n }\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('dragmove', function (event) {\n * if (someCondition) {\n * // change the snap settings\n * event.interactable.draggable({ snap: { targets: [] }})\n * // fire another move event with re-calculated snap\n * event.interaction.move()\n * }\n * })\n * ```\n *\n * Force a move of the current action at the same coordinates. Useful if\n * snap/restrict has been changed and you want a movement with the new\n * settings.\n */\n\n\n move(signalArg) {\n if (!signalArg || !signalArg.event) {\n pointerUtils.setZeroCoords(this.coords.delta);\n }\n\n signalArg = extend({\n pointer: this._latestPointer.pointer,\n event: this._latestPointer.event,\n eventTarget: this._latestPointer.eventTarget,\n interaction: this\n }, signalArg || {});\n signalArg.phase = 'move';\n\n this._doPhase(signalArg);\n } // End interact move events and stop auto-scroll unless simulation is running\n\n\n pointerUp(pointer, event, eventTarget, curEventTarget) {\n let pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n pointerIndex = this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const type = /cancel$/i.test(event.type) ? 'cancel' : 'up';\n\n this._scopeFire(`interactions:${type}`, {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n eventTarget,\n type: type,\n curEventTarget,\n interaction: this\n });\n\n if (!this.simulation) {\n this.end(event);\n }\n\n this.removePointer(pointer, event);\n }\n\n documentBlur(event) {\n this.end(event);\n\n this._scopeFire('interactions:blur', {\n event,\n type: 'blur',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('move', function (event) {\n * if (event.pageX > 1000) {\n * // end the current action\n * event.interaction.end()\n * // stop all further listeners from being called\n * event.stopImmediatePropagation()\n * }\n * })\n * ```\n *\n * @param {PointerEvent} [event]\n */\n\n\n end(event) {\n this._ending = true;\n event = event || this._latestPointer.event;\n let endPhaseResult;\n\n if (this.interacting()) {\n endPhaseResult = this._doPhase({\n event,\n interaction: this,\n phase: 'end'\n });\n }\n\n this._ending = false;\n\n if (endPhaseResult === true) {\n this.stop();\n }\n }\n\n currentAction() {\n return this._interacting ? this.prepared.name : null;\n }\n\n interacting() {\n return this._interacting;\n }\n /** */\n\n\n stop() {\n this._scopeFire('interactions:stop', {\n interaction: this\n });\n\n this.interactable = this.element = null;\n this._interacting = false;\n this._stopped = true;\n this.prepared.name = this.prevEvent = null;\n }\n\n getPointerIndex(pointer) {\n const pointerId = pointerUtils.getPointerId(pointer); // mouse and pen interactions may have only one pointer\n\n return this.pointerType === 'mouse' || this.pointerType === 'pen' ? this.pointers.length - 1 : arr.findIndex(this.pointers, curPointer => curPointer.id === pointerId);\n }\n\n getPointerInfo(pointer) {\n return this.pointers[this.getPointerIndex(pointer)];\n }\n\n updatePointer(pointer, event, eventTarget, down) {\n const id = pointerUtils.getPointerId(pointer);\n let pointerIndex = this.getPointerIndex(pointer);\n let pointerInfo = this.pointers[pointerIndex];\n down = down === false ? false : down || /(down|start)$/i.test(event.type);\n\n if (!pointerInfo) {\n pointerInfo = new PointerInfo(id, pointer, event, null, null);\n pointerIndex = this.pointers.length;\n this.pointers.push(pointerInfo);\n } else {\n pointerInfo.pointer = pointer;\n }\n\n pointerUtils.setCoords(this.coords.cur, this.pointers.map(p => p.pointer), this._now());\n pointerUtils.setCoordDeltas(this.coords.delta, this.coords.prev, this.coords.cur);\n\n if (down) {\n this.pointerIsDown = true;\n pointerInfo.downTime = this.coords.cur.timeStamp;\n pointerInfo.downTarget = eventTarget;\n pointerUtils.pointerExtend(this.downPointer, pointer);\n\n if (!this.interacting()) {\n pointerUtils.copyCoords(this.coords.start, this.coords.cur);\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n this.downEvent = event;\n this.pointerWasMoved = false;\n }\n }\n\n this._updateLatestPointer(pointer, event, eventTarget);\n\n this._scopeFire('interactions:update-pointer', {\n pointer,\n event,\n eventTarget,\n down,\n pointerInfo,\n pointerIndex,\n interaction: this\n });\n\n return pointerIndex;\n }\n\n removePointer(pointer, event) {\n const pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n return;\n }\n\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:remove-pointer', {\n pointer,\n event,\n eventTarget: null,\n pointerIndex,\n pointerInfo,\n interaction: this\n });\n\n this.pointers.splice(pointerIndex, 1);\n this.pointerIsDown = false;\n }\n\n _updateLatestPointer(pointer, event, eventTarget) {\n this._latestPointer.pointer = pointer;\n this._latestPointer.event = event;\n this._latestPointer.eventTarget = eventTarget;\n }\n\n destroy() {\n this._latestPointer.pointer = null;\n this._latestPointer.event = null;\n this._latestPointer.eventTarget = null;\n }\n\n _createPreparedEvent(event, phase, preEnd, type) {\n return new InteractEvent(this, event, this.prepared.name, phase, this.element, preEnd, type);\n }\n\n _fireEvent(iEvent) {\n this.interactable.fire(iEvent);\n\n if (!this.prevEvent || iEvent.timeStamp >= this.prevEvent.timeStamp) {\n this.prevEvent = iEvent;\n }\n }\n\n _doPhase(signalArg) {\n const {\n event,\n phase,\n preEnd,\n type\n } = signalArg;\n const {\n rect\n } = this;\n\n if (rect && phase === 'move') {\n // update the rect changes due to pointer move\n rectUtils.addEdges(this.edges, rect, this.coords.delta[this.interactable.options.deltaSource]);\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n const beforeResult = this._scopeFire(`interactions:before-action-${phase}`, signalArg);\n\n if (beforeResult === false) {\n return false;\n }\n\n const iEvent = signalArg.iEvent = this._createPreparedEvent(event, phase, preEnd, type);\n\n this._scopeFire(`interactions:action-${phase}`, signalArg);\n\n if (phase === 'start') {\n this.prevEvent = iEvent;\n }\n\n this._fireEvent(iEvent);\n\n this._scopeFire(`interactions:after-action-${phase}`, signalArg);\n\n return true;\n }\n\n _now() {\n return Date.now();\n }\n\n}\nexport default Interaction;\nexport { PointerInfo };\n//# sourceMappingURL=Interaction.js.map","import { Interactable } from \"./Interactable.js\";\nimport { matchesSelector, nodeContains } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport { getWindow } from \"../utils/window.js\";\n\nfunction preventDefault(newValue) {\n if (/^(always|never|auto)$/.test(newValue)) {\n this.options.preventDefault = newValue;\n return this;\n }\n\n if (is.bool(newValue)) {\n this.options.preventDefault = newValue ? 'always' : 'never';\n return this;\n }\n\n return this.options.preventDefault;\n}\n\nfunction checkAndPreventDefault(interactable, scope, event) {\n const setting = interactable.options.preventDefault;\n\n if (setting === 'never') {\n return;\n }\n\n if (setting === 'always') {\n event.preventDefault();\n return;\n } // setting === 'auto'\n // if the browser supports passive event listeners and isn't running on iOS,\n // don't preventDefault of touch{start,move} events. CSS touch-action and\n // user-select should be used instead of calling event.preventDefault().\n\n\n if (scope.events.supportsPassive && /^touch(start|move)$/.test(event.type)) {\n const doc = getWindow(event.target).document;\n const docOptions = scope.getDocOptions(doc);\n\n if (!(docOptions && docOptions.events) || docOptions.events.passive !== false) {\n return;\n }\n } // don't preventDefault of pointerdown events\n\n\n if (/^(mouse|pointer|touch)*(down|start)/i.test(event.type)) {\n return;\n } // don't preventDefault on editable elements\n\n\n if (is.element(event.target) && matchesSelector(event.target, 'input,select,textarea,[contenteditable=true],[contenteditable=true] *')) {\n return;\n }\n\n event.preventDefault();\n}\n\nfunction onInteractionEvent({\n interaction,\n event\n}) {\n if (interaction.interactable) {\n interaction.interactable.checkAndPreventDefault(event);\n }\n}\n\nexport function install(scope) {\n /** @lends Interactable */\n const {\n Interactable\n } = scope;\n /**\n * Returns or sets whether to prevent the browser's default behaviour in\n * response to pointer events. Can be set to:\n * - `'always'` to always prevent\n * - `'never'` to never prevent\n * - `'auto'` to let interact.js try to determine what would be best\n *\n * @param {string} [newValue] `'always'`, `'never'` or `'auto'`\n * @return {string | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.preventDefault = preventDefault;\n\n Interactable.prototype.checkAndPreventDefault = function (event) {\n return checkAndPreventDefault(this, scope, event);\n }; // prevent native HTML5 drag on interact.js target elements\n\n\n scope.interactions.docEvents.push({\n type: 'dragstart',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n if (interaction.element && (interaction.element === event.target || nodeContains(interaction.element, event.target))) {\n interaction.interactable.checkAndPreventDefault(event);\n return;\n }\n }\n }\n\n });\n}\nexport default {\n id: 'core/interactablePreventDefault',\n install,\n listeners: ['down', 'move', 'up', 'cancel'].reduce((acc, eventType) => {\n acc[`interactions:${eventType}`] = onInteractionEvent;\n return acc;\n }, {})\n};\n//# sourceMappingURL=interactablePreventDefault.js.map","import * as dom from \"../utils/domUtils.js\";\nconst finder = {\n methodOrder: ['simulationResume', 'mouseOrPen', 'hasPointer', 'idle'],\n\n search(details) {\n for (const method of finder.methodOrder) {\n const interaction = finder[method](details);\n\n if (interaction) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // try to resume simulation with a new pointer\n simulationResume({\n pointerType,\n eventType,\n eventTarget,\n scope\n }) {\n if (!/down|start/i.test(eventType)) {\n return null;\n }\n\n for (const interaction of scope.interactions.list) {\n let element = eventTarget;\n\n if (interaction.simulation && interaction.simulation.allowResume && interaction.pointerType === pointerType) {\n while (element) {\n // if the element is the interaction element\n if (element === interaction.element) {\n return interaction;\n }\n\n element = dom.parentNode(element);\n }\n }\n }\n\n return null;\n },\n\n // if it's a mouse or pen interaction\n mouseOrPen({\n pointerId,\n pointerType,\n eventType,\n scope\n }) {\n if (pointerType !== 'mouse' && pointerType !== 'pen') {\n return null;\n }\n\n let firstNonActive;\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType) {\n // if it's a down event, skip interactions with running simulations\n if (interaction.simulation && !hasPointerId(interaction, pointerId)) {\n continue;\n } // if the interaction is active, return it immediately\n\n\n if (interaction.interacting()) {\n return interaction;\n } // otherwise save it and look for another active interaction\n else if (!firstNonActive) {\n firstNonActive = interaction;\n }\n }\n } // if no active mouse interaction was found use the first inactive mouse\n // interaction\n\n\n if (firstNonActive) {\n return firstNonActive;\n } // find any mouse or pen interaction.\n // ignore the interaction if the eventType is a *down, and a simulation\n // is active\n\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType && !(/down/i.test(eventType) && interaction.simulation)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get interaction that has this pointer\n hasPointer({\n pointerId,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n if (hasPointerId(interaction, pointerId)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get first idle interaction with a matching pointerType\n idle({\n pointerType,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n // if there's already a pointer held down\n if (interaction.pointers.length === 1) {\n const target = interaction.interactable; // don't add this pointer if there is a target interactable and it\n // isn't gesturable\n\n if (target && !(target.options.gesture && target.options.gesture.enabled)) {\n continue;\n }\n } // maximum of 2 pointers per interaction\n else if (interaction.pointers.length >= 2) {\n continue;\n }\n\n if (!interaction.interacting() && pointerType === interaction.pointerType) {\n return interaction;\n }\n }\n\n return null;\n }\n\n};\n\nfunction hasPointerId(interaction, pointerId) {\n return interaction.pointers.some(({\n id\n }) => id === pointerId);\n}\n\nexport default finder;\n//# sourceMappingURL=interactionFinder.js.map","import { Scope, SignalArgs } from \"./scope.js\";\nimport browser from \"../utils/browser.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { nodeContains } from \"../utils/domUtils.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport InteractionBase from \"./Interaction.js\";\nimport interactablePreventDefault from \"./interactablePreventDefault.js\";\nimport finder from \"./interactionFinder.js\";\nconst methodNames = ['pointerDown', 'pointerMove', 'pointerUp', 'updatePointer', 'removePointer', 'windowBlur'];\n\nfunction install(scope) {\n const listeners = {};\n\n for (const method of methodNames) {\n listeners[method] = doOnInteractions(method, scope);\n }\n\n const pEventTypes = browser.pEventTypes;\n let docEvents;\n\n if (domObjects.PointerEvent) {\n docEvents = [{\n type: pEventTypes.down,\n listener: releasePointersOnRemovedEls\n }, {\n type: pEventTypes.down,\n listener: listeners.pointerDown\n }, {\n type: pEventTypes.move,\n listener: listeners.pointerMove\n }, {\n type: pEventTypes.up,\n listener: listeners.pointerUp\n }, {\n type: pEventTypes.cancel,\n listener: listeners.pointerUp\n }];\n } else {\n docEvents = [{\n type: 'mousedown',\n listener: listeners.pointerDown\n }, {\n type: 'mousemove',\n listener: listeners.pointerMove\n }, {\n type: 'mouseup',\n listener: listeners.pointerUp\n }, {\n type: 'touchstart',\n listener: releasePointersOnRemovedEls\n }, {\n type: 'touchstart',\n listener: listeners.pointerDown\n }, {\n type: 'touchmove',\n listener: listeners.pointerMove\n }, {\n type: 'touchend',\n listener: listeners.pointerUp\n }, {\n type: 'touchcancel',\n listener: listeners.pointerUp\n }];\n }\n\n docEvents.push({\n type: 'blur',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n interaction.documentBlur(event);\n }\n }\n\n }); // for ignoring browser's simulated mouse events\n\n scope.prevTouchTime = 0;\n scope.Interaction = class extends InteractionBase {\n get pointerMoveTolerance() {\n return scope.interactions.pointerMoveTolerance;\n }\n\n set pointerMoveTolerance(value) {\n scope.interactions.pointerMoveTolerance = value;\n }\n\n _now() {\n return scope.now();\n }\n\n };\n scope.interactions = {\n // all active and idle interactions\n list: [],\n\n new(options) {\n options.scopeFire = (name, arg) => scope.fire(name, arg);\n\n const interaction = new scope.Interaction(options);\n scope.interactions.list.push(interaction);\n return interaction;\n },\n\n listeners,\n docEvents,\n pointerMoveTolerance: 1\n };\n\n function releasePointersOnRemovedEls() {\n // for all inactive touch interactions with pointers down\n for (const interaction of scope.interactions.list) {\n if (!interaction.pointerIsDown || interaction.pointerType !== 'touch' || interaction._interacting) {\n continue;\n } // if a pointer is down on an element that is no longer in the DOM tree\n\n\n for (const pointer of interaction.pointers) {\n if (!scope.documents.some(({\n doc\n }) => nodeContains(doc, pointer.downTarget))) {\n // remove the pointer from the interaction\n interaction.removePointer(pointer.pointer, pointer.event);\n }\n }\n }\n }\n\n scope.usePlugin(interactablePreventDefault);\n}\n\nfunction doOnInteractions(method, scope) {\n return function (event) {\n const interactions = scope.interactions.list;\n const pointerType = pointerUtils.getPointerType(event);\n const [eventTarget, curEventTarget] = pointerUtils.getEventTargets(event);\n const matches = []; // [ [pointer, interaction], ...]\n\n if (/^touch/.test(event.type)) {\n scope.prevTouchTime = scope.now(); // @ts-expect-error\n\n for (const changedTouch of event.changedTouches) {\n const pointer = changedTouch;\n const pointerId = pointerUtils.getPointerId(pointer);\n const searchDetails = {\n pointer,\n pointerId,\n pointerType,\n eventType: event.type,\n eventTarget,\n curEventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } else {\n let invalidPointer = false;\n\n if (!browser.supportsPointerEvent && /mouse/.test(event.type)) {\n // ignore mouse events while touch interactions are active\n for (let i = 0; i < interactions.length && !invalidPointer; i++) {\n invalidPointer = interactions[i].pointerType !== 'mouse' && interactions[i].pointerIsDown;\n } // try to ignore mouse events that are simulated by the browser\n // after a touch event\n\n\n invalidPointer = invalidPointer || scope.now() - scope.prevTouchTime < 500 || // on iOS and Firefox Mobile, MouseEvent.timeStamp is zero if simulated\n event.timeStamp === 0;\n }\n\n if (!invalidPointer) {\n const searchDetails = {\n pointer: event,\n pointerId: pointerUtils.getPointerId(event),\n pointerType,\n eventType: event.type,\n curEventTarget,\n eventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } // eslint-disable-next-line no-shadow\n\n\n for (const [pointer, eventTarget, curEventTarget, interaction] of matches) {\n interaction[method](pointer, event, eventTarget, curEventTarget);\n }\n };\n}\n\nfunction getInteraction(searchDetails) {\n const {\n pointerType,\n scope\n } = searchDetails;\n const foundInteraction = finder.search(searchDetails);\n const signalArg = {\n interaction: foundInteraction,\n searchDetails\n };\n scope.fire('interactions:find', signalArg);\n return signalArg.interaction || scope.interactions.new({\n pointerType\n });\n}\n\nfunction onDocSignal({\n doc,\n scope,\n options\n}, eventMethodName) {\n const {\n interactions: {\n docEvents\n },\n events\n } = scope;\n const eventMethod = events[eventMethodName];\n\n if (scope.browser.isIOS && !options.events) {\n options.events = {\n passive: false\n };\n } // delegate event listener\n\n\n for (const eventType in events.delegatedEvents) {\n eventMethod(doc, eventType, events.delegateListener);\n eventMethod(doc, eventType, events.delegateUseCapture, true);\n }\n\n const eventOptions = options && options.events;\n\n for (const {\n type,\n listener\n } of docEvents) {\n eventMethod(doc, type, listener, eventOptions);\n }\n}\n\nconst interactions = {\n id: 'core/interactions',\n install,\n listeners: {\n 'scope:add-document': arg => onDocSignal(arg, 'add'),\n 'scope:remove-document': arg => onDocSignal(arg, 'remove'),\n 'interactable:unset': ({\n interactable\n }, scope) => {\n // Stop and destroy related interactions when an Interactable is unset\n for (let i = scope.interactions.list.length - 1; i >= 0; i--) {\n const interaction = scope.interactions.list[i];\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interaction.stop();\n scope.fire('interactions:destroy', {\n interaction\n });\n interaction.destroy();\n\n if (scope.interactions.list.length > 2) {\n scope.interactions.list.splice(i, 1);\n }\n }\n }\n },\n onDocSignal,\n doOnInteractions,\n methodNames\n};\nexport default interactions;\n//# sourceMappingURL=interactions.js.map","import browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport extend from \"../utils/extend.js\";\nimport raf from \"../utils/raf.js\";\nimport * as win from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { Interactable as InteractableBase } from \"./Interactable.js\";\nimport { InteractableSet } from \"./InteractableSet.js\";\nimport { defaults } from \"./defaultOptions.js\";\nimport events from \"./events.js\";\nimport { createInteractStatic } from \"./interactStatic.js\";\nimport interactions from \"./interactions.js\";\nexport class Scope {\n // main window\n // main document\n // main window\n // all documents being listened to\n constructor() {\n this.id = `__interact_scope_${Math.floor(Math.random() * 100)}`;\n this.isInitialized = false;\n this.listenerMaps = [];\n this.browser = browser;\n this.defaults = clone(defaults);\n this.Eventable = Eventable;\n this.actions = {\n map: {},\n phases: {\n start: true,\n move: true,\n end: true\n },\n methodDict: {},\n phaselessTypes: {}\n };\n this.interactStatic = createInteractStatic(this);\n this.InteractEvent = InteractEvent;\n this.Interactable = void 0;\n this.interactables = new InteractableSet(this);\n this._win = void 0;\n this.document = void 0;\n this.window = void 0;\n this.documents = [];\n this._plugins = {\n list: [],\n map: {}\n };\n\n this.onWindowUnload = event => this.removeDocument(event.target);\n\n const scope = this;\n this.Interactable = class extends InteractableBase {\n get _defaults() {\n return scope.defaults;\n }\n\n set(options) {\n super.set(options);\n scope.fire('interactable:set', {\n options,\n interactable: this\n });\n return this;\n }\n\n unset() {\n super.unset();\n scope.interactables.list.splice(scope.interactables.list.indexOf(this), 1);\n scope.fire('interactable:unset', {\n interactable: this\n });\n }\n\n };\n }\n\n addListeners(map, id) {\n this.listenerMaps.push({\n id,\n map\n });\n }\n\n fire(name, arg) {\n for (const {\n map: {\n [name]: listener\n }\n } of this.listenerMaps) {\n if (!!listener && listener(arg, this, name) === false) {\n return false;\n }\n }\n }\n\n init(window) {\n return this.isInitialized ? this : initScope(this, window);\n }\n\n pluginIsInstalled(plugin) {\n return this._plugins.map[plugin.id] || this._plugins.list.indexOf(plugin) !== -1;\n }\n\n usePlugin(plugin, options) {\n if (!this.isInitialized) {\n return this;\n }\n\n if (this.pluginIsInstalled(plugin)) {\n return this;\n }\n\n if (plugin.id) {\n this._plugins.map[plugin.id] = plugin;\n }\n\n this._plugins.list.push(plugin);\n\n if (plugin.install) {\n plugin.install(this, options);\n }\n\n if (plugin.listeners && plugin.before) {\n let index = 0;\n const len = this.listenerMaps.length;\n const before = plugin.before.reduce((acc, id) => {\n acc[id] = true;\n acc[pluginIdRoot(id)] = true;\n return acc;\n }, {});\n\n for (; index < len; index++) {\n const otherId = this.listenerMaps[index].id;\n\n if (before[otherId] || before[pluginIdRoot(otherId)]) {\n break;\n }\n }\n\n this.listenerMaps.splice(index, 0, {\n id: plugin.id,\n map: plugin.listeners\n });\n } else if (plugin.listeners) {\n this.listenerMaps.push({\n id: plugin.id,\n map: plugin.listeners\n });\n }\n\n return this;\n }\n\n addDocument(doc, options) {\n // do nothing if document is already known\n if (this.getDocIndex(doc) !== -1) {\n return false;\n }\n\n const window = win.getWindow(doc);\n options = options ? extend({}, options) : {};\n this.documents.push({\n doc,\n options\n });\n this.events.documents.push(doc); // don't add an unload event for the main document\n // so that the page may be cached in browser history\n\n if (doc !== this.document) {\n this.events.add(window, 'unload', this.onWindowUnload);\n }\n\n this.fire('scope:add-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n removeDocument(doc) {\n const index = this.getDocIndex(doc);\n const window = win.getWindow(doc);\n const options = this.documents[index].options;\n this.events.remove(window, 'unload', this.onWindowUnload);\n this.documents.splice(index, 1);\n this.events.documents.splice(index, 1);\n this.fire('scope:remove-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n getDocIndex(doc) {\n for (let i = 0; i < this.documents.length; i++) {\n if (this.documents[i].doc === doc) {\n return i;\n }\n }\n\n return -1;\n }\n\n getDocOptions(doc) {\n const docIndex = this.getDocIndex(doc);\n return docIndex === -1 ? null : this.documents[docIndex].options;\n }\n\n now() {\n return (this.window.Date || Date).now();\n }\n\n}\nexport function initScope(scope, window) {\n scope.isInitialized = true;\n win.init(window);\n domObjects.init(window);\n browser.init(window);\n raf.init(window);\n scope.window = window;\n scope.document = window.document;\n scope.usePlugin(interactions);\n scope.usePlugin(events);\n return scope;\n}\n\nfunction pluginIdRoot(id) {\n return id && id.replace(/\\/.*$/, '');\n}\n//# sourceMappingURL=scope.js.map","import { Scope } from \"../core/scope.js\";\nconst scope = new Scope();\nconst interact = scope.interactStatic;\nexport default interact;\nexport const init = win => scope.init(win);\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../core/Interactable.js\";\nimport is from \"../utils/is.js\";\nimport { warnOnce } from \"../utils/misc.js\";\n\nfunction install(scope) {\n const {\n /** @lends Interactable */\n Interactable // tslint:disable-line no-shadowed-variable\n\n } = scope;\n\n Interactable.prototype.getAction = function getAction(pointer, event, interaction, element) {\n const action = defaultActionChecker(this, event, interaction, element, scope);\n\n if (this.options.actionChecker) {\n return this.options.actionChecker(pointer, event, action, this, element, interaction);\n }\n\n return action;\n };\n /**\n * If the target of the `mousedown`, `pointerdown` or `touchstart` event or any\n * of it's parents match the given CSS selector or Element, no\n * drag/resize/gesture is started.\n *\n * @deprecated\n * Don't use this method. Instead set the `ignoreFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .draggable({\n * ignoreFrom: 'input, textarea, a[href]'',\n * })\n * .pointerEvents({\n * ignoreFrom: '[no-pointer]',\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to not ignore any elements\n * @return {string | Element | object} The current ignoreFrom value or this\n * Interactable\n */\n\n\n Interactable.prototype.ignoreFrom = warnOnce(function (newValue) {\n return this._backCompatOption('ignoreFrom', newValue);\n }, 'Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue}).');\n /**\n *\n * A drag/resize/gesture is started only If the target of the `mousedown`,\n * `pointerdown` or `touchstart` event or any of it's parents match the given\n * CSS selector or Element.\n *\n * @deprecated\n * Don't use this method. Instead set the `allowFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .resizable({\n * allowFrom: '.resize-handle',\n * .pointerEvents({\n * allowFrom: '.handle',,\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to allow from any element\n * @return {string | Element | object} The current allowFrom value or this\n * Interactable\n */\n\n Interactable.prototype.allowFrom = warnOnce(function (newValue) {\n return this._backCompatOption('allowFrom', newValue);\n }, 'Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue}).');\n /**\n * ```js\n * interact('.resize-drag')\n * .resizable(true)\n * .draggable(true)\n * .actionChecker(function (pointer, event, action, interactable, element, interaction) {\n *\n * if (interact.matchesSelector(event.target, '.drag-handle')) {\n * // force drag with handle target\n * action.name = drag\n * }\n * else {\n * // resize from the top and right edges\n * action.name = 'resize'\n * action.edges = { top: true, right: true }\n * }\n *\n * return action\n * })\n * ```\n *\n * Returns or sets the function used to check action to be performed on\n * pointerDown\n *\n * @param {function | null} [checker] A function which takes a pointer event,\n * defaultAction string, interactable, element and interaction as parameters\n * and returns an object with name property 'drag' 'resize' or 'gesture' and\n * optionally an `edges` object with boolean 'top', 'left', 'bottom' and right\n * props.\n * @return {Function | Interactable} The checker function or this Interactable\n */\n\n Interactable.prototype.actionChecker = actionChecker;\n /**\n * Returns or sets whether the the cursor should be changed depending on the\n * action that would be performed if the mouse were pressed and dragged.\n *\n * @param {boolean} [newValue]\n * @return {boolean | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.styleCursor = styleCursor;\n}\n\nfunction defaultActionChecker(interactable, event, interaction, element, scope) {\n const rect = interactable.getRect(element);\n const buttons = event.buttons || {\n 0: 1,\n 1: 4,\n 3: 8,\n 4: 16\n }[event.button];\n const arg = {\n action: null,\n interactable,\n interaction,\n element,\n rect,\n buttons\n };\n scope.fire('auto-start:check', arg);\n return arg.action;\n}\n\nfunction styleCursor(newValue) {\n if (is.bool(newValue)) {\n this.options.styleCursor = newValue;\n return this;\n }\n\n if (newValue === null) {\n delete this.options.styleCursor;\n return this;\n }\n\n return this.options.styleCursor;\n}\n\nfunction actionChecker(checker) {\n if (is.func(checker)) {\n this.options.actionChecker = checker;\n return this;\n }\n\n if (checker === null) {\n delete this.options.actionChecker;\n return this;\n }\n\n return this.options.actionChecker;\n}\n\nexport default {\n id: 'auto-start/interactableMethods',\n install\n};\n//# sourceMappingURL=InteractableMethods.js.map","import { Scope, SignalArgs } from \"../core/scope.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport { copyAction } from \"../utils/misc.js\";\nimport InteractableMethods from \"./InteractableMethods.js\";\n\nfunction install(scope) {\n const {\n interactStatic: interact,\n defaults\n } = scope;\n scope.usePlugin(InteractableMethods);\n defaults.base.actionChecker = null;\n defaults.base.styleCursor = true;\n extend(defaults.perAction, {\n manualStart: false,\n max: Infinity,\n maxPerElement: 1,\n allowFrom: null,\n ignoreFrom: null,\n // only allow left button by default\n // see https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons#Return_value\n mouseButtons: 1\n });\n /**\n * Returns or sets the maximum number of concurrent interactions allowed. By\n * default only 1 interaction is allowed at a time (for backwards\n * compatibility). To allow multiple interactions on the same Interactables and\n * elements, you need to enable it in the draggable, resizable and gesturable\n * `'max'` and `'maxPerElement'` options.\n *\n * @alias module:interact.maxInteractions\n *\n * @param {number} [newValue] Any number. newValue <= 0 means no interactions.\n */\n\n interact.maxInteractions = newValue => maxInteractions(newValue, scope);\n\n scope.autoStart = {\n // Allow this many interactions to happen simultaneously\n maxInteractions: Infinity,\n withinInteractionLimit,\n cursorElement: null\n };\n}\n\nfunction prepareOnDown({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction prepareOnMove({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.pointerType !== 'mouse' || interaction.pointerIsDown || interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction startOnMove(arg, scope) {\n const {\n interaction\n } = arg;\n\n if (!interaction.pointerIsDown || interaction.interacting() || !interaction.pointerWasMoved || !interaction.prepared.name) {\n return;\n }\n\n scope.fire('autoStart:before-start', arg);\n const {\n interactable\n } = interaction;\n const actionName = interaction.prepared.name;\n\n if (actionName && interactable) {\n // check manualStart and interaction limit\n if (interactable.options[actionName].manualStart || !withinInteractionLimit(interactable, interaction.element, interaction.prepared, scope)) {\n interaction.stop();\n } else {\n interaction.start(interaction.prepared, interactable, interaction.element);\n setInteractionCursor(interaction, scope);\n }\n }\n}\n\nfunction clearCursorOnStop({\n interaction\n}, scope) {\n const {\n interactable\n } = interaction;\n\n if (interactable && interactable.options.styleCursor) {\n setCursor(interaction.element, '', scope);\n }\n} // Check if the current interactable supports the action.\n// If so, return the validated action. Otherwise, return null\n\n\nfunction validateAction(action, interactable, element, eventTarget, scope) {\n if (interactable.testIgnoreAllow(interactable.options[action.name], element, eventTarget) && interactable.options[action.name].enabled && withinInteractionLimit(interactable, element, action, scope)) {\n return action;\n }\n\n return null;\n}\n\nfunction validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope) {\n for (let i = 0, len = matches.length; i < len; i++) {\n const match = matches[i];\n const matchElement = matchElements[i];\n const matchAction = match.getAction(pointer, event, interaction, matchElement);\n\n if (!matchAction) {\n continue;\n }\n\n const action = validateAction(matchAction, match, matchElement, eventTarget, scope);\n\n if (action) {\n return {\n action,\n interactable: match,\n element: matchElement\n };\n }\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction getActionInfo(interaction, pointer, event, eventTarget, scope) {\n let matches = [];\n let matchElements = [];\n let element = eventTarget;\n\n function pushMatches(interactable) {\n matches.push(interactable);\n matchElements.push(element);\n }\n\n while (is.element(element)) {\n matches = [];\n matchElements = [];\n scope.interactables.forEachMatch(element, pushMatches);\n const actionInfo = validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope);\n\n if (actionInfo.action && !actionInfo.interactable.options[actionInfo.action.name].manualStart) {\n return actionInfo;\n }\n\n element = domUtils.parentNode(element);\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction prepare(interaction, {\n action,\n interactable,\n element\n}, scope) {\n action = action || {\n name: null\n };\n interaction.interactable = interactable;\n interaction.element = element;\n copyAction(interaction.prepared, action);\n interaction.rect = interactable && action.name ? interactable.getRect(element) : null;\n setInteractionCursor(interaction, scope);\n scope.fire('autoStart:prepared', {\n interaction\n });\n}\n\nfunction withinInteractionLimit(interactable, element, action, scope) {\n const options = interactable.options;\n const maxActions = options[action.name].max;\n const maxPerElement = options[action.name].maxPerElement;\n const autoStartMax = scope.autoStart.maxInteractions;\n let activeInteractions = 0;\n let interactableCount = 0;\n let elementCount = 0; // no actions if any of these values == 0\n\n if (!(maxActions && maxPerElement && autoStartMax)) {\n return false;\n }\n\n for (const interaction of scope.interactions.list) {\n const otherAction = interaction.prepared.name;\n\n if (!interaction.interacting()) {\n continue;\n }\n\n activeInteractions++;\n\n if (activeInteractions >= autoStartMax) {\n return false;\n }\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interactableCount += otherAction === action.name ? 1 : 0;\n\n if (interactableCount >= maxActions) {\n return false;\n }\n\n if (interaction.element === element) {\n elementCount++;\n\n if (otherAction === action.name && elementCount >= maxPerElement) {\n return false;\n }\n }\n }\n\n return autoStartMax > 0;\n}\n\nfunction maxInteractions(newValue, scope) {\n if (is.number(newValue)) {\n scope.autoStart.maxInteractions = newValue;\n return this;\n }\n\n return scope.autoStart.maxInteractions;\n}\n\nfunction setCursor(element, cursor, scope) {\n const {\n cursorElement: prevCursorElement\n } = scope.autoStart;\n\n if (prevCursorElement && prevCursorElement !== element) {\n prevCursorElement.style.cursor = '';\n }\n\n element.ownerDocument.documentElement.style.cursor = cursor;\n element.style.cursor = cursor;\n scope.autoStart.cursorElement = cursor ? element : null;\n}\n\nfunction setInteractionCursor(interaction, scope) {\n const {\n interactable,\n element,\n prepared\n } = interaction;\n\n if (!(interaction.pointerType === 'mouse' && interactable && interactable.options.styleCursor)) {\n // clear previous target element cursor\n if (scope.autoStart.cursorElement) {\n setCursor(scope.autoStart.cursorElement, '', scope);\n }\n\n return;\n }\n\n let cursor = '';\n\n if (prepared.name) {\n const cursorChecker = interactable.options[prepared.name].cursorChecker;\n\n if (is.func(cursorChecker)) {\n cursor = cursorChecker(prepared, interactable, element, interaction._interacting);\n } else {\n cursor = scope.actions.map[prepared.name].getCursor(prepared);\n }\n }\n\n setCursor(interaction.element, cursor || '', scope);\n}\n\nconst autoStart = {\n id: 'auto-start/base',\n before: ['actions'],\n install,\n listeners: {\n 'interactions:down': prepareOnDown,\n 'interactions:move': (arg, scope) => {\n prepareOnMove(arg, scope);\n startOnMove(arg, scope);\n },\n 'interactions:stop': clearCursorOnStop\n },\n maxInteractions,\n withinInteractionLimit,\n validateAction\n};\nexport default autoStart;\n//# sourceMappingURL=base.js.map","import { parentNode } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport autoStart from \"./base.js\";\n\nfunction beforeStart({\n interaction,\n eventTarget,\n dx,\n dy\n}, scope) {\n if (interaction.prepared.name !== 'drag') {\n return;\n } // check if a drag is in the correct axis\n\n\n const absX = Math.abs(dx);\n const absY = Math.abs(dy);\n const targetOptions = interaction.interactable.options.drag;\n const startAxis = targetOptions.startAxis;\n const currentAxis = absX > absY ? 'x' : absX < absY ? 'y' : 'xy';\n interaction.prepared.axis = targetOptions.lockAxis === 'start' ? currentAxis[0] // always lock to one axis even if currentAxis === 'xy'\n : targetOptions.lockAxis; // if the movement isn't in the startAxis of the interactable\n\n if (currentAxis !== 'xy' && startAxis !== 'xy' && startAxis !== currentAxis) {\n // cancel the prepared action\n interaction.prepared.name = null; // then try to get a drag from another ineractable\n\n let element = eventTarget;\n\n const getDraggable = function (interactable) {\n if (interactable === interaction.interactable) {\n return;\n }\n\n const options = interaction.interactable.options.drag;\n\n if (!options.manualStart && interactable.testIgnoreAllow(options, element, eventTarget)) {\n const action = interactable.getAction(interaction.downPointer, interaction.downEvent, interaction, element);\n\n if (action && action.name === 'drag' && checkStartAxis(currentAxis, interactable) && autoStart.validateAction(action, interactable, element, eventTarget, scope)) {\n return interactable;\n }\n }\n }; // check all interactables\n\n\n while (is.element(element)) {\n const interactable = scope.interactables.forEachMatch(element, getDraggable);\n\n if (interactable) {\n interaction.prepared.name = 'drag';\n interaction.interactable = interactable;\n interaction.element = element;\n break;\n }\n\n element = parentNode(element);\n }\n }\n}\n\nfunction checkStartAxis(startAxis, interactable) {\n if (!interactable) {\n return false;\n }\n\n const thisAxis = interactable.options.drag.startAxis;\n return startAxis === 'xy' || thisAxis === 'xy' || thisAxis === startAxis;\n}\n\nexport default {\n id: 'auto-start/dragAxis',\n listeners: {\n 'autoStart:before-start': beforeStart\n }\n};\n//# sourceMappingURL=dragAxis.js.map","import Interaction from \"../core/Interaction.js\";\nimport basePlugin from \"./base.js\";\n\nfunction install(scope) {\n const {\n defaults\n } = scope;\n scope.usePlugin(basePlugin);\n defaults.perAction.hold = 0;\n defaults.perAction.delay = 0;\n}\n\nfunction getHoldDuration(interaction) {\n const actionName = interaction.prepared && interaction.prepared.name;\n\n if (!actionName) {\n return null;\n }\n\n const options = interaction.interactable.options;\n return options[actionName].hold || options[actionName].delay;\n}\n\nconst hold = {\n id: 'auto-start/hold',\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.autoStartHoldTimer = null;\n },\n 'autoStart:prepared': ({\n interaction\n }) => {\n const hold = getHoldDuration(interaction);\n\n if (hold > 0) {\n interaction.autoStartHoldTimer = setTimeout(() => {\n interaction.start(interaction.prepared, interaction.interactable, interaction.element);\n }, hold);\n }\n },\n 'interactions:move': ({\n interaction,\n duplicate\n }) => {\n if (interaction.autoStartHoldTimer && interaction.pointerWasMoved && !duplicate) {\n clearTimeout(interaction.autoStartHoldTimer);\n interaction.autoStartHoldTimer = null;\n }\n },\n // prevent regular down->move autoStart\n 'autoStart:before-start': ({\n interaction\n }) => {\n const holdDuration = getHoldDuration(interaction);\n\n if (holdDuration > 0) {\n interaction.prepared.name = null;\n }\n }\n },\n getHoldDuration\n};\nexport default hold;\n//# sourceMappingURL=hold.js.map","import autoStart from \"./base.js\";\nimport dragAxis from \"./dragAxis.js\";\nimport hold from \"./hold.js\";\nexport default {\n id: 'auto-start',\n\n install(scope) {\n scope.usePlugin(autoStart);\n scope.usePlugin(hold);\n scope.usePlugin(dragAxis);\n }\n\n};\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n Interactable,\n defaults\n } = scope;\n Interactable.prototype.draggable = drag.draggable;\n actions.map.drag = drag;\n actions.methodDict.drag = 'draggable';\n defaults.actions.drag = drag.defaults;\n}\n\nfunction beforeMove({\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x') {\n interaction.coords.cur.page.y = interaction.coords.start.page.y;\n interaction.coords.cur.client.y = interaction.coords.start.client.y;\n interaction.coords.velocity.client.y = 0;\n interaction.coords.velocity.page.y = 0;\n } else if (axis === 'y') {\n interaction.coords.cur.page.x = interaction.coords.start.page.x;\n interaction.coords.cur.client.x = interaction.coords.start.client.x;\n interaction.coords.velocity.client.x = 0;\n interaction.coords.velocity.page.x = 0;\n }\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x' || axis === 'y') {\n const opposite = axis === 'x' ? 'y' : 'x';\n iEvent.page[opposite] = interaction.coords.start.page[opposite];\n iEvent.client[opposite] = interaction.coords.start.client[opposite];\n iEvent.delta[opposite] = 0;\n }\n}\n/**\n * ```js\n * interact(element).draggable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * // the axis in which the first movement must be\n * // for the drag sequence to start\n * // 'xy' by default - any direction\n * startAxis: 'x' || 'y' || 'xy',\n *\n * // 'xy' by default - don't restrict to one axis (move in any direction)\n * // 'x' or 'y' to restrict movement to either axis\n * // 'start' to restrict movement to the axis the drag started in\n * lockAxis: 'x' || 'y' || 'xy' || 'start',\n *\n * // max number of drags that can happen concurrently\n * // with elements of this Interactable. Infinity by default\n * max: Infinity,\n *\n * // max number of drags that can target the same element+Interactable\n * // 1 by default\n * maxPerElement: 2\n * })\n *\n * var isDraggable = interact('element').draggable(); // true\n * ```\n *\n * Get or set whether drag actions can be performed on the target\n *\n * @alias Interactable.prototype.draggable\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on drag events (object makes the Interactable\n * draggable)\n * @return {boolean | Interactable} boolean indicating if this can be the\n * target of drag events, or this Interctable\n */\n\n\nconst draggable = function draggable(options) {\n if (is.object(options)) {\n this.options.drag.enabled = options.enabled !== false;\n this.setPerAction('drag', options);\n this.setOnEvents('drag', options);\n\n if (/^(xy|x|y|start)$/.test(options.lockAxis)) {\n this.options.drag.lockAxis = options.lockAxis;\n }\n\n if (/^(xy|x|y)$/.test(options.startAxis)) {\n this.options.drag.startAxis = options.startAxis;\n }\n\n return this;\n }\n\n if (is.bool(options)) {\n this.options.drag.enabled = options;\n return this;\n }\n\n return this.options.drag;\n};\n\nconst drag = {\n id: 'actions/drag',\n install,\n listeners: {\n 'interactions:before-action-move': beforeMove,\n 'interactions:action-resume': beforeMove,\n // dragmove\n 'interactions:action-move': move,\n 'auto-start:check': arg => {\n const {\n interaction,\n interactable,\n buttons\n } = arg;\n const dragOptions = interactable.options.drag;\n\n if (!(dragOptions && dragOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & interactable.options.drag.mouseButtons) === 0) {\n return undefined;\n }\n\n arg.action = {\n name: 'drag',\n axis: dragOptions.lockAxis === 'start' ? dragOptions.startAxis : dragOptions.lockAxis\n };\n return false;\n }\n },\n draggable,\n beforeMove,\n move,\n defaults: {\n startAxis: 'xy',\n lockAxis: 'xy'\n },\n\n getCursor() {\n return 'move';\n }\n\n};\nexport default drag;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport { Interaction } from \"../../core/Interaction.js\";\nimport * as dom from \"../../utils/domUtils.js\";\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n browser,\n\n /** @lends Interactable */\n Interactable,\n // tslint:disable-line no-shadowed-variable\n defaults\n } = scope; // Less Precision with touch input\n\n resize.cursors = initCursors(browser);\n resize.defaultMargin = browser.supportsTouch || browser.supportsPointerEvent ? 20 : 10;\n /**\n * ```js\n * interact(element).resizable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * edges: {\n * top : true, // Use pointer coords to check for resize.\n * left : false, // Disable resizing from left edge.\n * bottom: '.resize-s',// Resize if pointer target matches selector\n * right : handleEl // Resize if pointer target is the given Element\n * },\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height are adjusted at a 1:1 ratio.\n * square: false,\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height maintain the aspect ratio they had when resizing started.\n * preserveAspectRatio: false,\n *\n * // a value of 'none' will limit the resize rect to a minimum of 0x0\n * // 'negate' will allow the rect to have negative width/height\n * // 'reposition' will keep the width/height positive by swapping\n * // the top and bottom edges and/or swapping the left and right edges\n * invert: 'none' || 'negate' || 'reposition'\n *\n * // limit multiple resizes.\n * // See the explanation in the {@link Interactable.draggable} example\n * max: Infinity,\n * maxPerElement: 1,\n * })\n *\n * var isResizeable = interact(element).resizable()\n * ```\n *\n * Gets or sets whether resize actions can be performed on the target\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on resize events (object makes the Interactable\n * resizable)\n * @return {boolean | Interactable} A boolean indicating if this can be the\n * target of resize elements, or this Interactable\n */\n\n Interactable.prototype.resizable = function (options) {\n return resizable(this, options, scope);\n };\n\n actions.map.resize = resize;\n actions.methodDict.resize = 'resizable';\n defaults.actions.resize = resize.defaults;\n}\n\nfunction resizeChecker(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n buttons\n } = arg;\n\n if (!rect) {\n return undefined;\n }\n\n const page = extend({}, interaction.coords.cur.page);\n const resizeOptions = interactable.options.resize;\n\n if (!(resizeOptions && resizeOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & resizeOptions.mouseButtons) === 0) {\n return undefined;\n } // if using resize.edges\n\n\n if (is.object(resizeOptions.edges)) {\n const resizeEdges = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n\n for (const edge in resizeEdges) {\n resizeEdges[edge] = checkResizeEdge(edge, resizeOptions.edges[edge], page, interaction._latestPointer.eventTarget, element, rect, resizeOptions.margin || resize.defaultMargin);\n }\n\n resizeEdges.left = resizeEdges.left && !resizeEdges.right;\n resizeEdges.top = resizeEdges.top && !resizeEdges.bottom;\n\n if (resizeEdges.left || resizeEdges.right || resizeEdges.top || resizeEdges.bottom) {\n arg.action = {\n name: 'resize',\n edges: resizeEdges\n };\n }\n } else {\n const right = resizeOptions.axis !== 'y' && page.x > rect.right - resize.defaultMargin;\n const bottom = resizeOptions.axis !== 'x' && page.y > rect.bottom - resize.defaultMargin;\n\n if (right || bottom) {\n arg.action = {\n name: 'resize',\n axes: (right ? 'x' : '') + (bottom ? 'y' : '')\n };\n }\n }\n\n return arg.action ? false : undefined;\n}\n\nfunction resizable(interactable, options, scope) {\n if (is.object(options)) {\n interactable.options.resize.enabled = options.enabled !== false;\n interactable.setPerAction('resize', options);\n interactable.setOnEvents('resize', options);\n\n if (is.string(options.axis) && /^x$|^y$|^xy$/.test(options.axis)) {\n interactable.options.resize.axis = options.axis;\n } else if (options.axis === null) {\n interactable.options.resize.axis = scope.defaults.actions.resize.axis;\n }\n\n if (is.bool(options.preserveAspectRatio)) {\n interactable.options.resize.preserveAspectRatio = options.preserveAspectRatio;\n } else if (is.bool(options.square)) {\n interactable.options.resize.square = options.square;\n }\n\n return interactable;\n }\n\n if (is.bool(options)) {\n interactable.options.resize.enabled = options;\n return interactable;\n }\n\n return interactable.options.resize;\n}\n\nfunction checkResizeEdge(name, value, page, element, interactableElement, rect, margin) {\n // false, '', undefined, null\n if (!value) {\n return false;\n } // true value, use pointer coords and element rect\n\n\n if (value === true) {\n // if dimensions are negative, \"switch\" edges\n const width = is.number(rect.width) ? rect.width : rect.right - rect.left;\n const height = is.number(rect.height) ? rect.height : rect.bottom - rect.top; // don't use margin greater than half the relevent dimension\n\n margin = Math.min(margin, Math.abs((name === 'left' || name === 'right' ? width : height) / 2));\n\n if (width < 0) {\n if (name === 'left') {\n name = 'right';\n } else if (name === 'right') {\n name = 'left';\n }\n }\n\n if (height < 0) {\n if (name === 'top') {\n name = 'bottom';\n } else if (name === 'bottom') {\n name = 'top';\n }\n }\n\n if (name === 'left') {\n return page.x < (width >= 0 ? rect.left : rect.right) + margin;\n }\n\n if (name === 'top') {\n return page.y < (height >= 0 ? rect.top : rect.bottom) + margin;\n }\n\n if (name === 'right') {\n return page.x > (width >= 0 ? rect.right : rect.left) - margin;\n }\n\n if (name === 'bottom') {\n return page.y > (height >= 0 ? rect.bottom : rect.top) - margin;\n }\n } // the remaining checks require an element\n\n\n if (!is.element(element)) {\n return false;\n }\n\n return is.element(value) // the value is an element to use as a resize handle\n ? value === element // otherwise check if element matches value as selector\n : dom.matchesUpTo(element, value, interactableElement);\n}\n/* eslint-disable multiline-ternary */\n\n\nfunction initCursors(browser) {\n return browser.isIe9 ? {\n x: 'e-resize',\n y: 's-resize',\n xy: 'se-resize',\n top: 'n-resize',\n left: 'w-resize',\n bottom: 's-resize',\n right: 'e-resize',\n topleft: 'se-resize',\n bottomright: 'se-resize',\n topright: 'ne-resize',\n bottomleft: 'ne-resize'\n } : {\n x: 'ew-resize',\n y: 'ns-resize',\n xy: 'nwse-resize',\n top: 'ns-resize',\n left: 'ew-resize',\n bottom: 'ns-resize',\n right: 'ew-resize',\n topleft: 'nwse-resize',\n bottomright: 'nwse-resize',\n topright: 'nesw-resize',\n bottomleft: 'nesw-resize'\n };\n}\n/* eslint-enable multiline-ternary */\n\n\nfunction start({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const rect = interaction.rect;\n interaction._rects = {\n start: extend({}, rect),\n corrected: extend({}, rect),\n previous: extend({}, rect),\n delta: {\n left: 0,\n right: 0,\n width: 0,\n top: 0,\n bottom: 0,\n height: 0\n }\n };\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const resizeOptions = interaction.interactable.options.resize;\n const invert = resizeOptions.invert;\n const invertible = invert === 'reposition' || invert === 'negate';\n const current = interaction.rect;\n const {\n start: startRect,\n corrected,\n delta: deltaRect,\n previous\n } = interaction._rects;\n extend(previous, corrected);\n\n if (invertible) {\n // if invertible, copy the current rect\n extend(corrected, current);\n\n if (invert === 'reposition') {\n // swap edge values if necessary to keep width/height positive\n if (corrected.top > corrected.bottom) {\n const swap = corrected.top;\n corrected.top = corrected.bottom;\n corrected.bottom = swap;\n }\n\n if (corrected.left > corrected.right) {\n const swap = corrected.left;\n corrected.left = corrected.right;\n corrected.right = swap;\n }\n }\n } else {\n // if not invertible, restrict to minimum of 0x0 rect\n corrected.top = Math.min(current.top, startRect.bottom);\n corrected.bottom = Math.max(current.bottom, startRect.top);\n corrected.left = Math.min(current.left, startRect.right);\n corrected.right = Math.max(current.right, startRect.left);\n }\n\n corrected.width = corrected.right - corrected.left;\n corrected.height = corrected.bottom - corrected.top;\n\n for (const edge in corrected) {\n deltaRect[edge] = corrected[edge] - previous[edge];\n }\n\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = corrected;\n resizeEvent.deltaRect = deltaRect;\n}\n\nfunction end({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction updateEventAxes({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.resizeAxes) {\n return;\n }\n\n const options = interaction.interactable.options;\n const resizeEvent = iEvent;\n\n if (options.resize.square) {\n if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = resizeEvent.delta.y;\n } else {\n resizeEvent.delta.y = resizeEvent.delta.x;\n }\n\n resizeEvent.axes = 'xy';\n } else {\n resizeEvent.axes = interaction.resizeAxes;\n\n if (interaction.resizeAxes === 'x') {\n resizeEvent.delta.y = 0;\n } else if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = 0;\n }\n }\n}\n\nconst resize = {\n id: 'actions/resize',\n before: ['actions/drag'],\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.resizeAxes = 'xy';\n },\n 'interactions:action-start': arg => {\n start(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-move': arg => {\n move(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-end': end,\n 'auto-start:check': resizeChecker\n },\n defaults: {\n square: false,\n preserveAspectRatio: false,\n axis: 'xy',\n // use default margin\n margin: NaN,\n // object with props left, right, top, bottom which are\n // true/false values to resize when the pointer is over that edge,\n // CSS selectors to match the handles for each direction\n // or the Elements for each handle\n edges: null,\n // a value of 'none' will limit the resize rect to a minimum of 0x0\n // 'negate' will alow the rect to have negative width/height\n // 'reposition' will keep the width/height positive by swapping\n // the top and bottom edges and/or swapping the left and right edges\n invert: 'none'\n },\n cursors: null,\n\n getCursor({\n edges,\n axis,\n name\n }) {\n const cursors = resize.cursors;\n let result = null;\n\n if (axis) {\n result = cursors[name + axis];\n } else if (edges) {\n let cursorKey = '';\n\n for (const edge of ['top', 'bottom', 'left', 'right']) {\n if (edges[edge]) {\n cursorKey += edge;\n }\n }\n\n result = cursors[cursorKey];\n }\n\n return result;\n },\n\n defaultMargin: null\n};\nexport default resize;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export default (() => {});\n//# sourceMappingURL=edgeTarget.js.map","export default (() => {});\n//# sourceMappingURL=elements.js.map","export default (grid => {\n const coordFields = [['x', 'y'], ['left', 'top'], ['right', 'bottom'], ['width', 'height']].filter(([xField, yField]) => xField in grid || yField in grid);\n\n const gridFunc = (x, y) => {\n const {\n range,\n limits = {\n left: -Infinity,\n right: Infinity,\n top: -Infinity,\n bottom: Infinity\n },\n offset = {\n x: 0,\n y: 0\n }\n } = grid;\n const result = {\n range,\n grid,\n x: null,\n y: null\n };\n\n for (const [xField, yField] of coordFields) {\n const gridx = Math.round((x - offset.x) / grid[xField]);\n const gridy = Math.round((y - offset.y) / grid[yField]);\n result[xField] = Math.max(limits.left, Math.min(limits.right, gridx * grid[xField] + offset.x));\n result[yField] = Math.max(limits.top, Math.min(limits.bottom, gridy * grid[yField] + offset.y));\n }\n\n return result;\n };\n\n gridFunc.grid = grid;\n gridFunc.coordFields = coordFields;\n return gridFunc;\n});\n//# sourceMappingURL=grid.js.map","export { default as edgeTarget } from \"./edgeTarget.js\";\nexport { default as elements } from \"./elements.js\";\nexport { default as grid } from \"./grid.js\";\n//# sourceMappingURL=all.js.map","import extend from \"../utils/extend.js\";\nimport * as allSnappers from \"./all.js\";\nconst snappersPlugin = {\n id: 'snappers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n interact.snappers = extend(interact.snappers || {}, allSnappers);\n interact.createSnapGrid = interact.snappers.grid;\n }\n\n};\nexport default snappersPlugin;\n//# sourceMappingURL=plugin.js.map","import clone from \"../utils/clone.js\";\nimport extend from \"../utils/extend.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nexport default class Modification {\n constructor(interaction) {\n this.states = [];\n this.startOffset = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n };\n this.startDelta = null;\n this.result = null;\n this.endResult = null;\n this.edges = void 0;\n this.interaction = void 0;\n this.interaction = interaction;\n this.result = createResult();\n }\n\n start({\n phase\n }, pageCoords) {\n const {\n interaction\n } = this;\n const modifierList = getModifierList(interaction);\n this.prepareStates(modifierList);\n this.edges = extend({}, interaction.edges);\n this.startOffset = getRectOffset(interaction.rect, pageCoords);\n this.startDelta = {\n x: 0,\n y: 0\n };\n const arg = {\n phase,\n pageCoords,\n preEnd: false\n };\n this.result = createResult();\n this.startAll(arg);\n const result = this.result = this.setAll(arg);\n return result;\n }\n\n fillArg(arg) {\n const {\n interaction\n } = this;\n arg.interaction = interaction;\n arg.interactable = interaction.interactable;\n arg.element = interaction.element;\n arg.rect = arg.rect || interaction.rect;\n arg.edges = this.edges;\n arg.startOffset = this.startOffset;\n }\n\n startAll(arg) {\n this.fillArg(arg);\n\n for (const state of this.states) {\n if (state.methods.start) {\n arg.state = state;\n state.methods.start(arg);\n }\n }\n }\n\n setAll(arg) {\n this.fillArg(arg);\n const {\n phase,\n preEnd,\n skipModifiers,\n rect: unmodifiedRect\n } = arg;\n arg.coords = extend({}, arg.pageCoords);\n arg.rect = extend({}, unmodifiedRect);\n const states = skipModifiers ? this.states.slice(skipModifiers) : this.states;\n const newResult = createResult(arg.coords, arg.rect);\n\n for (const state of states) {\n const {\n options\n } = state;\n const lastModifierCoords = extend({}, arg.coords);\n let returnValue = null;\n\n if (state.methods.set && this.shouldDo(options, preEnd, phase)) {\n arg.state = state;\n returnValue = state.methods.set(arg);\n rectUtils.addEdges(this.interaction.edges, arg.rect, {\n x: arg.coords.x - lastModifierCoords.x,\n y: arg.coords.y - lastModifierCoords.y\n });\n }\n\n newResult.eventProps.push(returnValue);\n }\n\n newResult.delta.x = arg.coords.x - arg.pageCoords.x;\n newResult.delta.y = arg.coords.y - arg.pageCoords.y;\n newResult.rectDelta.left = arg.rect.left - unmodifiedRect.left;\n newResult.rectDelta.right = arg.rect.right - unmodifiedRect.right;\n newResult.rectDelta.top = arg.rect.top - unmodifiedRect.top;\n newResult.rectDelta.bottom = arg.rect.bottom - unmodifiedRect.bottom;\n const prevCoords = this.result.coords;\n const prevRect = this.result.rect;\n\n if (prevCoords && prevRect) {\n const rectChanged = newResult.rect.left !== prevRect.left || newResult.rect.right !== prevRect.right || newResult.rect.top !== prevRect.top || newResult.rect.bottom !== prevRect.bottom;\n newResult.changed = rectChanged || prevCoords.x !== newResult.coords.x || prevCoords.y !== newResult.coords.y;\n }\n\n return newResult;\n }\n\n applyToInteraction(arg) {\n const {\n interaction\n } = this;\n const {\n phase\n } = arg;\n const curCoords = interaction.coords.cur;\n const startCoords = interaction.coords.start;\n const {\n result,\n startDelta\n } = this;\n const curDelta = result.delta;\n\n if (phase === 'start') {\n extend(this.startDelta, result.delta);\n }\n\n for (const [coordsSet, delta] of [[startCoords, startDelta], [curCoords, curDelta]]) {\n coordsSet.page.x += delta.x;\n coordsSet.page.y += delta.y;\n coordsSet.client.x += delta.x;\n coordsSet.client.y += delta.y;\n }\n\n const {\n rectDelta\n } = this.result;\n const rect = arg.rect || interaction.rect;\n rect.left += rectDelta.left;\n rect.right += rectDelta.right;\n rect.top += rectDelta.top;\n rect.bottom += rectDelta.bottom;\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n setAndApply(arg) {\n const {\n interaction\n } = this;\n const {\n phase,\n preEnd,\n skipModifiers\n } = arg;\n const result = this.setAll({\n preEnd,\n phase,\n pageCoords: arg.modifiedCoords || interaction.coords.cur.page\n });\n this.result = result; // don't fire an action move if a modifier would keep the event in the same\n // cordinates as before\n\n if (!result.changed && (!skipModifiers || skipModifiers < this.states.length) && interaction.interacting()) {\n return false;\n }\n\n if (arg.modifiedCoords) {\n const {\n page\n } = interaction.coords.cur;\n const adjustment = {\n x: arg.modifiedCoords.x - page.x,\n y: arg.modifiedCoords.y - page.y\n };\n result.coords.x += adjustment.x;\n result.coords.y += adjustment.y;\n result.delta.x += adjustment.x;\n result.delta.y += adjustment.y;\n }\n\n this.applyToInteraction(arg);\n }\n\n beforeEnd(arg) {\n const {\n interaction,\n event\n } = arg;\n const states = this.states;\n\n if (!states || !states.length) {\n return;\n }\n\n let doPreend = false;\n\n for (const state of states) {\n arg.state = state;\n const {\n options,\n methods\n } = state;\n const endPosition = methods.beforeEnd && methods.beforeEnd(arg);\n\n if (endPosition) {\n this.endResult = endPosition;\n return false;\n }\n\n doPreend = doPreend || !doPreend && this.shouldDo(options, true, arg.phase, true);\n }\n\n if (doPreend) {\n // trigger a final modified move before ending\n interaction.move({\n event,\n preEnd: true\n });\n }\n }\n\n stop(arg) {\n const {\n interaction\n } = arg;\n\n if (!this.states || !this.states.length) {\n return;\n }\n\n const modifierArg = extend({\n states: this.states,\n interactable: interaction.interactable,\n element: interaction.element,\n rect: null\n }, arg);\n this.fillArg(modifierArg);\n\n for (const state of this.states) {\n modifierArg.state = state;\n\n if (state.methods.stop) {\n state.methods.stop(modifierArg);\n }\n }\n\n this.states = null;\n this.endResult = null;\n }\n\n prepareStates(modifierList) {\n this.states = [];\n\n for (let index = 0; index < modifierList.length; index++) {\n const {\n options,\n methods,\n name\n } = modifierList[index];\n this.states.push({\n options,\n methods,\n index,\n name\n });\n }\n\n return this.states;\n }\n\n restoreInteractionCoords({\n interaction: {\n coords,\n rect,\n modification\n }\n }) {\n if (!modification.result) {\n return;\n }\n\n const {\n startDelta\n } = modification;\n const {\n delta: curDelta,\n rectDelta\n } = modification.result;\n const coordsAndDeltas = [[coords.start, startDelta], [coords.cur, curDelta]];\n\n for (const [coordsSet, delta] of coordsAndDeltas) {\n coordsSet.page.x -= delta.x;\n coordsSet.page.y -= delta.y;\n coordsSet.client.x -= delta.x;\n coordsSet.client.y -= delta.y;\n }\n\n rect.left -= rectDelta.left;\n rect.right -= rectDelta.right;\n rect.top -= rectDelta.top;\n rect.bottom -= rectDelta.bottom;\n }\n\n shouldDo(options, preEnd, phase, requireEndOnly) {\n if ( // ignore disabled modifiers\n !options || options.enabled === false || // check if we require endOnly option to fire move before end\n requireEndOnly && !options.endOnly || // don't apply endOnly modifiers when not ending\n options.endOnly && !preEnd || // check if modifier should run be applied on start\n phase === 'start' && !options.setStart) {\n return false;\n }\n\n return true;\n }\n\n copyFrom(other) {\n this.startOffset = other.startOffset;\n this.startDelta = other.startDelta;\n this.edges = other.edges;\n this.states = other.states.map(s => clone(s));\n this.result = createResult(extend({}, other.result.coords), extend({}, other.result.rect));\n }\n\n destroy() {\n for (const prop in this) {\n this[prop] = null;\n }\n }\n\n}\n\nfunction createResult(coords, rect) {\n return {\n rect,\n coords,\n delta: {\n x: 0,\n y: 0\n },\n rectDelta: {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n },\n eventProps: [],\n changed: true\n };\n}\n\nfunction getModifierList(interaction) {\n const actionOptions = interaction.interactable.options[interaction.prepared.name];\n const actionModifiers = actionOptions.modifiers;\n\n if (actionModifiers && actionModifiers.length) {\n return actionModifiers;\n }\n\n return ['snap', 'snapSize', 'snapEdges', 'restrict', 'restrictEdges', 'restrictSize'].map(type => {\n const options = actionOptions[type];\n return options && options.enabled && {\n options,\n methods: options._methods\n };\n }).filter(m => !!m);\n}\n\nexport function getRectOffset(rect, coords) {\n return rect ? {\n left: coords.x - rect.left,\n top: coords.y - rect.top,\n right: rect.right - coords.x,\n bottom: rect.bottom - coords.y\n } : {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n };\n}\n//# sourceMappingURL=Modification.js.map","import { InteractEvent } from \"../core/InteractEvent.js\";\nimport Interaction from \"../core/Interaction.js\";\nimport Modification from \"./Modification.js\";\nexport function makeModifier(module, name) {\n const {\n defaults\n } = module;\n const methods = {\n start: module.start,\n set: module.set,\n beforeEnd: module.beforeEnd,\n stop: module.stop\n };\n\n const modifier = _options => {\n const options = _options || {};\n options.enabled = options.enabled !== false; // add missing defaults to options\n\n for (const prop in defaults) {\n if (!(prop in options)) {\n options[prop] = defaults[prop];\n }\n }\n\n const m = {\n options,\n methods,\n name,\n enable: () => {\n options.enabled = true;\n return m;\n },\n disable: () => {\n options.enabled = false;\n return m;\n }\n };\n return m;\n };\n\n if (name && typeof name === 'string') {\n // for backwrads compatibility\n modifier._defaults = defaults;\n modifier._methods = methods;\n }\n\n return modifier;\n}\nexport function addEventModifiers({\n iEvent,\n interaction: {\n modification: {\n result\n }\n }\n}) {\n if (result) {\n iEvent.modifiers = result.eventProps;\n }\n}\nconst modifiersBase = {\n id: 'modifiers/base',\n before: ['actions'],\n install: scope => {\n scope.defaults.perAction.modifiers = [];\n },\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.modification = new Modification(interaction);\n },\n 'interactions:before-action-start': arg => {\n const {\n modification\n } = arg.interaction;\n modification.start(arg, arg.interaction.coords.start.page);\n arg.interaction.edges = modification.edges;\n modification.applyToInteraction(arg);\n },\n 'interactions:before-action-move': arg => arg.interaction.modification.setAndApply(arg),\n 'interactions:before-action-end': arg => arg.interaction.modification.beforeEnd(arg),\n 'interactions:action-start': addEventModifiers,\n 'interactions:action-move': addEventModifiers,\n 'interactions:action-end': addEventModifiers,\n 'interactions:after-action-start': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:after-action-move': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:stop': arg => arg.interaction.modification.stop(arg)\n }\n};\nexport default modifiersBase;\n//# sourceMappingURL=base.js.map","/**\n * @module modifiers/aspectRatio\n *\n * @description\n * This module forces elements to be resized with a specified dx/dy ratio.\n *\n * ```js\n * interact(target).resizable({\n * modifiers: [\n * interact.modifiers.snapSize({\n * targets: [ interact.snappers.grid({ x: 20, y: 20 }) ],\n * }),\n * interact.aspectRatio({ ratio: 'preserve' }),\n * ],\n * });\n * ```\n */\nimport extend from \"../utils/extend.js\";\nimport { addEdges } from \"../utils/rect.js\";\nimport Modification from \"./Modification.js\";\nimport { makeModifier } from \"./base.js\";\nconst aspectRatio = {\n start(arg) {\n const {\n state,\n rect,\n edges: originalEdges,\n pageCoords: coords\n } = arg;\n let {\n ratio\n } = state.options;\n const {\n equalDelta,\n modifiers\n } = state.options;\n\n if (ratio === 'preserve') {\n ratio = rect.width / rect.height;\n }\n\n state.startCoords = extend({}, coords);\n state.startRect = extend({}, rect);\n state.ratio = ratio;\n state.equalDelta = equalDelta;\n const linkedEdges = state.linkedEdges = {\n top: originalEdges.top || originalEdges.left && !originalEdges.bottom,\n left: originalEdges.left || originalEdges.top && !originalEdges.right,\n bottom: originalEdges.bottom || originalEdges.right && !originalEdges.top,\n right: originalEdges.right || originalEdges.bottom && !originalEdges.left\n };\n state.xIsPrimaryAxis = !!(originalEdges.left || originalEdges.right);\n\n if (state.equalDelta) {\n state.edgeSign = (linkedEdges.left ? 1 : -1) * (linkedEdges.top ? 1 : -1);\n } else {\n const negativeSecondaryEdge = state.xIsPrimaryAxis ? linkedEdges.top : linkedEdges.left;\n state.edgeSign = negativeSecondaryEdge ? -1 : 1;\n }\n\n extend(arg.edges, linkedEdges);\n\n if (!modifiers || !modifiers.length) {\n return;\n }\n\n const subModification = new Modification(arg.interaction);\n subModification.copyFrom(arg.interaction.modification);\n subModification.prepareStates(modifiers);\n state.subModification = subModification;\n subModification.startAll({ ...arg\n });\n },\n\n set(arg) {\n const {\n state,\n rect,\n coords\n } = arg;\n const initialCoords = extend({}, coords);\n const aspectMethod = state.equalDelta ? setEqualDelta : setRatio;\n aspectMethod(state, state.xIsPrimaryAxis, coords, rect);\n\n if (!state.subModification) {\n return null;\n }\n\n const correctedRect = extend({}, rect);\n addEdges(state.linkedEdges, correctedRect, {\n x: coords.x - initialCoords.x,\n y: coords.y - initialCoords.y\n });\n const result = state.subModification.setAll({ ...arg,\n rect: correctedRect,\n edges: state.linkedEdges,\n pageCoords: coords,\n prevCoords: coords,\n prevRect: correctedRect\n });\n const {\n delta\n } = result;\n\n if (result.changed) {\n const xIsCriticalAxis = Math.abs(delta.x) > Math.abs(delta.y); // do aspect modification again with critical edge axis as primary\n\n aspectMethod(state, xIsCriticalAxis, result.coords, result.rect);\n extend(coords, result.coords);\n }\n\n return result.eventProps;\n },\n\n defaults: {\n ratio: 'preserve',\n equalDelta: false,\n modifiers: [],\n enabled: false\n }\n};\n\nfunction setEqualDelta({\n startCoords,\n edgeSign\n}, xIsPrimaryAxis, coords) {\n if (xIsPrimaryAxis) {\n coords.y = startCoords.y + (coords.x - startCoords.x) * edgeSign;\n } else {\n coords.x = startCoords.x + (coords.y - startCoords.y) * edgeSign;\n }\n}\n\nfunction setRatio({\n startRect,\n startCoords,\n ratio,\n edgeSign\n}, xIsPrimaryAxis, coords, rect) {\n if (xIsPrimaryAxis) {\n const newHeight = rect.width / ratio;\n coords.y = startCoords.y + (newHeight - startRect.height) * edgeSign;\n } else {\n const newWidth = rect.height * ratio;\n coords.x = startCoords.x + (newWidth - startRect.width) * edgeSign;\n }\n}\n\nexport default makeModifier(aspectRatio, 'aspectRatio');\nexport { aspectRatio };\n//# sourceMappingURL=aspectRatio.js.map","const noop = () => {};\n\nnoop._defaults = {};\nexport default noop;\n//# sourceMappingURL=noop.js.map","import extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start({\n rect,\n startOffset,\n state,\n interaction,\n pageCoords\n}) {\n const {\n options\n } = state;\n const {\n elementRect\n } = options;\n const offset = extend({\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n }, options.offset || {});\n\n if (rect && elementRect) {\n const restriction = getRestrictionRect(options.restriction, interaction, pageCoords);\n\n if (restriction) {\n const widthDiff = restriction.right - restriction.left - rect.width;\n const heightDiff = restriction.bottom - restriction.top - rect.height;\n\n if (widthDiff < 0) {\n offset.left += widthDiff;\n offset.right += widthDiff;\n }\n\n if (heightDiff < 0) {\n offset.top += heightDiff;\n offset.bottom += heightDiff;\n }\n }\n\n offset.left += startOffset.left - rect.width * elementRect.left;\n offset.top += startOffset.top - rect.height * elementRect.top;\n offset.right += startOffset.right - rect.width * (1 - elementRect.right);\n offset.bottom += startOffset.bottom - rect.height * (1 - elementRect.bottom);\n }\n\n state.offset = offset;\n}\n\nfunction set({\n coords,\n interaction,\n state\n}) {\n const {\n options,\n offset\n } = state;\n const restriction = getRestrictionRect(options.restriction, interaction, coords);\n\n if (!restriction) {\n return;\n }\n\n const rect = rectUtils.xywhToTlbr(restriction);\n coords.x = Math.max(Math.min(rect.right - offset.right, coords.x), rect.left + offset.left);\n coords.y = Math.max(Math.min(rect.bottom - offset.bottom, coords.y), rect.top + offset.top);\n}\n\nexport function getRestrictionRect(value, interaction, coords) {\n if (is.func(value)) {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element, [coords.x, coords.y, interaction]);\n } else {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element);\n }\n}\nconst defaults = {\n restriction: null,\n elementRect: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrict = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrict, 'restrict');\nexport { restrict };\n//# sourceMappingURL=pointer.js.map","// This module adds the options.resize.restrictEdges setting which sets min and\n// max for the top, left, bottom and right edges of the target being resized.\n//\n// interact(target).resize({\n// edges: { top: true, left: true },\n// restrictEdges: {\n// inner: { top: 200, left: 200, right: 400, bottom: 400 },\n// outer: { top: 0, left: 0, right: 600, bottom: 600 },\n// },\n// })\nimport extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noInner = {\n top: +Infinity,\n left: +Infinity,\n bottom: -Infinity,\n right: -Infinity\n};\nconst noOuter = {\n top: -Infinity,\n left: -Infinity,\n bottom: +Infinity,\n right: +Infinity\n};\n\nfunction start({\n interaction,\n startOffset,\n state\n}) {\n const {\n options\n } = state;\n let offset;\n\n if (options) {\n const offsetRect = getRestrictionRect(options.offset, interaction, interaction.coords.start.page);\n offset = rectUtils.rectToXY(offsetRect);\n }\n\n offset = offset || {\n x: 0,\n y: 0\n };\n state.offset = {\n top: offset.y + startOffset.top,\n left: offset.x + startOffset.left,\n bottom: offset.y - startOffset.bottom,\n right: offset.x - startOffset.right\n };\n}\n\nfunction set({\n coords,\n edges,\n interaction,\n state\n}) {\n const {\n offset,\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const page = extend({}, coords);\n const inner = getRestrictionRect(options.inner, interaction, page) || {};\n const outer = getRestrictionRect(options.outer, interaction, page) || {};\n fixRect(inner, noInner);\n fixRect(outer, noOuter);\n\n if (edges.top) {\n coords.y = Math.min(Math.max(outer.top + offset.top, page.y), inner.top + offset.top);\n } else if (edges.bottom) {\n coords.y = Math.max(Math.min(outer.bottom + offset.bottom, page.y), inner.bottom + offset.bottom);\n }\n\n if (edges.left) {\n coords.x = Math.min(Math.max(outer.left + offset.left, page.x), inner.left + offset.left);\n } else if (edges.right) {\n coords.x = Math.max(Math.min(outer.right + offset.right, page.x), inner.right + offset.right);\n }\n}\n\nfunction fixRect(rect, defaults) {\n for (const edge of ['top', 'left', 'bottom', 'right']) {\n if (!(edge in rect)) {\n rect[edge] = defaults[edge];\n }\n }\n\n return rect;\n}\n\nconst defaults = {\n inner: null,\n outer: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrictEdges = {\n noInner,\n noOuter,\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictEdges, 'restrictEdges');\nexport { restrictEdges };\n//# sourceMappingURL=edges.js.map","import extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrict } from \"./pointer.js\";\nconst defaults = extend({\n get elementRect() {\n return {\n top: 0,\n left: 0,\n bottom: 1,\n right: 1\n };\n },\n\n set elementRect(_) {}\n\n}, restrict.defaults);\nconst restrictRect = {\n start: restrict.start,\n set: restrict.set,\n defaults\n};\nexport default makeModifier(restrictRect, 'restrictRect');\nexport { restrictRect };\n//# sourceMappingURL=rect.js.map","import extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrictEdges } from \"./edges.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noMin = {\n width: -Infinity,\n height: -Infinity\n};\nconst noMax = {\n width: +Infinity,\n height: +Infinity\n};\n\nfunction start(arg) {\n return restrictEdges.start(arg);\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n rect,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const minSize = rectUtils.tlbrToXywh(getRestrictionRect(options.min, interaction, arg.coords)) || noMin;\n const maxSize = rectUtils.tlbrToXywh(getRestrictionRect(options.max, interaction, arg.coords)) || noMax;\n state.options = {\n endOnly: options.endOnly,\n inner: extend({}, restrictEdges.noInner),\n outer: extend({}, restrictEdges.noOuter)\n };\n\n if (edges.top) {\n state.options.inner.top = rect.bottom - minSize.height;\n state.options.outer.top = rect.bottom - maxSize.height;\n } else if (edges.bottom) {\n state.options.inner.bottom = rect.top + minSize.height;\n state.options.outer.bottom = rect.top + maxSize.height;\n }\n\n if (edges.left) {\n state.options.inner.left = rect.right - minSize.width;\n state.options.outer.left = rect.right - maxSize.width;\n } else if (edges.right) {\n state.options.inner.right = rect.left + minSize.width;\n state.options.outer.right = rect.left + maxSize.width;\n }\n\n restrictEdges.set(arg);\n state.options = options;\n}\n\nconst defaults = {\n min: null,\n max: null,\n endOnly: false,\n enabled: false\n};\nconst restrictSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictSize, 'restrictSize');\nexport { restrictSize };\n//# sourceMappingURL=size.js.map","import extend from \"../../utils/extend.js\";\nimport getOriginXY from \"../../utils/getOriginXY.js\";\nimport hypot from \"../../utils/hypot.js\";\nimport is from \"../../utils/is.js\";\nimport { resolveRectLike, rectToXY } from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n state,\n startOffset\n } = arg;\n const {\n options\n } = state;\n const origin = options.offsetWithOrigin ? getOrigin(arg) : {\n x: 0,\n y: 0\n };\n let snapOffset;\n\n if (options.offset === 'startCoords') {\n snapOffset = {\n x: interaction.coords.start.page.x,\n y: interaction.coords.start.page.y\n };\n } else {\n const offsetRect = resolveRectLike(options.offset, interactable, element, [interaction]);\n snapOffset = rectToXY(offsetRect) || {\n x: 0,\n y: 0\n };\n snapOffset.x += origin.x;\n snapOffset.y += origin.y;\n }\n\n const {\n relativePoints\n } = options;\n state.offsets = rect && relativePoints && relativePoints.length ? relativePoints.map((relativePoint, index) => ({\n index,\n relativePoint,\n x: startOffset.left - rect.width * relativePoint.x + snapOffset.x,\n y: startOffset.top - rect.height * relativePoint.y + snapOffset.y\n })) : [extend({\n index: 0,\n relativePoint: null\n }, snapOffset)];\n}\n\nfunction set(arg) {\n const {\n interaction,\n coords,\n state\n } = arg;\n const {\n options,\n offsets\n } = state;\n const origin = getOriginXY(interaction.interactable, interaction.element, interaction.prepared.name);\n const page = extend({}, coords);\n const targets = [];\n\n if (!options.offsetWithOrigin) {\n page.x -= origin.x;\n page.y -= origin.y;\n }\n\n for (const offset of offsets) {\n const relativeX = page.x - offset.x;\n const relativeY = page.y - offset.y;\n\n for (let index = 0, len = options.targets.length; index < len; index++) {\n const snapTarget = options.targets[index];\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relativeX, relativeY, interaction._proxy, offset, index);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n targets.push({\n x: (is.number(target.x) ? target.x : relativeX) + offset.x,\n y: (is.number(target.y) ? target.y : relativeY) + offset.y,\n range: is.number(target.range) ? target.range : options.range,\n source: snapTarget,\n index,\n offset\n });\n }\n }\n\n const closest = {\n target: null,\n inRange: false,\n distance: 0,\n range: 0,\n delta: {\n x: 0,\n y: 0\n }\n };\n\n for (const target of targets) {\n const range = target.range;\n const dx = target.x - page.x;\n const dy = target.y - page.y;\n const distance = hypot(dx, dy);\n let inRange = distance <= range; // Infinite targets count as being out of range\n // compared to non infinite ones that are in range\n\n if (range === Infinity && closest.inRange && closest.range !== Infinity) {\n inRange = false;\n }\n\n if (!closest.target || (inRange // is the closest target in range?\n ? closest.inRange && range !== Infinity // the pointer is relatively deeper in this target\n ? distance / range < closest.distance / closest.range // this target has Infinite range and the closest doesn't\n : range === Infinity && closest.range !== Infinity || // OR this target is closer that the previous closest\n distance < closest.distance : // The other is not in range and the pointer is closer to this target\n !closest.inRange && distance < closest.distance)) {\n closest.target = target;\n closest.distance = distance;\n closest.range = range;\n closest.inRange = inRange;\n closest.delta.x = dx;\n closest.delta.y = dy;\n }\n }\n\n if (closest.inRange) {\n coords.x = closest.target.x;\n coords.y = closest.target.y;\n }\n\n state.closest = closest;\n return closest;\n}\n\nfunction getOrigin(arg) {\n const {\n element\n } = arg.interaction;\n const optionsOrigin = rectToXY(resolveRectLike(arg.state.options.origin, null, null, [element]));\n const origin = optionsOrigin || getOriginXY(arg.interactable, element, arg.interaction.prepared.name);\n return origin;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n offsetWithOrigin: true,\n origin: null,\n relativePoints: null,\n endOnly: false,\n enabled: false\n};\nconst snap = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snap, 'snap');\nexport { snap };\n//# sourceMappingURL=pointer.js.map","// This module allows snapping of the size of targets during resize\n// interactions.\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snap } from \"./pointer.js\";\n\nfunction start(arg) {\n const {\n state,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return null;\n }\n\n arg.state = {\n options: {\n targets: null,\n relativePoints: [{\n x: edges.left ? 0 : 1,\n y: edges.top ? 0 : 1\n }],\n offset: options.offset || 'self',\n origin: {\n x: 0,\n y: 0\n },\n range: options.range\n }\n };\n state.targetFields = state.targetFields || [['width', 'height'], ['x', 'y']];\n snap.start(arg);\n state.offsets = arg.state.offsets;\n arg.state = state;\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n coords\n } = arg;\n const {\n options,\n offsets\n } = state;\n const relative = {\n x: coords.x - offsets[0].x,\n y: coords.y - offsets[0].y\n };\n state.options = extend({}, options);\n state.options.targets = [];\n\n for (const snapTarget of options.targets || []) {\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relative.x, relative.y, interaction);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n for (const [xField, yField] of state.targetFields) {\n if (xField in target || yField in target) {\n target.x = target[xField];\n target.y = target[yField];\n break;\n }\n }\n\n state.options.targets.push(target);\n }\n\n const returnValue = snap.set(arg);\n state.options = options;\n return returnValue;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst snapSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snapSize, 'snapSize');\nexport { snapSize };\n//# sourceMappingURL=size.js.map","/**\n * @module modifiers/snapEdges\n *\n * @description\n * WOW> This module allows snapping of the edges of targets during resize\n * interactions.\n *\n * ```js\n * interact(target).resizable({\n * snapEdges: {\n * targets: [interact.snappers.grid({ x: 100, y: 50 })],\n * },\n * })\n *\n * interact(target).resizable({\n * snapEdges: {\n * targets: [\n * interact.snappers.grid({\n * top: 50,\n * left: 50,\n * bottom: 100,\n * right: 100,\n * }),\n * ],\n * },\n * })\n * ```\n */\nimport clone from \"../../utils/clone.js\";\nimport extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snapSize } from \"./size.js\";\n\nfunction start(arg) {\n const {\n edges\n } = arg;\n\n if (!edges) {\n return null;\n }\n\n arg.state.targetFields = arg.state.targetFields || [[edges.left ? 'left' : 'right', edges.top ? 'top' : 'bottom']];\n return snapSize.start(arg);\n}\n\nconst snapEdges = {\n start,\n set: snapSize.set,\n defaults: extend(clone(snapSize.defaults), {\n targets: null,\n range: null,\n offset: {\n x: 0,\n y: 0\n }\n })\n};\nexport default makeModifier(snapEdges, 'snapEdges');\nexport { snapEdges };\n//# sourceMappingURL=edges.js.map","/* eslint-disable node/no-extraneous-import */\nimport aspectRatio from \"./aspectRatio.js\";\nimport avoid from \"./avoid.js\";\nimport restrictEdges from \"./restrict/edges.js\";\nimport restrict from \"./restrict/pointer.js\";\nimport restrictRect from \"./restrict/rect.js\";\nimport restrictSize from \"./restrict/size.js\";\nimport rubberband from \"./rubberband.js\";\nimport snapEdges from \"./snap/edges.js\";\nimport snap from \"./snap/pointer.js\";\nimport snapSize from \"./snap/size.js\";\nimport spring from \"./spring.js\";\nimport transform from \"./transform.js\";\nexport default {\n aspectRatio,\n restrictEdges,\n restrict,\n restrictRect,\n restrictSize,\n snapEdges,\n snap,\n snapSize,\n spring,\n avoid,\n transform,\n rubberband\n};\n//# sourceMappingURL=all.js.map","import snappers from \"../snappers/plugin.js\";\nimport all from \"./all.js\";\nimport base from \"./base.js\";\nconst modifiers = {\n id: 'modifiers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n scope.usePlugin(base);\n scope.usePlugin(snappers);\n interact.modifiers = all; // for backwrads compatibility\n\n for (const type in all) {\n const {\n _defaults,\n _methods\n } = all[type];\n _defaults._methods = _methods;\n scope.defaults.perAction[type] = _defaults;\n }\n }\n\n};\nexport default modifiers;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","/* eslint-disable no-console */\nimport { Scope } from \"../core/scope.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { parentNode } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport * as win from \"../utils/window.js\";\nvar CheckName;\n\n(function (CheckName) {\n CheckName[\"touchAction\"] = \"touchAction\";\n CheckName[\"boxSizing\"] = \"boxSizing\";\n CheckName[\"noListeners\"] = \"noListeners\";\n})(CheckName || (CheckName = {}));\n\nconst prefix = '[interact.js] ';\nconst links = {\n touchAction: 'https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action',\n boxSizing: 'https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing'\n}; // eslint-disable-next-line no-undef\n\nconst isProduction = \"development\" === 'production'; // eslint-disable-next-line no-restricted-syntax\n\nfunction install(scope, {\n logger\n} = {}) {\n const {\n Interactable,\n defaults\n } = scope;\n scope.logger = logger || console;\n defaults.base.devTools = {\n ignore: {}\n };\n\n Interactable.prototype.devTools = function (options) {\n if (options) {\n extend(this.options.devTools, options);\n return this;\n }\n\n return this.options.devTools;\n };\n}\n\nconst checks = [{\n name: CheckName.touchAction,\n\n perform({\n element\n }) {\n return !parentHasStyle(element, 'touchAction', /pan-|pinch|none/);\n },\n\n getInfo({\n element\n }) {\n return [element, links.touchAction];\n },\n\n text: 'Consider adding CSS \"touch-action: none\" to this element\\n'\n}, {\n name: CheckName.boxSizing,\n\n perform(interaction) {\n const {\n element\n } = interaction;\n return interaction.prepared.name === 'resize' && element instanceof domObjects.HTMLElement && !hasStyle(element, 'boxSizing', /border-box/);\n },\n\n text: 'Consider adding CSS \"box-sizing: border-box\" to this resizable element',\n\n getInfo({\n element\n }) {\n return [element, links.boxSizing];\n }\n\n}, {\n name: CheckName.noListeners,\n\n perform(interaction) {\n const actionName = interaction.prepared.name;\n const moveListeners = interaction.interactable.events.types[`${actionName}move`] || [];\n return !moveListeners.length;\n },\n\n getInfo(interaction) {\n return [interaction.prepared.name, interaction.interactable];\n },\n\n text: 'There are no listeners set for this action'\n}];\n\nfunction hasStyle(element, prop, styleRe) {\n const value = element.style[prop] || win.window.getComputedStyle(element)[prop];\n return styleRe.test((value || '').toString());\n}\n\nfunction parentHasStyle(element, prop, styleRe) {\n let parent = element;\n\n while (is.element(parent)) {\n if (hasStyle(parent, prop, styleRe)) {\n return true;\n }\n\n parent = parentNode(parent);\n }\n\n return false;\n}\n\nconst id = 'dev-tools';\nconst defaultExport = isProduction ? {\n id,\n install: () => {}\n} : {\n id,\n install,\n listeners: {\n 'interactions:action-start': ({\n interaction\n }, scope) => {\n for (const check of checks) {\n const options = interaction.interactable && interaction.interactable.options;\n\n if (!(options && options.devTools && options.devTools.ignore[check.name]) && check.perform(interaction)) {\n scope.logger.warn(prefix + check.text, ...check.getInfo(interaction));\n }\n }\n }\n },\n checks,\n CheckName,\n links,\n prefix\n};\nexport default defaultExport;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export { default } from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridItem.vue?vue&type=script&lang=js\"","import { render } from \"./GridItem.vue?vue&type=template&id=46ff2fc8\"\nimport script from \"./GridItem.vue?vue&type=script&lang=js\"\nexport * from \"./GridItem.vue?vue&type=script&lang=js\"\n\nimport \"./GridItem.vue?vue&type=style&index=0&id=46ff2fc8&lang=css\"\nscript.render = render\n\nexport default script","\r\n\r\n\r\n","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function(n){return{all:n=n||new Map,on:function(t,e){var i=n.get(t);i&&i.push(e)||n.set(t,[e])},off:function(t,e){var i=n.get(t);i&&i.splice(i.indexOf(e)>>>0,1)},emit:function(t,e){(n.get(t)||[]).slice().map(function(n){n(e)}),(n.get(\"*\")||[]).slice().map(function(n){n(t,e)})}}}\n//# sourceMappingURL=mitt.es.js.map\n","export { default } from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridLayout.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./GridLayout.vue?vue&type=script&lang=js\"","import { render } from \"./GridLayout.vue?vue&type=template&id=fc5948f6\"\nimport script from \"./GridLayout.vue?vue&type=script&lang=js\"\nexport * from \"./GridLayout.vue?vue&type=script&lang=js\"\n\nimport \"./GridLayout.vue?vue&type=style&index=0&id=fc5948f6&lang=css\"\nscript.render = render\n\nexport default script","import { App } from 'vue';\r\n\r\nimport GridItem from './GridItem.vue';\r\nimport GridLayout from './GridLayout.vue';\r\n\r\nexport { GridLayout, GridItem };\r\n\r\nconst install = (app: App) => {\r\n app.component('grid-layout', GridLayout)\r\n app.component('grid-item', GridItem)\r\n}\r\n\r\nexport default install;","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","// 20.1.2.2 Number.isFinite(number)\nvar $export = require('./_export');\nvar _isFinite = require('./_global').isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it) {\n return typeof it == 'number' && _isFinite(it);\n }\n});\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-grid-layout.umd.min.js b/dist/vue-grid-layout.umd.min.js deleted file mode 100644 index 358bf58f..00000000 --- a/dist/vue-grid-layout.umd.min.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! vue-grid-layout - 3.0.0-beta1 | (c) 2015, 2021 Gustavo Santos (JBay Solutions) (http://www.jbaysolutions.com) | https://github.com/jbaysolutions/vue-grid-layout */ -(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["VueGridLayout"]=e(require("vue")):t["VueGridLayout"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};t.exports=function(t,e,n,v,y,b,x){c(n,e,v);var w,S,E,T=function(t){if(!d&&t in I)return I[t];switch(t){case p:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},z=e+" Iterator",M=y==g,O=!1,I=t.prototype,P=I[h]||I[f]||y&&I[y],D=P||T(y),_=y?M?T("entries"):D:void 0,k="Array"==e&&I.entries||P;if(k&&(E=u(k.call(new t)),E!==Object.prototype&&E.next&&(l(E,z,!0),i||"function"==typeof E[h]||s(E,h,m))),M&&P&&P.name!==g&&(O=!0,D=function(){return P.call(this)}),i&&!x||!d&&!O&&I[h]||s(I,h,D),a[e]=D,a[z]=m,y)if(w={values:M?D:T(g),keys:b?D:T(p),entries:_},x)for(S in w)S in I||o(I,S,w[S]);else r(r.P+r.F*(d||O),e,w);return w}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(r(e)),c=i(n),l=a.length;return c<0||c>=l?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"083e":function(t,e,n){"use strict";n("c541")},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),l=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?l:function(t,e){if(t=o(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(a(t,e))return r(!i.f.call(t,e),t[e])}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);var n,s=o(e),a=s.length,c=0;while(a>c)i.f(t,n=s[c++],e[n]);return t}},"18d2":function(t,e,n){"use strict";var i=n("18e9");t.exports=function(t){t=t||{};var e=t.reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(t,e){function n(){e(t)}if(i.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=c(t);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}}function s(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function a(t,o,a){a||(a=o,o=t,t=null),t=t||{};t.debug;function c(o,a){var c=s(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),l=!1,u=window.getComputedStyle(o),h=o.offsetWidth,d=o.offsetHeight;function f(){function n(){if("static"===u.position){o.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,r){function o(t){return t.replace(/[^-\d\.]/g,"")}var s=i[r];"auto"!==s&&"0"!==o(s)&&(e.warn("An element that is positioned static has style."+r+"="+s+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,o,u,"top"),n(e,o,u,"right"),n(e,o,u,"bottom"),n(e,o,u,"left")}}function s(){function t(e,n){if(!e.contentDocument){var i=r(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}l||n();var e=this;t(e,(function(t){a(o)}))}""!==u.position&&(n(u),l=!0);var h=document.createElement("object");h.style.cssText=c,h.tabIndex=-1,h.type="text/html",h.setAttribute("aria-hidden","true"),h.onload=s,i.isIE()||(h.data="about:blank"),r(o)&&(o.appendChild(h),r(o).object=h,i.isIE()&&(h.data="about:blank"))}r(o).startSize={width:h,height:d},n?n.add(f):f()}i.isIE(8)?a(o):c(o,a)}function c(t){return r(t).object}function l(t){if(r(t)){var e=c(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}return{makeDetectable:a,addListener:o,uninstall:l}}},"18e9":function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){function e(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}if(!e())return!1;if(!t)return!0;var n=function(){var t,e=3,n=document.createElement("div"),i=n.getElementsByTagName("i");do{n.innerHTML="\x3c!--[if gt IE "+ ++e+"]>4?e:t}();return t===n},i.isLegacyOpera=function(){return!!window.opera}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),c=n("520a"),l=a("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=a(t),f=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!h){var g=/./[d],m=n(s,d,""[t],(function(t,e,n,i,r){return e.exec===c?f&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),v=m[0],y=m[1];i(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"===typeof btoa){var o=r(i),s=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(s).concat([o]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),l=t.F;while(i--)delete l[c][o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=i(t),n=new a,a[c]=null,n[s]=t):n=l(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))};a.store=i},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;function e(){return t++}return{generate:e}}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var i=n("79e5");t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4917:function(t,e,n){"use strict";var i=n("cb7c"),r=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,(function(t,e,n,a){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=i(t),l=String(this);if(!c.global)return s(c,l);var u=c.unicode;c.lastIndex=0;var h,d=[],f=0;while(null!==(h=s(c,l))){var p=String(h[0]);d[f]=p,""===p&&(c.lastIndex=o(l,r(c.lastIndex),u)),f++}return 0===f?null:d}]}))},"493e":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'.vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item,.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url("data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}',""]),t.exports=e},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;rn.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(r=0;r1&&o.call(s[0],n,(function(){for(u=1;uu){var f,p=c(arguments[u++]),g=h?r(p).concat(h(p)):r(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!d.call(p,f)||(n[f]=p[f])}return n}:l},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"848e":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".vue-grid-layout{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}",""]),t.exports=e},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},8875:function(t,e,n){var i,r,o;(function(n,s){r=[],i=s,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,i,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,s=/@([^@]*):(\d+):(\d+)\s*$/gi,a=o.exec(f.stack)||s.exec(f.stack),c=a&&a[1]||!1,l=a&&a[2]||!1,u=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");c===u&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*\r\n","// @flow\r\nexport type LayoutItemRequired = {w: number, h: number, x: number, y: number, i: string};\r\nexport type LayoutItem = LayoutItemRequired &\r\n {minW?: number, minH?: number, maxW?: number, maxH?: number,\r\n moved?: boolean, static?: boolean,\r\n isDraggable?: ?boolean, isResizable?: ?boolean};\r\nexport type Layout = Array;\r\n// export type Position = {left: number, top: number, width: number, height: number};\r\n/*\r\nexport type DragCallbackData = {\r\n node: HTMLElement,\r\n x: number, y: number,\r\n deltaX: number, deltaY: number,\r\n lastX: number, lastY: number\r\n};\r\n*/\r\n// export type DragEvent = {e: Event} & DragCallbackData;\r\nexport type Size = {width: number, height: number};\r\n// export type ResizeEvent = {e: Event, node: HTMLElement, size: Size};\r\n\r\n// const isProduction = process.env.NODE_ENV === 'production';\r\n/**\r\n * Return the bottom coordinate of the layout.\r\n *\r\n * @param {Array} layout Layout array.\r\n * @return {Number} Bottom coordinate.\r\n */\r\nexport function bottom(layout: Layout): number {\r\n let max = 0, bottomY;\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n bottomY = layout[i]. y + layout[i].h;\r\n if (bottomY > max) max = bottomY;\r\n }\r\n return max;\r\n}\r\n\r\nexport function cloneLayout(layout: Layout): Layout {\r\n const newLayout = Array(layout.length);\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n newLayout[i] = cloneLayoutItem(layout[i]);\r\n }\r\n return newLayout;\r\n}\r\n\r\n// Fast path to cloning, since this is monomorphic\r\nexport function cloneLayoutItem(layoutItem: LayoutItem): LayoutItem {\r\n /*return {\r\n w: layoutItem.w, h: layoutItem.h, x: layoutItem.x, y: layoutItem.y, i: layoutItem.i,\r\n minW: layoutItem.minW, maxW: layoutItem.maxW, minH: layoutItem.minH, maxH: layoutItem.maxH,\r\n moved: Boolean(layoutItem.moved), static: Boolean(layoutItem.static),\r\n // These can be null\r\n isDraggable: layoutItem.isDraggable, isResizable: layoutItem.isResizable\r\n };*/\r\n return JSON.parse(JSON.stringify(layoutItem));\r\n}\r\n\r\n/**\r\n * Given two layoutitems, check if they collide.\r\n *\r\n * @return {Boolean} True if colliding.\r\n */\r\nexport function collides(l1: LayoutItem, l2: LayoutItem): boolean {\r\n if (l1 === l2) return false; // same element\r\n if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2\r\n if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2\r\n if (l1.y + l1.h <= l2.y) return false; // l1 is above l2\r\n if (l1.y >= l2.y + l2.h) return false; // l1 is below l2\r\n return true; // boxes overlap\r\n}\r\n\r\n/**\r\n * Given a layout, compact it. This involves going down each y coordinate and removing gaps\r\n * between items.\r\n *\r\n * @param {Array} layout Layout.\r\n * @param {Boolean} verticalCompact Whether or not to compact the layout\r\n * vertically.\r\n * @return {Array} Compacted Layout.\r\n */\r\nexport function compact(layout: Layout, verticalCompact: Boolean): Layout {\r\n // Statics go in the compareWith array right away so items flow around them.\r\n const compareWith = getStatics(layout);\r\n // We go through the items by row and column.\r\n const sorted = sortLayoutItemsByRowCol(layout);\r\n // Holding for new items.\r\n const out = Array(layout.length);\r\n\r\n for (let i = 0, len = sorted.length; i < len; i++) {\r\n let l = sorted[i];\r\n\r\n // Don't move static elements\r\n if (!l.static) {\r\n l = compactItem(compareWith, l, verticalCompact);\r\n\r\n // Add to comparison array. We only collide with items before this one.\r\n // Statics are already in this array.\r\n compareWith.push(l);\r\n }\r\n\r\n // Add to output array to make sure they still come out in the right order.\r\n out[layout.indexOf(l)] = l;\r\n\r\n // Clear moved flag, if it exists.\r\n l.moved = false;\r\n }\r\n\r\n return out;\r\n}\r\n\r\n/**\r\n * Compact an item in the layout.\r\n */\r\nexport function compactItem(compareWith: Layout, l: LayoutItem, verticalCompact: boolean): LayoutItem {\r\n if (verticalCompact) {\r\n // Move the element up as far as it can go without colliding.\r\n while (l.y > 0 && !getFirstCollision(compareWith, l)) {\r\n l.y--;\r\n }\r\n }\r\n\r\n // Move it down, and keep moving it down if it's colliding.\r\n let collides;\r\n while((collides = getFirstCollision(compareWith, l))) {\r\n l.y = collides.y + collides.h;\r\n }\r\n return l;\r\n}\r\n\r\n/**\r\n * Given a layout, make sure all elements fit within its bounds.\r\n *\r\n * @param {Array} layout Layout array.\r\n * @param {Number} bounds Number of columns.\r\n */\r\nexport function correctBounds(layout: Layout, bounds: {cols: number}): Layout {\r\n const collidesWith = getStatics(layout);\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n const l = layout[i];\r\n // Overflows right\r\n if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;\r\n // Overflows left\r\n if (l.x < 0) {\r\n l.x = 0;\r\n l.w = bounds.cols;\r\n }\r\n if (!l.static) collidesWith.push(l);\r\n else {\r\n // If this is static and collides with other statics, we must move it down.\r\n // We have to do something nicer than just letting them overlap.\r\n while(getFirstCollision(collidesWith, l)) {\r\n l.y++;\r\n }\r\n }\r\n }\r\n return layout;\r\n}\r\n\r\n/**\r\n * Get a layout item by ID. Used so we can override later on if necessary.\r\n *\r\n * @param {Array} layout Layout array.\r\n * @param {String} id ID\r\n * @return {LayoutItem} Item at ID.\r\n */\r\nexport function getLayoutItem(layout: Layout, id: string): ?LayoutItem {\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n if (layout[i].i === id) return layout[i];\r\n }\r\n}\r\n\r\n/**\r\n * Returns the first item this layout collides with.\r\n * It doesn't appear to matter which order we approach this from, although\r\n * perhaps that is the wrong thing to do.\r\n *\r\n * @param {Object} layoutItem Layout item.\r\n * @return {Object|undefined} A colliding layout item, or undefined.\r\n */\r\nexport function getFirstCollision(layout: Layout, layoutItem: LayoutItem): ?LayoutItem {\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n if (collides(layout[i], layoutItem)) return layout[i];\r\n }\r\n}\r\n\r\nexport function getAllCollisions(layout: Layout, layoutItem: LayoutItem): Array {\r\n return layout.filter((l) => collides(l, layoutItem));\r\n}\r\n\r\n/**\r\n * Get all static elements.\r\n * @param {Array} layout Array of layout objects.\r\n * @return {Array} Array of static layout items..\r\n */\r\nexport function getStatics(layout: Layout): Array {\r\n //return [];\r\n return layout.filter((l) => l.static);\r\n}\r\n\r\n/**\r\n * Move an element. Responsible for doing cascading movements of other elements.\r\n *\r\n * @param {Array} layout Full layout to modify.\r\n * @param {LayoutItem} l element to move.\r\n * @param {Number} [x] X position in grid units.\r\n * @param {Number} [y] Y position in grid units.\r\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is\r\n * being dragged/resized by th euser.\r\n */\r\nexport function moveElement(layout: Layout, l: LayoutItem, x: Number, y: Number, isUserAction: Boolean, preventCollision: Boolean): Layout {\r\n if (l.static) return layout;\r\n\r\n // Short-circuit if nothing to do.\r\n //if (l.y === y && l.x === x) return layout;\r\n\r\n const oldX = l.x;\r\n const oldY = l.y;\r\n\r\n const movingUp = y && l.y > y;\r\n // This is quite a bit faster than extending the object\r\n if (typeof x === 'number') l.x = x;\r\n if (typeof y === 'number') l.y = y;\r\n l.moved = true;\r\n\r\n // If this collides with anything, move it.\r\n // When doing this comparison, we have to sort the items we compare with\r\n // to ensure, in the case of multiple collisions, that we're getting the\r\n // nearest collision.\r\n let sorted = sortLayoutItemsByRowCol(layout);\r\n if (movingUp) sorted = sorted.reverse();\r\n const collisions = getAllCollisions(sorted, l);\r\n\r\n if (preventCollision && collisions.length) {\r\n l.x = oldX;\r\n l.y = oldY;\r\n l.moved = false;\r\n return layout;\r\n }\r\n\r\n // Move each item that collides away from this element.\r\n for (let i = 0, len = collisions.length; i < len; i++) {\r\n const collision = collisions[i];\r\n // console.log('resolving collision between', l.i, 'at', l.y, 'and', collision.i, 'at', collision.y);\r\n\r\n // Short circuit so we can't infinite loop\r\n if (collision.moved) continue;\r\n\r\n // This makes it feel a bit more precise by waiting to swap for just a bit when moving up.\r\n if (l.y > collision.y && l.y - collision.y > collision.h / 4) continue;\r\n\r\n // Don't move static items - we have to move *this* element away\r\n if (collision.static) {\r\n layout = moveElementAwayFromCollision(layout, collision, l, isUserAction);\r\n } else {\r\n layout = moveElementAwayFromCollision(layout, l, collision, isUserAction);\r\n }\r\n }\r\n\r\n return layout;\r\n}\r\n\r\n/**\r\n * This is where the magic needs to happen - given a collision, move an element away from the collision.\r\n * We attempt to move it up if there's room, otherwise it goes below.\r\n *\r\n * @param {Array} layout Full layout to modify.\r\n * @param {LayoutItem} collidesWith Layout item we're colliding with.\r\n * @param {LayoutItem} itemToMove Layout item we're moving.\r\n * @param {Boolean} [isUserAction] If true, designates that the item we're moving is being dragged/resized\r\n * by the user.\r\n */\r\nexport function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem,\r\n itemToMove: LayoutItem, isUserAction: ?boolean): Layout {\r\n\r\n const preventCollision = false // we're already colliding\r\n // If there is enough space above the collision to put this element, move it there.\r\n // We only do this on the main collision as this can get funky in cascades and cause\r\n // unwanted swapping behavior.\r\n if (isUserAction) {\r\n // Make a mock item so we don't modify the item here, only modify in moveElement.\r\n const fakeItem: LayoutItem = {\r\n x: itemToMove.x,\r\n y: itemToMove.y,\r\n w: itemToMove.w,\r\n h: itemToMove.h,\r\n i: '-1'\r\n };\r\n fakeItem.y = Math.max(collidesWith.y - itemToMove.h, 0);\r\n if (!getFirstCollision(layout, fakeItem)) {\r\n return moveElement(layout, itemToMove, undefined, fakeItem.y, preventCollision);\r\n }\r\n }\r\n\r\n // Previously this was optimized to move below the collision directly, but this can cause problems\r\n // with cascading moves, as an item may actually leapflog a collision and cause a reversal in order.\r\n return moveElement(layout, itemToMove, undefined, itemToMove.y + 1, preventCollision);\r\n}\r\n\r\n/**\r\n * Helper to convert a number to a percentage string.\r\n *\r\n * @param {Number} num Any number\r\n * @return {String} That number as a percentage.\r\n */\r\nexport function perc(num: number): string {\r\n return num * 100 + '%';\r\n}\r\n\r\nexport function setTransform(top, left, width, height): Object {\r\n // Replace unitless items with px\r\n const translate = \"translate3d(\" + left + \"px,\" + top + \"px, 0)\";\r\n return {\r\n transform: translate,\r\n WebkitTransform: translate,\r\n MozTransform: translate,\r\n msTransform: translate,\r\n OTransform: translate,\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n/**\r\n * Just like the setTransform method, but instead it will return a negative value of right.\r\n *\r\n * @param top\r\n * @param right\r\n * @param width\r\n * @param height\r\n * @returns {{transform: string, WebkitTransform: string, MozTransform: string, msTransform: string, OTransform: string, width: string, height: string, position: string}}\r\n */\r\nexport function setTransformRtl(top, right, width, height): Object {\r\n // Replace unitless items with px\r\n const translate = \"translate3d(\" + right * -1 + \"px,\" + top + \"px, 0)\";\r\n return {\r\n transform: translate,\r\n WebkitTransform: translate,\r\n MozTransform: translate,\r\n msTransform: translate,\r\n OTransform: translate,\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n\r\nexport function setTopLeft(top, left, width, height): Object {\r\n return {\r\n top: top + \"px\",\r\n left: left + \"px\",\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n/**\r\n * Just like the setTopLeft method, but instead, it will return a right property instead of left.\r\n *\r\n * @param top\r\n * @param right\r\n * @param width\r\n * @param height\r\n * @returns {{top: string, right: string, width: string, height: string, position: string}}\r\n */\r\nexport function setTopRight(top, right, width, height): Object {\r\n return {\r\n top: top + \"px\",\r\n right: right+ \"px\",\r\n width: width + \"px\",\r\n height: height + \"px\",\r\n position: 'absolute'\r\n };\r\n}\r\n\r\n\r\n/**\r\n * Get layout items sorted from top left to right and down.\r\n *\r\n * @return {Array} Array of layout objects.\r\n * @return {Array} Layout, sorted static items first.\r\n */\r\nexport function sortLayoutItemsByRowCol(layout: Layout): Layout {\r\n return [].concat(layout).sort(function(a, b) {\r\n if (a.y === b.y && a.x === b.x) {\r\n return 0;\r\n }\r\n\r\n if (a.y > b.y || (a.y === b.y && a.x > b.x)) {\r\n return 1;\r\n }\r\n\r\n return -1;\r\n });\r\n}\r\n\r\n/**\r\n * Generate a layout using the initialLayout and children as a template.\r\n * Missing entries will be added, extraneous ones will be truncated.\r\n *\r\n * @param {Array} initialLayout Layout passed in through props.\r\n * @param {String} breakpoint Current responsive breakpoint.\r\n * @param {Boolean} verticalCompact Whether or not to compact the layout vertically.\r\n * @return {Array} Working layout.\r\n */\r\n/*\r\nexport function synchronizeLayoutWithChildren(initialLayout: Layout, children: Array|React.Element,\r\n cols: number, verticalCompact: boolean): Layout {\r\n // ensure 'children' is always an array\r\n if (!Array.isArray(children)) {\r\n children = [children];\r\n }\r\n initialLayout = initialLayout || [];\r\n\r\n // Generate one layout item per child.\r\n let layout: Layout = [];\r\n for (let i = 0, len = children.length; i < len; i++) {\r\n let newItem;\r\n const child = children[i];\r\n\r\n // Don't overwrite if it already exists.\r\n const exists = getLayoutItem(initialLayout, child.key || \"1\" /!* FIXME satisfies Flow *!/);\r\n if (exists) {\r\n newItem = exists;\r\n } else {\r\n const g = child.props._grid;\r\n\r\n // Hey, this item has a _grid property, use it.\r\n if (g) {\r\n if (!isProduction) {\r\n validateLayout([g], 'ReactGridLayout.children');\r\n }\r\n // Validated; add it to the layout. Bottom 'y' possible is the bottom of the layout.\r\n // This allows you to do nice stuff like specify {y: Infinity}\r\n if (verticalCompact) {\r\n newItem = cloneLayoutItem({...g, y: Math.min(bottom(layout), g.y), i: child.key});\r\n } else {\r\n newItem = cloneLayoutItem({...g, y: g.y, i: child.key});\r\n }\r\n }\r\n // Nothing provided: ensure this is added to the bottom\r\n else {\r\n newItem = cloneLayoutItem({w: 1, h: 1, x: 0, y: bottom(layout), i: child.key || \"1\"});\r\n }\r\n }\r\n layout[i] = newItem;\r\n }\r\n\r\n // Correct the layout.\r\n layout = correctBounds(layout, {cols: cols});\r\n layout = compact(layout, verticalCompact);\r\n\r\n return layout;\r\n}\r\n*/\r\n\r\n/**\r\n * Validate a layout. Throws errors.\r\n *\r\n * @param {Array} layout Array of layout items.\r\n * @param {String} [contextName] Context name for errors.\r\n * @throw {Error} Validation error.\r\n */\r\nexport function validateLayout(layout: Layout, contextName: string): void {\r\n contextName = contextName || \"Layout\";\r\n const subProps = ['x', 'y', 'w', 'h'];\r\n let keyArr = [];\r\n if (!Array.isArray(layout)) throw new Error(contextName + \" must be an array!\");\r\n for (let i = 0, len = layout.length; i < len; i++) {\r\n const item = layout[i];\r\n for (let j = 0; j < subProps.length; j++) {\r\n if (typeof item[subProps[j]] !== 'number') {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].' + subProps[j] + ' must be a number!');\r\n }\r\n }\r\n\r\n if (item.i === undefined || item.i === null) {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i cannot be null!');\r\n }\r\n\r\n if (typeof item.i !== 'number' && typeof item.i !== 'string') {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be a string or number!');\r\n }\r\n\r\n if (keyArr.indexOf(item.i) >= 0) {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be unique!');\r\n }\r\n keyArr.push(item.i);\r\n\r\n if (item.static !== undefined && typeof item.static !== 'boolean') {\r\n throw new Error('VueGridLayout: ' + contextName + '[' + i + '].static must be a boolean!');\r\n }\r\n }\r\n}\r\n\r\n// Flow can't really figure this out, so we just use Object\r\nexport function autoBindHandlers(el: Object, fns: Array): void {\r\n fns.forEach((key) => el[key] = el[key].bind(el));\r\n}\r\n\r\n\r\n\r\n/**\r\n * Convert a JS object to CSS string. Similar to React's output of CSS.\r\n * @param obj\r\n * @returns {string}\r\n */\r\nexport function createMarkup(obj) {\r\n var keys = Object.keys(obj);\r\n if (!keys.length) return '';\r\n var i, len = keys.length;\r\n var result = '';\r\n\r\n for (i = 0; i < len; i++) {\r\n var key = keys[i];\r\n var val = obj[key];\r\n result += hyphenate(key) + ':' + addPx(key, val) + ';';\r\n }\r\n\r\n return result;\r\n}\r\n\r\n\r\n/* The following list is defined in React's core */\r\nexport var IS_UNITLESS = {\r\n animationIterationCount: true,\r\n boxFlex: true,\r\n boxFlexGroup: true,\r\n boxOrdinalGroup: true,\r\n columnCount: true,\r\n flex: true,\r\n flexGrow: true,\r\n flexPositive: true,\r\n flexShrink: true,\r\n flexNegative: true,\r\n flexOrder: true,\r\n gridRow: true,\r\n gridColumn: true,\r\n fontWeight: true,\r\n lineClamp: true,\r\n lineHeight: true,\r\n opacity: true,\r\n order: true,\r\n orphans: true,\r\n tabSize: true,\r\n widows: true,\r\n zIndex: true,\r\n zoom: true,\r\n\r\n // SVG-related properties\r\n fillOpacity: true,\r\n stopOpacity: true,\r\n strokeDashoffset: true,\r\n strokeOpacity: true,\r\n strokeWidth: true\r\n};\r\n\r\n\r\n/**\r\n * Will add px to the end of style values which are Numbers.\r\n * @param name\r\n * @param value\r\n * @returns {*}\r\n */\r\nexport function addPx(name, value) {\r\n if(typeof value === 'number' && !IS_UNITLESS[ name ]) {\r\n return value + 'px';\r\n } else {\r\n return value;\r\n }\r\n}\r\n\r\n\r\n/**\r\n * Hyphenate a camelCase string.\r\n *\r\n * @param {String} str\r\n * @return {String}\r\n */\r\n\r\nexport var hyphenateRE = /([a-z\\d])([A-Z])/g;\r\n\r\nexport function hyphenate(str) {\r\n return str.replace(hyphenateRE, '$1-$2').toLowerCase();\r\n}\r\n\r\n\r\nexport function findItemInArray(array, property, value) {\r\n for (var i=0; i < array.length; i++)\r\n if (array[i][property] == value)\r\n return true;\r\n\r\n return false;\r\n}\r\n\r\nexport function findAndRemove(array, property, value) {\r\n array.forEach(function (result, index) {\r\n if (result[property] === value) {\r\n //Remove from array\r\n array.splice(index, 1);\r\n }\r\n });\r\n}\r\n","// Get {x, y} positions from event.\r\nexport function getControlPosition(e) {\r\n return offsetXYFromParentOf(e);\r\n}\r\n\r\n\r\n// Get from offsetParent\r\nexport function offsetXYFromParentOf(evt) {\r\n const offsetParent = evt.target.offsetParent || document.body;\r\n const offsetParentRect = evt.offsetParent === document.body ? {left: 0, top: 0} : offsetParent.getBoundingClientRect();\r\n\r\n const x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left;\r\n const y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top;\r\n\r\n /*const x = Math.round(evt.clientX + offsetParent.scrollLeft - offsetParentRect.left);\r\n const y = Math.round(evt.clientY + offsetParent.scrollTop - offsetParentRect.top);*/\r\n\r\n\r\n return {x, y};\r\n}\r\n\r\n\r\n// Create an data object exposed by 's events\r\nexport function createCoreData(lastX, lastY, x, y) {\r\n // State changes are often (but not always!) async. We want the latest value.\r\n const isStart = !isNum(lastX);\r\n\r\n if (isStart) {\r\n // If this is our first move, use the x and y as last coords.\r\n return {\r\n deltaX: 0, deltaY: 0,\r\n lastX: x, lastY: y,\r\n x: x, y: y\r\n };\r\n } else {\r\n // Otherwise calculate proper values.\r\n return {\r\n deltaX: x - lastX, deltaY: y - lastY,\r\n lastX: lastX, lastY: lastY,\r\n x: x, y: y\r\n };\r\n }\r\n}\r\n\r\n\r\nfunction isNum(num) {\r\n return typeof num === 'number' && !isNaN(num);\r\n}\r\n\r\n","// @flow\r\n\r\nimport {cloneLayout, compact, correctBounds} from './utils';\r\n\r\nimport type {Layout} from './utils';\r\nexport type ResponsiveLayout = {lg?: Layout, md?: Layout, sm?: Layout, xs?: Layout, xxs?: Layout};\r\ntype Breakpoint = string;\r\ntype Breakpoints = {lg?: number, md?: number, sm?: number, xs?: number, xxs?: number};\r\n\r\n/**\r\n * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).\r\n *\r\n * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})\r\n * @param {Number} width Screen width.\r\n * @return {String} Highest breakpoint that is less than width.\r\n */\r\nexport function getBreakpointFromWidth(breakpoints: Breakpoints, width: number): Breakpoint {\r\n const sorted = sortBreakpoints(breakpoints);\r\n let matching = sorted[0];\r\n for (let i = 1, len = sorted.length; i < len; i++) {\r\n const breakpointName = sorted[i];\r\n if (width > breakpoints[breakpointName]) matching = breakpointName;\r\n }\r\n return matching;\r\n}\r\n\r\n\r\n/**\r\n * Given a breakpoint, get the # of cols set for it.\r\n * @param {String} breakpoint Breakpoint name.\r\n * @param {Object} cols Map of breakpoints to cols.\r\n * @return {Number} Number of cols.\r\n */\r\nexport function getColsFromBreakpoint(breakpoint: Breakpoint, cols: Breakpoints): number {\r\n if (!cols[breakpoint]) {\r\n throw new Error(\"ResponsiveGridLayout: `cols` entry for breakpoint \" + breakpoint + \" is missing!\");\r\n }\r\n return cols[breakpoint];\r\n}\r\n\r\n/**\r\n * Given existing layouts and a new breakpoint, find or generate a new layout.\r\n *\r\n * This finds the layout above the new one and generates from it, if it exists.\r\n *\r\n * @param {Array} orgLayout Original layout.\r\n * @param {Object} layouts Existing layouts.\r\n * @param {Array} breakpoints All breakpoints.\r\n * @param {String} breakpoint New breakpoint.\r\n * @param {String} breakpoint Last breakpoint (for fallback).\r\n * @param {Number} cols Column count at new breakpoint.\r\n * @param {Boolean} verticalCompact Whether or not to compact the layout\r\n * vertically.\r\n * @return {Array} New layout.\r\n */\r\nexport function findOrGenerateResponsiveLayout(orgLayout: Layout, layouts: ResponsiveLayout, breakpoints: Breakpoints,\r\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\r\n cols: number, verticalCompact: boolean): Layout {\r\n // If it already exists, just return it.\r\n if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\r\n // Find or generate the next layout\r\n let layout = orgLayout;\r\n\r\n const breakpointsSorted = sortBreakpoints(breakpoints);\r\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\r\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\r\n const b = breakpointsAbove[i];\r\n if (layouts[b]) {\r\n layout = layouts[b];\r\n break;\r\n }\r\n }\r\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\r\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\r\n}\r\n\r\nexport function generateResponsiveLayout(layout: Layout, breakpoints: Breakpoints,\r\n breakpoint: Breakpoint, lastBreakpoint: Breakpoint,\r\n cols: number, verticalCompact: boolean): Layout {\r\n // If it already exists, just return it.\r\n /*if (layouts[breakpoint]) return cloneLayout(layouts[breakpoint]);\r\n // Find or generate the next layout\r\n let layout = layouts[lastBreakpoint];*/\r\n /*const breakpointsSorted = sortBreakpoints(breakpoints);\r\n const breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\r\n for (let i = 0, len = breakpointsAbove.length; i < len; i++) {\r\n const b = breakpointsAbove[i];\r\n if (layouts[b]) {\r\n layout = layouts[b];\r\n break;\r\n }\r\n }*/\r\n layout = cloneLayout(layout || []); // clone layout so we don't modify existing items\r\n return compact(correctBounds(layout, {cols: cols}), verticalCompact);\r\n}\r\n\r\n/**\r\n * Given breakpoints, return an array of breakpoints sorted by width. This is usually\r\n * e.g. ['xxs', 'xs', 'sm', ...]\r\n *\r\n * @param {Object} breakpoints Key/value pair of breakpoint names to widths.\r\n * @return {Array} Sorted breakpoints.\r\n */\r\nexport function sortBreakpoints(breakpoints: Breakpoints): Array {\r\n const keys: Array = Object.keys(breakpoints);\r\n return keys.sort(function(a, b) {\r\n return breakpoints[a] - breakpoints[b];\r\n });\r\n}\r\n","let currentDir: \"ltr\" | \"rtl\" | \"auto\" = \"auto\";\r\n// let currentDir = \"auto\";\r\n\r\nfunction hasDocument(){\r\n return (typeof document !== \"undefined\");\r\n}\r\n\r\nfunction hasWindow(){\r\n return (typeof window !== \"undefined\");\r\n}\r\n\r\nexport function getDocumentDir(){\r\n if(!hasDocument()){\r\n return currentDir;\r\n }\r\n const direction = (typeof document.dir !== \"undefined\") ?\r\n document.dir :\r\n document.getElementsByTagName(\"html\")[0].getAttribute(\"dir\");\r\n return direction;\r\n}\r\n\r\nexport function setDocumentDir(dir: \"ltr\" | \"rtl\" | \"auto\"){\r\n// export function setDocumentDir(dir){\r\n if(!hasDocument){\r\n currentDir = dir;\r\n return;\r\n }\r\n\r\n const html = document.getElementsByTagName(\"html\")[0];\r\n html.setAttribute(\"dir\", dir);\r\n}\r\n\r\nexport function addWindowEventListener(event:string, callback: () => mixed){\r\n if(!hasWindow){\r\n\r\n callback();\r\n return;\r\n }\r\n window.addEventListener(event, callback);\r\n}\r\n\r\nexport function removeWindowEventListener(event:string, callback: () => mixed){\r\n if(!hasWindow){\r\n return;\r\n }\r\n window.removeEventListener(event, callback);\r\n}\r\n\r\n\r\n\r\n","const domObjects = {\n init,\n document: null,\n DocumentFragment: null,\n SVGElement: null,\n SVGSVGElement: null,\n SVGElementInstance: null,\n Element: null,\n HTMLElement: null,\n Event: null,\n Touch: null,\n PointerEvent: null\n};\n\nfunction blank() {}\n\nexport default domObjects;\n\nfunction init(window) {\n const win = window;\n domObjects.document = win.document;\n domObjects.DocumentFragment = win.DocumentFragment || blank;\n domObjects.SVGElement = win.SVGElement || blank;\n domObjects.SVGSVGElement = win.SVGSVGElement || blank;\n domObjects.SVGElementInstance = win.SVGElementInstance || blank;\n domObjects.Element = win.Element || blank;\n domObjects.HTMLElement = win.HTMLElement || domObjects.Element;\n domObjects.Event = win.Event;\n domObjects.Touch = win.Touch || blank;\n domObjects.PointerEvent = win.PointerEvent || win.MSPointerEvent;\n}\n//# sourceMappingURL=domObjects.js.map","export default (thing => !!(thing && thing.Window) && thing instanceof thing.Window);\n//# sourceMappingURL=isWindow.js.map","import isWindow from \"./isWindow.js\";\nexport let realWindow = undefined;\nlet win = undefined;\nexport { win as window };\nexport function init(window) {\n // get wrapped window if using Shadow DOM polyfill\n realWindow = window; // create a TextNode\n\n const el = window.document.createTextNode(''); // check if it's wrapped by a polyfill\n\n if (el.ownerDocument !== window.document && typeof window.wrap === 'function' && window.wrap(el) === el) {\n // use wrapped window\n window = window.wrap(window);\n }\n\n win = window;\n}\n\nif (typeof window !== 'undefined' && !!window) {\n init(window);\n}\n\nexport function getWindow(node) {\n if (isWindow(node)) {\n return node;\n }\n\n const rootNode = node.ownerDocument || node;\n return rootNode.defaultView || win.window;\n}\n//# sourceMappingURL=window.js.map","import isWindow from \"./isWindow.js\";\nimport * as win from \"./window.js\";\n\nconst window = thing => thing === win.window || isWindow(thing);\n\nconst docFrag = thing => object(thing) && thing.nodeType === 11;\n\nconst object = thing => !!thing && typeof thing === 'object';\n\nconst func = thing => typeof thing === 'function';\n\nconst number = thing => typeof thing === 'number';\n\nconst bool = thing => typeof thing === 'boolean';\n\nconst string = thing => typeof thing === 'string';\n\nconst element = thing => {\n if (!thing || typeof thing !== 'object') {\n return false;\n } // eslint-disable-next-line import/no-named-as-default-member\n\n\n const _window = win.getWindow(thing) || win.window;\n\n return /object|function/.test(typeof _window.Element) ? thing instanceof _window.Element // DOM2\n : thing.nodeType === 1 && typeof thing.nodeName === 'string';\n};\n\nconst plainObject = thing => object(thing) && !!thing.constructor && /function Object\\b/.test(thing.constructor.toString());\n\nconst array = thing => object(thing) && typeof thing.length !== 'undefined' && func(thing.splice);\n\nexport default {\n window,\n docFrag,\n object,\n func,\n number,\n bool,\n string,\n element,\n plainObject,\n array\n};\n//# sourceMappingURL=is.js.map","import domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nconst browser = {\n init,\n supportsTouch: null,\n supportsPointerEvent: null,\n isIOS7: null,\n isIOS: null,\n isIe9: null,\n isOperaMobile: null,\n prefixedMatchesSelector: null,\n pEventTypes: null,\n wheelEvent: null\n};\n\nfunction init(window) {\n const Element = domObjects.Element;\n const navigator = win.window.navigator; // Does the browser support touch input?\n\n browser.supportsTouch = 'ontouchstart' in window || is.func(window.DocumentTouch) && domObjects.document instanceof window.DocumentTouch; // Does the browser support PointerEvents\n\n browser.supportsPointerEvent = navigator.pointerEnabled !== false && !!domObjects.PointerEvent;\n browser.isIOS = /iP(hone|od|ad)/.test(navigator.platform); // scrolling doesn't change the result of getClientRects on iOS 7\n\n browser.isIOS7 = /iP(hone|od|ad)/.test(navigator.platform) && /OS 7[^\\d]/.test(navigator.appVersion);\n browser.isIe9 = /MSIE 9/.test(navigator.userAgent); // Opera Mobile must be handled differently\n\n browser.isOperaMobile = navigator.appName === 'Opera' && browser.supportsTouch && /Presto/.test(navigator.userAgent); // prefix matchesSelector\n\n browser.prefixedMatchesSelector = 'matches' in Element.prototype ? 'matches' : 'webkitMatchesSelector' in Element.prototype ? 'webkitMatchesSelector' : 'mozMatchesSelector' in Element.prototype ? 'mozMatchesSelector' : 'oMatchesSelector' in Element.prototype ? 'oMatchesSelector' : 'msMatchesSelector';\n browser.pEventTypes = browser.supportsPointerEvent ? domObjects.PointerEvent === window.MSPointerEvent ? {\n up: 'MSPointerUp',\n down: 'MSPointerDown',\n over: 'mouseover',\n out: 'mouseout',\n move: 'MSPointerMove',\n cancel: 'MSPointerCancel'\n } : {\n up: 'pointerup',\n down: 'pointerdown',\n over: 'pointerover',\n out: 'pointerout',\n move: 'pointermove',\n cancel: 'pointercancel'\n } : null; // because Webkit and Opera still use 'mousewheel' event type\n\n browser.wheelEvent = 'onmousewheel' in domObjects.document ? 'mousewheel' : 'wheel';\n}\n\nexport default browser;\n//# sourceMappingURL=browser.js.map","export const contains = (array, target) => array.indexOf(target) !== -1;\nexport const remove = (array, target) => array.splice(array.indexOf(target), 1);\nexport const merge = (target, source) => {\n for (const item of source) {\n target.push(item);\n }\n\n return target;\n};\nexport const from = source => merge([], source);\nexport const findIndex = (array, func) => {\n for (let i = 0; i < array.length; i++) {\n if (func(array[i], i, array)) {\n return i;\n }\n }\n\n return -1;\n};\nexport const find = (array, func) => array[findIndex(array, func)];\n//# sourceMappingURL=arr.js.map","import * as arr from \"./arr.js\";\nimport is from \"./is.js\"; // tslint:disable-next-line ban-types\n\nexport default function clone(source) {\n const dest = {};\n\n for (const prop in source) {\n const value = source[prop];\n\n if (is.plainObject(value)) {\n dest[prop] = clone(value);\n } else if (is.array(value)) {\n dest[prop] = arr.from(value);\n } else {\n dest[prop] = value;\n }\n }\n\n return dest;\n}\n//# sourceMappingURL=clone.js.map","export default function extend(dest, source) {\n for (const prop in source) {\n dest[prop] = source[prop];\n }\n\n const ret = dest;\n return ret;\n}\n//# sourceMappingURL=extend.js.map","let lastTime = 0;\nlet request;\nlet cancel;\n\nfunction init(window) {\n request = window.requestAnimationFrame;\n cancel = window.cancelAnimationFrame;\n\n if (!request) {\n const vendors = ['ms', 'moz', 'webkit', 'o'];\n\n for (const vendor of vendors) {\n request = window[`${vendor}RequestAnimationFrame`];\n cancel = window[`${vendor}CancelAnimationFrame`] || window[`${vendor}CancelRequestAnimationFrame`];\n }\n }\n\n request = request && request.bind(window);\n cancel = cancel && cancel.bind(window);\n\n if (!request) {\n request = callback => {\n const currTime = Date.now();\n const timeToCall = Math.max(0, 16 - (currTime - lastTime)); // eslint-disable-next-line node/no-callback-literal\n\n const token = window.setTimeout(() => {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return token;\n };\n\n cancel = token => clearTimeout(token);\n }\n}\n\nexport default {\n request: callback => request(callback),\n cancel: token => cancel(token),\n init\n};\n//# sourceMappingURL=raf.js.map","import extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport default function normalize(type, listeners, result) {\n result = result || {};\n\n if (is.string(type) && type.search(' ') !== -1) {\n type = split(type);\n }\n\n if (is.array(type)) {\n return type.reduce((acc, t) => extend(acc, normalize(t, listeners, result)), result);\n } // ({ type: fn }) -> ('', { type: fn })\n\n\n if (is.object(type)) {\n listeners = type;\n type = '';\n }\n\n if (is.func(listeners)) {\n result[type] = result[type] || [];\n result[type].push(listeners);\n } else if (is.array(listeners)) {\n for (const l of listeners) {\n normalize(type, l, result);\n }\n } else if (is.object(listeners)) {\n for (const prefix in listeners) {\n const combinedTypes = split(prefix).map(p => `${type}${p}`);\n normalize(combinedTypes, listeners[prefix], result);\n }\n }\n\n return result;\n}\n\nfunction split(type) {\n return type.trim().split(/ +/);\n}\n//# sourceMappingURL=normalizeListeners.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport normalize from \"../utils/normalizeListeners.js\";\n\nfunction fireUntilImmediateStopped(event, listeners) {\n for (const listener of listeners) {\n if (event.immediatePropagationStopped) {\n break;\n }\n\n listener(event);\n }\n}\n\nexport class Eventable {\n constructor(options) {\n this.options = void 0;\n this.types = {};\n this.propagationStopped = false;\n this.immediatePropagationStopped = false;\n this.global = void 0;\n this.options = extend({}, options || {});\n }\n\n fire(event) {\n let listeners;\n const global = this.global; // Interactable#on() listeners\n // tslint:disable no-conditional-assignment\n\n if (listeners = this.types[event.type]) {\n fireUntilImmediateStopped(event, listeners);\n } // interact.on() listeners\n\n\n if (!event.propagationStopped && global && (listeners = global[event.type])) {\n fireUntilImmediateStopped(event, listeners);\n }\n }\n\n on(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n this.types[type] = arr.merge(this.types[type] || [], listeners[type]);\n }\n }\n\n off(type, listener) {\n const listeners = normalize(type, listener);\n\n for (type in listeners) {\n const eventList = this.types[type];\n\n if (!eventList || !eventList.length) {\n continue;\n }\n\n for (const subListener of listeners[type]) {\n const index = eventList.indexOf(subListener);\n\n if (index !== -1) {\n eventList.splice(index, 1);\n }\n }\n }\n }\n\n getRect(_element) {\n return null;\n }\n\n}\n//# sourceMappingURL=Eventable.js.map","import browser from \"./browser.js\";\nimport domObjects from \"./domObjects.js\";\nimport is from \"./is.js\";\nimport * as win from \"./window.js\";\nexport function nodeContains(parent, child) {\n if (parent.contains) {\n return parent.contains(child);\n }\n\n while (child) {\n if (child === parent) {\n return true;\n }\n\n child = child.parentNode;\n }\n\n return false;\n}\nexport function closest(element, selector) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return element;\n }\n\n element = parentNode(element);\n }\n\n return null;\n}\nexport function parentNode(node) {\n let parent = node.parentNode;\n\n if (is.docFrag(parent)) {\n // skip past #shado-root fragments\n // tslint:disable-next-line\n while ((parent = parent.host) && is.docFrag(parent)) {\n continue;\n }\n\n return parent;\n }\n\n return parent;\n}\nexport function matchesSelector(element, selector) {\n // remove /deep/ from selectors if shadowDOM polyfill is used\n if (win.window !== win.realWindow) {\n selector = selector.replace(/\\/deep\\//g, ' ');\n }\n\n return element[browser.prefixedMatchesSelector](selector);\n}\n\nconst getParent = el => el.parentNode || el.host; // Test for the element that's \"above\" all other qualifiers\n\n\nexport function indexOfDeepestElement(elements) {\n let deepestNodeParents = [];\n let deepestNodeIndex;\n\n for (let i = 0; i < elements.length; i++) {\n const currentNode = elements[i];\n const deepestNode = elements[deepestNodeIndex]; // node may appear in elements array multiple times\n\n if (!currentNode || i === deepestNodeIndex) {\n continue;\n }\n\n if (!deepestNode) {\n deepestNodeIndex = i;\n continue;\n }\n\n const currentNodeParent = getParent(currentNode);\n const deepestNodeParent = getParent(deepestNode); // check if the deepest or current are document.documentElement/rootElement\n // - if the current node is, do nothing and continue\n\n if (currentNodeParent === currentNode.ownerDocument) {\n continue;\n } // - if deepest is, update with the current node and continue to next\n else if (deepestNodeParent === currentNode.ownerDocument) {\n deepestNodeIndex = i;\n continue;\n } // compare zIndex of siblings\n\n\n if (currentNodeParent === deepestNodeParent) {\n if (zIndexIsHigherThan(currentNode, deepestNode)) {\n deepestNodeIndex = i;\n }\n\n continue;\n } // populate the ancestry array for the latest deepest node\n\n\n deepestNodeParents = deepestNodeParents.length ? deepestNodeParents : getNodeParents(deepestNode);\n let ancestryStart; // if the deepest node is an HTMLElement and the current node is a non root svg element\n\n if (deepestNode instanceof domObjects.HTMLElement && currentNode instanceof domObjects.SVGElement && !(currentNode instanceof domObjects.SVGSVGElement)) {\n // TODO: is this check necessary? Was this for HTML elements embedded in SVG?\n if (currentNode === deepestNodeParent) {\n continue;\n }\n\n ancestryStart = currentNode.ownerSVGElement;\n } else {\n ancestryStart = currentNode;\n }\n\n const currentNodeParents = getNodeParents(ancestryStart, deepestNode.ownerDocument);\n let commonIndex = 0; // get (position of closest common ancestor) + 1\n\n while (currentNodeParents[commonIndex] && currentNodeParents[commonIndex] === deepestNodeParents[commonIndex]) {\n commonIndex++;\n }\n\n const parents = [currentNodeParents[commonIndex - 1], currentNodeParents[commonIndex], deepestNodeParents[commonIndex]];\n let child = parents[0].lastChild;\n\n while (child) {\n if (child === parents[1]) {\n deepestNodeIndex = i;\n deepestNodeParents = currentNodeParents;\n break;\n } else if (child === parents[2]) {\n break;\n }\n\n child = child.previousSibling;\n }\n }\n\n return deepestNodeIndex;\n}\n\nfunction getNodeParents(node, limit) {\n const parents = [];\n let parent = node;\n let parentParent;\n\n while ((parentParent = getParent(parent)) && parent !== limit && parentParent !== parent.ownerDocument) {\n parents.unshift(parent);\n parent = parentParent;\n }\n\n return parents;\n}\n\nfunction zIndexIsHigherThan(higherNode, lowerNode) {\n const higherIndex = parseInt(win.getWindow(higherNode).getComputedStyle(higherNode).zIndex, 10) || 0;\n const lowerIndex = parseInt(win.getWindow(lowerNode).getComputedStyle(lowerNode).zIndex, 10) || 0;\n return higherIndex >= lowerIndex;\n}\n\nexport function matchesUpTo(element, selector, limit) {\n while (is.element(element)) {\n if (matchesSelector(element, selector)) {\n return true;\n }\n\n element = parentNode(element);\n\n if (element === limit) {\n return matchesSelector(element, selector);\n }\n }\n\n return false;\n}\nexport function getActualElement(element) {\n return element.correspondingUseElement || element;\n}\nexport function getScrollXY(relevantWindow) {\n relevantWindow = relevantWindow || win.window;\n return {\n x: relevantWindow.scrollX || relevantWindow.document.documentElement.scrollLeft,\n y: relevantWindow.scrollY || relevantWindow.document.documentElement.scrollTop\n };\n}\nexport function getElementClientRect(element) {\n const clientRect = element instanceof domObjects.SVGElement ? element.getBoundingClientRect() : element.getClientRects()[0];\n return clientRect && {\n left: clientRect.left,\n right: clientRect.right,\n top: clientRect.top,\n bottom: clientRect.bottom,\n width: clientRect.width || clientRect.right - clientRect.left,\n height: clientRect.height || clientRect.bottom - clientRect.top\n };\n}\nexport function getElementRect(element) {\n const clientRect = getElementClientRect(element);\n\n if (!browser.isIOS7 && clientRect) {\n const scroll = getScrollXY(win.getWindow(element));\n clientRect.left += scroll.x;\n clientRect.right += scroll.x;\n clientRect.top += scroll.y;\n clientRect.bottom += scroll.y;\n }\n\n return clientRect;\n}\nexport function getPath(node) {\n const path = [];\n\n while (node) {\n path.push(node);\n node = parentNode(node);\n }\n\n return path;\n}\nexport function trySelector(value) {\n if (!is.string(value)) {\n return false;\n } // an exception will be raised if it is invalid\n\n\n domObjects.document.querySelector(value);\n return true;\n}\n//# sourceMappingURL=domUtils.js.map","import { closest, getElementRect, parentNode } from \"./domUtils.js\";\nimport extend from \"./extend.js\";\nimport is from \"./is.js\";\nexport function getStringOptionResult(value, target, element) {\n if (value === 'parent') {\n return parentNode(element);\n }\n\n if (value === 'self') {\n return target.getRect(element);\n }\n\n return closest(element, value);\n}\nexport function resolveRectLike(value, target, element, functionArgs) {\n let returnValue = value;\n\n if (is.string(returnValue)) {\n returnValue = getStringOptionResult(returnValue, target, element);\n } else if (is.func(returnValue)) {\n returnValue = returnValue(...functionArgs);\n }\n\n if (is.element(returnValue)) {\n returnValue = getElementRect(returnValue);\n }\n\n return returnValue;\n}\nexport function rectToXY(rect) {\n return rect && {\n x: 'x' in rect ? rect.x : rect.left,\n y: 'y' in rect ? rect.y : rect.top\n };\n}\nexport function xywhToTlbr(rect) {\n if (rect && !('left' in rect && 'top' in rect)) {\n rect = extend({}, rect);\n rect.left = rect.x || 0;\n rect.top = rect.y || 0;\n rect.right = rect.right || rect.left + rect.width;\n rect.bottom = rect.bottom || rect.top + rect.height;\n }\n\n return rect;\n}\nexport function tlbrToXywh(rect) {\n if (rect && !('x' in rect && 'y' in rect)) {\n rect = extend({}, rect);\n rect.x = rect.left || 0;\n rect.y = rect.top || 0;\n rect.width = rect.width || (rect.right || 0) - rect.x;\n rect.height = rect.height || (rect.bottom || 0) - rect.y;\n }\n\n return rect;\n}\nexport function addEdges(edges, rect, delta) {\n if (edges.left) {\n rect.left += delta.x;\n }\n\n if (edges.right) {\n rect.right += delta.x;\n }\n\n if (edges.top) {\n rect.top += delta.y;\n }\n\n if (edges.bottom) {\n rect.bottom += delta.y;\n }\n\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n}\n//# sourceMappingURL=rect.js.map","import { rectToXY, resolveRectLike } from \"./rect.js\";\nexport default function (target, element, actionName) {\n const actionOptions = target.options[actionName];\n const actionOrigin = actionOptions && actionOptions.origin;\n const origin = actionOrigin || target.options.origin;\n const originRect = resolveRectLike(origin, target, element, [target && element]);\n return rectToXY(originRect) || {\n x: 0,\n y: 0\n };\n}\n//# sourceMappingURL=getOriginXY.js.map","export default ((x, y) => Math.sqrt(x * x + y * y));\n//# sourceMappingURL=hypot.js.map","export class BaseEvent {\n constructor(interaction) {\n this.type = void 0;\n this.target = void 0;\n this.currentTarget = void 0;\n this.interactable = void 0;\n this._interaction = void 0;\n this.timeStamp = void 0;\n this.immediatePropagationStopped = false;\n this.propagationStopped = false;\n this._interaction = interaction;\n }\n\n preventDefault() {}\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n\n} // defined outside of class definition to avoid assignment of undefined during\n// construction\n\n// getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\nObject.defineProperty(BaseEvent.prototype, 'interaction', {\n get() {\n return this._interaction._proxy;\n },\n\n set() {}\n\n});\n//# sourceMappingURL=BaseEvent.js.map","// eslint-disable-next-line @typescript-eslint/no-empty-interface\n// export interface Options extends BaseDefaults, PerActionDefaults {}\nexport const defaults = {\n base: {\n preventDefault: 'auto',\n deltaSource: 'page'\n },\n perAction: {\n enabled: false,\n origin: {\n x: 0,\n y: 0\n }\n },\n actions: {}\n};\n//# sourceMappingURL=defaultOptions.js.map","import extend from \"../utils/extend.js\";\nimport getOriginXY from \"../utils/getOriginXY.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { BaseEvent } from \"./BaseEvent.js\";\nimport { defaults } from \"./defaultOptions.js\";\nexport class InteractEvent extends BaseEvent {\n // resize\n\n /** */\n constructor(interaction, event, actionName, phase, element, preEnd, type) {\n super(interaction);\n this.target = void 0;\n this.currentTarget = void 0;\n this.relatedTarget = null;\n this.screenX = void 0;\n this.screenY = void 0;\n this.button = void 0;\n this.buttons = void 0;\n this.ctrlKey = void 0;\n this.shiftKey = void 0;\n this.altKey = void 0;\n this.metaKey = void 0;\n this.page = void 0;\n this.client = void 0;\n this.delta = void 0;\n this.rect = void 0;\n this.x0 = void 0;\n this.y0 = void 0;\n this.t0 = void 0;\n this.dt = void 0;\n this.duration = void 0;\n this.clientX0 = void 0;\n this.clientY0 = void 0;\n this.velocity = void 0;\n this.speed = void 0;\n this.swipe = void 0;\n this.timeStamp = void 0;\n this.axes = void 0;\n this.preEnd = void 0;\n element = element || interaction.element;\n const target = interaction.interactable;\n const deltaSource = (target && target.options || defaults).deltaSource;\n const origin = getOriginXY(target, element, actionName);\n const starting = phase === 'start';\n const ending = phase === 'end';\n const prevEvent = starting ? this : interaction.prevEvent;\n const coords = starting ? interaction.coords.start : ending ? {\n page: prevEvent.page,\n client: prevEvent.client,\n timeStamp: interaction.coords.cur.timeStamp\n } : interaction.coords.cur;\n this.page = extend({}, coords.page);\n this.client = extend({}, coords.client);\n this.rect = extend({}, interaction.rect);\n this.timeStamp = coords.timeStamp;\n\n if (!ending) {\n this.page.x -= origin.x;\n this.page.y -= origin.y;\n this.client.x -= origin.x;\n this.client.y -= origin.y;\n }\n\n this.ctrlKey = event.ctrlKey;\n this.altKey = event.altKey;\n this.shiftKey = event.shiftKey;\n this.metaKey = event.metaKey;\n this.button = event.button;\n this.buttons = event.buttons;\n this.target = element;\n this.currentTarget = element;\n this.preEnd = preEnd;\n this.type = type || actionName + (phase || '');\n this.interactable = target;\n this.t0 = starting ? interaction.pointers[interaction.pointers.length - 1].downTime : prevEvent.t0;\n this.x0 = interaction.coords.start.page.x - origin.x;\n this.y0 = interaction.coords.start.page.y - origin.y;\n this.clientX0 = interaction.coords.start.client.x - origin.x;\n this.clientY0 = interaction.coords.start.client.y - origin.y;\n\n if (starting || ending) {\n this.delta = {\n x: 0,\n y: 0\n };\n } else {\n this.delta = {\n x: this[deltaSource].x - prevEvent[deltaSource].x,\n y: this[deltaSource].y - prevEvent[deltaSource].y\n };\n }\n\n this.dt = interaction.coords.delta.timeStamp;\n this.duration = this.timeStamp - this.t0; // velocity and speed in pixels per second\n\n this.velocity = extend({}, interaction.coords.velocity[deltaSource]);\n this.speed = hypot(this.velocity.x, this.velocity.y);\n this.swipe = ending || phase === 'inertiastart' ? this.getSwipe() : null;\n }\n\n getSwipe() {\n const interaction = this._interaction;\n\n if (interaction.prevEvent.speed < 600 || this.timeStamp - interaction.prevEvent.timeStamp > 150) {\n return null;\n }\n\n let angle = 180 * Math.atan2(interaction.prevEvent.velocityY, interaction.prevEvent.velocityX) / Math.PI;\n const overlap = 22.5;\n\n if (angle < 0) {\n angle += 360;\n }\n\n const left = 135 - overlap <= angle && angle < 225 + overlap;\n const up = 225 - overlap <= angle && angle < 315 + overlap;\n const right = !left && (315 - overlap <= angle || angle < 45 + overlap);\n const down = !up && 45 - overlap <= angle && angle < 135 + overlap;\n return {\n up,\n down,\n left,\n right,\n angle,\n speed: interaction.prevEvent.speed,\n velocity: {\n x: interaction.prevEvent.velocityX,\n y: interaction.prevEvent.velocityY\n }\n };\n }\n\n preventDefault() {}\n /**\n * Don't call listeners on the remaining targets\n */\n\n\n stopImmediatePropagation() {\n this.immediatePropagationStopped = this.propagationStopped = true;\n }\n /**\n * Don't call any other listeners (even on the current target)\n */\n\n\n stopPropagation() {\n this.propagationStopped = true;\n }\n\n} // getters and setters defined here to support typescript 3.6 and below which\n// don't support getter and setters in .d.ts files\n\nObject.defineProperties(InteractEvent.prototype, {\n pageX: {\n get() {\n return this.page.x;\n },\n\n set(value) {\n this.page.x = value;\n }\n\n },\n pageY: {\n get() {\n return this.page.y;\n },\n\n set(value) {\n this.page.y = value;\n }\n\n },\n clientX: {\n get() {\n return this.client.x;\n },\n\n set(value) {\n this.client.x = value;\n }\n\n },\n clientY: {\n get() {\n return this.client.y;\n },\n\n set(value) {\n this.client.y = value;\n }\n\n },\n dx: {\n get() {\n return this.delta.x;\n },\n\n set(value) {\n this.delta.x = value;\n }\n\n },\n dy: {\n get() {\n return this.delta.y;\n },\n\n set(value) {\n this.delta.y = value;\n }\n\n },\n velocityX: {\n get() {\n return this.velocity.x;\n },\n\n set(value) {\n this.velocity.x = value;\n }\n\n },\n velocityY: {\n get() {\n return this.velocity.y;\n },\n\n set(value) {\n this.velocity.y = value;\n }\n\n }\n});\n//# sourceMappingURL=InteractEvent.js.map","export default function isNonNativeEvent(type, actions) {\n if (actions.phaselessTypes[type]) {\n return true;\n }\n\n for (const name in actions.map) {\n if (type.indexOf(name) === 0 && type.substr(name.length) in actions.phases) {\n return true;\n }\n }\n\n return false;\n}\n//# sourceMappingURL=isNonNativeEvent.js.map","/* eslint-disable no-dupe-class-members */\nimport * as arr from \"../utils/arr.js\";\nimport browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport { getElementRect, matchesUpTo, nodeContains, trySelector } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport normalizeListeners from \"../utils/normalizeListeners.js\";\nimport { getWindow } from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\n\n/** */\nexport class Interactable {\n /** @internal */\n get _defaults() {\n return {\n base: {},\n perAction: {},\n actions: {}\n };\n }\n\n /** */\n constructor(target, options, defaultContext, scopeEvents) {\n this.options = void 0;\n this._actions = void 0;\n this.target = void 0;\n this.events = new Eventable();\n this._context = void 0;\n this._win = void 0;\n this._doc = void 0;\n this._scopeEvents = void 0;\n this._rectChecker = void 0;\n this._actions = options.actions;\n this.target = target;\n this._context = options.context || defaultContext;\n this._win = getWindow(trySelector(target) ? this._context : target);\n this._doc = this._win.document;\n this._scopeEvents = scopeEvents;\n this.set(options);\n }\n\n setOnEvents(actionName, phases) {\n if (is.func(phases.onstart)) {\n this.on(`${actionName}start`, phases.onstart);\n }\n\n if (is.func(phases.onmove)) {\n this.on(`${actionName}move`, phases.onmove);\n }\n\n if (is.func(phases.onend)) {\n this.on(`${actionName}end`, phases.onend);\n }\n\n if (is.func(phases.oninertiastart)) {\n this.on(`${actionName}inertiastart`, phases.oninertiastart);\n }\n\n return this;\n }\n\n updatePerActionListeners(actionName, prev, cur) {\n if (is.array(prev) || is.object(prev)) {\n this.off(actionName, prev);\n }\n\n if (is.array(cur) || is.object(cur)) {\n this.on(actionName, cur);\n }\n }\n\n setPerAction(actionName, options) {\n const defaults = this._defaults; // for all the default per-action options\n\n for (const optionName_ in options) {\n const optionName = optionName_;\n const actionOptions = this.options[actionName];\n const optionValue = options[optionName]; // remove old event listeners and add new ones\n\n if (optionName === 'listeners') {\n this.updatePerActionListeners(actionName, actionOptions.listeners, optionValue);\n } // if the option value is an array\n\n\n if (is.array(optionValue)) {\n actionOptions[optionName] = arr.from(optionValue);\n } // if the option value is an object\n else if (is.plainObject(optionValue)) {\n // copy the object\n actionOptions[optionName] = extend(actionOptions[optionName] || {}, clone(optionValue)); // set anabled field to true if it exists in the defaults\n\n if (is.object(defaults.perAction[optionName]) && 'enabled' in defaults.perAction[optionName]) {\n actionOptions[optionName].enabled = optionValue.enabled !== false;\n }\n } // if the option value is a boolean and the default is an object\n else if (is.bool(optionValue) && is.object(defaults.perAction[optionName])) {\n actionOptions[optionName].enabled = optionValue;\n } // if it's anything else, do a plain assignment\n else {\n actionOptions[optionName] = optionValue;\n }\n }\n }\n /**\n * The default function to get an Interactables bounding rect. Can be\n * overridden using {@link Interactable.rectChecker}.\n *\n * @param {Element} [element] The element to measure.\n * @return {Rect} The object's bounding rectangle.\n */\n\n\n getRect(element) {\n element = element || (is.element(this.target) ? this.target : null);\n\n if (is.string(this.target)) {\n element = element || this._context.querySelector(this.target);\n }\n\n return getElementRect(element);\n }\n /**\n * Returns or sets the function used to calculate the interactable's\n * element's rectangle\n *\n * @param {function} [checker] A function which returns this Interactable's\n * bounding rectangle. See {@link Interactable.getRect}\n * @return {function | object} The checker function or this Interactable\n */\n\n\n rectChecker(checker) {\n if (is.func(checker)) {\n this._rectChecker = checker;\n\n this.getRect = element => {\n const rect = extend({}, this._rectChecker(element));\n\n if (!('width' in rect)) {\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n return rect;\n };\n\n return this;\n }\n\n if (checker === null) {\n delete this.getRect;\n delete this._rectChecker;\n return this;\n }\n\n return this.getRect;\n }\n\n _backCompatOption(optionName, newValue) {\n if (trySelector(newValue) || is.object(newValue)) {\n this.options[optionName] = newValue;\n\n for (const action in this._actions.map) {\n this.options[action][optionName] = newValue;\n }\n\n return this;\n }\n\n return this.options[optionName];\n }\n /**\n * Gets or sets the origin of the Interactable's element. The x and y\n * of the origin will be subtracted from action event coordinates.\n *\n * @param {Element | object | string} [origin] An HTML or SVG Element whose\n * rect will be used, an object eg. { x: 0, y: 0 } or string 'parent', 'self'\n * or any CSS selector\n *\n * @return {object} The current origin or this Interactable\n */\n\n\n origin(newValue) {\n return this._backCompatOption('origin', newValue);\n }\n /**\n * Returns or sets the mouse coordinate types used to calculate the\n * movement of the pointer.\n *\n * @param {string} [newValue] Use 'client' if you will be scrolling while\n * interacting; Use 'page' if you want autoScroll to work\n * @return {string | object} The current deltaSource or this Interactable\n */\n\n\n deltaSource(newValue) {\n if (newValue === 'page' || newValue === 'client') {\n this.options.deltaSource = newValue;\n return this;\n }\n\n return this.options.deltaSource;\n }\n /**\n * Gets the selector context Node of the Interactable. The default is\n * `window.document`.\n *\n * @return {Node} The context Node of this Interactable\n */\n\n\n context() {\n return this._context;\n }\n\n inContext(element) {\n return this._context === element.ownerDocument || nodeContains(this._context, element);\n }\n\n testIgnoreAllow(options, targetNode, eventTarget) {\n return !this.testIgnore(options.ignoreFrom, targetNode, eventTarget) && this.testAllow(options.allowFrom, targetNode, eventTarget);\n }\n\n testAllow(allowFrom, targetNode, element) {\n if (!allowFrom) {\n return true;\n }\n\n if (!is.element(element)) {\n return false;\n }\n\n if (is.string(allowFrom)) {\n return matchesUpTo(element, allowFrom, targetNode);\n } else if (is.element(allowFrom)) {\n return nodeContains(allowFrom, element);\n }\n\n return false;\n }\n\n testIgnore(ignoreFrom, targetNode, element) {\n if (!ignoreFrom || !is.element(element)) {\n return false;\n }\n\n if (is.string(ignoreFrom)) {\n return matchesUpTo(element, ignoreFrom, targetNode);\n } else if (is.element(ignoreFrom)) {\n return nodeContains(ignoreFrom, element);\n }\n\n return false;\n }\n /**\n * Calls listeners for the given InteractEvent type bound globally\n * and directly to this Interactable\n *\n * @param {InteractEvent} iEvent The InteractEvent object to be fired on this\n * Interactable\n * @return {Interactable} this Interactable\n */\n\n\n fire(iEvent) {\n this.events.fire(iEvent);\n return this;\n }\n\n _onOff(method, typeArg, listenerArg, options) {\n if (is.object(typeArg) && !is.array(typeArg)) {\n options = listenerArg;\n listenerArg = null;\n }\n\n const addRemove = method === 'on' ? 'add' : 'remove';\n const listeners = normalizeListeners(typeArg, listenerArg);\n\n for (let type in listeners) {\n if (type === 'wheel') {\n type = browser.wheelEvent;\n }\n\n for (const listener of listeners[type]) {\n // if it is an action event type\n if (isNonNativeEvent(type, this._actions)) {\n this.events[method](type, listener);\n } // delegated event\n else if (is.string(this.target)) {\n this._scopeEvents[`${addRemove}Delegate`](this.target, this._context, type, listener, options);\n } // remove listener from this Interactable's element\n else {\n this._scopeEvents[addRemove](this.target, type, listener, options);\n }\n }\n }\n\n return this;\n }\n /**\n * Binds a listener for an InteractEvent, pointerEvent or DOM event.\n *\n * @param {string | array | object} types The types of events to listen\n * for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * addEventListener\n * @return {Interactable} This Interactable\n */\n\n\n on(types, listener, options) {\n return this._onOff('on', types, listener, options);\n }\n /**\n * Removes an InteractEvent, pointerEvent or DOM event listener.\n *\n * @param {string | array | object} types The types of events that were\n * listened for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * removeEventListener\n * @return {Interactable} This Interactable\n */\n\n\n off(types, listener, options) {\n return this._onOff('off', types, listener, options);\n }\n /**\n * Reset the options of this Interactable\n *\n * @param {object} options The new settings to apply\n * @return {object} This Interactable\n */\n\n\n set(options) {\n const defaults = this._defaults;\n\n if (!is.object(options)) {\n options = {};\n }\n\n this.options = clone(defaults.base);\n\n for (const actionName_ in this._actions.methodDict) {\n const actionName = actionName_;\n const methodName = this._actions.methodDict[actionName];\n this.options[actionName] = {};\n this.setPerAction(actionName, extend(extend({}, defaults.perAction), defaults.actions[actionName]));\n this[methodName](options[actionName]);\n }\n\n for (const setting in options) {\n if (is.func(this[setting])) {\n this[setting](options[setting]);\n }\n }\n\n return this;\n }\n /**\n * Remove this interactable from the list of interactables and remove it's\n * action capabilities and event listeners\n */\n\n\n unset() {\n if (is.string(this.target)) {\n // remove delegated events\n for (const type in this._scopeEvents.delegatedEvents) {\n const delegated = this._scopeEvents.delegatedEvents[type];\n\n for (let i = delegated.length - 1; i >= 0; i--) {\n const {\n selector,\n context,\n listeners\n } = delegated[i];\n\n if (selector === this.target && context === this._context) {\n delegated.splice(i, 1);\n }\n\n for (let l = listeners.length - 1; l >= 0; l--) {\n this._scopeEvents.removeDelegate(this.target, this._context, type, listeners[l][0], listeners[l][1]);\n }\n }\n }\n } else {\n this._scopeEvents.remove(this.target, 'all');\n }\n }\n\n}\n//# sourceMappingURL=Interactable.js.map","import * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nexport class InteractableSet {\n // all set interactables\n constructor(scope) {\n this.list = [];\n this.selectorMap = {};\n this.scope = void 0;\n this.scope = scope;\n scope.addListeners({\n 'interactable:unset': ({\n interactable\n }) => {\n const {\n target,\n _context: context\n } = interactable;\n const targetMappings = is.string(target) ? this.selectorMap[target] : target[this.scope.id];\n const targetIndex = arr.findIndex(targetMappings, m => m.context === context);\n\n if (targetMappings[targetIndex]) {\n // Destroying mappingInfo's context and interactable\n targetMappings[targetIndex].context = null;\n targetMappings[targetIndex].interactable = null;\n }\n\n targetMappings.splice(targetIndex, 1);\n }\n });\n }\n\n new(target, options) {\n options = extend(options || {}, {\n actions: this.scope.actions\n });\n const interactable = new this.scope.Interactable(target, options, this.scope.document, this.scope.events);\n const mappingInfo = {\n context: interactable._context,\n interactable\n };\n this.scope.addDocument(interactable._doc);\n this.list.push(interactable);\n\n if (is.string(target)) {\n if (!this.selectorMap[target]) {\n this.selectorMap[target] = [];\n }\n\n this.selectorMap[target].push(mappingInfo);\n } else {\n if (!interactable.target[this.scope.id]) {\n Object.defineProperty(target, this.scope.id, {\n value: [],\n configurable: true\n });\n }\n\n target[this.scope.id].push(mappingInfo);\n }\n\n this.scope.fire('interactable:new', {\n target,\n options,\n interactable,\n win: this.scope._win\n });\n return interactable;\n }\n\n get(target, options) {\n const context = options && options.context || this.scope.document;\n const isSelector = is.string(target);\n const targetMappings = isSelector ? this.selectorMap[target] : target[this.scope.id];\n\n if (!targetMappings) {\n return null;\n }\n\n const found = arr.find(targetMappings, m => m.context === context && (isSelector || m.interactable.inContext(target)));\n return found && found.interactable;\n }\n\n forEachMatch(node, callback) {\n for (const interactable of this.list) {\n let ret;\n\n if ((is.string(interactable.target) // target is a selector and the element matches\n ? is.element(node) && domUtils.matchesSelector(node, interactable.target) : // target is the element\n node === interactable.target) && // the element is in context\n interactable.inContext(node)) {\n ret = callback(interactable);\n }\n\n if (ret !== undefined) {\n return ret;\n }\n }\n }\n\n}\n//# sourceMappingURL=InteractableSet.js.map","function pointerExtend(dest, source) {\n for (const prop in source) {\n const prefixedPropREs = pointerExtend.prefixedPropREs;\n let deprecated = false; // skip deprecated prefixed properties\n\n for (const vendor in prefixedPropREs) {\n if (prop.indexOf(vendor) === 0 && prefixedPropREs[vendor].test(prop)) {\n deprecated = true;\n break;\n }\n }\n\n if (!deprecated && typeof source[prop] !== 'function') {\n dest[prop] = source[prop];\n }\n }\n\n return dest;\n}\n\npointerExtend.prefixedPropREs = {\n webkit: /(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,\n moz: /(Pressure)$/\n};\nexport default pointerExtend;\n//# sourceMappingURL=pointerExtend.js.map","import browser from \"./browser.js\";\nimport dom from \"./domObjects.js\";\nimport * as domUtils from \"./domUtils.js\";\nimport hypot from \"./hypot.js\";\nimport is from \"./is.js\";\nimport pointerExtend from \"./pointerExtend.js\";\nexport function copyCoords(dest, src) {\n dest.page = dest.page || {};\n dest.page.x = src.page.x;\n dest.page.y = src.page.y;\n dest.client = dest.client || {};\n dest.client.x = src.client.x;\n dest.client.y = src.client.y;\n dest.timeStamp = src.timeStamp;\n}\nexport function setCoordDeltas(targetObj, prev, cur) {\n targetObj.page.x = cur.page.x - prev.page.x;\n targetObj.page.y = cur.page.y - prev.page.y;\n targetObj.client.x = cur.client.x - prev.client.x;\n targetObj.client.y = cur.client.y - prev.client.y;\n targetObj.timeStamp = cur.timeStamp - prev.timeStamp;\n}\nexport function setCoordVelocity(targetObj, delta) {\n const dt = Math.max(delta.timeStamp / 1000, 0.001);\n targetObj.page.x = delta.page.x / dt;\n targetObj.page.y = delta.page.y / dt;\n targetObj.client.x = delta.client.x / dt;\n targetObj.client.y = delta.client.y / dt;\n targetObj.timeStamp = dt;\n}\nexport function setZeroCoords(targetObj) {\n targetObj.page.x = 0;\n targetObj.page.y = 0;\n targetObj.client.x = 0;\n targetObj.client.y = 0;\n}\nexport function isNativePointer(pointer) {\n return pointer instanceof dom.Event || pointer instanceof dom.Touch;\n} // Get specified X/Y coords for mouse or event.touches[0]\n\nexport function getXY(type, pointer, xy) {\n xy = xy || {};\n type = type || 'page';\n xy.x = pointer[type + 'X'];\n xy.y = pointer[type + 'Y'];\n return xy;\n}\nexport function getPageXY(pointer, page) {\n page = page || {\n x: 0,\n y: 0\n }; // Opera Mobile handles the viewport and scrolling oddly\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n getXY('screen', pointer, page);\n page.x += window.scrollX;\n page.y += window.scrollY;\n } else {\n getXY('page', pointer, page);\n }\n\n return page;\n}\nexport function getClientXY(pointer, client) {\n client = client || {};\n\n if (browser.isOperaMobile && isNativePointer(pointer)) {\n // Opera Mobile handles the viewport and scrolling oddly\n getXY('screen', pointer, client);\n } else {\n getXY('client', pointer, client);\n }\n\n return client;\n}\nexport function getPointerId(pointer) {\n return is.number(pointer.pointerId) ? pointer.pointerId : pointer.identifier;\n}\nexport function setCoords(dest, pointers, timeStamp) {\n const pointer = pointers.length > 1 ? pointerAverage(pointers) : pointers[0];\n getPageXY(pointer, dest.page);\n getClientXY(pointer, dest.client);\n dest.timeStamp = timeStamp;\n}\nexport function getTouchPair(event) {\n const touches = []; // array of touches is supplied\n\n if (is.array(event)) {\n touches[0] = event[0];\n touches[1] = event[1];\n } // an event\n else {\n if (event.type === 'touchend') {\n if (event.touches.length === 1) {\n touches[0] = event.touches[0];\n touches[1] = event.changedTouches[0];\n } else if (event.touches.length === 0) {\n touches[0] = event.changedTouches[0];\n touches[1] = event.changedTouches[1];\n }\n } else {\n touches[0] = event.touches[0];\n touches[1] = event.touches[1];\n }\n }\n\n return touches;\n}\nexport function pointerAverage(pointers) {\n const average = {\n pageX: 0,\n pageY: 0,\n clientX: 0,\n clientY: 0,\n screenX: 0,\n screenY: 0\n };\n\n for (const pointer of pointers) {\n for (const prop in average) {\n average[prop] += pointer[prop];\n }\n }\n\n for (const prop in average) {\n average[prop] /= pointers.length;\n }\n\n return average;\n}\nexport function touchBBox(event) {\n if (!event.length) {\n return null;\n }\n\n const touches = getTouchPair(event);\n const minX = Math.min(touches[0].pageX, touches[1].pageX);\n const minY = Math.min(touches[0].pageY, touches[1].pageY);\n const maxX = Math.max(touches[0].pageX, touches[1].pageX);\n const maxY = Math.max(touches[0].pageY, touches[1].pageY);\n return {\n x: minX,\n y: minY,\n left: minX,\n top: minY,\n right: maxX,\n bottom: maxY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nexport function touchDistance(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[0][sourceX] - touches[1][sourceX];\n const dy = touches[0][sourceY] - touches[1][sourceY];\n return hypot(dx, dy);\n}\nexport function touchAngle(event, deltaSource) {\n const sourceX = deltaSource + 'X';\n const sourceY = deltaSource + 'Y';\n const touches = getTouchPair(event);\n const dx = touches[1][sourceX] - touches[0][sourceX];\n const dy = touches[1][sourceY] - touches[0][sourceY];\n const angle = 180 * Math.atan2(dy, dx) / Math.PI;\n return angle;\n}\nexport function getPointerType(pointer) {\n return is.string(pointer.pointerType) ? pointer.pointerType : is.number(pointer.pointerType) ? [undefined, undefined, 'touch', 'pen', 'mouse'][pointer.pointerType] // if the PointerEvent API isn't available, then the \"pointer\" must\n // be either a MouseEvent, TouchEvent, or Touch object\n : /touch/.test(pointer.type) || pointer instanceof dom.Touch ? 'touch' : 'mouse';\n} // [ event.target, event.currentTarget ]\n\nexport function getEventTargets(event) {\n const path = is.func(event.composedPath) ? event.composedPath() : event.path;\n return [domUtils.getActualElement(path ? path[0] : event.target), domUtils.getActualElement(event.currentTarget)];\n}\nexport function newCoords() {\n return {\n page: {\n x: 0,\n y: 0\n },\n client: {\n x: 0,\n y: 0\n },\n timeStamp: 0\n };\n}\nexport function coordsToEvent(coords) {\n const event = {\n coords,\n\n get page() {\n return this.coords.page;\n },\n\n get client() {\n return this.coords.client;\n },\n\n get timeStamp() {\n return this.coords.timeStamp;\n },\n\n get pageX() {\n return this.coords.page.x;\n },\n\n get pageY() {\n return this.coords.page.y;\n },\n\n get clientX() {\n return this.coords.client.x;\n },\n\n get clientY() {\n return this.coords.client.y;\n },\n\n get pointerId() {\n return this.coords.pointerId;\n },\n\n get target() {\n return this.coords.target;\n },\n\n get type() {\n return this.coords.type;\n },\n\n get pointerType() {\n return this.coords.pointerType;\n },\n\n get buttons() {\n return this.coords.buttons;\n },\n\n preventDefault() {}\n\n };\n return event;\n}\nexport { pointerExtend };\n//# sourceMappingURL=pointerUtils.js.map","import { Scope } from \"./scope.js\";\nimport * as arr from \"../utils/arr.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport pExtend from \"../utils/pointerExtend.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\n\nfunction install(scope) {\n const targets = [];\n const delegatedEvents = {};\n const documents = [];\n const eventsMethods = {\n add,\n remove,\n addDelegate,\n removeDelegate,\n delegateListener,\n delegateUseCapture,\n delegatedEvents,\n documents,\n targets,\n supportsOptions: false,\n supportsPassive: false\n }; // check if browser supports passive events and options arg\n\n scope.document.createElement('div').addEventListener('test', null, {\n get capture() {\n return eventsMethods.supportsOptions = true;\n },\n\n get passive() {\n return eventsMethods.supportsPassive = true;\n }\n\n });\n scope.events = eventsMethods;\n\n function add(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n let target = arr.find(targets, t => t.eventTarget === eventTarget);\n\n if (!target) {\n target = {\n eventTarget,\n events: {}\n };\n targets.push(target);\n }\n\n if (!target.events[type]) {\n target.events[type] = [];\n }\n\n if (eventTarget.addEventListener && !arr.contains(target.events[type], listener)) {\n eventTarget.addEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n target.events[type].push(listener);\n }\n }\n\n function remove(eventTarget, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const targetIndex = arr.findIndex(targets, t => t.eventTarget === eventTarget);\n const target = targets[targetIndex];\n\n if (!target || !target.events) {\n return;\n }\n\n if (type === 'all') {\n for (type in target.events) {\n if (target.events.hasOwnProperty(type)) {\n remove(eventTarget, type, 'all');\n }\n }\n\n return;\n }\n\n let typeIsEmpty = false;\n const typeListeners = target.events[type];\n\n if (typeListeners) {\n if (listener === 'all') {\n for (let i = typeListeners.length - 1; i >= 0; i--) {\n remove(eventTarget, type, typeListeners[i], options);\n }\n\n return;\n } else {\n for (let i = 0; i < typeListeners.length; i++) {\n if (typeListeners[i] === listener) {\n eventTarget.removeEventListener(type, listener, eventsMethods.supportsOptions ? options : options.capture);\n typeListeners.splice(i, 1);\n\n if (typeListeners.length === 0) {\n delete target.events[type];\n typeIsEmpty = true;\n }\n\n break;\n }\n }\n }\n }\n\n if (typeIsEmpty && !Object.keys(target.events).length) {\n targets.splice(targetIndex, 1);\n }\n }\n\n function addDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n\n if (!delegatedEvents[type]) {\n delegatedEvents[type] = []; // add delegate listener functions\n\n for (const doc of documents) {\n add(doc, type, delegateListener);\n add(doc, type, delegateUseCapture, true);\n }\n }\n\n const delegates = delegatedEvents[type];\n let delegate = arr.find(delegates, d => d.selector === selector && d.context === context);\n\n if (!delegate) {\n delegate = {\n selector,\n context,\n listeners: []\n };\n delegates.push(delegate);\n }\n\n delegate.listeners.push([listener, options]);\n }\n\n function removeDelegate(selector, context, type, listener, optionalArg) {\n const options = getOptions(optionalArg);\n const delegates = delegatedEvents[type];\n let matchFound = false;\n let index;\n\n if (!delegates) {\n return;\n } // count from last index of delegated to 0\n\n\n for (index = delegates.length - 1; index >= 0; index--) {\n const cur = delegates[index]; // look for matching selector and context Node\n\n if (cur.selector === selector && cur.context === context) {\n const {\n listeners\n } = cur; // each item of the listeners array is an array: [function, capture, passive]\n\n for (let i = listeners.length - 1; i >= 0; i--) {\n const [fn, {\n capture,\n passive\n }] = listeners[i]; // check if the listener functions and capture and passive flags match\n\n if (fn === listener && capture === options.capture && passive === options.passive) {\n // remove the listener from the array of listeners\n listeners.splice(i, 1); // if all listeners for this target have been removed\n // remove the target from the delegates array\n\n if (!listeners.length) {\n delegates.splice(index, 1); // remove delegate function from context\n\n remove(context, type, delegateListener);\n remove(context, type, delegateUseCapture, true);\n } // only remove one listener\n\n\n matchFound = true;\n break;\n }\n }\n\n if (matchFound) {\n break;\n }\n }\n }\n } // bound to the interactable context when a DOM event\n // listener is added to a selector interactable\n\n\n function delegateListener(event, optionalArg) {\n const options = getOptions(optionalArg);\n const fakeEvent = new FakeEvent(event);\n const delegates = delegatedEvents[event.type];\n const [eventTarget] = pointerUtils.getEventTargets(event);\n let element = eventTarget; // climb up document tree looking for selector matches\n\n while (is.element(element)) {\n for (let i = 0; i < delegates.length; i++) {\n const cur = delegates[i];\n const {\n selector,\n context\n } = cur;\n\n if (domUtils.matchesSelector(element, selector) && domUtils.nodeContains(context, eventTarget) && domUtils.nodeContains(context, element)) {\n const {\n listeners\n } = cur;\n fakeEvent.currentTarget = element;\n\n for (const [fn, {\n capture,\n passive\n }] of listeners) {\n if (capture === options.capture && passive === options.passive) {\n fn(fakeEvent);\n }\n }\n }\n }\n\n element = domUtils.parentNode(element);\n }\n }\n\n function delegateUseCapture(event) {\n return delegateListener.call(this, event, true);\n } // for type inferrence\n\n\n return eventsMethods;\n}\n\nclass FakeEvent {\n constructor(originalEvent) {\n this.currentTarget = void 0;\n this.originalEvent = void 0;\n this.type = void 0;\n this.originalEvent = originalEvent; // duplicate the event so that currentTarget can be changed\n\n pExtend(this, originalEvent);\n }\n\n preventOriginalDefault() {\n this.originalEvent.preventDefault();\n }\n\n stopPropagation() {\n this.originalEvent.stopPropagation();\n }\n\n stopImmediatePropagation() {\n this.originalEvent.stopImmediatePropagation();\n }\n\n}\n\nfunction getOptions(param) {\n if (!is.object(param)) {\n return {\n capture: !!param,\n passive: false\n };\n }\n\n const options = extend({}, param);\n options.capture = !!param.capture;\n options.passive = !!param.passive;\n return options;\n}\n\nexport default {\n id: 'events',\n install\n};\n//# sourceMappingURL=events.js.map","import { window } from \"./window.js\";\nexport function warnOnce(method, message) {\n let warned = false;\n return function () {\n if (!warned) {\n window.console.warn(message);\n warned = true;\n }\n\n return method.apply(this, arguments);\n };\n}\nexport function copyAction(dest, src) {\n dest.name = src.name;\n dest.axis = src.axis;\n dest.edges = src.edges;\n return dest;\n}\n//# sourceMappingURL=misc.js.map","/** @module interact */\nimport browser from \"../utils/browser.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport { warnOnce } from \"../utils/misc.js\";\nimport isNonNativeEvent from \"./isNonNativeEvent.js\";\nexport function createInteractStatic(scope) {\n /**\n * ```js\n * interact('#draggable').draggable(true)\n *\n * var rectables = interact('rect')\n * rectables\n * .gesturable(true)\n * .on('gesturemove', function (event) {\n * // ...\n * })\n * ```\n *\n * The methods of this variable can be used to set elements as interactables\n * and also to change various default settings.\n *\n * Calling it as a function and passing an element or a valid CSS selector\n * string returns an Interactable object which has various methods to configure\n * it.\n *\n * @global\n *\n * @param {Element | string} target The HTML or SVG Element to interact with\n * or CSS selector\n * @return {Interactable}\n */\n const interact = (target, options) => {\n let interactable = scope.interactables.get(target, options);\n\n if (!interactable) {\n interactable = scope.interactables.new(target, options);\n interactable.events.global = interact.globalEvents;\n }\n\n return interactable;\n }; // expose the functions used to calculate multi-touch properties\n\n\n interact.getPointerAverage = pointerUtils.pointerAverage;\n interact.getTouchBBox = pointerUtils.touchBBox;\n interact.getTouchDistance = pointerUtils.touchDistance;\n interact.getTouchAngle = pointerUtils.touchAngle;\n interact.getElementRect = domUtils.getElementRect;\n interact.getElementClientRect = domUtils.getElementClientRect;\n interact.matchesSelector = domUtils.matchesSelector;\n interact.closest = domUtils.closest;\n interact.globalEvents = {}; // eslint-disable-next-line no-undef\n\n interact.version = \"1.10.2\";\n interact.scope = scope;\n /**\n * Use a plugin\n *\n * @alias module:interact.use\n *\n */\n\n interact.use = function (plugin, options) {\n this.scope.usePlugin(plugin, options);\n return this;\n };\n /**\n * Check if an element or selector has been set with the {@link interact}\n * function\n *\n * @alias module:interact.isSet\n *\n * @param {Target} target The Element or string being searched for\n * @param {object} options\n * @return {boolean} Indicates if the element or CSS selector was previously\n * passed to interact\n */\n\n\n interact.isSet = function (target, options) {\n return !!this.scope.interactables.get(target, options && options.context);\n };\n /**\n * @deprecated\n * Add a global listener for an InteractEvent or adds a DOM event to `document`\n *\n * @alias module:interact.on\n *\n * @param {string | array | object} type The types of events to listen for\n * @param {function} listener The function event (s)\n * @param {object | boolean} [options] object or useCapture flag for\n * addEventListener\n * @return {object} interact\n */\n\n\n interact.on = warnOnce(function on(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.on(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.on(prop, type[prop], listener);\n }\n\n return this;\n } // if it is an InteractEvent type, add listener to globalEvents\n\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n // if this type of event was never bound\n if (!this.globalEvents[type]) {\n this.globalEvents[type] = [listener];\n } else {\n this.globalEvents[type].push(listener);\n }\n } // If non InteractEvent type, addEventListener to document\n else {\n this.scope.events.add(this.scope.document, type, listener, {\n options\n });\n }\n\n return this;\n }, 'The interact.on() method is being deprecated');\n /**\n * @deprecated\n * Removes a global InteractEvent listener or DOM event from `document`\n *\n * @alias module:interact.off\n *\n * @param {string | array | object} type The types of events that were listened\n * for\n * @param {function} listener The listener function to be removed\n * @param {object | boolean} options [options] object or useCapture flag for\n * removeEventListener\n * @return {object} interact\n */\n\n interact.off = warnOnce(function off(type, listener, options) {\n if (is.string(type) && type.search(' ') !== -1) {\n type = type.trim().split(/ +/);\n }\n\n if (is.array(type)) {\n for (const eventType of type) {\n this.off(eventType, listener, options);\n }\n\n return this;\n }\n\n if (is.object(type)) {\n for (const prop in type) {\n this.off(prop, type[prop], listener);\n }\n\n return this;\n }\n\n if (isNonNativeEvent(type, this.scope.actions)) {\n let index;\n\n if (type in this.globalEvents && (index = this.globalEvents[type].indexOf(listener)) !== -1) {\n this.globalEvents[type].splice(index, 1);\n }\n } else {\n this.scope.events.remove(this.scope.document, type, listener, options);\n }\n\n return this;\n }, 'The interact.off() method is being deprecated');\n\n interact.debug = function () {\n return this.scope;\n };\n /**\n * @alias module:interact.supportsTouch\n *\n * @return {boolean} Whether or not the browser supports touch input\n */\n\n\n interact.supportsTouch = function () {\n return browser.supportsTouch;\n };\n /**\n * @alias module:interact.supportsPointerEvent\n *\n * @return {boolean} Whether or not the browser supports PointerEvents\n */\n\n\n interact.supportsPointerEvent = function () {\n return browser.supportsPointerEvent;\n };\n /**\n * Cancels all interactions (end events are not fired)\n *\n * @alias module:interact.stop\n *\n * @return {object} interact\n */\n\n\n interact.stop = function () {\n for (const interaction of this.scope.interactions.list) {\n interaction.stop();\n }\n\n return this;\n };\n /**\n * Returns or sets the distance the pointer must be moved before an action\n * sequence occurs. This also affects tolerance for tap events.\n *\n * @alias module:interact.pointerMoveTolerance\n *\n * @param {number} [newValue] The movement from the start position must be greater than this value\n * @return {interact | number}\n */\n\n\n interact.pointerMoveTolerance = function (newValue) {\n if (is.number(newValue)) {\n this.scope.interactions.pointerMoveTolerance = newValue;\n return this;\n }\n\n return this.scope.interactions.pointerMoveTolerance;\n };\n\n interact.addDocument = function (doc, options) {\n this.scope.addDocument(doc, options);\n };\n\n interact.removeDocument = function (doc) {\n this.scope.removeDocument(doc);\n };\n\n return interact;\n}\n//# sourceMappingURL=interactStatic.js.map","export class PointerInfo {\n constructor(id, pointer, event, downTime, downTarget) {\n this.id = void 0;\n this.pointer = void 0;\n this.event = void 0;\n this.downTime = void 0;\n this.downTarget = void 0;\n this.id = id;\n this.pointer = pointer;\n this.event = event;\n this.downTime = downTime;\n this.downTarget = downTarget;\n }\n\n}\n//# sourceMappingURL=PointerInfo.js.map","import * as arr from \"../utils/arr.js\";\nimport extend from \"../utils/extend.js\";\nimport hypot from \"../utils/hypot.js\";\nimport { warnOnce, copyAction } from \"../utils/misc.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { PointerInfo } from \"./PointerInfo.js\";\nexport let _ProxyValues;\n\n(function (_ProxyValues) {\n _ProxyValues[\"interactable\"] = \"\";\n _ProxyValues[\"element\"] = \"\";\n _ProxyValues[\"prepared\"] = \"\";\n _ProxyValues[\"pointerIsDown\"] = \"\";\n _ProxyValues[\"pointerWasMoved\"] = \"\";\n _ProxyValues[\"_proxy\"] = \"\";\n})(_ProxyValues || (_ProxyValues = {}));\n\nexport let _ProxyMethods;\n\n(function (_ProxyMethods) {\n _ProxyMethods[\"start\"] = \"\";\n _ProxyMethods[\"move\"] = \"\";\n _ProxyMethods[\"end\"] = \"\";\n _ProxyMethods[\"stop\"] = \"\";\n _ProxyMethods[\"interacting\"] = \"\";\n})(_ProxyMethods || (_ProxyMethods = {}));\n\nlet idCounter = 0;\nexport class Interaction {\n // current interactable being interacted with\n // the target element of the interactable\n // action that's ready to be fired on next move event\n // keep track of added pointers\n // pointerdown/mousedown/touchstart event\n // previous action event\n\n /** @internal */\n get pointerMoveTolerance() {\n return 1;\n }\n /**\n * @alias Interaction.prototype.move\n */\n\n\n /** */\n constructor({\n pointerType,\n scopeFire\n }) {\n this.interactable = null;\n this.element = null;\n this.rect = void 0;\n this._rects = void 0;\n this.edges = void 0;\n this._scopeFire = void 0;\n this.prepared = {\n name: null,\n axis: null,\n edges: null\n };\n this.pointerType = void 0;\n this.pointers = [];\n this.downEvent = null;\n this.downPointer = {};\n this._latestPointer = {\n pointer: null,\n event: null,\n eventTarget: null\n };\n this.prevEvent = null;\n this.pointerIsDown = false;\n this.pointerWasMoved = false;\n this._interacting = false;\n this._ending = false;\n this._stopped = true;\n this._proxy = null;\n this.simulation = null;\n this.doMove = warnOnce(function (signalArg) {\n this.move(signalArg);\n }, 'The interaction.doMove() method has been renamed to interaction.move()');\n this.coords = {\n // Starting InteractEvent pointer coordinates\n start: pointerUtils.newCoords(),\n // Previous native pointer move event coordinates\n prev: pointerUtils.newCoords(),\n // current native pointer move event coordinates\n cur: pointerUtils.newCoords(),\n // Change in coordinates and time of the pointer\n delta: pointerUtils.newCoords(),\n // pointer velocity\n velocity: pointerUtils.newCoords()\n };\n this._id = idCounter++;\n this._scopeFire = scopeFire;\n this.pointerType = pointerType;\n const that = this;\n this._proxy = {};\n\n for (const key in _ProxyValues) {\n Object.defineProperty(this._proxy, key, {\n get() {\n return that[key];\n }\n\n });\n }\n\n for (const key in _ProxyMethods) {\n Object.defineProperty(this._proxy, key, {\n value: (...args) => that[key](...args)\n });\n }\n\n this._scopeFire('interactions:new', {\n interaction: this\n });\n }\n\n pointerDown(pointer, event, eventTarget) {\n const pointerIndex = this.updatePointer(pointer, event, eventTarget, true);\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:down', {\n pointer,\n event,\n eventTarget,\n pointerIndex,\n pointerInfo,\n type: 'down',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable({\n * // disable the default drag start by down->move\n * manualStart: true\n * })\n * // start dragging after the user holds the pointer down\n * .on('hold', function (event) {\n * var interaction = event.interaction\n *\n * if (!interaction.interacting()) {\n * interaction.start({ name: 'drag' },\n * event.interactable,\n * event.currentTarget)\n * }\n * })\n * ```\n *\n * Start an action with the given Interactable and Element as tartgets. The\n * action must be enabled for the target Interactable and an appropriate\n * number of pointers must be held down - 1 for drag/resize, 2 for gesture.\n *\n * Use it with `interactable.able({ manualStart: false })` to always\n * [start actions manually](https://github.com/taye/interact.js/issues/114)\n *\n * @param {object} action The action to be performed - drag, resize, etc.\n * @param {Interactable} target The Interactable to target\n * @param {Element} element The DOM Element to target\n * @return {Boolean} Whether the interaction was successfully started\n */\n\n\n start(action, interactable, element) {\n if (this.interacting() || !this.pointerIsDown || this.pointers.length < (action.name === 'gesture' ? 2 : 1) || !interactable.options[action.name].enabled) {\n return false;\n }\n\n copyAction(this.prepared, action);\n this.interactable = interactable;\n this.element = element;\n this.rect = interactable.getRect(element);\n this.edges = this.prepared.edges ? extend({}, this.prepared.edges) : {\n left: true,\n right: true,\n top: true,\n bottom: true\n };\n this._stopped = false;\n this._interacting = this._doPhase({\n interaction: this,\n event: this.downEvent,\n phase: 'start'\n }) && !this._stopped;\n return this._interacting;\n }\n\n pointerMove(pointer, event, eventTarget) {\n if (!this.simulation && !(this.modification && this.modification.endResult)) {\n this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const duplicateMove = 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;\n let dx;\n let dy; // register movement greater than pointerMoveTolerance\n\n if (this.pointerIsDown && !this.pointerWasMoved) {\n dx = this.coords.cur.client.x - this.coords.start.client.x;\n dy = this.coords.cur.client.y - this.coords.start.client.y;\n this.pointerWasMoved = hypot(dx, dy) > this.pointerMoveTolerance;\n }\n\n const pointerIndex = this.getPointerIndex(pointer);\n const signalArg = {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n type: 'move',\n eventTarget,\n dx,\n dy,\n duplicate: duplicateMove,\n interaction: this\n };\n\n if (!duplicateMove) {\n // set pointer coordinate, time changes and velocity\n pointerUtils.setCoordVelocity(this.coords.velocity, this.coords.delta);\n }\n\n this._scopeFire('interactions:move', signalArg);\n\n if (!duplicateMove && !this.simulation) {\n // if interacting, fire an 'action-move' signal etc\n if (this.interacting()) {\n signalArg.type = null;\n this.move(signalArg);\n }\n\n if (this.pointerWasMoved) {\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n }\n }\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('dragmove', function (event) {\n * if (someCondition) {\n * // change the snap settings\n * event.interactable.draggable({ snap: { targets: [] }})\n * // fire another move event with re-calculated snap\n * event.interaction.move()\n * }\n * })\n * ```\n *\n * Force a move of the current action at the same coordinates. Useful if\n * snap/restrict has been changed and you want a movement with the new\n * settings.\n */\n\n\n move(signalArg) {\n if (!signalArg || !signalArg.event) {\n pointerUtils.setZeroCoords(this.coords.delta);\n }\n\n signalArg = extend({\n pointer: this._latestPointer.pointer,\n event: this._latestPointer.event,\n eventTarget: this._latestPointer.eventTarget,\n interaction: this\n }, signalArg || {});\n signalArg.phase = 'move';\n\n this._doPhase(signalArg);\n } // End interact move events and stop auto-scroll unless simulation is running\n\n\n pointerUp(pointer, event, eventTarget, curEventTarget) {\n let pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n pointerIndex = this.updatePointer(pointer, event, eventTarget, false);\n }\n\n const type = /cancel$/i.test(event.type) ? 'cancel' : 'up';\n\n this._scopeFire(`interactions:${type}`, {\n pointer,\n pointerIndex,\n pointerInfo: this.pointers[pointerIndex],\n event,\n eventTarget,\n type: type,\n curEventTarget,\n interaction: this\n });\n\n if (!this.simulation) {\n this.end(event);\n }\n\n this.removePointer(pointer, event);\n }\n\n documentBlur(event) {\n this.end(event);\n\n this._scopeFire('interactions:blur', {\n event,\n type: 'blur',\n interaction: this\n });\n }\n /**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('move', function (event) {\n * if (event.pageX > 1000) {\n * // end the current action\n * event.interaction.end()\n * // stop all further listeners from being called\n * event.stopImmediatePropagation()\n * }\n * })\n * ```\n *\n * @param {PointerEvent} [event]\n */\n\n\n end(event) {\n this._ending = true;\n event = event || this._latestPointer.event;\n let endPhaseResult;\n\n if (this.interacting()) {\n endPhaseResult = this._doPhase({\n event,\n interaction: this,\n phase: 'end'\n });\n }\n\n this._ending = false;\n\n if (endPhaseResult === true) {\n this.stop();\n }\n }\n\n currentAction() {\n return this._interacting ? this.prepared.name : null;\n }\n\n interacting() {\n return this._interacting;\n }\n /** */\n\n\n stop() {\n this._scopeFire('interactions:stop', {\n interaction: this\n });\n\n this.interactable = this.element = null;\n this._interacting = false;\n this._stopped = true;\n this.prepared.name = this.prevEvent = null;\n }\n\n getPointerIndex(pointer) {\n const pointerId = pointerUtils.getPointerId(pointer); // mouse and pen interactions may have only one pointer\n\n return this.pointerType === 'mouse' || this.pointerType === 'pen' ? this.pointers.length - 1 : arr.findIndex(this.pointers, curPointer => curPointer.id === pointerId);\n }\n\n getPointerInfo(pointer) {\n return this.pointers[this.getPointerIndex(pointer)];\n }\n\n updatePointer(pointer, event, eventTarget, down) {\n const id = pointerUtils.getPointerId(pointer);\n let pointerIndex = this.getPointerIndex(pointer);\n let pointerInfo = this.pointers[pointerIndex];\n down = down === false ? false : down || /(down|start)$/i.test(event.type);\n\n if (!pointerInfo) {\n pointerInfo = new PointerInfo(id, pointer, event, null, null);\n pointerIndex = this.pointers.length;\n this.pointers.push(pointerInfo);\n } else {\n pointerInfo.pointer = pointer;\n }\n\n pointerUtils.setCoords(this.coords.cur, this.pointers.map(p => p.pointer), this._now());\n pointerUtils.setCoordDeltas(this.coords.delta, this.coords.prev, this.coords.cur);\n\n if (down) {\n this.pointerIsDown = true;\n pointerInfo.downTime = this.coords.cur.timeStamp;\n pointerInfo.downTarget = eventTarget;\n pointerUtils.pointerExtend(this.downPointer, pointer);\n\n if (!this.interacting()) {\n pointerUtils.copyCoords(this.coords.start, this.coords.cur);\n pointerUtils.copyCoords(this.coords.prev, this.coords.cur);\n this.downEvent = event;\n this.pointerWasMoved = false;\n }\n }\n\n this._updateLatestPointer(pointer, event, eventTarget);\n\n this._scopeFire('interactions:update-pointer', {\n pointer,\n event,\n eventTarget,\n down,\n pointerInfo,\n pointerIndex,\n interaction: this\n });\n\n return pointerIndex;\n }\n\n removePointer(pointer, event) {\n const pointerIndex = this.getPointerIndex(pointer);\n\n if (pointerIndex === -1) {\n return;\n }\n\n const pointerInfo = this.pointers[pointerIndex];\n\n this._scopeFire('interactions:remove-pointer', {\n pointer,\n event,\n eventTarget: null,\n pointerIndex,\n pointerInfo,\n interaction: this\n });\n\n this.pointers.splice(pointerIndex, 1);\n this.pointerIsDown = false;\n }\n\n _updateLatestPointer(pointer, event, eventTarget) {\n this._latestPointer.pointer = pointer;\n this._latestPointer.event = event;\n this._latestPointer.eventTarget = eventTarget;\n }\n\n destroy() {\n this._latestPointer.pointer = null;\n this._latestPointer.event = null;\n this._latestPointer.eventTarget = null;\n }\n\n _createPreparedEvent(event, phase, preEnd, type) {\n return new InteractEvent(this, event, this.prepared.name, phase, this.element, preEnd, type);\n }\n\n _fireEvent(iEvent) {\n this.interactable.fire(iEvent);\n\n if (!this.prevEvent || iEvent.timeStamp >= this.prevEvent.timeStamp) {\n this.prevEvent = iEvent;\n }\n }\n\n _doPhase(signalArg) {\n const {\n event,\n phase,\n preEnd,\n type\n } = signalArg;\n const {\n rect\n } = this;\n\n if (rect && phase === 'move') {\n // update the rect changes due to pointer move\n rectUtils.addEdges(this.edges, rect, this.coords.delta[this.interactable.options.deltaSource]);\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n const beforeResult = this._scopeFire(`interactions:before-action-${phase}`, signalArg);\n\n if (beforeResult === false) {\n return false;\n }\n\n const iEvent = signalArg.iEvent = this._createPreparedEvent(event, phase, preEnd, type);\n\n this._scopeFire(`interactions:action-${phase}`, signalArg);\n\n if (phase === 'start') {\n this.prevEvent = iEvent;\n }\n\n this._fireEvent(iEvent);\n\n this._scopeFire(`interactions:after-action-${phase}`, signalArg);\n\n return true;\n }\n\n _now() {\n return Date.now();\n }\n\n}\nexport default Interaction;\nexport { PointerInfo };\n//# sourceMappingURL=Interaction.js.map","import { Interactable } from \"./Interactable.js\";\nimport { matchesSelector, nodeContains } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport { getWindow } from \"../utils/window.js\";\n\nfunction preventDefault(newValue) {\n if (/^(always|never|auto)$/.test(newValue)) {\n this.options.preventDefault = newValue;\n return this;\n }\n\n if (is.bool(newValue)) {\n this.options.preventDefault = newValue ? 'always' : 'never';\n return this;\n }\n\n return this.options.preventDefault;\n}\n\nfunction checkAndPreventDefault(interactable, scope, event) {\n const setting = interactable.options.preventDefault;\n\n if (setting === 'never') {\n return;\n }\n\n if (setting === 'always') {\n event.preventDefault();\n return;\n } // setting === 'auto'\n // if the browser supports passive event listeners and isn't running on iOS,\n // don't preventDefault of touch{start,move} events. CSS touch-action and\n // user-select should be used instead of calling event.preventDefault().\n\n\n if (scope.events.supportsPassive && /^touch(start|move)$/.test(event.type)) {\n const doc = getWindow(event.target).document;\n const docOptions = scope.getDocOptions(doc);\n\n if (!(docOptions && docOptions.events) || docOptions.events.passive !== false) {\n return;\n }\n } // don't preventDefault of pointerdown events\n\n\n if (/^(mouse|pointer|touch)*(down|start)/i.test(event.type)) {\n return;\n } // don't preventDefault on editable elements\n\n\n if (is.element(event.target) && matchesSelector(event.target, 'input,select,textarea,[contenteditable=true],[contenteditable=true] *')) {\n return;\n }\n\n event.preventDefault();\n}\n\nfunction onInteractionEvent({\n interaction,\n event\n}) {\n if (interaction.interactable) {\n interaction.interactable.checkAndPreventDefault(event);\n }\n}\n\nexport function install(scope) {\n /** @lends Interactable */\n const {\n Interactable\n } = scope;\n /**\n * Returns or sets whether to prevent the browser's default behaviour in\n * response to pointer events. Can be set to:\n * - `'always'` to always prevent\n * - `'never'` to never prevent\n * - `'auto'` to let interact.js try to determine what would be best\n *\n * @param {string} [newValue] `'always'`, `'never'` or `'auto'`\n * @return {string | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.preventDefault = preventDefault;\n\n Interactable.prototype.checkAndPreventDefault = function (event) {\n return checkAndPreventDefault(this, scope, event);\n }; // prevent native HTML5 drag on interact.js target elements\n\n\n scope.interactions.docEvents.push({\n type: 'dragstart',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n if (interaction.element && (interaction.element === event.target || nodeContains(interaction.element, event.target))) {\n interaction.interactable.checkAndPreventDefault(event);\n return;\n }\n }\n }\n\n });\n}\nexport default {\n id: 'core/interactablePreventDefault',\n install,\n listeners: ['down', 'move', 'up', 'cancel'].reduce((acc, eventType) => {\n acc[`interactions:${eventType}`] = onInteractionEvent;\n return acc;\n }, {})\n};\n//# sourceMappingURL=interactablePreventDefault.js.map","import * as dom from \"../utils/domUtils.js\";\nconst finder = {\n methodOrder: ['simulationResume', 'mouseOrPen', 'hasPointer', 'idle'],\n\n search(details) {\n for (const method of finder.methodOrder) {\n const interaction = finder[method](details);\n\n if (interaction) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // try to resume simulation with a new pointer\n simulationResume({\n pointerType,\n eventType,\n eventTarget,\n scope\n }) {\n if (!/down|start/i.test(eventType)) {\n return null;\n }\n\n for (const interaction of scope.interactions.list) {\n let element = eventTarget;\n\n if (interaction.simulation && interaction.simulation.allowResume && interaction.pointerType === pointerType) {\n while (element) {\n // if the element is the interaction element\n if (element === interaction.element) {\n return interaction;\n }\n\n element = dom.parentNode(element);\n }\n }\n }\n\n return null;\n },\n\n // if it's a mouse or pen interaction\n mouseOrPen({\n pointerId,\n pointerType,\n eventType,\n scope\n }) {\n if (pointerType !== 'mouse' && pointerType !== 'pen') {\n return null;\n }\n\n let firstNonActive;\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType) {\n // if it's a down event, skip interactions with running simulations\n if (interaction.simulation && !hasPointerId(interaction, pointerId)) {\n continue;\n } // if the interaction is active, return it immediately\n\n\n if (interaction.interacting()) {\n return interaction;\n } // otherwise save it and look for another active interaction\n else if (!firstNonActive) {\n firstNonActive = interaction;\n }\n }\n } // if no active mouse interaction was found use the first inactive mouse\n // interaction\n\n\n if (firstNonActive) {\n return firstNonActive;\n } // find any mouse or pen interaction.\n // ignore the interaction if the eventType is a *down, and a simulation\n // is active\n\n\n for (const interaction of scope.interactions.list) {\n if (interaction.pointerType === pointerType && !(/down/i.test(eventType) && interaction.simulation)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get interaction that has this pointer\n hasPointer({\n pointerId,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n if (hasPointerId(interaction, pointerId)) {\n return interaction;\n }\n }\n\n return null;\n },\n\n // get first idle interaction with a matching pointerType\n idle({\n pointerType,\n scope\n }) {\n for (const interaction of scope.interactions.list) {\n // if there's already a pointer held down\n if (interaction.pointers.length === 1) {\n const target = interaction.interactable; // don't add this pointer if there is a target interactable and it\n // isn't gesturable\n\n if (target && !(target.options.gesture && target.options.gesture.enabled)) {\n continue;\n }\n } // maximum of 2 pointers per interaction\n else if (interaction.pointers.length >= 2) {\n continue;\n }\n\n if (!interaction.interacting() && pointerType === interaction.pointerType) {\n return interaction;\n }\n }\n\n return null;\n }\n\n};\n\nfunction hasPointerId(interaction, pointerId) {\n return interaction.pointers.some(({\n id\n }) => id === pointerId);\n}\n\nexport default finder;\n//# sourceMappingURL=interactionFinder.js.map","import { Scope, SignalArgs } from \"./scope.js\";\nimport browser from \"../utils/browser.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { nodeContains } from \"../utils/domUtils.js\";\nimport * as pointerUtils from \"../utils/pointerUtils.js\";\nimport InteractionBase from \"./Interaction.js\";\nimport interactablePreventDefault from \"./interactablePreventDefault.js\";\nimport finder from \"./interactionFinder.js\";\nconst methodNames = ['pointerDown', 'pointerMove', 'pointerUp', 'updatePointer', 'removePointer', 'windowBlur'];\n\nfunction install(scope) {\n const listeners = {};\n\n for (const method of methodNames) {\n listeners[method] = doOnInteractions(method, scope);\n }\n\n const pEventTypes = browser.pEventTypes;\n let docEvents;\n\n if (domObjects.PointerEvent) {\n docEvents = [{\n type: pEventTypes.down,\n listener: releasePointersOnRemovedEls\n }, {\n type: pEventTypes.down,\n listener: listeners.pointerDown\n }, {\n type: pEventTypes.move,\n listener: listeners.pointerMove\n }, {\n type: pEventTypes.up,\n listener: listeners.pointerUp\n }, {\n type: pEventTypes.cancel,\n listener: listeners.pointerUp\n }];\n } else {\n docEvents = [{\n type: 'mousedown',\n listener: listeners.pointerDown\n }, {\n type: 'mousemove',\n listener: listeners.pointerMove\n }, {\n type: 'mouseup',\n listener: listeners.pointerUp\n }, {\n type: 'touchstart',\n listener: releasePointersOnRemovedEls\n }, {\n type: 'touchstart',\n listener: listeners.pointerDown\n }, {\n type: 'touchmove',\n listener: listeners.pointerMove\n }, {\n type: 'touchend',\n listener: listeners.pointerUp\n }, {\n type: 'touchcancel',\n listener: listeners.pointerUp\n }];\n }\n\n docEvents.push({\n type: 'blur',\n\n listener(event) {\n for (const interaction of scope.interactions.list) {\n interaction.documentBlur(event);\n }\n }\n\n }); // for ignoring browser's simulated mouse events\n\n scope.prevTouchTime = 0;\n scope.Interaction = class extends InteractionBase {\n get pointerMoveTolerance() {\n return scope.interactions.pointerMoveTolerance;\n }\n\n set pointerMoveTolerance(value) {\n scope.interactions.pointerMoveTolerance = value;\n }\n\n _now() {\n return scope.now();\n }\n\n };\n scope.interactions = {\n // all active and idle interactions\n list: [],\n\n new(options) {\n options.scopeFire = (name, arg) => scope.fire(name, arg);\n\n const interaction = new scope.Interaction(options);\n scope.interactions.list.push(interaction);\n return interaction;\n },\n\n listeners,\n docEvents,\n pointerMoveTolerance: 1\n };\n\n function releasePointersOnRemovedEls() {\n // for all inactive touch interactions with pointers down\n for (const interaction of scope.interactions.list) {\n if (!interaction.pointerIsDown || interaction.pointerType !== 'touch' || interaction._interacting) {\n continue;\n } // if a pointer is down on an element that is no longer in the DOM tree\n\n\n for (const pointer of interaction.pointers) {\n if (!scope.documents.some(({\n doc\n }) => nodeContains(doc, pointer.downTarget))) {\n // remove the pointer from the interaction\n interaction.removePointer(pointer.pointer, pointer.event);\n }\n }\n }\n }\n\n scope.usePlugin(interactablePreventDefault);\n}\n\nfunction doOnInteractions(method, scope) {\n return function (event) {\n const interactions = scope.interactions.list;\n const pointerType = pointerUtils.getPointerType(event);\n const [eventTarget, curEventTarget] = pointerUtils.getEventTargets(event);\n const matches = []; // [ [pointer, interaction], ...]\n\n if (/^touch/.test(event.type)) {\n scope.prevTouchTime = scope.now(); // @ts-expect-error\n\n for (const changedTouch of event.changedTouches) {\n const pointer = changedTouch;\n const pointerId = pointerUtils.getPointerId(pointer);\n const searchDetails = {\n pointer,\n pointerId,\n pointerType,\n eventType: event.type,\n eventTarget,\n curEventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } else {\n let invalidPointer = false;\n\n if (!browser.supportsPointerEvent && /mouse/.test(event.type)) {\n // ignore mouse events while touch interactions are active\n for (let i = 0; i < interactions.length && !invalidPointer; i++) {\n invalidPointer = interactions[i].pointerType !== 'mouse' && interactions[i].pointerIsDown;\n } // try to ignore mouse events that are simulated by the browser\n // after a touch event\n\n\n invalidPointer = invalidPointer || scope.now() - scope.prevTouchTime < 500 || // on iOS and Firefox Mobile, MouseEvent.timeStamp is zero if simulated\n event.timeStamp === 0;\n }\n\n if (!invalidPointer) {\n const searchDetails = {\n pointer: event,\n pointerId: pointerUtils.getPointerId(event),\n pointerType,\n eventType: event.type,\n curEventTarget,\n eventTarget,\n scope\n };\n const interaction = getInteraction(searchDetails);\n matches.push([searchDetails.pointer, searchDetails.eventTarget, searchDetails.curEventTarget, interaction]);\n }\n } // eslint-disable-next-line no-shadow\n\n\n for (const [pointer, eventTarget, curEventTarget, interaction] of matches) {\n interaction[method](pointer, event, eventTarget, curEventTarget);\n }\n };\n}\n\nfunction getInteraction(searchDetails) {\n const {\n pointerType,\n scope\n } = searchDetails;\n const foundInteraction = finder.search(searchDetails);\n const signalArg = {\n interaction: foundInteraction,\n searchDetails\n };\n scope.fire('interactions:find', signalArg);\n return signalArg.interaction || scope.interactions.new({\n pointerType\n });\n}\n\nfunction onDocSignal({\n doc,\n scope,\n options\n}, eventMethodName) {\n const {\n interactions: {\n docEvents\n },\n events\n } = scope;\n const eventMethod = events[eventMethodName];\n\n if (scope.browser.isIOS && !options.events) {\n options.events = {\n passive: false\n };\n } // delegate event listener\n\n\n for (const eventType in events.delegatedEvents) {\n eventMethod(doc, eventType, events.delegateListener);\n eventMethod(doc, eventType, events.delegateUseCapture, true);\n }\n\n const eventOptions = options && options.events;\n\n for (const {\n type,\n listener\n } of docEvents) {\n eventMethod(doc, type, listener, eventOptions);\n }\n}\n\nconst interactions = {\n id: 'core/interactions',\n install,\n listeners: {\n 'scope:add-document': arg => onDocSignal(arg, 'add'),\n 'scope:remove-document': arg => onDocSignal(arg, 'remove'),\n 'interactable:unset': ({\n interactable\n }, scope) => {\n // Stop and destroy related interactions when an Interactable is unset\n for (let i = scope.interactions.list.length - 1; i >= 0; i--) {\n const interaction = scope.interactions.list[i];\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interaction.stop();\n scope.fire('interactions:destroy', {\n interaction\n });\n interaction.destroy();\n\n if (scope.interactions.list.length > 2) {\n scope.interactions.list.splice(i, 1);\n }\n }\n }\n },\n onDocSignal,\n doOnInteractions,\n methodNames\n};\nexport default interactions;\n//# sourceMappingURL=interactions.js.map","import browser from \"../utils/browser.js\";\nimport clone from \"../utils/clone.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport extend from \"../utils/extend.js\";\nimport raf from \"../utils/raf.js\";\nimport * as win from \"../utils/window.js\";\nimport { Eventable } from \"./Eventable.js\";\nimport { InteractEvent } from \"./InteractEvent.js\";\nimport { Interactable as InteractableBase } from \"./Interactable.js\";\nimport { InteractableSet } from \"./InteractableSet.js\";\nimport { defaults } from \"./defaultOptions.js\";\nimport events from \"./events.js\";\nimport { createInteractStatic } from \"./interactStatic.js\";\nimport interactions from \"./interactions.js\";\nexport class Scope {\n // main window\n // main document\n // main window\n // all documents being listened to\n constructor() {\n this.id = `__interact_scope_${Math.floor(Math.random() * 100)}`;\n this.isInitialized = false;\n this.listenerMaps = [];\n this.browser = browser;\n this.defaults = clone(defaults);\n this.Eventable = Eventable;\n this.actions = {\n map: {},\n phases: {\n start: true,\n move: true,\n end: true\n },\n methodDict: {},\n phaselessTypes: {}\n };\n this.interactStatic = createInteractStatic(this);\n this.InteractEvent = InteractEvent;\n this.Interactable = void 0;\n this.interactables = new InteractableSet(this);\n this._win = void 0;\n this.document = void 0;\n this.window = void 0;\n this.documents = [];\n this._plugins = {\n list: [],\n map: {}\n };\n\n this.onWindowUnload = event => this.removeDocument(event.target);\n\n const scope = this;\n this.Interactable = class extends InteractableBase {\n get _defaults() {\n return scope.defaults;\n }\n\n set(options) {\n super.set(options);\n scope.fire('interactable:set', {\n options,\n interactable: this\n });\n return this;\n }\n\n unset() {\n super.unset();\n scope.interactables.list.splice(scope.interactables.list.indexOf(this), 1);\n scope.fire('interactable:unset', {\n interactable: this\n });\n }\n\n };\n }\n\n addListeners(map, id) {\n this.listenerMaps.push({\n id,\n map\n });\n }\n\n fire(name, arg) {\n for (const {\n map: {\n [name]: listener\n }\n } of this.listenerMaps) {\n if (!!listener && listener(arg, this, name) === false) {\n return false;\n }\n }\n }\n\n init(window) {\n return this.isInitialized ? this : initScope(this, window);\n }\n\n pluginIsInstalled(plugin) {\n return this._plugins.map[plugin.id] || this._plugins.list.indexOf(plugin) !== -1;\n }\n\n usePlugin(plugin, options) {\n if (!this.isInitialized) {\n return this;\n }\n\n if (this.pluginIsInstalled(plugin)) {\n return this;\n }\n\n if (plugin.id) {\n this._plugins.map[plugin.id] = plugin;\n }\n\n this._plugins.list.push(plugin);\n\n if (plugin.install) {\n plugin.install(this, options);\n }\n\n if (plugin.listeners && plugin.before) {\n let index = 0;\n const len = this.listenerMaps.length;\n const before = plugin.before.reduce((acc, id) => {\n acc[id] = true;\n acc[pluginIdRoot(id)] = true;\n return acc;\n }, {});\n\n for (; index < len; index++) {\n const otherId = this.listenerMaps[index].id;\n\n if (before[otherId] || before[pluginIdRoot(otherId)]) {\n break;\n }\n }\n\n this.listenerMaps.splice(index, 0, {\n id: plugin.id,\n map: plugin.listeners\n });\n } else if (plugin.listeners) {\n this.listenerMaps.push({\n id: plugin.id,\n map: plugin.listeners\n });\n }\n\n return this;\n }\n\n addDocument(doc, options) {\n // do nothing if document is already known\n if (this.getDocIndex(doc) !== -1) {\n return false;\n }\n\n const window = win.getWindow(doc);\n options = options ? extend({}, options) : {};\n this.documents.push({\n doc,\n options\n });\n this.events.documents.push(doc); // don't add an unload event for the main document\n // so that the page may be cached in browser history\n\n if (doc !== this.document) {\n this.events.add(window, 'unload', this.onWindowUnload);\n }\n\n this.fire('scope:add-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n removeDocument(doc) {\n const index = this.getDocIndex(doc);\n const window = win.getWindow(doc);\n const options = this.documents[index].options;\n this.events.remove(window, 'unload', this.onWindowUnload);\n this.documents.splice(index, 1);\n this.events.documents.splice(index, 1);\n this.fire('scope:remove-document', {\n doc,\n window,\n scope: this,\n options\n });\n }\n\n getDocIndex(doc) {\n for (let i = 0; i < this.documents.length; i++) {\n if (this.documents[i].doc === doc) {\n return i;\n }\n }\n\n return -1;\n }\n\n getDocOptions(doc) {\n const docIndex = this.getDocIndex(doc);\n return docIndex === -1 ? null : this.documents[docIndex].options;\n }\n\n now() {\n return (this.window.Date || Date).now();\n }\n\n}\nexport function initScope(scope, window) {\n scope.isInitialized = true;\n win.init(window);\n domObjects.init(window);\n browser.init(window);\n raf.init(window);\n scope.window = window;\n scope.document = window.document;\n scope.usePlugin(interactions);\n scope.usePlugin(events);\n return scope;\n}\n\nfunction pluginIdRoot(id) {\n return id && id.replace(/\\/.*$/, '');\n}\n//# sourceMappingURL=scope.js.map","import { Scope } from \"../core/scope.js\";\nconst scope = new Scope();\nconst interact = scope.interactStatic;\nexport default interact;\nexport const init = win => scope.init(win);\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../core/Interactable.js\";\nimport is from \"../utils/is.js\";\nimport { warnOnce } from \"../utils/misc.js\";\n\nfunction install(scope) {\n const {\n /** @lends Interactable */\n Interactable // tslint:disable-line no-shadowed-variable\n\n } = scope;\n\n Interactable.prototype.getAction = function getAction(pointer, event, interaction, element) {\n const action = defaultActionChecker(this, event, interaction, element, scope);\n\n if (this.options.actionChecker) {\n return this.options.actionChecker(pointer, event, action, this, element, interaction);\n }\n\n return action;\n };\n /**\n * If the target of the `mousedown`, `pointerdown` or `touchstart` event or any\n * of it's parents match the given CSS selector or Element, no\n * drag/resize/gesture is started.\n *\n * @deprecated\n * Don't use this method. Instead set the `ignoreFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .draggable({\n * ignoreFrom: 'input, textarea, a[href]'',\n * })\n * .pointerEvents({\n * ignoreFrom: '[no-pointer]',\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to not ignore any elements\n * @return {string | Element | object} The current ignoreFrom value or this\n * Interactable\n */\n\n\n Interactable.prototype.ignoreFrom = warnOnce(function (newValue) {\n return this._backCompatOption('ignoreFrom', newValue);\n }, 'Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue}).');\n /**\n *\n * A drag/resize/gesture is started only If the target of the `mousedown`,\n * `pointerdown` or `touchstart` event or any of it's parents match the given\n * CSS selector or Element.\n *\n * @deprecated\n * Don't use this method. Instead set the `allowFrom` option for each action\n * or for `pointerEvents`\n *\n * ```js\n * interact(targett)\n * .resizable({\n * allowFrom: '.resize-handle',\n * .pointerEvents({\n * allowFrom: '.handle',,\n * })\n * ```\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to allow from any element\n * @return {string | Element | object} The current allowFrom value or this\n * Interactable\n */\n\n Interactable.prototype.allowFrom = warnOnce(function (newValue) {\n return this._backCompatOption('allowFrom', newValue);\n }, 'Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue}).');\n /**\n * ```js\n * interact('.resize-drag')\n * .resizable(true)\n * .draggable(true)\n * .actionChecker(function (pointer, event, action, interactable, element, interaction) {\n *\n * if (interact.matchesSelector(event.target, '.drag-handle')) {\n * // force drag with handle target\n * action.name = drag\n * }\n * else {\n * // resize from the top and right edges\n * action.name = 'resize'\n * action.edges = { top: true, right: true }\n * }\n *\n * return action\n * })\n * ```\n *\n * Returns or sets the function used to check action to be performed on\n * pointerDown\n *\n * @param {function | null} [checker] A function which takes a pointer event,\n * defaultAction string, interactable, element and interaction as parameters\n * and returns an object with name property 'drag' 'resize' or 'gesture' and\n * optionally an `edges` object with boolean 'top', 'left', 'bottom' and right\n * props.\n * @return {Function | Interactable} The checker function or this Interactable\n */\n\n Interactable.prototype.actionChecker = actionChecker;\n /**\n * Returns or sets whether the the cursor should be changed depending on the\n * action that would be performed if the mouse were pressed and dragged.\n *\n * @param {boolean} [newValue]\n * @return {boolean | Interactable} The current setting or this Interactable\n */\n\n Interactable.prototype.styleCursor = styleCursor;\n}\n\nfunction defaultActionChecker(interactable, event, interaction, element, scope) {\n const rect = interactable.getRect(element);\n const buttons = event.buttons || {\n 0: 1,\n 1: 4,\n 3: 8,\n 4: 16\n }[event.button];\n const arg = {\n action: null,\n interactable,\n interaction,\n element,\n rect,\n buttons\n };\n scope.fire('auto-start:check', arg);\n return arg.action;\n}\n\nfunction styleCursor(newValue) {\n if (is.bool(newValue)) {\n this.options.styleCursor = newValue;\n return this;\n }\n\n if (newValue === null) {\n delete this.options.styleCursor;\n return this;\n }\n\n return this.options.styleCursor;\n}\n\nfunction actionChecker(checker) {\n if (is.func(checker)) {\n this.options.actionChecker = checker;\n return this;\n }\n\n if (checker === null) {\n delete this.options.actionChecker;\n return this;\n }\n\n return this.options.actionChecker;\n}\n\nexport default {\n id: 'auto-start/interactableMethods',\n install\n};\n//# sourceMappingURL=InteractableMethods.js.map","import { Scope, SignalArgs } from \"../core/scope.js\";\nimport * as domUtils from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport { copyAction } from \"../utils/misc.js\";\nimport InteractableMethods from \"./InteractableMethods.js\";\n\nfunction install(scope) {\n const {\n interactStatic: interact,\n defaults\n } = scope;\n scope.usePlugin(InteractableMethods);\n defaults.base.actionChecker = null;\n defaults.base.styleCursor = true;\n extend(defaults.perAction, {\n manualStart: false,\n max: Infinity,\n maxPerElement: 1,\n allowFrom: null,\n ignoreFrom: null,\n // only allow left button by default\n // see https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons#Return_value\n mouseButtons: 1\n });\n /**\n * Returns or sets the maximum number of concurrent interactions allowed. By\n * default only 1 interaction is allowed at a time (for backwards\n * compatibility). To allow multiple interactions on the same Interactables and\n * elements, you need to enable it in the draggable, resizable and gesturable\n * `'max'` and `'maxPerElement'` options.\n *\n * @alias module:interact.maxInteractions\n *\n * @param {number} [newValue] Any number. newValue <= 0 means no interactions.\n */\n\n interact.maxInteractions = newValue => maxInteractions(newValue, scope);\n\n scope.autoStart = {\n // Allow this many interactions to happen simultaneously\n maxInteractions: Infinity,\n withinInteractionLimit,\n cursorElement: null\n };\n}\n\nfunction prepareOnDown({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction prepareOnMove({\n interaction,\n pointer,\n event,\n eventTarget\n}, scope) {\n if (interaction.pointerType !== 'mouse' || interaction.pointerIsDown || interaction.interacting()) {\n return;\n }\n\n const actionInfo = getActionInfo(interaction, pointer, event, eventTarget, scope);\n prepare(interaction, actionInfo, scope);\n}\n\nfunction startOnMove(arg, scope) {\n const {\n interaction\n } = arg;\n\n if (!interaction.pointerIsDown || interaction.interacting() || !interaction.pointerWasMoved || !interaction.prepared.name) {\n return;\n }\n\n scope.fire('autoStart:before-start', arg);\n const {\n interactable\n } = interaction;\n const actionName = interaction.prepared.name;\n\n if (actionName && interactable) {\n // check manualStart and interaction limit\n if (interactable.options[actionName].manualStart || !withinInteractionLimit(interactable, interaction.element, interaction.prepared, scope)) {\n interaction.stop();\n } else {\n interaction.start(interaction.prepared, interactable, interaction.element);\n setInteractionCursor(interaction, scope);\n }\n }\n}\n\nfunction clearCursorOnStop({\n interaction\n}, scope) {\n const {\n interactable\n } = interaction;\n\n if (interactable && interactable.options.styleCursor) {\n setCursor(interaction.element, '', scope);\n }\n} // Check if the current interactable supports the action.\n// If so, return the validated action. Otherwise, return null\n\n\nfunction validateAction(action, interactable, element, eventTarget, scope) {\n if (interactable.testIgnoreAllow(interactable.options[action.name], element, eventTarget) && interactable.options[action.name].enabled && withinInteractionLimit(interactable, element, action, scope)) {\n return action;\n }\n\n return null;\n}\n\nfunction validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope) {\n for (let i = 0, len = matches.length; i < len; i++) {\n const match = matches[i];\n const matchElement = matchElements[i];\n const matchAction = match.getAction(pointer, event, interaction, matchElement);\n\n if (!matchAction) {\n continue;\n }\n\n const action = validateAction(matchAction, match, matchElement, eventTarget, scope);\n\n if (action) {\n return {\n action,\n interactable: match,\n element: matchElement\n };\n }\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction getActionInfo(interaction, pointer, event, eventTarget, scope) {\n let matches = [];\n let matchElements = [];\n let element = eventTarget;\n\n function pushMatches(interactable) {\n matches.push(interactable);\n matchElements.push(element);\n }\n\n while (is.element(element)) {\n matches = [];\n matchElements = [];\n scope.interactables.forEachMatch(element, pushMatches);\n const actionInfo = validateMatches(interaction, pointer, event, matches, matchElements, eventTarget, scope);\n\n if (actionInfo.action && !actionInfo.interactable.options[actionInfo.action.name].manualStart) {\n return actionInfo;\n }\n\n element = domUtils.parentNode(element);\n }\n\n return {\n action: null,\n interactable: null,\n element: null\n };\n}\n\nfunction prepare(interaction, {\n action,\n interactable,\n element\n}, scope) {\n action = action || {\n name: null\n };\n interaction.interactable = interactable;\n interaction.element = element;\n copyAction(interaction.prepared, action);\n interaction.rect = interactable && action.name ? interactable.getRect(element) : null;\n setInteractionCursor(interaction, scope);\n scope.fire('autoStart:prepared', {\n interaction\n });\n}\n\nfunction withinInteractionLimit(interactable, element, action, scope) {\n const options = interactable.options;\n const maxActions = options[action.name].max;\n const maxPerElement = options[action.name].maxPerElement;\n const autoStartMax = scope.autoStart.maxInteractions;\n let activeInteractions = 0;\n let interactableCount = 0;\n let elementCount = 0; // no actions if any of these values == 0\n\n if (!(maxActions && maxPerElement && autoStartMax)) {\n return false;\n }\n\n for (const interaction of scope.interactions.list) {\n const otherAction = interaction.prepared.name;\n\n if (!interaction.interacting()) {\n continue;\n }\n\n activeInteractions++;\n\n if (activeInteractions >= autoStartMax) {\n return false;\n }\n\n if (interaction.interactable !== interactable) {\n continue;\n }\n\n interactableCount += otherAction === action.name ? 1 : 0;\n\n if (interactableCount >= maxActions) {\n return false;\n }\n\n if (interaction.element === element) {\n elementCount++;\n\n if (otherAction === action.name && elementCount >= maxPerElement) {\n return false;\n }\n }\n }\n\n return autoStartMax > 0;\n}\n\nfunction maxInteractions(newValue, scope) {\n if (is.number(newValue)) {\n scope.autoStart.maxInteractions = newValue;\n return this;\n }\n\n return scope.autoStart.maxInteractions;\n}\n\nfunction setCursor(element, cursor, scope) {\n const {\n cursorElement: prevCursorElement\n } = scope.autoStart;\n\n if (prevCursorElement && prevCursorElement !== element) {\n prevCursorElement.style.cursor = '';\n }\n\n element.ownerDocument.documentElement.style.cursor = cursor;\n element.style.cursor = cursor;\n scope.autoStart.cursorElement = cursor ? element : null;\n}\n\nfunction setInteractionCursor(interaction, scope) {\n const {\n interactable,\n element,\n prepared\n } = interaction;\n\n if (!(interaction.pointerType === 'mouse' && interactable && interactable.options.styleCursor)) {\n // clear previous target element cursor\n if (scope.autoStart.cursorElement) {\n setCursor(scope.autoStart.cursorElement, '', scope);\n }\n\n return;\n }\n\n let cursor = '';\n\n if (prepared.name) {\n const cursorChecker = interactable.options[prepared.name].cursorChecker;\n\n if (is.func(cursorChecker)) {\n cursor = cursorChecker(prepared, interactable, element, interaction._interacting);\n } else {\n cursor = scope.actions.map[prepared.name].getCursor(prepared);\n }\n }\n\n setCursor(interaction.element, cursor || '', scope);\n}\n\nconst autoStart = {\n id: 'auto-start/base',\n before: ['actions'],\n install,\n listeners: {\n 'interactions:down': prepareOnDown,\n 'interactions:move': (arg, scope) => {\n prepareOnMove(arg, scope);\n startOnMove(arg, scope);\n },\n 'interactions:stop': clearCursorOnStop\n },\n maxInteractions,\n withinInteractionLimit,\n validateAction\n};\nexport default autoStart;\n//# sourceMappingURL=base.js.map","import { parentNode } from \"../utils/domUtils.js\";\nimport is from \"../utils/is.js\";\nimport autoStart from \"./base.js\";\n\nfunction beforeStart({\n interaction,\n eventTarget,\n dx,\n dy\n}, scope) {\n if (interaction.prepared.name !== 'drag') {\n return;\n } // check if a drag is in the correct axis\n\n\n const absX = Math.abs(dx);\n const absY = Math.abs(dy);\n const targetOptions = interaction.interactable.options.drag;\n const startAxis = targetOptions.startAxis;\n const currentAxis = absX > absY ? 'x' : absX < absY ? 'y' : 'xy';\n interaction.prepared.axis = targetOptions.lockAxis === 'start' ? currentAxis[0] // always lock to one axis even if currentAxis === 'xy'\n : targetOptions.lockAxis; // if the movement isn't in the startAxis of the interactable\n\n if (currentAxis !== 'xy' && startAxis !== 'xy' && startAxis !== currentAxis) {\n // cancel the prepared action\n interaction.prepared.name = null; // then try to get a drag from another ineractable\n\n let element = eventTarget;\n\n const getDraggable = function (interactable) {\n if (interactable === interaction.interactable) {\n return;\n }\n\n const options = interaction.interactable.options.drag;\n\n if (!options.manualStart && interactable.testIgnoreAllow(options, element, eventTarget)) {\n const action = interactable.getAction(interaction.downPointer, interaction.downEvent, interaction, element);\n\n if (action && action.name === 'drag' && checkStartAxis(currentAxis, interactable) && autoStart.validateAction(action, interactable, element, eventTarget, scope)) {\n return interactable;\n }\n }\n }; // check all interactables\n\n\n while (is.element(element)) {\n const interactable = scope.interactables.forEachMatch(element, getDraggable);\n\n if (interactable) {\n interaction.prepared.name = 'drag';\n interaction.interactable = interactable;\n interaction.element = element;\n break;\n }\n\n element = parentNode(element);\n }\n }\n}\n\nfunction checkStartAxis(startAxis, interactable) {\n if (!interactable) {\n return false;\n }\n\n const thisAxis = interactable.options.drag.startAxis;\n return startAxis === 'xy' || thisAxis === 'xy' || thisAxis === startAxis;\n}\n\nexport default {\n id: 'auto-start/dragAxis',\n listeners: {\n 'autoStart:before-start': beforeStart\n }\n};\n//# sourceMappingURL=dragAxis.js.map","import Interaction from \"../core/Interaction.js\";\nimport basePlugin from \"./base.js\";\n\nfunction install(scope) {\n const {\n defaults\n } = scope;\n scope.usePlugin(basePlugin);\n defaults.perAction.hold = 0;\n defaults.perAction.delay = 0;\n}\n\nfunction getHoldDuration(interaction) {\n const actionName = interaction.prepared && interaction.prepared.name;\n\n if (!actionName) {\n return null;\n }\n\n const options = interaction.interactable.options;\n return options[actionName].hold || options[actionName].delay;\n}\n\nconst hold = {\n id: 'auto-start/hold',\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.autoStartHoldTimer = null;\n },\n 'autoStart:prepared': ({\n interaction\n }) => {\n const hold = getHoldDuration(interaction);\n\n if (hold > 0) {\n interaction.autoStartHoldTimer = setTimeout(() => {\n interaction.start(interaction.prepared, interaction.interactable, interaction.element);\n }, hold);\n }\n },\n 'interactions:move': ({\n interaction,\n duplicate\n }) => {\n if (interaction.autoStartHoldTimer && interaction.pointerWasMoved && !duplicate) {\n clearTimeout(interaction.autoStartHoldTimer);\n interaction.autoStartHoldTimer = null;\n }\n },\n // prevent regular down->move autoStart\n 'autoStart:before-start': ({\n interaction\n }) => {\n const holdDuration = getHoldDuration(interaction);\n\n if (holdDuration > 0) {\n interaction.prepared.name = null;\n }\n }\n },\n getHoldDuration\n};\nexport default hold;\n//# sourceMappingURL=hold.js.map","import autoStart from \"./base.js\";\nimport dragAxis from \"./dragAxis.js\";\nimport hold from \"./hold.js\";\nexport default {\n id: 'auto-start',\n\n install(scope) {\n scope.usePlugin(autoStart);\n scope.usePlugin(hold);\n scope.usePlugin(dragAxis);\n }\n\n};\n//# sourceMappingURL=plugin.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n Interactable,\n defaults\n } = scope;\n Interactable.prototype.draggable = drag.draggable;\n actions.map.drag = drag;\n actions.methodDict.drag = 'draggable';\n defaults.actions.drag = drag.defaults;\n}\n\nfunction beforeMove({\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x') {\n interaction.coords.cur.page.y = interaction.coords.start.page.y;\n interaction.coords.cur.client.y = interaction.coords.start.client.y;\n interaction.coords.velocity.client.y = 0;\n interaction.coords.velocity.page.y = 0;\n } else if (axis === 'y') {\n interaction.coords.cur.page.x = interaction.coords.start.page.x;\n interaction.coords.cur.client.x = interaction.coords.start.client.x;\n interaction.coords.velocity.client.x = 0;\n interaction.coords.velocity.page.x = 0;\n }\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'drag') {\n return;\n }\n\n const axis = interaction.prepared.axis;\n\n if (axis === 'x' || axis === 'y') {\n const opposite = axis === 'x' ? 'y' : 'x';\n iEvent.page[opposite] = interaction.coords.start.page[opposite];\n iEvent.client[opposite] = interaction.coords.start.client[opposite];\n iEvent.delta[opposite] = 0;\n }\n}\n/**\n * ```js\n * interact(element).draggable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * // the axis in which the first movement must be\n * // for the drag sequence to start\n * // 'xy' by default - any direction\n * startAxis: 'x' || 'y' || 'xy',\n *\n * // 'xy' by default - don't restrict to one axis (move in any direction)\n * // 'x' or 'y' to restrict movement to either axis\n * // 'start' to restrict movement to the axis the drag started in\n * lockAxis: 'x' || 'y' || 'xy' || 'start',\n *\n * // max number of drags that can happen concurrently\n * // with elements of this Interactable. Infinity by default\n * max: Infinity,\n *\n * // max number of drags that can target the same element+Interactable\n * // 1 by default\n * maxPerElement: 2\n * })\n *\n * var isDraggable = interact('element').draggable(); // true\n * ```\n *\n * Get or set whether drag actions can be performed on the target\n *\n * @alias Interactable.prototype.draggable\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on drag events (object makes the Interactable\n * draggable)\n * @return {boolean | Interactable} boolean indicating if this can be the\n * target of drag events, or this Interctable\n */\n\n\nconst draggable = function draggable(options) {\n if (is.object(options)) {\n this.options.drag.enabled = options.enabled !== false;\n this.setPerAction('drag', options);\n this.setOnEvents('drag', options);\n\n if (/^(xy|x|y|start)$/.test(options.lockAxis)) {\n this.options.drag.lockAxis = options.lockAxis;\n }\n\n if (/^(xy|x|y)$/.test(options.startAxis)) {\n this.options.drag.startAxis = options.startAxis;\n }\n\n return this;\n }\n\n if (is.bool(options)) {\n this.options.drag.enabled = options;\n return this;\n }\n\n return this.options.drag;\n};\n\nconst drag = {\n id: 'actions/drag',\n install,\n listeners: {\n 'interactions:before-action-move': beforeMove,\n 'interactions:action-resume': beforeMove,\n // dragmove\n 'interactions:action-move': move,\n 'auto-start:check': arg => {\n const {\n interaction,\n interactable,\n buttons\n } = arg;\n const dragOptions = interactable.options.drag;\n\n if (!(dragOptions && dragOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & interactable.options.drag.mouseButtons) === 0) {\n return undefined;\n }\n\n arg.action = {\n name: 'drag',\n axis: dragOptions.lockAxis === 'start' ? dragOptions.startAxis : dragOptions.lockAxis\n };\n return false;\n }\n },\n draggable,\n beforeMove,\n move,\n defaults: {\n startAxis: 'xy',\n lockAxis: 'xy'\n },\n\n getCursor() {\n return 'move';\n }\n\n};\nexport default drag;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { Interactable } from \"../../core/Interactable.js\";\nimport { Interaction } from \"../../core/Interaction.js\";\nimport * as dom from \"../../utils/domUtils.js\";\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\n\nfunction install(scope) {\n const {\n actions,\n browser,\n\n /** @lends Interactable */\n Interactable,\n // tslint:disable-line no-shadowed-variable\n defaults\n } = scope; // Less Precision with touch input\n\n resize.cursors = initCursors(browser);\n resize.defaultMargin = browser.supportsTouch || browser.supportsPointerEvent ? 20 : 10;\n /**\n * ```js\n * interact(element).resizable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * edges: {\n * top : true, // Use pointer coords to check for resize.\n * left : false, // Disable resizing from left edge.\n * bottom: '.resize-s',// Resize if pointer target matches selector\n * right : handleEl // Resize if pointer target is the given Element\n * },\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height are adjusted at a 1:1 ratio.\n * square: false,\n *\n * // Width and height can be adjusted independently. When `true`, width and\n * // height maintain the aspect ratio they had when resizing started.\n * preserveAspectRatio: false,\n *\n * // a value of 'none' will limit the resize rect to a minimum of 0x0\n * // 'negate' will allow the rect to have negative width/height\n * // 'reposition' will keep the width/height positive by swapping\n * // the top and bottom edges and/or swapping the left and right edges\n * invert: 'none' || 'negate' || 'reposition'\n *\n * // limit multiple resizes.\n * // See the explanation in the {@link Interactable.draggable} example\n * max: Infinity,\n * maxPerElement: 1,\n * })\n *\n * var isResizeable = interact(element).resizable()\n * ```\n *\n * Gets or sets whether resize actions can be performed on the target\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on resize events (object makes the Interactable\n * resizable)\n * @return {boolean | Interactable} A boolean indicating if this can be the\n * target of resize elements, or this Interactable\n */\n\n Interactable.prototype.resizable = function (options) {\n return resizable(this, options, scope);\n };\n\n actions.map.resize = resize;\n actions.methodDict.resize = 'resizable';\n defaults.actions.resize = resize.defaults;\n}\n\nfunction resizeChecker(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n buttons\n } = arg;\n\n if (!rect) {\n return undefined;\n }\n\n const page = extend({}, interaction.coords.cur.page);\n const resizeOptions = interactable.options.resize;\n\n if (!(resizeOptions && resizeOptions.enabled) || // check mouseButton setting if the pointer is down\n interaction.pointerIsDown && /mouse|pointer/.test(interaction.pointerType) && (buttons & resizeOptions.mouseButtons) === 0) {\n return undefined;\n } // if using resize.edges\n\n\n if (is.object(resizeOptions.edges)) {\n const resizeEdges = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n\n for (const edge in resizeEdges) {\n resizeEdges[edge] = checkResizeEdge(edge, resizeOptions.edges[edge], page, interaction._latestPointer.eventTarget, element, rect, resizeOptions.margin || resize.defaultMargin);\n }\n\n resizeEdges.left = resizeEdges.left && !resizeEdges.right;\n resizeEdges.top = resizeEdges.top && !resizeEdges.bottom;\n\n if (resizeEdges.left || resizeEdges.right || resizeEdges.top || resizeEdges.bottom) {\n arg.action = {\n name: 'resize',\n edges: resizeEdges\n };\n }\n } else {\n const right = resizeOptions.axis !== 'y' && page.x > rect.right - resize.defaultMargin;\n const bottom = resizeOptions.axis !== 'x' && page.y > rect.bottom - resize.defaultMargin;\n\n if (right || bottom) {\n arg.action = {\n name: 'resize',\n axes: (right ? 'x' : '') + (bottom ? 'y' : '')\n };\n }\n }\n\n return arg.action ? false : undefined;\n}\n\nfunction resizable(interactable, options, scope) {\n if (is.object(options)) {\n interactable.options.resize.enabled = options.enabled !== false;\n interactable.setPerAction('resize', options);\n interactable.setOnEvents('resize', options);\n\n if (is.string(options.axis) && /^x$|^y$|^xy$/.test(options.axis)) {\n interactable.options.resize.axis = options.axis;\n } else if (options.axis === null) {\n interactable.options.resize.axis = scope.defaults.actions.resize.axis;\n }\n\n if (is.bool(options.preserveAspectRatio)) {\n interactable.options.resize.preserveAspectRatio = options.preserveAspectRatio;\n } else if (is.bool(options.square)) {\n interactable.options.resize.square = options.square;\n }\n\n return interactable;\n }\n\n if (is.bool(options)) {\n interactable.options.resize.enabled = options;\n return interactable;\n }\n\n return interactable.options.resize;\n}\n\nfunction checkResizeEdge(name, value, page, element, interactableElement, rect, margin) {\n // false, '', undefined, null\n if (!value) {\n return false;\n } // true value, use pointer coords and element rect\n\n\n if (value === true) {\n // if dimensions are negative, \"switch\" edges\n const width = is.number(rect.width) ? rect.width : rect.right - rect.left;\n const height = is.number(rect.height) ? rect.height : rect.bottom - rect.top; // don't use margin greater than half the relevent dimension\n\n margin = Math.min(margin, Math.abs((name === 'left' || name === 'right' ? width : height) / 2));\n\n if (width < 0) {\n if (name === 'left') {\n name = 'right';\n } else if (name === 'right') {\n name = 'left';\n }\n }\n\n if (height < 0) {\n if (name === 'top') {\n name = 'bottom';\n } else if (name === 'bottom') {\n name = 'top';\n }\n }\n\n if (name === 'left') {\n return page.x < (width >= 0 ? rect.left : rect.right) + margin;\n }\n\n if (name === 'top') {\n return page.y < (height >= 0 ? rect.top : rect.bottom) + margin;\n }\n\n if (name === 'right') {\n return page.x > (width >= 0 ? rect.right : rect.left) - margin;\n }\n\n if (name === 'bottom') {\n return page.y > (height >= 0 ? rect.bottom : rect.top) - margin;\n }\n } // the remaining checks require an element\n\n\n if (!is.element(element)) {\n return false;\n }\n\n return is.element(value) // the value is an element to use as a resize handle\n ? value === element // otherwise check if element matches value as selector\n : dom.matchesUpTo(element, value, interactableElement);\n}\n/* eslint-disable multiline-ternary */\n\n\nfunction initCursors(browser) {\n return browser.isIe9 ? {\n x: 'e-resize',\n y: 's-resize',\n xy: 'se-resize',\n top: 'n-resize',\n left: 'w-resize',\n bottom: 's-resize',\n right: 'e-resize',\n topleft: 'se-resize',\n bottomright: 'se-resize',\n topright: 'ne-resize',\n bottomleft: 'ne-resize'\n } : {\n x: 'ew-resize',\n y: 'ns-resize',\n xy: 'nwse-resize',\n top: 'ns-resize',\n left: 'ew-resize',\n bottom: 'ns-resize',\n right: 'ew-resize',\n topleft: 'nwse-resize',\n bottomright: 'nwse-resize',\n topright: 'nesw-resize',\n bottomleft: 'nesw-resize'\n };\n}\n/* eslint-enable multiline-ternary */\n\n\nfunction start({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const rect = interaction.rect;\n interaction._rects = {\n start: extend({}, rect),\n corrected: extend({}, rect),\n previous: extend({}, rect),\n delta: {\n left: 0,\n right: 0,\n width: 0,\n top: 0,\n bottom: 0,\n height: 0\n }\n };\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction move({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n const resizeOptions = interaction.interactable.options.resize;\n const invert = resizeOptions.invert;\n const invertible = invert === 'reposition' || invert === 'negate';\n const current = interaction.rect;\n const {\n start: startRect,\n corrected,\n delta: deltaRect,\n previous\n } = interaction._rects;\n extend(previous, corrected);\n\n if (invertible) {\n // if invertible, copy the current rect\n extend(corrected, current);\n\n if (invert === 'reposition') {\n // swap edge values if necessary to keep width/height positive\n if (corrected.top > corrected.bottom) {\n const swap = corrected.top;\n corrected.top = corrected.bottom;\n corrected.bottom = swap;\n }\n\n if (corrected.left > corrected.right) {\n const swap = corrected.left;\n corrected.left = corrected.right;\n corrected.right = swap;\n }\n }\n } else {\n // if not invertible, restrict to minimum of 0x0 rect\n corrected.top = Math.min(current.top, startRect.bottom);\n corrected.bottom = Math.max(current.bottom, startRect.top);\n corrected.left = Math.min(current.left, startRect.right);\n corrected.right = Math.max(current.right, startRect.left);\n }\n\n corrected.width = corrected.right - corrected.left;\n corrected.height = corrected.bottom - corrected.top;\n\n for (const edge in corrected) {\n deltaRect[edge] = corrected[edge] - previous[edge];\n }\n\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = corrected;\n resizeEvent.deltaRect = deltaRect;\n}\n\nfunction end({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.prepared.edges) {\n return;\n }\n\n const resizeEvent = iEvent;\n resizeEvent.edges = interaction.prepared.edges;\n resizeEvent.rect = interaction._rects.corrected;\n resizeEvent.deltaRect = interaction._rects.delta;\n}\n\nfunction updateEventAxes({\n iEvent,\n interaction\n}) {\n if (interaction.prepared.name !== 'resize' || !interaction.resizeAxes) {\n return;\n }\n\n const options = interaction.interactable.options;\n const resizeEvent = iEvent;\n\n if (options.resize.square) {\n if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = resizeEvent.delta.y;\n } else {\n resizeEvent.delta.y = resizeEvent.delta.x;\n }\n\n resizeEvent.axes = 'xy';\n } else {\n resizeEvent.axes = interaction.resizeAxes;\n\n if (interaction.resizeAxes === 'x') {\n resizeEvent.delta.y = 0;\n } else if (interaction.resizeAxes === 'y') {\n resizeEvent.delta.x = 0;\n }\n }\n}\n\nconst resize = {\n id: 'actions/resize',\n before: ['actions/drag'],\n install,\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.resizeAxes = 'xy';\n },\n 'interactions:action-start': arg => {\n start(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-move': arg => {\n move(arg);\n updateEventAxes(arg);\n },\n 'interactions:action-end': end,\n 'auto-start:check': resizeChecker\n },\n defaults: {\n square: false,\n preserveAspectRatio: false,\n axis: 'xy',\n // use default margin\n margin: NaN,\n // object with props left, right, top, bottom which are\n // true/false values to resize when the pointer is over that edge,\n // CSS selectors to match the handles for each direction\n // or the Elements for each handle\n edges: null,\n // a value of 'none' will limit the resize rect to a minimum of 0x0\n // 'negate' will alow the rect to have negative width/height\n // 'reposition' will keep the width/height positive by swapping\n // the top and bottom edges and/or swapping the left and right edges\n invert: 'none'\n },\n cursors: null,\n\n getCursor({\n edges,\n axis,\n name\n }) {\n const cursors = resize.cursors;\n let result = null;\n\n if (axis) {\n result = cursors[name + axis];\n } else if (edges) {\n let cursorKey = '';\n\n for (const edge of ['top', 'bottom', 'left', 'right']) {\n if (edges[edge]) {\n cursorKey += edge;\n }\n }\n\n result = cursors[cursorKey];\n }\n\n return result;\n },\n\n defaultMargin: null\n};\nexport default resize;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","export default (() => {});\n//# sourceMappingURL=edgeTarget.js.map","export default (() => {});\n//# sourceMappingURL=elements.js.map","export default (grid => {\n const coordFields = [['x', 'y'], ['left', 'top'], ['right', 'bottom'], ['width', 'height']].filter(([xField, yField]) => xField in grid || yField in grid);\n\n const gridFunc = (x, y) => {\n const {\n range,\n limits = {\n left: -Infinity,\n right: Infinity,\n top: -Infinity,\n bottom: Infinity\n },\n offset = {\n x: 0,\n y: 0\n }\n } = grid;\n const result = {\n range,\n grid,\n x: null,\n y: null\n };\n\n for (const [xField, yField] of coordFields) {\n const gridx = Math.round((x - offset.x) / grid[xField]);\n const gridy = Math.round((y - offset.y) / grid[yField]);\n result[xField] = Math.max(limits.left, Math.min(limits.right, gridx * grid[xField] + offset.x));\n result[yField] = Math.max(limits.top, Math.min(limits.bottom, gridy * grid[yField] + offset.y));\n }\n\n return result;\n };\n\n gridFunc.grid = grid;\n gridFunc.coordFields = coordFields;\n return gridFunc;\n});\n//# sourceMappingURL=grid.js.map","import extend from \"../utils/extend.js\";\nimport * as allSnappers from \"./all.js\";\nconst snappersPlugin = {\n id: 'snappers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n interact.snappers = extend(interact.snappers || {}, allSnappers);\n interact.createSnapGrid = interact.snappers.grid;\n }\n\n};\nexport default snappersPlugin;\n//# sourceMappingURL=plugin.js.map","import clone from \"../utils/clone.js\";\nimport extend from \"../utils/extend.js\";\nimport * as rectUtils from \"../utils/rect.js\";\nexport default class Modification {\n constructor(interaction) {\n this.states = [];\n this.startOffset = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n };\n this.startDelta = null;\n this.result = null;\n this.endResult = null;\n this.edges = void 0;\n this.interaction = void 0;\n this.interaction = interaction;\n this.result = createResult();\n }\n\n start({\n phase\n }, pageCoords) {\n const {\n interaction\n } = this;\n const modifierList = getModifierList(interaction);\n this.prepareStates(modifierList);\n this.edges = extend({}, interaction.edges);\n this.startOffset = getRectOffset(interaction.rect, pageCoords);\n this.startDelta = {\n x: 0,\n y: 0\n };\n const arg = {\n phase,\n pageCoords,\n preEnd: false\n };\n this.result = createResult();\n this.startAll(arg);\n const result = this.result = this.setAll(arg);\n return result;\n }\n\n fillArg(arg) {\n const {\n interaction\n } = this;\n arg.interaction = interaction;\n arg.interactable = interaction.interactable;\n arg.element = interaction.element;\n arg.rect = arg.rect || interaction.rect;\n arg.edges = this.edges;\n arg.startOffset = this.startOffset;\n }\n\n startAll(arg) {\n this.fillArg(arg);\n\n for (const state of this.states) {\n if (state.methods.start) {\n arg.state = state;\n state.methods.start(arg);\n }\n }\n }\n\n setAll(arg) {\n this.fillArg(arg);\n const {\n phase,\n preEnd,\n skipModifiers,\n rect: unmodifiedRect\n } = arg;\n arg.coords = extend({}, arg.pageCoords);\n arg.rect = extend({}, unmodifiedRect);\n const states = skipModifiers ? this.states.slice(skipModifiers) : this.states;\n const newResult = createResult(arg.coords, arg.rect);\n\n for (const state of states) {\n const {\n options\n } = state;\n const lastModifierCoords = extend({}, arg.coords);\n let returnValue = null;\n\n if (state.methods.set && this.shouldDo(options, preEnd, phase)) {\n arg.state = state;\n returnValue = state.methods.set(arg);\n rectUtils.addEdges(this.interaction.edges, arg.rect, {\n x: arg.coords.x - lastModifierCoords.x,\n y: arg.coords.y - lastModifierCoords.y\n });\n }\n\n newResult.eventProps.push(returnValue);\n }\n\n newResult.delta.x = arg.coords.x - arg.pageCoords.x;\n newResult.delta.y = arg.coords.y - arg.pageCoords.y;\n newResult.rectDelta.left = arg.rect.left - unmodifiedRect.left;\n newResult.rectDelta.right = arg.rect.right - unmodifiedRect.right;\n newResult.rectDelta.top = arg.rect.top - unmodifiedRect.top;\n newResult.rectDelta.bottom = arg.rect.bottom - unmodifiedRect.bottom;\n const prevCoords = this.result.coords;\n const prevRect = this.result.rect;\n\n if (prevCoords && prevRect) {\n const rectChanged = newResult.rect.left !== prevRect.left || newResult.rect.right !== prevRect.right || newResult.rect.top !== prevRect.top || newResult.rect.bottom !== prevRect.bottom;\n newResult.changed = rectChanged || prevCoords.x !== newResult.coords.x || prevCoords.y !== newResult.coords.y;\n }\n\n return newResult;\n }\n\n applyToInteraction(arg) {\n const {\n interaction\n } = this;\n const {\n phase\n } = arg;\n const curCoords = interaction.coords.cur;\n const startCoords = interaction.coords.start;\n const {\n result,\n startDelta\n } = this;\n const curDelta = result.delta;\n\n if (phase === 'start') {\n extend(this.startDelta, result.delta);\n }\n\n for (const [coordsSet, delta] of [[startCoords, startDelta], [curCoords, curDelta]]) {\n coordsSet.page.x += delta.x;\n coordsSet.page.y += delta.y;\n coordsSet.client.x += delta.x;\n coordsSet.client.y += delta.y;\n }\n\n const {\n rectDelta\n } = this.result;\n const rect = arg.rect || interaction.rect;\n rect.left += rectDelta.left;\n rect.right += rectDelta.right;\n rect.top += rectDelta.top;\n rect.bottom += rectDelta.bottom;\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n }\n\n setAndApply(arg) {\n const {\n interaction\n } = this;\n const {\n phase,\n preEnd,\n skipModifiers\n } = arg;\n const result = this.setAll({\n preEnd,\n phase,\n pageCoords: arg.modifiedCoords || interaction.coords.cur.page\n });\n this.result = result; // don't fire an action move if a modifier would keep the event in the same\n // cordinates as before\n\n if (!result.changed && (!skipModifiers || skipModifiers < this.states.length) && interaction.interacting()) {\n return false;\n }\n\n if (arg.modifiedCoords) {\n const {\n page\n } = interaction.coords.cur;\n const adjustment = {\n x: arg.modifiedCoords.x - page.x,\n y: arg.modifiedCoords.y - page.y\n };\n result.coords.x += adjustment.x;\n result.coords.y += adjustment.y;\n result.delta.x += adjustment.x;\n result.delta.y += adjustment.y;\n }\n\n this.applyToInteraction(arg);\n }\n\n beforeEnd(arg) {\n const {\n interaction,\n event\n } = arg;\n const states = this.states;\n\n if (!states || !states.length) {\n return;\n }\n\n let doPreend = false;\n\n for (const state of states) {\n arg.state = state;\n const {\n options,\n methods\n } = state;\n const endPosition = methods.beforeEnd && methods.beforeEnd(arg);\n\n if (endPosition) {\n this.endResult = endPosition;\n return false;\n }\n\n doPreend = doPreend || !doPreend && this.shouldDo(options, true, arg.phase, true);\n }\n\n if (doPreend) {\n // trigger a final modified move before ending\n interaction.move({\n event,\n preEnd: true\n });\n }\n }\n\n stop(arg) {\n const {\n interaction\n } = arg;\n\n if (!this.states || !this.states.length) {\n return;\n }\n\n const modifierArg = extend({\n states: this.states,\n interactable: interaction.interactable,\n element: interaction.element,\n rect: null\n }, arg);\n this.fillArg(modifierArg);\n\n for (const state of this.states) {\n modifierArg.state = state;\n\n if (state.methods.stop) {\n state.methods.stop(modifierArg);\n }\n }\n\n this.states = null;\n this.endResult = null;\n }\n\n prepareStates(modifierList) {\n this.states = [];\n\n for (let index = 0; index < modifierList.length; index++) {\n const {\n options,\n methods,\n name\n } = modifierList[index];\n this.states.push({\n options,\n methods,\n index,\n name\n });\n }\n\n return this.states;\n }\n\n restoreInteractionCoords({\n interaction: {\n coords,\n rect,\n modification\n }\n }) {\n if (!modification.result) {\n return;\n }\n\n const {\n startDelta\n } = modification;\n const {\n delta: curDelta,\n rectDelta\n } = modification.result;\n const coordsAndDeltas = [[coords.start, startDelta], [coords.cur, curDelta]];\n\n for (const [coordsSet, delta] of coordsAndDeltas) {\n coordsSet.page.x -= delta.x;\n coordsSet.page.y -= delta.y;\n coordsSet.client.x -= delta.x;\n coordsSet.client.y -= delta.y;\n }\n\n rect.left -= rectDelta.left;\n rect.right -= rectDelta.right;\n rect.top -= rectDelta.top;\n rect.bottom -= rectDelta.bottom;\n }\n\n shouldDo(options, preEnd, phase, requireEndOnly) {\n if ( // ignore disabled modifiers\n !options || options.enabled === false || // check if we require endOnly option to fire move before end\n requireEndOnly && !options.endOnly || // don't apply endOnly modifiers when not ending\n options.endOnly && !preEnd || // check if modifier should run be applied on start\n phase === 'start' && !options.setStart) {\n return false;\n }\n\n return true;\n }\n\n copyFrom(other) {\n this.startOffset = other.startOffset;\n this.startDelta = other.startDelta;\n this.edges = other.edges;\n this.states = other.states.map(s => clone(s));\n this.result = createResult(extend({}, other.result.coords), extend({}, other.result.rect));\n }\n\n destroy() {\n for (const prop in this) {\n this[prop] = null;\n }\n }\n\n}\n\nfunction createResult(coords, rect) {\n return {\n rect,\n coords,\n delta: {\n x: 0,\n y: 0\n },\n rectDelta: {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n },\n eventProps: [],\n changed: true\n };\n}\n\nfunction getModifierList(interaction) {\n const actionOptions = interaction.interactable.options[interaction.prepared.name];\n const actionModifiers = actionOptions.modifiers;\n\n if (actionModifiers && actionModifiers.length) {\n return actionModifiers;\n }\n\n return ['snap', 'snapSize', 'snapEdges', 'restrict', 'restrictEdges', 'restrictSize'].map(type => {\n const options = actionOptions[type];\n return options && options.enabled && {\n options,\n methods: options._methods\n };\n }).filter(m => !!m);\n}\n\nexport function getRectOffset(rect, coords) {\n return rect ? {\n left: coords.x - rect.left,\n top: coords.y - rect.top,\n right: rect.right - coords.x,\n bottom: rect.bottom - coords.y\n } : {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n };\n}\n//# sourceMappingURL=Modification.js.map","import { InteractEvent } from \"../core/InteractEvent.js\";\nimport Interaction from \"../core/Interaction.js\";\nimport Modification from \"./Modification.js\";\nexport function makeModifier(module, name) {\n const {\n defaults\n } = module;\n const methods = {\n start: module.start,\n set: module.set,\n beforeEnd: module.beforeEnd,\n stop: module.stop\n };\n\n const modifier = _options => {\n const options = _options || {};\n options.enabled = options.enabled !== false; // add missing defaults to options\n\n for (const prop in defaults) {\n if (!(prop in options)) {\n options[prop] = defaults[prop];\n }\n }\n\n const m = {\n options,\n methods,\n name,\n enable: () => {\n options.enabled = true;\n return m;\n },\n disable: () => {\n options.enabled = false;\n return m;\n }\n };\n return m;\n };\n\n if (name && typeof name === 'string') {\n // for backwrads compatibility\n modifier._defaults = defaults;\n modifier._methods = methods;\n }\n\n return modifier;\n}\nexport function addEventModifiers({\n iEvent,\n interaction: {\n modification: {\n result\n }\n }\n}) {\n if (result) {\n iEvent.modifiers = result.eventProps;\n }\n}\nconst modifiersBase = {\n id: 'modifiers/base',\n before: ['actions'],\n install: scope => {\n scope.defaults.perAction.modifiers = [];\n },\n listeners: {\n 'interactions:new': ({\n interaction\n }) => {\n interaction.modification = new Modification(interaction);\n },\n 'interactions:before-action-start': arg => {\n const {\n modification\n } = arg.interaction;\n modification.start(arg, arg.interaction.coords.start.page);\n arg.interaction.edges = modification.edges;\n modification.applyToInteraction(arg);\n },\n 'interactions:before-action-move': arg => arg.interaction.modification.setAndApply(arg),\n 'interactions:before-action-end': arg => arg.interaction.modification.beforeEnd(arg),\n 'interactions:action-start': addEventModifiers,\n 'interactions:action-move': addEventModifiers,\n 'interactions:action-end': addEventModifiers,\n 'interactions:after-action-start': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:after-action-move': arg => arg.interaction.modification.restoreInteractionCoords(arg),\n 'interactions:stop': arg => arg.interaction.modification.stop(arg)\n }\n};\nexport default modifiersBase;\n//# sourceMappingURL=base.js.map","/**\n * @module modifiers/aspectRatio\n *\n * @description\n * This module forces elements to be resized with a specified dx/dy ratio.\n *\n * ```js\n * interact(target).resizable({\n * modifiers: [\n * interact.modifiers.snapSize({\n * targets: [ interact.snappers.grid({ x: 20, y: 20 }) ],\n * }),\n * interact.aspectRatio({ ratio: 'preserve' }),\n * ],\n * });\n * ```\n */\nimport extend from \"../utils/extend.js\";\nimport { addEdges } from \"../utils/rect.js\";\nimport Modification from \"./Modification.js\";\nimport { makeModifier } from \"./base.js\";\nconst aspectRatio = {\n start(arg) {\n const {\n state,\n rect,\n edges: originalEdges,\n pageCoords: coords\n } = arg;\n let {\n ratio\n } = state.options;\n const {\n equalDelta,\n modifiers\n } = state.options;\n\n if (ratio === 'preserve') {\n ratio = rect.width / rect.height;\n }\n\n state.startCoords = extend({}, coords);\n state.startRect = extend({}, rect);\n state.ratio = ratio;\n state.equalDelta = equalDelta;\n const linkedEdges = state.linkedEdges = {\n top: originalEdges.top || originalEdges.left && !originalEdges.bottom,\n left: originalEdges.left || originalEdges.top && !originalEdges.right,\n bottom: originalEdges.bottom || originalEdges.right && !originalEdges.top,\n right: originalEdges.right || originalEdges.bottom && !originalEdges.left\n };\n state.xIsPrimaryAxis = !!(originalEdges.left || originalEdges.right);\n\n if (state.equalDelta) {\n state.edgeSign = (linkedEdges.left ? 1 : -1) * (linkedEdges.top ? 1 : -1);\n } else {\n const negativeSecondaryEdge = state.xIsPrimaryAxis ? linkedEdges.top : linkedEdges.left;\n state.edgeSign = negativeSecondaryEdge ? -1 : 1;\n }\n\n extend(arg.edges, linkedEdges);\n\n if (!modifiers || !modifiers.length) {\n return;\n }\n\n const subModification = new Modification(arg.interaction);\n subModification.copyFrom(arg.interaction.modification);\n subModification.prepareStates(modifiers);\n state.subModification = subModification;\n subModification.startAll({ ...arg\n });\n },\n\n set(arg) {\n const {\n state,\n rect,\n coords\n } = arg;\n const initialCoords = extend({}, coords);\n const aspectMethod = state.equalDelta ? setEqualDelta : setRatio;\n aspectMethod(state, state.xIsPrimaryAxis, coords, rect);\n\n if (!state.subModification) {\n return null;\n }\n\n const correctedRect = extend({}, rect);\n addEdges(state.linkedEdges, correctedRect, {\n x: coords.x - initialCoords.x,\n y: coords.y - initialCoords.y\n });\n const result = state.subModification.setAll({ ...arg,\n rect: correctedRect,\n edges: state.linkedEdges,\n pageCoords: coords,\n prevCoords: coords,\n prevRect: correctedRect\n });\n const {\n delta\n } = result;\n\n if (result.changed) {\n const xIsCriticalAxis = Math.abs(delta.x) > Math.abs(delta.y); // do aspect modification again with critical edge axis as primary\n\n aspectMethod(state, xIsCriticalAxis, result.coords, result.rect);\n extend(coords, result.coords);\n }\n\n return result.eventProps;\n },\n\n defaults: {\n ratio: 'preserve',\n equalDelta: false,\n modifiers: [],\n enabled: false\n }\n};\n\nfunction setEqualDelta({\n startCoords,\n edgeSign\n}, xIsPrimaryAxis, coords) {\n if (xIsPrimaryAxis) {\n coords.y = startCoords.y + (coords.x - startCoords.x) * edgeSign;\n } else {\n coords.x = startCoords.x + (coords.y - startCoords.y) * edgeSign;\n }\n}\n\nfunction setRatio({\n startRect,\n startCoords,\n ratio,\n edgeSign\n}, xIsPrimaryAxis, coords, rect) {\n if (xIsPrimaryAxis) {\n const newHeight = rect.width / ratio;\n coords.y = startCoords.y + (newHeight - startRect.height) * edgeSign;\n } else {\n const newWidth = rect.height * ratio;\n coords.x = startCoords.x + (newWidth - startRect.width) * edgeSign;\n }\n}\n\nexport default makeModifier(aspectRatio, 'aspectRatio');\nexport { aspectRatio };\n//# sourceMappingURL=aspectRatio.js.map","const noop = () => {};\n\nnoop._defaults = {};\nexport default noop;\n//# sourceMappingURL=noop.js.map","import extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start({\n rect,\n startOffset,\n state,\n interaction,\n pageCoords\n}) {\n const {\n options\n } = state;\n const {\n elementRect\n } = options;\n const offset = extend({\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n }, options.offset || {});\n\n if (rect && elementRect) {\n const restriction = getRestrictionRect(options.restriction, interaction, pageCoords);\n\n if (restriction) {\n const widthDiff = restriction.right - restriction.left - rect.width;\n const heightDiff = restriction.bottom - restriction.top - rect.height;\n\n if (widthDiff < 0) {\n offset.left += widthDiff;\n offset.right += widthDiff;\n }\n\n if (heightDiff < 0) {\n offset.top += heightDiff;\n offset.bottom += heightDiff;\n }\n }\n\n offset.left += startOffset.left - rect.width * elementRect.left;\n offset.top += startOffset.top - rect.height * elementRect.top;\n offset.right += startOffset.right - rect.width * (1 - elementRect.right);\n offset.bottom += startOffset.bottom - rect.height * (1 - elementRect.bottom);\n }\n\n state.offset = offset;\n}\n\nfunction set({\n coords,\n interaction,\n state\n}) {\n const {\n options,\n offset\n } = state;\n const restriction = getRestrictionRect(options.restriction, interaction, coords);\n\n if (!restriction) {\n return;\n }\n\n const rect = rectUtils.xywhToTlbr(restriction);\n coords.x = Math.max(Math.min(rect.right - offset.right, coords.x), rect.left + offset.left);\n coords.y = Math.max(Math.min(rect.bottom - offset.bottom, coords.y), rect.top + offset.top);\n}\n\nexport function getRestrictionRect(value, interaction, coords) {\n if (is.func(value)) {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element, [coords.x, coords.y, interaction]);\n } else {\n return rectUtils.resolveRectLike(value, interaction.interactable, interaction.element);\n }\n}\nconst defaults = {\n restriction: null,\n elementRect: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrict = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrict, 'restrict');\nexport { restrict };\n//# sourceMappingURL=pointer.js.map","// This module adds the options.resize.restrictEdges setting which sets min and\n// max for the top, left, bottom and right edges of the target being resized.\n//\n// interact(target).resize({\n// edges: { top: true, left: true },\n// restrictEdges: {\n// inner: { top: 200, left: 200, right: 400, bottom: 400 },\n// outer: { top: 0, left: 0, right: 600, bottom: 600 },\n// },\n// })\nimport extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noInner = {\n top: +Infinity,\n left: +Infinity,\n bottom: -Infinity,\n right: -Infinity\n};\nconst noOuter = {\n top: -Infinity,\n left: -Infinity,\n bottom: +Infinity,\n right: +Infinity\n};\n\nfunction start({\n interaction,\n startOffset,\n state\n}) {\n const {\n options\n } = state;\n let offset;\n\n if (options) {\n const offsetRect = getRestrictionRect(options.offset, interaction, interaction.coords.start.page);\n offset = rectUtils.rectToXY(offsetRect);\n }\n\n offset = offset || {\n x: 0,\n y: 0\n };\n state.offset = {\n top: offset.y + startOffset.top,\n left: offset.x + startOffset.left,\n bottom: offset.y - startOffset.bottom,\n right: offset.x - startOffset.right\n };\n}\n\nfunction set({\n coords,\n edges,\n interaction,\n state\n}) {\n const {\n offset,\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const page = extend({}, coords);\n const inner = getRestrictionRect(options.inner, interaction, page) || {};\n const outer = getRestrictionRect(options.outer, interaction, page) || {};\n fixRect(inner, noInner);\n fixRect(outer, noOuter);\n\n if (edges.top) {\n coords.y = Math.min(Math.max(outer.top + offset.top, page.y), inner.top + offset.top);\n } else if (edges.bottom) {\n coords.y = Math.max(Math.min(outer.bottom + offset.bottom, page.y), inner.bottom + offset.bottom);\n }\n\n if (edges.left) {\n coords.x = Math.min(Math.max(outer.left + offset.left, page.x), inner.left + offset.left);\n } else if (edges.right) {\n coords.x = Math.max(Math.min(outer.right + offset.right, page.x), inner.right + offset.right);\n }\n}\n\nfunction fixRect(rect, defaults) {\n for (const edge of ['top', 'left', 'bottom', 'right']) {\n if (!(edge in rect)) {\n rect[edge] = defaults[edge];\n }\n }\n\n return rect;\n}\n\nconst defaults = {\n inner: null,\n outer: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst restrictEdges = {\n noInner,\n noOuter,\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictEdges, 'restrictEdges');\nexport { restrictEdges };\n//# sourceMappingURL=edges.js.map","import extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrict } from \"./pointer.js\";\nconst defaults = extend({\n get elementRect() {\n return {\n top: 0,\n left: 0,\n bottom: 1,\n right: 1\n };\n },\n\n set elementRect(_) {}\n\n}, restrict.defaults);\nconst restrictRect = {\n start: restrict.start,\n set: restrict.set,\n defaults\n};\nexport default makeModifier(restrictRect, 'restrictRect');\nexport { restrictRect };\n//# sourceMappingURL=rect.js.map","import extend from \"../../utils/extend.js\";\nimport * as rectUtils from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\nimport { restrictEdges } from \"./edges.js\";\nimport { getRestrictionRect } from \"./pointer.js\";\nconst noMin = {\n width: -Infinity,\n height: -Infinity\n};\nconst noMax = {\n width: +Infinity,\n height: +Infinity\n};\n\nfunction start(arg) {\n return restrictEdges.start(arg);\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n rect,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return;\n }\n\n const minSize = rectUtils.tlbrToXywh(getRestrictionRect(options.min, interaction, arg.coords)) || noMin;\n const maxSize = rectUtils.tlbrToXywh(getRestrictionRect(options.max, interaction, arg.coords)) || noMax;\n state.options = {\n endOnly: options.endOnly,\n inner: extend({}, restrictEdges.noInner),\n outer: extend({}, restrictEdges.noOuter)\n };\n\n if (edges.top) {\n state.options.inner.top = rect.bottom - minSize.height;\n state.options.outer.top = rect.bottom - maxSize.height;\n } else if (edges.bottom) {\n state.options.inner.bottom = rect.top + minSize.height;\n state.options.outer.bottom = rect.top + maxSize.height;\n }\n\n if (edges.left) {\n state.options.inner.left = rect.right - minSize.width;\n state.options.outer.left = rect.right - maxSize.width;\n } else if (edges.right) {\n state.options.inner.right = rect.left + minSize.width;\n state.options.outer.right = rect.left + maxSize.width;\n }\n\n restrictEdges.set(arg);\n state.options = options;\n}\n\nconst defaults = {\n min: null,\n max: null,\n endOnly: false,\n enabled: false\n};\nconst restrictSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(restrictSize, 'restrictSize');\nexport { restrictSize };\n//# sourceMappingURL=size.js.map","import extend from \"../../utils/extend.js\";\nimport getOriginXY from \"../../utils/getOriginXY.js\";\nimport hypot from \"../../utils/hypot.js\";\nimport is from \"../../utils/is.js\";\nimport { resolveRectLike, rectToXY } from \"../../utils/rect.js\";\nimport { makeModifier } from \"../base.js\";\n\nfunction start(arg) {\n const {\n interaction,\n interactable,\n element,\n rect,\n state,\n startOffset\n } = arg;\n const {\n options\n } = state;\n const origin = options.offsetWithOrigin ? getOrigin(arg) : {\n x: 0,\n y: 0\n };\n let snapOffset;\n\n if (options.offset === 'startCoords') {\n snapOffset = {\n x: interaction.coords.start.page.x,\n y: interaction.coords.start.page.y\n };\n } else {\n const offsetRect = resolveRectLike(options.offset, interactable, element, [interaction]);\n snapOffset = rectToXY(offsetRect) || {\n x: 0,\n y: 0\n };\n snapOffset.x += origin.x;\n snapOffset.y += origin.y;\n }\n\n const {\n relativePoints\n } = options;\n state.offsets = rect && relativePoints && relativePoints.length ? relativePoints.map((relativePoint, index) => ({\n index,\n relativePoint,\n x: startOffset.left - rect.width * relativePoint.x + snapOffset.x,\n y: startOffset.top - rect.height * relativePoint.y + snapOffset.y\n })) : [extend({\n index: 0,\n relativePoint: null\n }, snapOffset)];\n}\n\nfunction set(arg) {\n const {\n interaction,\n coords,\n state\n } = arg;\n const {\n options,\n offsets\n } = state;\n const origin = getOriginXY(interaction.interactable, interaction.element, interaction.prepared.name);\n const page = extend({}, coords);\n const targets = [];\n\n if (!options.offsetWithOrigin) {\n page.x -= origin.x;\n page.y -= origin.y;\n }\n\n for (const offset of offsets) {\n const relativeX = page.x - offset.x;\n const relativeY = page.y - offset.y;\n\n for (let index = 0, len = options.targets.length; index < len; index++) {\n const snapTarget = options.targets[index];\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relativeX, relativeY, interaction._proxy, offset, index);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n targets.push({\n x: (is.number(target.x) ? target.x : relativeX) + offset.x,\n y: (is.number(target.y) ? target.y : relativeY) + offset.y,\n range: is.number(target.range) ? target.range : options.range,\n source: snapTarget,\n index,\n offset\n });\n }\n }\n\n const closest = {\n target: null,\n inRange: false,\n distance: 0,\n range: 0,\n delta: {\n x: 0,\n y: 0\n }\n };\n\n for (const target of targets) {\n const range = target.range;\n const dx = target.x - page.x;\n const dy = target.y - page.y;\n const distance = hypot(dx, dy);\n let inRange = distance <= range; // Infinite targets count as being out of range\n // compared to non infinite ones that are in range\n\n if (range === Infinity && closest.inRange && closest.range !== Infinity) {\n inRange = false;\n }\n\n if (!closest.target || (inRange // is the closest target in range?\n ? closest.inRange && range !== Infinity // the pointer is relatively deeper in this target\n ? distance / range < closest.distance / closest.range // this target has Infinite range and the closest doesn't\n : range === Infinity && closest.range !== Infinity || // OR this target is closer that the previous closest\n distance < closest.distance : // The other is not in range and the pointer is closer to this target\n !closest.inRange && distance < closest.distance)) {\n closest.target = target;\n closest.distance = distance;\n closest.range = range;\n closest.inRange = inRange;\n closest.delta.x = dx;\n closest.delta.y = dy;\n }\n }\n\n if (closest.inRange) {\n coords.x = closest.target.x;\n coords.y = closest.target.y;\n }\n\n state.closest = closest;\n return closest;\n}\n\nfunction getOrigin(arg) {\n const {\n element\n } = arg.interaction;\n const optionsOrigin = rectToXY(resolveRectLike(arg.state.options.origin, null, null, [element]));\n const origin = optionsOrigin || getOriginXY(arg.interactable, element, arg.interaction.prepared.name);\n return origin;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n offsetWithOrigin: true,\n origin: null,\n relativePoints: null,\n endOnly: false,\n enabled: false\n};\nconst snap = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snap, 'snap');\nexport { snap };\n//# sourceMappingURL=pointer.js.map","// This module allows snapping of the size of targets during resize\n// interactions.\nimport extend from \"../../utils/extend.js\";\nimport is from \"../../utils/is.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snap } from \"./pointer.js\";\n\nfunction start(arg) {\n const {\n state,\n edges\n } = arg;\n const {\n options\n } = state;\n\n if (!edges) {\n return null;\n }\n\n arg.state = {\n options: {\n targets: null,\n relativePoints: [{\n x: edges.left ? 0 : 1,\n y: edges.top ? 0 : 1\n }],\n offset: options.offset || 'self',\n origin: {\n x: 0,\n y: 0\n },\n range: options.range\n }\n };\n state.targetFields = state.targetFields || [['width', 'height'], ['x', 'y']];\n snap.start(arg);\n state.offsets = arg.state.offsets;\n arg.state = state;\n}\n\nfunction set(arg) {\n const {\n interaction,\n state,\n coords\n } = arg;\n const {\n options,\n offsets\n } = state;\n const relative = {\n x: coords.x - offsets[0].x,\n y: coords.y - offsets[0].y\n };\n state.options = extend({}, options);\n state.options.targets = [];\n\n for (const snapTarget of options.targets || []) {\n let target;\n\n if (is.func(snapTarget)) {\n target = snapTarget(relative.x, relative.y, interaction);\n } else {\n target = snapTarget;\n }\n\n if (!target) {\n continue;\n }\n\n for (const [xField, yField] of state.targetFields) {\n if (xField in target || yField in target) {\n target.x = target[xField];\n target.y = target[yField];\n break;\n }\n }\n\n state.options.targets.push(target);\n }\n\n const returnValue = snap.set(arg);\n state.options = options;\n return returnValue;\n}\n\nconst defaults = {\n range: Infinity,\n targets: null,\n offset: null,\n endOnly: false,\n enabled: false\n};\nconst snapSize = {\n start,\n set,\n defaults\n};\nexport default makeModifier(snapSize, 'snapSize');\nexport { snapSize };\n//# sourceMappingURL=size.js.map","/**\n * @module modifiers/snapEdges\n *\n * @description\n * WOW> This module allows snapping of the edges of targets during resize\n * interactions.\n *\n * ```js\n * interact(target).resizable({\n * snapEdges: {\n * targets: [interact.snappers.grid({ x: 100, y: 50 })],\n * },\n * })\n *\n * interact(target).resizable({\n * snapEdges: {\n * targets: [\n * interact.snappers.grid({\n * top: 50,\n * left: 50,\n * bottom: 100,\n * right: 100,\n * }),\n * ],\n * },\n * })\n * ```\n */\nimport clone from \"../../utils/clone.js\";\nimport extend from \"../../utils/extend.js\";\nimport { makeModifier } from \"../base.js\";\nimport { snapSize } from \"./size.js\";\n\nfunction start(arg) {\n const {\n edges\n } = arg;\n\n if (!edges) {\n return null;\n }\n\n arg.state.targetFields = arg.state.targetFields || [[edges.left ? 'left' : 'right', edges.top ? 'top' : 'bottom']];\n return snapSize.start(arg);\n}\n\nconst snapEdges = {\n start,\n set: snapSize.set,\n defaults: extend(clone(snapSize.defaults), {\n targets: null,\n range: null,\n offset: {\n x: 0,\n y: 0\n }\n })\n};\nexport default makeModifier(snapEdges, 'snapEdges');\nexport { snapEdges };\n//# sourceMappingURL=edges.js.map","/* eslint-disable node/no-extraneous-import */\nimport aspectRatio from \"./aspectRatio.js\";\nimport avoid from \"./avoid.js\";\nimport restrictEdges from \"./restrict/edges.js\";\nimport restrict from \"./restrict/pointer.js\";\nimport restrictRect from \"./restrict/rect.js\";\nimport restrictSize from \"./restrict/size.js\";\nimport rubberband from \"./rubberband.js\";\nimport snapEdges from \"./snap/edges.js\";\nimport snap from \"./snap/pointer.js\";\nimport snapSize from \"./snap/size.js\";\nimport spring from \"./spring.js\";\nimport transform from \"./transform.js\";\nexport default {\n aspectRatio,\n restrictEdges,\n restrict,\n restrictRect,\n restrictSize,\n snapEdges,\n snap,\n snapSize,\n spring,\n avoid,\n transform,\n rubberband\n};\n//# sourceMappingURL=all.js.map","import snappers from \"../snappers/plugin.js\";\nimport all from \"./all.js\";\nimport base from \"./base.js\";\nconst modifiers = {\n id: 'modifiers',\n\n install(scope) {\n const {\n interactStatic: interact\n } = scope;\n scope.usePlugin(base);\n scope.usePlugin(snappers);\n interact.modifiers = all; // for backwrads compatibility\n\n for (const type in all) {\n const {\n _defaults,\n _methods\n } = all[type];\n _defaults._methods = _methods;\n scope.defaults.perAction[type] = _defaults;\n }\n }\n\n};\nexport default modifiers;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable no-console */\nimport { Scope } from \"../core/scope.js\";\nimport domObjects from \"../utils/domObjects.js\";\nimport { parentNode } from \"../utils/domUtils.js\";\nimport extend from \"../utils/extend.js\";\nimport is from \"../utils/is.js\";\nimport * as win from \"../utils/window.js\";\nvar CheckName;\n\n(function (CheckName) {\n CheckName[\"touchAction\"] = \"touchAction\";\n CheckName[\"boxSizing\"] = \"boxSizing\";\n CheckName[\"noListeners\"] = \"noListeners\";\n})(CheckName || (CheckName = {}));\n\nconst prefix = '[interact.js] ';\nconst links = {\n touchAction: 'https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action',\n boxSizing: 'https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing'\n}; // eslint-disable-next-line no-undef\n\nconst isProduction = \"development\" === 'production'; // eslint-disable-next-line no-restricted-syntax\n\nfunction install(scope, {\n logger\n} = {}) {\n const {\n Interactable,\n defaults\n } = scope;\n scope.logger = logger || console;\n defaults.base.devTools = {\n ignore: {}\n };\n\n Interactable.prototype.devTools = function (options) {\n if (options) {\n extend(this.options.devTools, options);\n return this;\n }\n\n return this.options.devTools;\n };\n}\n\nconst checks = [{\n name: CheckName.touchAction,\n\n perform({\n element\n }) {\n return !parentHasStyle(element, 'touchAction', /pan-|pinch|none/);\n },\n\n getInfo({\n element\n }) {\n return [element, links.touchAction];\n },\n\n text: 'Consider adding CSS \"touch-action: none\" to this element\\n'\n}, {\n name: CheckName.boxSizing,\n\n perform(interaction) {\n const {\n element\n } = interaction;\n return interaction.prepared.name === 'resize' && element instanceof domObjects.HTMLElement && !hasStyle(element, 'boxSizing', /border-box/);\n },\n\n text: 'Consider adding CSS \"box-sizing: border-box\" to this resizable element',\n\n getInfo({\n element\n }) {\n return [element, links.boxSizing];\n }\n\n}, {\n name: CheckName.noListeners,\n\n perform(interaction) {\n const actionName = interaction.prepared.name;\n const moveListeners = interaction.interactable.events.types[`${actionName}move`] || [];\n return !moveListeners.length;\n },\n\n getInfo(interaction) {\n return [interaction.prepared.name, interaction.interactable];\n },\n\n text: 'There are no listeners set for this action'\n}];\n\nfunction hasStyle(element, prop, styleRe) {\n const value = element.style[prop] || win.window.getComputedStyle(element)[prop];\n return styleRe.test((value || '').toString());\n}\n\nfunction parentHasStyle(element, prop, styleRe) {\n let parent = element;\n\n while (is.element(parent)) {\n if (hasStyle(parent, prop, styleRe)) {\n return true;\n }\n\n parent = parentNode(parent);\n }\n\n return false;\n}\n\nconst id = 'dev-tools';\nconst defaultExport = isProduction ? {\n id,\n install: () => {}\n} : {\n id,\n install,\n listeners: {\n 'interactions:action-start': ({\n interaction\n }, scope) => {\n for (const check of checks) {\n const options = interaction.interactable && interaction.interactable.options;\n\n if (!(options && options.devTools && options.devTools.ignore[check.name]) && check.perform(interaction)) {\n scope.logger.warn(prefix + check.text, ...check.getInfo(interaction));\n }\n }\n }\n },\n checks,\n CheckName,\n links,\n prefix\n};\nexport default defaultExport;\n//# sourceMappingURL=plugin.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","/* eslint-disable import/order, no-console, eol-last */\nimport interact, { init } from \"../interact/index.js\";\nimport plugin from \"./plugin.js\";\n\nif (typeof window === 'object' && !!window) {\n init(window);\n}\n\ninteract.use(plugin);\n//# sourceMappingURL=index.js.map","import { render } from \"./GridItem.vue?vue&type=template&id=46ff2fc8\"\nimport script from \"./GridItem.vue?vue&type=script&lang=js\"\nexport * from \"./GridItem.vue?vue&type=script&lang=js\"\n\nimport \"./GridItem.vue?vue&type=style&index=0&id=46ff2fc8&lang=css\"\nscript.render = render\n\nexport default script","\r\n\r\n\r\n","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function(n){return{all:n=n||new Map,on:function(t,e){var i=n.get(t);i&&i.push(e)||n.set(t,[e])},off:function(t,e){var i=n.get(t);i&&i.splice(i.indexOf(e)>>>0,1)},emit:function(t,e){(n.get(t)||[]).slice().map(function(n){n(e)}),(n.get(\"*\")||[]).slice().map(function(n){n(t,e)})}}}\n//# sourceMappingURL=mitt.es.js.map\n","import { render } from \"./GridLayout.vue?vue&type=template&id=fc5948f6\"\nimport script from \"./GridLayout.vue?vue&type=script&lang=js\"\nexport * from \"./GridLayout.vue?vue&type=script&lang=js\"\n\nimport \"./GridLayout.vue?vue&type=style&index=0&id=fc5948f6&lang=css\"\nscript.render = render\n\nexport default script","import { App } from 'vue';\r\n\r\nimport GridItem from './GridItem.vue';\r\nimport GridLayout from './GridLayout.vue';\r\n\r\nexport { GridLayout, GridItem };\r\n\r\nconst install = (app: App) => {\r\n app.component('grid-layout', GridLayout)\r\n app.component('grid-item', GridItem)\r\n}\r\n\r\nexport default install;","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","// 20.1.2.2 Number.isFinite(number)\nvar $export = require('./_export');\nvar _isFinite = require('./_global').isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it) {\n return typeof it == 'number' && _isFinite(it);\n }\n});\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7d77626f..0ce62ec6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,9 +1,20 @@ { "name": "vue-grid-layout", - "version": "2.3.12", + "version": "3.0.0-beta1", "lockfileVersion": 1, "requires": true, "dependencies": { + "@achrinza/node-ipc": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@achrinza/node-ipc/-/node-ipc-9.2.2.tgz", + "integrity": "sha512-b90U39dx0cU6emsOvy5hxU4ApNXnE3+Tuo8XQZfiKTGelDwpMwBVgBP7QX6dGTcJgu/miyJuNJ/2naFBliNWEw==", + "dev": true, + "requires": { + "@node-ipc/js-queue": "2.0.3", + "event-pubsub": "4.3.0", + "js-message": "1.0.7" + } + }, "@babel/code-frame": { "version": "7.12.11", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", @@ -238,6 +249,12 @@ "@babel/types": "^7.12.11" } }, + "@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "dev": true + }, "@babel/helper-validator-identifier": { "version": "7.12.11", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", @@ -817,6 +834,16 @@ "to-fast-properties": "^2.0.0" } }, + "@cnakazawa/watch": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", + "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", + "dev": true, + "requires": { + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" + } + }, "@hapi/address": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", @@ -1027,6 +1054,288 @@ "postcss": "^7.0.0" } }, + "@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "requires": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true + }, + "ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true + }, + "emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "requires": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + } + }, + "strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "requires": { + "ansi-regex": "^6.0.1" + } + }, + "wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "requires": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + } + } + } + }, + "@jest/console": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-24.9.0.tgz", + "integrity": "sha512-Zuj6b8TnKXi3q4ymac8EQfc3ea/uhLeCGThFqXeC8H9/raaH8ARPUTdId+XyGd03Z4In0/VjD2OYFcBF09fNLQ==", + "dev": true, + "requires": { + "@jest/source-map": "^24.9.0", + "chalk": "^2.0.1", + "slash": "^2.0.0" + } + }, + "@jest/core": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-24.9.0.tgz", + "integrity": "sha512-Fogg3s4wlAr1VX7q+rhV9RVnUv5tD7VuWfYy1+whMiWUrvl7U3QJSJyWcDio9Lq2prqYsZaeTv2Rz24pWGkJ2A==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/reporters": "^24.9.0", + "@jest/test-result": "^24.9.0", + "@jest/transform": "^24.9.0", + "@jest/types": "^24.9.0", + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "graceful-fs": "^4.1.15", + "jest-changed-files": "^24.9.0", + "jest-config": "^24.9.0", + "jest-haste-map": "^24.9.0", + "jest-message-util": "^24.9.0", + "jest-regex-util": "^24.3.0", + "jest-resolve": "^24.9.0", + "jest-resolve-dependencies": "^24.9.0", + "jest-runner": "^24.9.0", + "jest-runtime": "^24.9.0", + "jest-snapshot": "^24.9.0", + "jest-util": "^24.9.0", + "jest-validate": "^24.9.0", + "jest-watcher": "^24.9.0", + "micromatch": "^3.1.10", + "p-each-series": "^1.0.0", + "realpath-native": "^1.1.0", + "rimraf": "^2.5.4", + "slash": "^2.0.0", + "strip-ansi": "^5.0.0" + } + }, + "@jest/environment": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-24.9.0.tgz", + "integrity": "sha512-5A1QluTPhvdIPFYnO3sZC3smkNeXPVELz7ikPbhUj0bQjB07EoE9qtLrem14ZUYWdVayYbsjVwIiL4WBIMV4aQ==", + "dev": true, + "requires": { + "@jest/fake-timers": "^24.9.0", + "@jest/transform": "^24.9.0", + "@jest/types": "^24.9.0", + "jest-mock": "^24.9.0" + } + }, + "@jest/fake-timers": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-24.9.0.tgz", + "integrity": "sha512-eWQcNa2YSwzXWIMC5KufBh3oWRIijrQFROsIqt6v/NS9Io/gknw1jsAC9c+ih/RQX4A3O7SeWAhQeN0goKhT9A==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "jest-message-util": "^24.9.0", + "jest-mock": "^24.9.0" + } + }, + "@jest/reporters": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-24.9.0.tgz", + "integrity": "sha512-mu4X0yjaHrffOsWmVLzitKmmmWSQ3GGuefgNscUSWNiUNcEOSEQk9k3pERKEQVBb0Cnn88+UESIsZEMH3o88Gw==", + "dev": true, + "requires": { + "@jest/environment": "^24.9.0", + "@jest/test-result": "^24.9.0", + "@jest/transform": "^24.9.0", + "@jest/types": "^24.9.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "glob": "^7.1.2", + "istanbul-lib-coverage": "^2.0.2", + "istanbul-lib-instrument": "^3.0.1", + "istanbul-lib-report": "^2.0.4", + "istanbul-lib-source-maps": "^3.0.1", + "istanbul-reports": "^2.2.6", + "jest-haste-map": "^24.9.0", + "jest-resolve": "^24.9.0", + "jest-runtime": "^24.9.0", + "jest-util": "^24.9.0", + "jest-worker": "^24.6.0", + "node-notifier": "^5.4.2", + "slash": "^2.0.0", + "source-map": "^0.6.0", + "string-length": "^2.0.0" + }, + "dependencies": { + "jest-worker": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz", + "integrity": "sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw==", + "dev": true, + "requires": { + "merge-stream": "^2.0.0", + "supports-color": "^6.1.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "@jest/source-map": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-24.9.0.tgz", + "integrity": "sha512-/Xw7xGlsZb4MJzNDgB7PW5crou5JqWiBQaz6xyPd3ArOg2nfn/PunV8+olXbbEZzNl591o5rWKE9BRDaFAuIBg==", + "dev": true, + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.1.15", + "source-map": "^0.6.0" + }, + "dependencies": { + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "@jest/test-result": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-24.9.0.tgz", + "integrity": "sha512-XEFrHbBonBJ8dGp2JmF8kP/nQI/ImPpygKHwQ/SY+es59Z3L5PI4Qb9TQQMAEeYsThG1xF0k6tmG0tIKATNiiA==", + "dev": true, + "requires": { + "@jest/console": "^24.9.0", + "@jest/types": "^24.9.0", + "@types/istanbul-lib-coverage": "^2.0.0" + } + }, + "@jest/test-sequencer": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-24.9.0.tgz", + "integrity": "sha512-6qqsU4o0kW1dvA95qfNog8v8gkRN9ph6Lz7r96IvZpHdNipP2cBcb07J1Z45mz/VIS01OHJ3pY8T5fUY38tg4A==", + "dev": true, + "requires": { + "@jest/test-result": "^24.9.0", + "jest-haste-map": "^24.9.0", + "jest-runner": "^24.9.0", + "jest-runtime": "^24.9.0" + } + }, + "@jest/transform": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-24.9.0.tgz", + "integrity": "sha512-TcQUmyNRxV94S0QpMOnZl0++6RMiqpbH/ZMccFB/amku6Uwvyb1cjYX7xkp5nGNkbX4QPH/FcB6q1HBTHynLmQ==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^24.9.0", + "babel-plugin-istanbul": "^5.1.0", + "chalk": "^2.0.1", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.1.15", + "jest-haste-map": "^24.9.0", + "jest-regex-util": "^24.9.0", + "jest-util": "^24.9.0", + "micromatch": "^3.1.10", + "pirates": "^4.0.1", + "realpath-native": "^1.1.0", + "slash": "^2.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "2.4.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "@jest/types": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", + "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^13.0.0" + } + }, "@mrmlnc/readdir-enhanced": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", @@ -1037,12 +1346,34 @@ "glob-to-regexp": "^0.3.0" } }, + "@node-ipc/js-queue": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@node-ipc/js-queue/-/js-queue-2.0.3.tgz", + "integrity": "sha512-fL1wpr8hhD5gT2dA1qifeVaoDFlQR5es8tFuKqjHX+kdOtdNHnxkVZbtIrR2rxnMFvehkjaZRNV2H/gPXlb0hw==", + "dev": true, + "requires": { + "easy-stack": "1.0.1" + } + }, "@nodelib/fs.stat": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==", "dev": true }, + "@one-ini/wasm": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@one-ini/wasm/-/wasm-0.1.1.tgz", + "integrity": "sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==", + "dev": true + }, + "@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true + }, "@soda/friendly-errors-webpack-plugin": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.8.0.tgz", @@ -1067,6 +1398,91 @@ "integrity": "sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==", "dev": true }, + "@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "requires": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + }, + "dependencies": { + "@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true + }, + "@babel/parser": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.5.tgz", + "integrity": "sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==", + "dev": true + }, + "@babel/types": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz", + "integrity": "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==", + "dev": true, + "requires": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@types/babel__generator": { + "version": "7.6.7", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.7.tgz", + "integrity": "sha512-6Sfsq+EaaLrw4RmdFWE9Onp63TOUue71AWb4Gpa6JxzgTYtimbM086WnYTy2U67AofR++QKCo08ZP6pwx8YFHQ==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.20.4", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.4.tgz", + "integrity": "sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==", + "dev": true, + "requires": { + "@babel/types": "^7.20.7" + }, + "dependencies": { + "@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true + }, + "@babel/types": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz", + "integrity": "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==", + "dev": true, + "requires": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + } + } + } + }, "@types/body-parser": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.0.tgz", @@ -1149,6 +1565,40 @@ "@types/node": "*" } }, + "@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", + "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*", + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "24.9.1", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.9.1.tgz", + "integrity": "sha512-Fb38HkXSVA4L8fGKEZ6le5bB8r6MRWlOCZbVuWZcmOMSCd2wCYOwN1ibj8daIoV9naq7aaOZjrLCoCMptKU/4Q==", + "dev": true, + "requires": { + "jest-diff": "^24.3.0" + } + }, "@types/json-schema": { "version": "7.0.7", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", @@ -1219,6 +1669,24 @@ "integrity": "sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA==", "dev": true }, + "@types/stack-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", + "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==", + "dev": true + }, + "@types/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-xevGOReSYGM7g/kUBZzPqCrR/KYAo+F0yiPc85WFTJa0MSLtyFTVTU6cJu/aV4mid7IffDIWqo69THF2o4JiEQ==", + "dev": true + }, + "@types/strip-json-comments": { + "version": "0.0.30", + "resolved": "https://registry.npmjs.org/@types/strip-json-comments/-/strip-json-comments-0.0.30.tgz", + "integrity": "sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ==", + "dev": true + }, "@types/tapable": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@types/tapable/-/tapable-1.0.6.tgz", @@ -1296,6 +1764,21 @@ } } }, + "@types/yargs": { + "version": "13.0.12", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", + "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, "@vue/babel-helper-vue-jsx-merge-props": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.2.1.tgz", @@ -1549,6 +2032,78 @@ } } }, + "@vue/cli-plugin-unit-jest": { + "version": "4.5.19", + "resolved": "https://registry.npmjs.org/@vue/cli-plugin-unit-jest/-/cli-plugin-unit-jest-4.5.19.tgz", + "integrity": "sha512-yX61mpeU7DnjOv+Lxtjmr3pzESqBLIXeTK4MJpa/UdzrhnylHP4r6mCYETNLEYtxp8WZUXPjZFIzrKn5poZPJg==", + "dev": true, + "requires": { + "@babel/core": "^7.11.0", + "@babel/plugin-transform-modules-commonjs": "^7.9.6", + "@types/jest": "^24.0.19", + "@vue/cli-shared-utils": "^4.5.19", + "babel-core": "^7.0.0-bridge.0", + "babel-jest": "^24.9.0", + "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", + "deepmerge": "^4.2.2", + "jest": "^24.9.0", + "jest-environment-jsdom-fifteen": "^1.0.2", + "jest-serializer-vue": "^2.0.2", + "jest-transform-stub": "^2.0.0", + "jest-watch-typeahead": "^0.4.2", + "ts-jest": "^24.2.0", + "vue-jest": "^3.0.5" + }, + "dependencies": { + "@vue/cli-shared-utils": { + "version": "4.5.19", + "resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-4.5.19.tgz", + "integrity": "sha512-JYpdsrC/d9elerKxbEUtmSSU6QRM60rirVubOewECHkBHj+tLNznWq/EhCjswywtePyLaMUK25eTqnTSZlEE+g==", + "dev": true, + "requires": { + "@achrinza/node-ipc": "9.2.2", + "@hapi/joi": "^15.0.1", + "chalk": "^2.4.2", + "execa": "^1.0.0", + "launch-editor": "^2.2.1", + "lru-cache": "^5.1.1", + "open": "^6.3.0", + "ora": "^3.4.0", + "read-pkg": "^5.1.1", + "request": "^2.88.2", + "semver": "^6.1.0", + "strip-ansi": "^6.0.0" + } + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, "@vue/cli-plugin-vuex": { "version": "4.5.10", "resolved": "https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-4.5.10.tgz", @@ -1712,31 +2267,12 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "optional": true - }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true }, - "loader-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", - "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", - "dev": true, - "optional": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - }, "p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", @@ -1794,16 +2330,6 @@ "ansi-regex": "^5.0.0" } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "optional": true, - "requires": { - "has-flag": "^4.0.0" - } - }, "terser-webpack-plugin": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz", @@ -1821,31 +2347,6 @@ "webpack-sources": "^1.4.3" } }, - "vue-loader-v16": { - "version": "npm:vue-loader@16.1.2", - "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz", - "integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==", - "dev": true, - "optional": true, - "requires": { - "chalk": "^4.1.0", - "hash-sum": "^2.0.0", - "loader-utils": "^2.0.0" - }, - "dependencies": { - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - } - } - }, "wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", @@ -2251,6 +2752,12 @@ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true }, + "abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "dev": true + }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -2273,6 +2780,24 @@ "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", "dev": true }, + "acorn-globals": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.4.tgz", + "integrity": "sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A==", + "dev": true, + "requires": { + "acorn": "^6.0.1", + "acorn-walk": "^6.0.1" + }, + "dependencies": { + "acorn-walk": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.2.0.tgz", + "integrity": "sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA==", + "dev": true + } + } + }, "acorn-jsx": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", @@ -2368,8 +2893,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", - "dev": true, - "optional": true + "dev": true }, "ansi-html": { "version": "0.0.7", @@ -2458,6 +2982,12 @@ "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", "dev": true }, + "array-equal": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.2.tgz", + "integrity": "sha512-gUHx76KtnhEgB3HOuFYiCm3FIdEs6ocM2asHvNTkfu/Y09qQVrrVVaOKENmS2KkSaGoxgXNqC+ZVtR/n0MOkSA==", + "dev": true + }, "array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", @@ -2559,6 +3089,12 @@ "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", "dev": true }, + "astral-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "dev": true + }, "async": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", @@ -2630,7 +3166,6 @@ "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", "dev": true, - "optional": true, "requires": { "chalk": "^1.1.3", "esutils": "^2.0.2", @@ -2641,22 +3176,19 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "optional": true + "dev": true }, "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true, - "optional": true + "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, - "optional": true, "requires": { "ansi-styles": "^2.2.1", "escape-string-regexp": "^1.0.2", @@ -2669,15 +3201,13 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", - "dev": true, - "optional": true + "dev": true }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -2686,11 +3216,16 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true, - "optional": true + "dev": true } } }, + "babel-core": { + "version": "7.0.0-bridge.0", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz", + "integrity": "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==", + "dev": true + }, "babel-eslint": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz", @@ -2705,6 +3240,21 @@ "resolve": "^1.12.0" } }, + "babel-jest": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-24.9.0.tgz", + "integrity": "sha512-ntuddfyiN+EhMw58PTNL1ph4C9rECiQXjI4nMMBKBaNjXvqLdkXpPRcMSr4iyBrJg/+wz9brFUD6RhOAT6r4Iw==", + "dev": true, + "requires": { + "@jest/transform": "^24.9.0", + "@jest/types": "^24.9.0", + "@types/babel__core": "^7.1.0", + "babel-plugin-istanbul": "^5.1.0", + "babel-preset-jest": "^24.9.0", + "chalk": "^2.4.2", + "slash": "^2.0.0" + } + }, "babel-loader": { "version": "8.2.2", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.2.tgz", @@ -2717,6 +3267,15 @@ "schema-utils": "^2.6.5" } }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha512-Bl3ZiA+LjqaMtNYopA9TYE9HP1tQ+E5dLxE0XrAzcIJeK2UqF0/EaqXwBn9esd4UmTfEab+P+UYQ1GnioFIb/w==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, "babel-plugin-dynamic-import-node": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", @@ -2726,6 +3285,72 @@ "object.assign": "^4.1.0" } }, + "babel-plugin-istanbul": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-5.2.0.tgz", + "integrity": "sha512-5LphC0USA8t4i1zCtjbbNb6jJj/9+X6P37Qfirc/70EQ34xKlMW+a1RHGwxGI+SwWpNwZ27HqvzAobeqaXwiZw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "find-up": "^3.0.0", + "istanbul-lib-instrument": "^3.3.0", + "test-exclude": "^5.2.3" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + } + } + }, + "babel-plugin-jest-hoist": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.9.0.tgz", + "integrity": "sha512-2EMA2P8Vp7lG0RAzr4HXqtYwacfMErOuv1U3wrvxHX6rD1sV6xS3WXG3r8TRQ2r6w8OhvSdWt+z41hQNwNm3Xw==", + "dev": true, + "requires": { + "@types/babel__traverse": "^7.0.6" + } + }, "babel-plugin-module-resolver": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-3.2.0.tgz", @@ -2745,6 +3370,18 @@ "integrity": "sha1-TDqyCiryaqIM0lmVw5jE63AxDI0=", "dev": true }, + "babel-plugin-transform-es2015-modules-commonjs": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", + "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", + "dev": true, + "requires": { + "babel-plugin-transform-strict-mode": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-types": "^6.26.0" + } + }, "babel-plugin-transform-flow-comments": { "version": "6.22.0", "resolved": "https://registry.npmjs.org/babel-plugin-transform-flow-comments/-/babel-plugin-transform-flow-comments-6.22.0.tgz", @@ -2755,6 +3392,26 @@ "babel-runtime": "^6.22.0" } }, + "babel-plugin-transform-strict-mode": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", + "integrity": "sha512-j3KtSpjyLSJxNoCDrhwiJad8kw0gJ9REGj8/CqL0HeRyLnvUNYV9zcqluL6QJSXh3nfsLEmSLvwRfGzrgR96Pw==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-preset-jest": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-24.9.0.tgz", + "integrity": "sha512-izTUuhE4TMfTRPF92fFwD2QfdXaZW08qvWTFCI51V8rW5x00UuPgc3ajRoWofXOuxjfcOM5zzSYsQS3H8KGCAg==", + "dev": true, + "requires": { + "@babel/plugin-syntax-object-rest-spread": "^7.0.0", + "babel-plugin-jest-hoist": "^24.9.0" + } + }, "babel-runtime": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", @@ -2773,6 +3430,85 @@ } } }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha512-PCOcLFW7/eazGUKIoqH97sO9A2UYMahsn/yRQ7uOk37iutwjq7ODtcTNF+iFDSHNfkctqsLRjLP7URnOx0T1fg==", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha512-iSxeXx7apsjCHe9c7n8VtRXGzI2Bk1rBSOJgCCjfyXb6v1aCqE1KSEpq/8SXuVN8Ka/Rh1WDTF0MDzkvTA4MIA==", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + } + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha512-zhe3V/26rCWsEZK8kZN+HaQj5yQ1CilTObixFzKW1UWjqG7618Twz6YEsCnjfg5gBcJh02DrpCkS9h98ZqDY+g==", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" + }, + "dependencies": { + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha512-lxrWP8ejsq+7E3nNjwYmUBMAgjMTZoTI+sdBOpvNyijeDLa29LUn9QaoXAHv4+Z578hbmHHJKZknzxVtvo77og==", + "dev": true + } + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -2885,6 +3621,15 @@ "dev": true, "optional": true }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "dev": true, + "requires": { + "file-uri-to-path": "1.0.0" + } + }, "block-stream": { "version": "0.0.9", "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", @@ -3020,6 +3765,29 @@ "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", "dev": true }, + "browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "browser-resolve": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", + "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "dev": true, + "requires": { + "resolve": "1.1.7" + }, + "dependencies": { + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg==", + "dev": true + } + } + }, "browserify-aes": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", @@ -3125,6 +3893,24 @@ "node-releases": "^1.1.69" } }, + "bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "requires": { + "fast-json-stable-stringify": "2.x" + } + }, + "bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, "buffer": { "version": "4.9.2", "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", @@ -3328,6 +4114,15 @@ "integrity": "sha512-blMmO0QQujuUWZKyVrD1msR4WNDAqb/UPO1Sw2WWsQ7deoM5bJiicKnWJ1Y0NS/aGINSnKPIWBMw5luX+NDUCA==", "dev": true }, + "capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "dev": true, + "requires": { + "rsvp": "^4.8.4" + } + }, "case-sensitive-paths-webpack-plugin": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.3.0.tgz", @@ -3660,23 +4455,11 @@ "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", "dev": true }, - "clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - } - }, "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true, - "optional": true + "dev": true }, "coa": { "version": "2.0.2", @@ -3838,26 +4621,67 @@ "typedarray": "^0.0.6" } }, - "connect-history-api-fallback": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", - "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", - "dev": true - }, - "console-browserify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", - "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", - "dev": true - }, - "console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true - }, - "consolidate": { - "version": "0.15.1", + "condense-newlines": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/condense-newlines/-/condense-newlines-0.2.1.tgz", + "integrity": "sha512-P7X+QL9Hb9B/c8HI5BFFKmjgBu2XpQuF98WZ9XkO+dBGgk5XgwiQz7o1SmpglNWId3581UcS0SFAWfoIhMHPfg==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-whitespace": "^0.3.0", + "kind-of": "^3.0.2" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "config-chain": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", + "dev": true, + "requires": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + } + }, + "connect-history-api-fallback": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", + "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", + "dev": true + }, + "console-browserify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "dev": true + }, + "consolidate": { + "version": "0.15.1", "resolved": "https://registry.npmjs.org/consolidate/-/consolidate-0.15.1.tgz", "integrity": "sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==", "dev": true, @@ -4183,6 +5007,26 @@ "randomfill": "^1.0.3" } }, + "css": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", + "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "source-map": "^0.6.1", + "source-map-resolve": "^0.5.2", + "urix": "^0.1.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, "css-color-names": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", @@ -4386,6 +5230,21 @@ } } }, + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + }, + "cssstyle": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.4.0.tgz", + "integrity": "sha512-GBrLZYZ4X4x6/QEoBnIrqb8B/f5l4+8me2dkom/j1Gtbxy0kBv6OGzKuAsGM75bkGwGAFkt56Iwg28S3XTZgSA==", + "dev": true, + "requires": { + "cssom": "0.3.x" + } + }, "csstype": { "version": "2.6.14", "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.14.tgz", @@ -4416,6 +5275,40 @@ "assert-plus": "^1.0.0" } }, + "data-urls": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz", + "integrity": "sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "whatwg-mimetype": "^2.2.0", + "whatwg-url": "^7.0.0" + }, + "dependencies": { + "whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "dev": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + } + } + }, + "deasync": { + "version": "0.1.29", + "resolved": "https://registry.npmjs.org/deasync/-/deasync-0.1.29.tgz", + "integrity": "sha512-EBtfUhVX23CE9GR6m+F8WPeImEE4hR/FW9RkK0PMl9V1t283s0elqsTD8EZjaKX28SY1BW2rYfCgNsAYdpamUw==", + "dev": true, + "requires": { + "bindings": "^1.5.0", + "node-addon-api": "^1.7.1" + } + }, "debug": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", @@ -4455,8 +5348,7 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true, - "optional": true + "dev": true }, "deepmerge": { "version": "1.5.2", @@ -4716,12 +5608,24 @@ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", "dev": true }, + "detect-newline": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", + "integrity": "sha512-CwffZFvlJffUg9zZA0uqrjQayUTC8ob94pnr5sFwaVv3IOmkfUHcWH+jXaQK3askE51Cqe8/9Ql/0uXNwqZ8Zg==", + "dev": true + }, "detect-node": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz", "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==", "dev": true }, + "diff-sequences": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz", + "integrity": "sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==", + "dev": true + }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -4824,6 +5728,15 @@ "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", "dev": true }, + "domexception": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", + "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", + "dev": true, + "requires": { + "webidl-conversions": "^4.0.2" + } + }, "domhandler": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", @@ -4882,6 +5795,12 @@ "stream-shift": "^1.0.0" } }, + "eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, "easy-stack": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/easy-stack/-/easy-stack-1.0.1.tgz", @@ -4898,6 +5817,68 @@ "safer-buffer": "^2.1.0" } }, + "editorconfig": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-1.0.4.tgz", + "integrity": "sha512-L9Qe08KWTlqYMVvMcTIvMAdl1cDUubzRNYL+WfA4bLDMHe4nemKkpmYzkznE1FwLKu0EEmy6obgQKzMJrg4x9Q==", + "dev": true, + "requires": { + "@one-ini/wasm": "0.1.1", + "commander": "^10.0.0", + "minimatch": "9.0.1", + "semver": "^7.5.3" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "dev": true + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "minimatch": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.1.tgz", + "integrity": "sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -5081,6 +6062,28 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, + "escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "dev": true, + "requires": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } + } + }, "eslint": { "version": "4.19.1", "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz", @@ -5239,39 +6242,21 @@ } }, "eslint-plugin-vue": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-7.4.1.tgz", - "integrity": "sha512-W/xPNHYIkGJphLUM2UIYYGKbRw3BcDoMIPY9lu1TTa2YLiZoxurddfnmOP+UOVywxb5vi438ejzwvKdZqydtIw==", + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-7.20.0.tgz", + "integrity": "sha512-oVNDqzBC9h3GO+NTgWeLMhhGigy6/bQaQbHS+0z7C4YEu/qK/yxHvca/2PTZtGNPsCrHwOTgKMrwu02A9iPBmw==", "dev": true, "requires": { "eslint-utils": "^2.1.0", "natural-compare": "^1.4.0", - "semver": "^7.3.2", - "vue-eslint-parser": "^7.3.0" + "semver": "^6.3.0", + "vue-eslint-parser": "^7.10.0" }, "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, "semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } @@ -5332,6 +6317,7 @@ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz", "integrity": "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==", "dev": true, + "optional": true, "requires": { "estraverse": "^5.1.0" }, @@ -5340,7 +6326,8 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true + "dev": true, + "optional": true } } }, @@ -5377,8 +6364,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "optional": true + "dev": true }, "etag": { "version": "1.8.1", @@ -5423,6 +6409,12 @@ "safe-buffer": "^5.1.1" } }, + "exec-sh": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", + "integrity": "sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==", + "dev": true + }, "execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", @@ -5438,6 +6430,12 @@ "strip-eof": "^1.0.0" } }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true + }, "expand-brackets": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", @@ -5488,6 +6486,20 @@ } } }, + "expect": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-24.9.0.tgz", + "integrity": "sha512-wvVAx8XIol3Z5m9zvZXiyZOQ+sRJqNTIm6sGjdWlaZIeupQGO3WbYI+15D/AmEwZywL6wtJkbAbJtzkOfBuR0Q==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "ansi-styles": "^3.2.0", + "jest-get-type": "^24.9.0", + "jest-matcher-utils": "^24.9.0", + "jest-message-util": "^24.9.0", + "jest-regex-util": "^24.9.0" + } + }, "express": { "version": "4.17.1", "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", @@ -5653,6 +6665,15 @@ } } }, + "extract-from-css": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/extract-from-css/-/extract-from-css-0.4.4.tgz", + "integrity": "sha512-41qWGBdtKp9U7sgBxAQ7vonYqSXzgW/SiAYzq4tdWSVhAShvpVCH1nyvPQgjse6EdgbW7Y7ERdT3674/lKr65A==", + "dev": true, + "requires": { + "css": "^2.1.0" + } + }, "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", @@ -5712,8 +6733,7 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true, - "optional": true + "dev": true }, "faye-websocket": { "version": "0.11.3", @@ -5724,6 +6744,15 @@ "websocket-driver": ">=0.5.1" } }, + "fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "requires": { + "bser": "2.1.1" + } + }, "figgy-pudding": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", @@ -5761,6 +6790,12 @@ "schema-utils": "^2.5.0" } }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "dev": true + }, "filesize": { "version": "3.6.1", "resolved": "https://registry.npmjs.org/filesize/-/filesize-3.6.1.tgz", @@ -5907,53 +6942,112 @@ "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, - "forwarded": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", - "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", - "dev": true - }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "requires": { - "map-cache": "^0.2.2" - } - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", - "dev": true - }, - "from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", "dev": true, "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" - } + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "dependencies": { + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "forwarded": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", + "dev": true + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "dev": true, + "requires": { + "map-cache": "^0.2.2" + } + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "dev": true + }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } }, "fs-extra": { "version": "7.0.1", @@ -6226,6 +7320,12 @@ "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", "dev": true }, + "growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw==", + "dev": true + }, "gzip-size": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-5.1.1.tgz", @@ -6451,12 +7551,27 @@ "integrity": "sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ==", "dev": true }, + "html-encoding-sniffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", + "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", + "dev": true, + "requires": { + "whatwg-encoding": "^1.0.1" + } + }, "html-entities": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.4.0.tgz", "integrity": "sha512-8nxjcBcd8wovbeKx7h3wTji4e6+rhaVuPNpMqwWgnHh+N9ToqsCs6XztWRBPQ+UtzsoMAdKZtUENoVzU/EMtZA==", "dev": true }, + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, "html-minifier": { "version": "3.5.21", "resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-3.5.21.tgz", @@ -6863,6 +7978,12 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, "inquirer": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz", @@ -7130,6 +8251,12 @@ "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, "is-glob": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", @@ -7261,6 +8388,12 @@ "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", "dev": true }, + "is-whitespace": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-whitespace/-/is-whitespace-0.3.0.tgz", + "integrity": "sha512-RydPhl4S6JwAyj0JJjshWJEFG6hNye3pZFBRZaTUfZFwGHxzppNaNOVgQuS/E/SlhrApuMXrpnK1EEIXfdo3Dg==", + "dev": true + }, "is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", @@ -7297,119 +8430,1228 @@ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", "dev": true }, - "javascript-stringify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/javascript-stringify/-/javascript-stringify-2.0.1.tgz", - "integrity": "sha512-yV+gqbd5vaOYjqlbk16EG89xB5udgjqQF3C5FAORDg4f/IS1Yc5ERCv5e/57yBcfJYw05V5JyIXabhwb75Xxow==", + "istanbul-lib-coverage": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", + "integrity": "sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA==", "dev": true }, - "jest-worker": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.5.0.tgz", - "integrity": "sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw==", + "istanbul-lib-instrument": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz", + "integrity": "sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA==", "dev": true, "requires": { - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" + "@babel/generator": "^7.4.0", + "@babel/parser": "^7.4.3", + "@babel/template": "^7.4.0", + "@babel/traverse": "^7.4.3", + "@babel/types": "^7.4.0", + "istanbul-lib-coverage": "^2.0.5", + "semver": "^6.0.0" }, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true + } + } + }, + "istanbul-lib-report": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz", + "integrity": "sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^2.0.5", + "make-dir": "^2.1.0", + "supports-color": "^6.1.0" + }, + "dependencies": { + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } }, "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "has-flag": "^3.0.0" } } } }, - "js-base64": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", - "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==", - "dev": true - }, - "js-levenshtein": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", - "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", - "dev": true - }, - "js-message": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/js-message/-/js-message-1.0.7.tgz", - "integrity": "sha512-efJLHhLjIyKRewNS9EGZ4UpI8NguuL6fKkhRxVuMmrGV2xN/0APGdQYwLFky5w9naebSZ0OwAGp0G6/2Cg90rA==", - "dev": true - }, - "js-queue": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/js-queue/-/js-queue-2.0.2.tgz", - "integrity": "sha512-pbKLsbCfi7kriM3s1J4DDCo7jQkI58zPLHi0heXPzPlj0hjUsm+FesPUbE0DSbIVIK503A36aUBoCN7eMFedkA==", + "istanbul-lib-source-maps": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz", + "integrity": "sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==", "dev": true, "requires": { - "easy-stack": "^1.0.1" + "debug": "^4.1.1", + "istanbul-lib-coverage": "^2.0.5", + "make-dir": "^2.1.0", + "rimraf": "^2.6.3", + "source-map": "^0.6.1" + }, + "dependencies": { + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } } }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "istanbul-reports": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.2.7.tgz", + "integrity": "sha512-uu1F/L1o5Y6LzPVSVZXNOoD/KXpJue9aeLRd0sM9uMXfZvzomB0WxVamWb5ue8kA2vVWEmW7EG+A5n3f1kqHKg==", "dev": true, "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "html-escaper": "^2.0.0" } }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true + "jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "requires": { + "@isaacs/cliui": "^8.0.2", + "@pkgjs/parseargs": "^0.11.0" + } }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "javascript-stringify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/javascript-stringify/-/javascript-stringify-2.0.1.tgz", + "integrity": "sha512-yV+gqbd5vaOYjqlbk16EG89xB5udgjqQF3C5FAORDg4f/IS1Yc5ERCv5e/57yBcfJYw05V5JyIXabhwb75Xxow==", "dev": true }, - "json-stable-stringify-without-jsonify": { + "jest": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-24.9.0.tgz", + "integrity": "sha512-YvkBL1Zm7d2B1+h5fHEOdyjCG+sGMz4f8D86/0HiqJ6MB4MnDc8FgP5vdWsGnemOQro7lnYo8UakZ3+5A0jxGw==", + "dev": true, + "requires": { + "import-local": "^2.0.0", + "jest-cli": "^24.9.0" + }, + "dependencies": { + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "requires": { + "ci-info": "^2.0.0" + } + }, + "jest-cli": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-24.9.0.tgz", + "integrity": "sha512-+VLRKyitT3BWoMeSUIHRxV/2g8y9gw91Jh5z2UmXZzkZKpbC08CSehVxgHUwTpy+HwGcns/tqafQDJW7imYvGg==", + "dev": true, + "requires": { + "@jest/core": "^24.9.0", + "@jest/test-result": "^24.9.0", + "@jest/types": "^24.9.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "import-local": "^2.0.0", + "is-ci": "^2.0.0", + "jest-config": "^24.9.0", + "jest-util": "^24.9.0", + "jest-validate": "^24.9.0", + "prompts": "^2.0.1", + "realpath-native": "^1.1.0", + "yargs": "^13.3.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "dev": true, + "requires": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + } + }, + "yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, + "jest-changed-files": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-24.9.0.tgz", + "integrity": "sha512-6aTWpe2mHF0DhL28WjdkO8LyGjs3zItPET4bMSeXU6T3ub4FPMw+mcOcbdGXQOAfmLcxofD23/5Bl9Z4AkFwqg==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "execa": "^1.0.0", + "throat": "^4.0.0" + } + }, + "jest-config": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-24.9.0.tgz", + "integrity": "sha512-RATtQJtVYQrp7fvWg6f5y3pEFj9I+H8sWw4aKxnDZ96mob5i5SD6ZEGWgMLXQ4LE8UurrjbdlLWdUeo+28QpfQ==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^24.9.0", + "@jest/types": "^24.9.0", + "babel-jest": "^24.9.0", + "chalk": "^2.0.1", + "glob": "^7.1.1", + "jest-environment-jsdom": "^24.9.0", + "jest-environment-node": "^24.9.0", + "jest-get-type": "^24.9.0", + "jest-jasmine2": "^24.9.0", + "jest-regex-util": "^24.3.0", + "jest-resolve": "^24.9.0", + "jest-util": "^24.9.0", + "jest-validate": "^24.9.0", + "micromatch": "^3.1.10", + "pretty-format": "^24.9.0", + "realpath-native": "^1.1.0" + } + }, + "jest-diff": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.9.0.tgz", + "integrity": "sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "diff-sequences": "^24.9.0", + "jest-get-type": "^24.9.0", + "pretty-format": "^24.9.0" + } + }, + "jest-docblock": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-24.9.0.tgz", + "integrity": "sha512-F1DjdpDMJMA1cN6He0FNYNZlo3yYmOtRUnktrT9Q37njYzC5WEaDdmbynIgy0L/IvXvvgsG8OsqhLPXTpfmZAA==", + "dev": true, + "requires": { + "detect-newline": "^2.1.0" + } + }, + "jest-each": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-24.9.0.tgz", + "integrity": "sha512-ONi0R4BvW45cw8s2Lrx8YgbeXL1oCQ/wIDwmsM3CqM/nlblNCPmnC3IPQlMbRFZu3wKdQ2U8BqM6lh3LJ5Bsog==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "chalk": "^2.0.1", + "jest-get-type": "^24.9.0", + "jest-util": "^24.9.0", + "pretty-format": "^24.9.0" + } + }, + "jest-environment-jsdom": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-24.9.0.tgz", + "integrity": "sha512-Zv9FV9NBRzLuALXjvRijO2351DRQeLYXtpD4xNvfoVFw21IOKNhZAEUKcbiEtjTkm2GsJ3boMVgkaR7rN8qetA==", + "dev": true, + "requires": { + "@jest/environment": "^24.9.0", + "@jest/fake-timers": "^24.9.0", + "@jest/types": "^24.9.0", + "jest-mock": "^24.9.0", + "jest-util": "^24.9.0", + "jsdom": "^11.5.1" + } + }, + "jest-environment-jsdom-fifteen": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom-fifteen/-/jest-environment-jsdom-fifteen-1.0.2.tgz", + "integrity": "sha512-nfrnAfwklE1872LIB31HcjM65cWTh1wzvMSp10IYtPJjLDUbTTvDpajZgIxUnhRmzGvogdHDayCIlerLK0OBBg==", + "dev": true, + "requires": { + "@jest/environment": "^24.3.0", + "@jest/fake-timers": "^24.3.0", + "@jest/types": "^24.3.0", + "jest-mock": "^24.0.0", + "jest-util": "^24.0.0", + "jsdom": "^15.2.1" + }, + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + }, + "cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + } + } + }, + "jsdom": { + "version": "15.2.1", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-15.2.1.tgz", + "integrity": "sha512-fAl1W0/7T2G5vURSyxBzrJ1LSdQn6Tr5UX/xD4PXDx/PDgwygedfW6El/KIj3xJ7FU61TTYnc/l/B7P49Eqt6g==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "acorn": "^7.1.0", + "acorn-globals": "^4.3.2", + "array-equal": "^1.0.0", + "cssom": "^0.4.1", + "cssstyle": "^2.0.0", + "data-urls": "^1.1.0", + "domexception": "^1.0.1", + "escodegen": "^1.11.1", + "html-encoding-sniffer": "^1.0.2", + "nwsapi": "^2.2.0", + "parse5": "5.1.0", + "pn": "^1.1.0", + "request": "^2.88.0", + "request-promise-native": "^1.0.7", + "saxes": "^3.1.9", + "symbol-tree": "^3.2.2", + "tough-cookie": "^3.0.1", + "w3c-hr-time": "^1.0.1", + "w3c-xmlserializer": "^1.1.2", + "webidl-conversions": "^4.0.2", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^7.0.0", + "ws": "^7.0.0", + "xml-name-validator": "^3.0.0" + } + }, + "parse5": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz", + "integrity": "sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==", + "dev": true + }, + "tough-cookie": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-3.0.1.tgz", + "integrity": "sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==", + "dev": true, + "requires": { + "ip-regex": "^2.1.0", + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "dev": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true + } + } + }, + "jest-environment-node": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-24.9.0.tgz", + "integrity": "sha512-6d4V2f4nxzIzwendo27Tr0aFm+IXWa0XEUnaH6nU0FMaozxovt+sfRvh4J47wL1OvF83I3SSTu0XK+i4Bqe7uA==", + "dev": true, + "requires": { + "@jest/environment": "^24.9.0", + "@jest/fake-timers": "^24.9.0", + "@jest/types": "^24.9.0", + "jest-mock": "^24.9.0", + "jest-util": "^24.9.0" + } + }, + "jest-get-type": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.9.0.tgz", + "integrity": "sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q==", + "dev": true + }, + "jest-haste-map": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-24.9.0.tgz", + "integrity": "sha512-kfVFmsuWui2Sj1Rp1AJ4D9HqJwE4uwTlS/vO+eRUaMmd54BFpli2XhMQnPC2k4cHFVbB2Q2C+jtI1AGLgEnCjQ==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "anymatch": "^2.0.0", + "fb-watchman": "^2.0.0", + "fsevents": "^1.2.7", + "graceful-fs": "^4.1.15", + "invariant": "^2.2.4", + "jest-serializer": "^24.9.0", + "jest-util": "^24.9.0", + "jest-worker": "^24.9.0", + "micromatch": "^3.1.10", + "sane": "^4.0.3", + "walker": "^1.0.7" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "dev": true, + "optional": true, + "requires": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + } + }, + "jest-worker": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz", + "integrity": "sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw==", + "dev": true, + "requires": { + "merge-stream": "^2.0.0", + "supports-color": "^6.1.0" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + }, + "supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "jest-jasmine2": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-24.9.0.tgz", + "integrity": "sha512-Cq7vkAgaYKp+PsX+2/JbTarrk0DmNhsEtqBXNwUHkdlbrTBLtMJINADf2mf5FkowNsq8evbPc07/qFO0AdKTzw==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^24.9.0", + "@jest/test-result": "^24.9.0", + "@jest/types": "^24.9.0", + "chalk": "^2.0.1", + "co": "^4.6.0", + "expect": "^24.9.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^24.9.0", + "jest-matcher-utils": "^24.9.0", + "jest-message-util": "^24.9.0", + "jest-runtime": "^24.9.0", + "jest-snapshot": "^24.9.0", + "jest-util": "^24.9.0", + "pretty-format": "^24.9.0", + "throat": "^4.0.0" + } + }, + "jest-leak-detector": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-24.9.0.tgz", + "integrity": "sha512-tYkFIDsiKTGwb2FG1w8hX9V0aUb2ot8zY/2nFg087dUageonw1zrLMP4W6zsRO59dPkTSKie+D4rhMuP9nRmrA==", + "dev": true, + "requires": { + "jest-get-type": "^24.9.0", + "pretty-format": "^24.9.0" + } + }, + "jest-matcher-utils": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-24.9.0.tgz", + "integrity": "sha512-OZz2IXsu6eaiMAwe67c1T+5tUAtQyQx27/EMEkbFAGiw52tB9em+uGbzpcgYVpA8wl0hlxKPZxrly4CXU/GjHA==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "jest-diff": "^24.9.0", + "jest-get-type": "^24.9.0", + "pretty-format": "^24.9.0" + } + }, + "jest-message-util": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.9.0.tgz", + "integrity": "sha512-oCj8FiZ3U0hTP4aSui87P4L4jC37BtQwUMqk+zk/b11FR19BJDeZsZAvIHutWnmtw7r85UmR3CEWZ0HWU2mAlw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@jest/test-result": "^24.9.0", + "@jest/types": "^24.9.0", + "@types/stack-utils": "^1.0.1", + "chalk": "^2.0.1", + "micromatch": "^3.1.10", + "slash": "^2.0.0", + "stack-utils": "^1.0.1" + } + }, + "jest-mock": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-24.9.0.tgz", + "integrity": "sha512-3BEYN5WbSq9wd+SyLDES7AHnjH9A/ROBwmz7l2y+ol+NtSFO8DYiEBzoO1CeFc9a8DYy10EO4dDFVv/wN3zl1w==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0" + } + }, + "jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true + }, + "jest-regex-util": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-24.9.0.tgz", + "integrity": "sha512-05Cmb6CuxaA+Ys6fjr3PhvV3bGQmO+2p2La4hFbU+W5uOc479f7FdLXUWXw4pYMAhhSZIuKHwSXSu6CsSBAXQA==", + "dev": true + }, + "jest-resolve": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-24.9.0.tgz", + "integrity": "sha512-TaLeLVL1l08YFZAt3zaPtjiVvyy4oSA6CRe+0AFPPVX3Q/VI0giIWWoAvoS5L96vj9Dqxj4fB5p2qrHCmTU/MQ==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "browser-resolve": "^1.11.3", + "chalk": "^2.0.1", + "jest-pnp-resolver": "^1.2.1", + "realpath-native": "^1.1.0" + } + }, + "jest-resolve-dependencies": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-24.9.0.tgz", + "integrity": "sha512-Fm7b6AlWnYhT0BXy4hXpactHIqER7erNgIsIozDXWl5dVm+k8XdGVe1oTg1JyaFnOxarMEbax3wyRJqGP2Pq+g==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "jest-regex-util": "^24.3.0", + "jest-snapshot": "^24.9.0" + } + }, + "jest-runner": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-24.9.0.tgz", + "integrity": "sha512-KksJQyI3/0mhcfspnxxEOBueGrd5E4vV7ADQLT9ESaCzz02WnbdbKWIf5Mkaucoaj7obQckYPVX6JJhgUcoWWg==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/environment": "^24.9.0", + "@jest/test-result": "^24.9.0", + "@jest/types": "^24.9.0", + "chalk": "^2.4.2", + "exit": "^0.1.2", + "graceful-fs": "^4.1.15", + "jest-config": "^24.9.0", + "jest-docblock": "^24.3.0", + "jest-haste-map": "^24.9.0", + "jest-jasmine2": "^24.9.0", + "jest-leak-detector": "^24.9.0", + "jest-message-util": "^24.9.0", + "jest-resolve": "^24.9.0", + "jest-runtime": "^24.9.0", + "jest-util": "^24.9.0", + "jest-worker": "^24.6.0", + "source-map-support": "^0.5.6", + "throat": "^4.0.0" + }, + "dependencies": { + "jest-worker": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz", + "integrity": "sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw==", + "dev": true, + "requires": { + "merge-stream": "^2.0.0", + "supports-color": "^6.1.0" + } + }, + "supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "jest-runtime": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-24.9.0.tgz", + "integrity": "sha512-8oNqgnmF3v2J6PVRM2Jfuj8oX3syKmaynlDMMKQ4iyzbQzIG6th5ub/lM2bCMTmoTKM3ykcUYI2Pw9xwNtjMnw==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/environment": "^24.9.0", + "@jest/source-map": "^24.3.0", + "@jest/transform": "^24.9.0", + "@jest/types": "^24.9.0", + "@types/yargs": "^13.0.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.1.15", + "jest-config": "^24.9.0", + "jest-haste-map": "^24.9.0", + "jest-message-util": "^24.9.0", + "jest-mock": "^24.9.0", + "jest-regex-util": "^24.3.0", + "jest-resolve": "^24.9.0", + "jest-snapshot": "^24.9.0", + "jest-util": "^24.9.0", + "jest-validate": "^24.9.0", + "realpath-native": "^1.1.0", + "slash": "^2.0.0", + "strip-bom": "^3.0.0", + "yargs": "^13.3.0" + }, + "dependencies": { + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "dev": true, + "requires": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + } + }, + "yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, + "jest-serializer": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-24.9.0.tgz", + "integrity": "sha512-DxYipDr8OvfrKH3Kel6NdED3OXxjvxXZ1uIY2I9OFbGg+vUkkg7AGvi65qbhbWNPvDckXmzMPbK3u3HaDO49bQ==", + "dev": true + }, + "jest-serializer-vue": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/jest-serializer-vue/-/jest-serializer-vue-2.0.2.tgz", + "integrity": "sha512-nK/YIFo6qe3i9Ge+hr3h4PpRehuPPGZFt8LDBdTHYldMb7ZWlkanZS8Ls7D8h6qmQP2lBQVDLP0DKn5bJ9QApQ==", + "dev": true, + "requires": { + "pretty": "2.0.0" + } + }, + "jest-snapshot": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-24.9.0.tgz", + "integrity": "sha512-uI/rszGSs73xCM0l+up7O7a40o90cnrk429LOiK3aeTvfC0HHmldbd81/B7Ix81KSFe1lwkbl7GnBGG4UfuDew==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0", + "@jest/types": "^24.9.0", + "chalk": "^2.0.1", + "expect": "^24.9.0", + "jest-diff": "^24.9.0", + "jest-get-type": "^24.9.0", + "jest-matcher-utils": "^24.9.0", + "jest-message-util": "^24.9.0", + "jest-resolve": "^24.9.0", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^24.9.0", + "semver": "^6.2.0" + }, + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } + } + }, + "jest-transform-stub": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz", + "integrity": "sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg==", + "dev": true + }, + "jest-util": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-24.9.0.tgz", + "integrity": "sha512-x+cZU8VRmOJxbA1K5oDBdxQmdq0OIdADarLxk0Mq+3XS4jgvhG/oKGWcIDCtPG0HgjxOYvF+ilPJQsAyXfbNOg==", + "dev": true, + "requires": { + "@jest/console": "^24.9.0", + "@jest/fake-timers": "^24.9.0", + "@jest/source-map": "^24.9.0", + "@jest/test-result": "^24.9.0", + "@jest/types": "^24.9.0", + "callsites": "^3.0.0", + "chalk": "^2.0.1", + "graceful-fs": "^4.1.15", + "is-ci": "^2.0.0", + "mkdirp": "^0.5.1", + "slash": "^2.0.0", + "source-map": "^0.6.0" + }, + "dependencies": { + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "requires": { + "ci-info": "^2.0.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "jest-validate": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-24.9.0.tgz", + "integrity": "sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "camelcase": "^5.3.1", + "chalk": "^2.0.1", + "jest-get-type": "^24.9.0", + "leven": "^3.1.0", + "pretty-format": "^24.9.0" + } + }, + "jest-watch-typeahead": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/jest-watch-typeahead/-/jest-watch-typeahead-0.4.2.tgz", + "integrity": "sha512-f7VpLebTdaXs81rg/oj4Vg/ObZy2QtGzAmGLNsqUS5G5KtSN68tFcIsbvNODfNyQxU78g7D8x77o3bgfBTR+2Q==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "chalk": "^2.4.1", + "jest-regex-util": "^24.9.0", + "jest-watcher": "^24.3.0", + "slash": "^3.0.0", + "string-length": "^3.1.0", + "strip-ansi": "^5.0.0" + }, + "dependencies": { + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "requires": { + "type-fest": "^0.21.3" + } + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "string-length": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-3.1.0.tgz", + "integrity": "sha512-Ttp5YvkGm5v9Ijagtaz1BnN+k9ObpvS0eIBblPMp2YWL8FBmi9qblQ9fexc2k/CXFgrTIteU3jAw3payCnwSTA==", + "dev": true, + "requires": { + "astral-regex": "^1.0.0", + "strip-ansi": "^5.2.0" + } + }, + "type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true + } + } + }, + "jest-watcher": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-24.9.0.tgz", + "integrity": "sha512-+/fLOfKPXXYJDYlks62/4R4GoT+GU1tYZed99JSCOsmzkkF7727RqKrjNAxtfO4YpGv11wybgRvCjR73lK2GZw==", + "dev": true, + "requires": { + "@jest/test-result": "^24.9.0", + "@jest/types": "^24.9.0", + "@types/yargs": "^13.0.0", + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.1", + "jest-util": "^24.9.0", + "string-length": "^2.0.0" + } + }, + "jest-worker": { + "version": "25.5.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.5.0.tgz", + "integrity": "sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw==", + "dev": true, + "requires": { + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "js-base64": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", + "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==", + "dev": true + }, + "js-beautify": { + "version": "1.14.11", + "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.11.tgz", + "integrity": "sha512-rPogWqAfoYh1Ryqqh2agUpVfbxAhbjuN1SmU86dskQUKouRiggUTCO4+2ym9UPXllc2WAp0J+T5qxn7Um3lCdw==", + "dev": true, + "requires": { + "config-chain": "^1.1.13", + "editorconfig": "^1.0.3", + "glob": "^10.3.3", + "nopt": "^7.2.0" + }, + "dependencies": { + "abbrev": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-2.0.0.tgz", + "integrity": "sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==", + "dev": true + }, + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "glob": { + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "dev": true, + "requires": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + } + }, + "minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "minipass": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "dev": true + }, + "nopt": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-7.2.0.tgz", + "integrity": "sha512-CVDtwCdhYIvnAzFoJ6NJ6dX3oga9/HyciQDnG1vQDjSLMeKLJ4A93ZqYKDrgYSr1FBY5/hMYC+2VCi24pgpkGA==", + "dev": true, + "requires": { + "abbrev": "^2.0.0" + } + } + } + }, + "js-levenshtein": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", + "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", + "dev": true + }, + "js-message": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/js-message/-/js-message-1.0.7.tgz", + "integrity": "sha512-efJLHhLjIyKRewNS9EGZ4UpI8NguuL6fKkhRxVuMmrGV2xN/0APGdQYwLFky5w9naebSZ0OwAGp0G6/2Cg90rA==", + "dev": true + }, + "js-queue": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/js-queue/-/js-queue-2.0.2.tgz", + "integrity": "sha512-pbKLsbCfi7kriM3s1J4DDCo7jQkI58zPLHi0heXPzPlj0hjUsm+FesPUbE0DSbIVIK503A36aUBoCN7eMFedkA==", + "dev": true, + "requires": { + "easy-stack": "^1.0.1" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "jsdom": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.12.0.tgz", + "integrity": "sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "acorn": "^5.5.3", + "acorn-globals": "^4.1.0", + "array-equal": "^1.0.0", + "cssom": ">= 0.3.2 < 0.4.0", + "cssstyle": "^1.0.0", + "data-urls": "^1.0.0", + "domexception": "^1.0.1", + "escodegen": "^1.9.1", + "html-encoding-sniffer": "^1.0.2", + "left-pad": "^1.3.0", + "nwsapi": "^2.0.7", + "parse5": "4.0.0", + "pn": "^1.1.0", + "request": "^2.87.0", + "request-promise-native": "^1.0.5", + "sax": "^1.2.4", + "symbol-tree": "^3.2.2", + "tough-cookie": "^2.3.4", + "w3c-hr-time": "^1.0.1", + "webidl-conversions": "^4.0.2", + "whatwg-encoding": "^1.0.3", + "whatwg-mimetype": "^2.1.0", + "whatwg-url": "^6.4.1", + "ws": "^5.2.0", + "xml-name-validator": "^3.0.0" + }, + "dependencies": { + "acorn": { + "version": "5.7.4", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", + "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", + "dev": true + }, + "parse5": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", + "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", + "dev": true + }, + "ws": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.3.tgz", + "integrity": "sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA==", + "dev": true, + "requires": { + "async-limiter": "~1.0.0" + } + } + } + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", @@ -7470,6 +9712,18 @@ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true }, + "kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true + }, + "klona": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", + "dev": true + }, "launch-editor": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.2.1.tgz", @@ -7489,12 +9743,23 @@ "launch-editor": "^2.2.1" } }, + "left-pad": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", + "integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==", + "dev": true + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true + }, "levn": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", "dev": true, - "optional": true, "requires": { "prelude-ls": "~1.1.2", "type-check": "~0.3.2" @@ -7506,6 +9771,26 @@ "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", "dev": true }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true + } + } + }, "loader-fs-cache": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/loader-fs-cache/-/loader-fs-cache-1.0.3.tgz", @@ -7631,6 +9916,12 @@ "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", "dev": true }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==", + "dev": true + }, "lodash.transform": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.transform/-/lodash.transform-4.6.0.tgz", @@ -7718,6 +10009,21 @@ } } }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "requires": { + "tmpl": "1.0.5" + } + }, "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", @@ -8260,6 +10566,30 @@ "lower-case": "^1.1.1" } }, + "node-addon-api": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", + "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==", + "dev": true + }, + "node-cache": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/node-cache/-/node-cache-4.2.1.tgz", + "integrity": "sha512-BOb67bWg2dTyax5kdef5WfU3X8xu4wPg+zHzkvls0Q/QpYycIFRLEEIdAx9Wma43DxG6Qzn4illdZoYseKWa4A==", + "dev": true, + "requires": { + "clone": "2.x", + "lodash": "^4.17.15" + }, + "dependencies": { + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true + } + } + }, "node-forge": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", @@ -8294,6 +10624,12 @@ } } }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, "node-ipc": { "version": "9.1.3", "resolved": "https://registry.npmjs.org/node-ipc/-/node-ipc-9.1.3.tgz", @@ -8344,6 +10680,19 @@ } } }, + "node-notifier": { + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.4.5.tgz", + "integrity": "sha512-tVbHs7DyTLtzOiN78izLA85zRqB9NvEXkAf014Vx3jtSvn/xBl6bR8ZYifj+dFcFrKI21huSQgJZ6ZtL3B4HfQ==", + "dev": true, + "requires": { + "growly": "^1.3.0", + "is-wsl": "^1.1.0", + "semver": "^5.5.0", + "shellwords": "^0.1.1", + "which": "^1.3.0" + } + }, "node-releases": { "version": "1.1.70", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.70.tgz", @@ -8524,6 +10873,12 @@ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true }, + "nwsapi": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", + "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", + "dev": true + }, "oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", @@ -8716,7 +11071,6 @@ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", "dev": true, - "optional": true, "requires": { "deep-is": "~0.1.3", "fast-levenshtein": "~2.0.6", @@ -8777,6 +11131,15 @@ "os-tmpdir": "^1.0.0" } }, + "p-each-series": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-1.0.0.tgz", + "integrity": "sha512-J/e9xiZZQNrt+958FFzJ+auItsBGq+UrQ7nE89AUP7UOTtjHnkISANXLdayhVzh538UnLMCSlf13lFfRIAKQOA==", + "dev": true, + "requires": { + "p-reduce": "^1.0.0" + } + }, "p-finally": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", @@ -8810,6 +11173,12 @@ "aggregate-error": "^3.0.0" } }, + "p-reduce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-1.0.0.tgz", + "integrity": "sha512-3Tx1T3oM1xO/Y8Gj0sWyE78EIJZ+t+aEmXUdvQgvGmSMri7aPTHoovbXEreWKkL5j21Er60XAWLTzKbAKYOujQ==", + "dev": true + }, "p-retry": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-3.0.1.tgz", @@ -8951,6 +11320,30 @@ "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, + "path-scurry": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", + "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", + "dev": true, + "requires": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.1.0.tgz", + "integrity": "sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==", + "dev": true + }, + "minipass": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "dev": true + } + } + }, "path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", @@ -9021,6 +11414,12 @@ "pinkie": "^2.0.0" } }, + "pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true + }, "pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", @@ -9097,6 +11496,12 @@ "dev": true, "optional": true }, + "pn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", + "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", + "dev": true + }, "pnp-webpack-plugin": { "version": "1.6.4", "resolved": "https://registry.npmjs.org/pnp-webpack-plugin/-/pnp-webpack-plugin-1.6.4.tgz", @@ -9740,8 +12145,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true, - "optional": true + "dev": true }, "prepend-http": { "version": "1.0.4", @@ -9756,6 +12160,28 @@ "dev": true, "optional": true }, + "pretty": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pretty/-/pretty-2.0.0.tgz", + "integrity": "sha512-G9xUchgTEiNpormdYBl+Pha50gOUovT18IvAe7EYMZ1/f9W/WWMPRn+xI68yXNMUk3QXHDwo/1wV/4NejVNe1w==", + "dev": true, + "requires": { + "condense-newlines": "^0.2.1", + "extend-shallow": "^2.0.1", + "js-beautify": "^1.6.12" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, "pretty-error": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.2.tgz", @@ -9766,6 +12192,18 @@ "renderkid": "^2.0.4" } }, + "pretty-format": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.9.0.tgz", + "integrity": "sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "ansi-regex": "^4.0.0", + "ansi-styles": "^3.2.0", + "react-is": "^16.8.4" + } + }, "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", @@ -9791,6 +12229,22 @@ "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", "dev": true }, + "prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "proto-list": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", + "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==", + "dev": true + }, "proxy-addr": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", @@ -9957,6 +12411,12 @@ "unpipe": "1.0.0" } }, + "react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true + }, "read-pkg": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", @@ -9983,6 +12443,72 @@ } } }, + "read-pkg-up": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-4.0.0.tgz", + "integrity": "sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==", + "dev": true, + "requires": { + "find-up": "^3.0.0", + "read-pkg": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", + "dev": true, + "requires": { + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + } + } + } + }, "readable-stream": { "version": "2.3.7", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", @@ -10008,6 +12534,15 @@ "picomatch": "^2.2.1" } }, + "realpath-native": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-1.1.0.tgz", + "integrity": "sha512-wlgPA6cCIIg9gKz0fgAPjnzh4yR/LnXovwuo9hvyGvx3h8nX4+/iLZplfUWasXpqD8BdnGnP5njOFjkUwPzvjA==", + "dev": true, + "requires": { + "util.promisify": "^1.0.0" + } + }, "redent": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", @@ -10362,6 +12897,12 @@ "inherits": "^2.0.1" } }, + "rsvp": { + "version": "4.8.5", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", + "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", + "dev": true + }, "run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", @@ -10416,6 +12957,44 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, + "sane": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", + "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", + "dev": true, + "requires": { + "@cnakazawa/watch": "^1.0.3", + "anymatch": "^2.0.0", + "capture-exit": "^2.0.0", + "exec-sh": "^0.3.2", + "execa": "^1.0.0", + "fb-watchman": "^2.0.0", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + } + } + }, "sass-graph": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz", @@ -10519,22 +13098,68 @@ } }, "sass-loader": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-7.3.1.tgz", - "integrity": "sha512-tuU7+zm0pTCynKYHpdqaPpe+MMTQ76I9TPZ7i4/5dZsigE350shQWe5EZNl5dBidM49TPET75tNqRbcsUZWeNA==", + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-10.4.1.tgz", + "integrity": "sha512-aX/iJZTTpNUNx/OSYzo2KsjIUQHqvWsAhhUijFjAPdZTEhstjZI9zTNvkTTwsx+uNUJqUwOw5gacxQMx4hJxGQ==", "dev": true, "requires": { - "clone-deep": "^4.0.1", - "loader-utils": "^1.0.1", - "neo-async": "^2.5.0", - "pify": "^4.0.1", - "semver": "^6.3.0" + "klona": "^2.0.4", + "loader-utils": "^2.0.0", + "neo-async": "^2.6.2", + "schema-utils": "^3.0.0", + "semver": "^7.3.2" }, "dependencies": { + "@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true } } @@ -10545,6 +13170,15 @@ "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true }, + "saxes": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-3.1.11.tgz", + "integrity": "sha512-Ydydq3zC+WYDJK1+gRxRapLIED9PWeSuuS41wqyoRmzvhhh9nc+QQrVMKJYzJFULazeGhzSV0QleN2wD3boh2g==", + "dev": true, + "requires": { + "xmlchars": "^2.1.1" + } + }, "schema-utils": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", @@ -10778,15 +13412,6 @@ "safe-buffer": "^5.0.1" } }, - "shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "requires": { - "kind-of": "^6.0.2" - } - }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", @@ -10808,6 +13433,12 @@ "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", "dev": true }, + "shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true + }, "signal-exit": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", @@ -10831,6 +13462,12 @@ } } }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, "slash": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", @@ -11188,6 +13825,23 @@ "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", "dev": true }, + "stack-utils": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.5.tgz", + "integrity": "sha512-KZiTzuV3CnSnSvgMRrARVCj+Ht7rMbauGDK0LdVFRGyenwdylpajAp4Q0i6SX8rEmbTpMMf6ryq2gb8pPq2WgQ==", + "dev": true, + "requires": { + "escape-string-regexp": "^2.0.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + } + } + }, "stackframe": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.2.0.tgz", @@ -11287,6 +13941,33 @@ "integrity": "sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs=", "dev": true }, + "string-length": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-2.0.0.tgz", + "integrity": "sha512-Qka42GGrS8Mm3SZ+7cH8UXiIWI867/b/Z/feQSpQx/rbfB8UGknGEZVaUQMOUVj+soY6NpWAxily63HI1OckVQ==", + "dev": true, + "requires": { + "astral-regex": "^1.0.0", + "strip-ansi": "^4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", @@ -11309,7 +13990,41 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "^3.0.0" + "ansi-regex": "^3.0.0" + } + } + } + }, + "string-width-cjs": { + "version": "npm:string-width@4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" } } } @@ -11363,6 +14078,29 @@ "ansi-regex": "^4.1.0" } }, + "strip-ansi-cjs": { + "version": "npm:strip-ansi@6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + } + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true + }, "strip-eof": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", @@ -11385,8 +14123,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true, - "optional": true + "dev": true }, "stylehacks": { "version": "4.0.3", @@ -11448,6 +14185,12 @@ "util.promisify": "~1.0.0" } }, + "symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, "table": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/table/-/table-4.0.2.tgz", @@ -11644,6 +14387,18 @@ } } }, + "test-exclude": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-5.2.3.tgz", + "integrity": "sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g==", + "dev": true, + "requires": { + "glob": "^7.1.3", + "minimatch": "^3.0.4", + "read-pkg-up": "^4.0.0", + "require-main-filename": "^2.0.0" + } + }, "text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -11680,6 +14435,12 @@ "neo-async": "^2.6.0" } }, + "throat": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz", + "integrity": "sha512-wCVxLDcFxw7ujDxaeJC6nfl2XfHJNYs8yUYJnvMgtPEFlttP9tHSfRUv2vBe6C4hkVFPWoP1P6ZccbYjmSEkKA==", + "dev": true + }, "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -11728,6 +14489,12 @@ "os-tmpdir": "~1.0.2" } }, + "tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, "to-arraybuffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", @@ -11804,6 +14571,15 @@ "punycode": "^2.1.1" } }, + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, "trim-newlines": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", @@ -11825,12 +14601,59 @@ "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==", "dev": true }, + "ts-jest": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-24.3.0.tgz", + "integrity": "sha512-Hb94C/+QRIgjVZlJyiWwouYUF+siNJHJHknyspaOcZ+OQAIdFG/UrdQVXw/0B8Z3No34xkUXZJpOTy9alOWdVQ==", + "dev": true, + "requires": { + "bs-logger": "0.x", + "buffer-from": "1.x", + "fast-json-stable-stringify": "2.x", + "json5": "2.x", + "lodash.memoize": "4.x", + "make-error": "1.x", + "mkdirp": "0.x", + "resolve": "1.x", + "semver": "^5.5", + "yargs-parser": "10.x" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw==", + "dev": true + }, + "yargs-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", + "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", + "dev": true, + "requires": { + "camelcase": "^4.1.0" + } + } + } + }, "ts-pnp": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/ts-pnp/-/ts-pnp-1.2.0.tgz", "integrity": "sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==", "dev": true }, + "tsconfig": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/tsconfig/-/tsconfig-7.0.0.tgz", + "integrity": "sha512-vZXmzPrL+EmC4T/4rVlT2jNVMWCi/O4DIiSj3UHg1OE5kCKbk4mfrXc6dZksLgRM/TZlKnousKH9bbTazUWRRw==", + "dev": true, + "requires": { + "@types/strip-bom": "^3.0.0", + "@types/strip-json-comments": "0.0.30", + "strip-bom": "^3.0.0", + "strip-json-comments": "^2.0.0" + } + }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -11863,7 +14686,6 @@ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", "dev": true, - "optional": true, "requires": { "prelude-ls": "~1.1.2" } @@ -12239,17 +15061,18 @@ } }, "vue-eslint-parser": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-7.3.0.tgz", - "integrity": "sha512-n5PJKZbyspD0+8LnaZgpEvNCrjQx1DyDHw8JdWwoxhhC+yRip4TAvSDpXGf9SWX6b0umeB5aR61gwUo6NVvFxw==", + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-7.11.0.tgz", + "integrity": "sha512-qh3VhDLeh773wjgNTl7ss0VejY9bMMa0GoDG2fQVyDzRFdiU3L7fw74tWZDHNQXdZqxO3EveQroa9ct39D2nqg==", "dev": true, "requires": { "debug": "^4.1.1", - "eslint-scope": "^5.0.0", + "eslint-scope": "^5.1.1", "eslint-visitor-keys": "^1.1.0", "espree": "^6.2.1", - "esquery": "^1.0.1", - "lodash": "^4.17.15" + "esquery": "^1.4.0", + "lodash": "^4.17.21", + "semver": "^6.3.0" }, "dependencies": { "acorn": { @@ -12259,9 +15082,9 @@ "dev": true }, "acorn-jsx": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", - "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true }, "eslint-scope": { @@ -12284,6 +15107,35 @@ "acorn-jsx": "^5.2.0", "eslint-visitor-keys": "^1.1.0" } + }, + "esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true } } }, @@ -12293,6 +15145,25 @@ "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==", "dev": true }, + "vue-jest": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/vue-jest/-/vue-jest-3.0.7.tgz", + "integrity": "sha512-PIOxFM+wsBMry26ZpfBvUQ/DGH2hvp5khDQ1n51g3bN0TwFwTy4J85XVfxTRMukqHji/GnAoGUnlZ5Ao73K62w==", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", + "chalk": "^2.1.0", + "deasync": "^0.1.15", + "extract-from-css": "^0.4.4", + "find-babel-config": "^1.1.0", + "js-beautify": "^1.6.14", + "node-cache": "^4.1.1", + "object-assign": "^4.1.1", + "source-map": "^0.5.6", + "tsconfig": "^7.0.0", + "vue-template-es2015-compiler": "^1.6.0" + } + }, "vue-loader": { "version": "15.9.6", "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.9.6.tgz", @@ -12314,6 +15185,87 @@ } } }, + "vue-loader-v16": { + "version": "npm:vue-loader@16.8.3", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz", + "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==", + "dev": true, + "optional": true, + "requires": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "loader-utils": "^2.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "optional": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "optional": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "optional": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "optional": true + }, + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "optional": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "optional": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz", @@ -12338,6 +15290,35 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "dev": true, + "requires": { + "browser-process-hrtime": "^1.0.0" + } + }, + "w3c-xmlserializer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-1.1.2.tgz", + "integrity": "sha512-p10l/ayESzrBMYWRID6xbuCKh2Fp77+sA0doRuGn4tTIMrrZVeqfpKjXHY+oDh3K4nLdPgNwMTVP6Vp4pvqbNg==", + "dev": true, + "requires": { + "domexception": "^1.0.1", + "webidl-conversions": "^4.0.2", + "xml-name-validator": "^3.0.0" + } + }, + "walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "requires": { + "makeerror": "1.0.12" + } + }, "watchpack": { "version": "1.7.5", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz", @@ -12418,6 +15399,7 @@ "dev": true, "optional": true, "requires": { + "bindings": "^1.5.0", "nan": "^2.12.1" } }, @@ -12486,6 +15468,12 @@ "defaults": "^1.0.3" } }, + "webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true + }, "webpack": { "version": "4.46.0", "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.46.0.tgz", @@ -12704,6 +15692,7 @@ "dev": true, "optional": true, "requires": { + "bindings": "^1.5.0", "nan": "^2.12.1" } }, @@ -12935,6 +15924,32 @@ "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", "dev": true }, + "whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "requires": { + "iconv-lite": "0.4.24" + } + }, + "whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "whatwg-url": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", + "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", + "dev": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", @@ -12963,8 +15978,7 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "optional": true + "dev": true }, "worker-farm": { "version": "1.7.0", @@ -13044,6 +16058,75 @@ } } }, + "wrap-ansi-cjs": { + "version": "npm:wrap-ansi@7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -13060,6 +16143,17 @@ "mkdirp": "^0.5.1" } }, + "write-file-atomic": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.1.tgz", + "integrity": "sha512-TGHFeZEZMnv+gBFRfjAcxL5bPHrsGKtnb4qsFAws7/vlh+QfwAaySIw4AXP9ZskTTh5GWu3FLuJhsWVdiJPGvg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" + } + }, "ws": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz", @@ -13069,6 +16163,18 @@ "async-limiter": "~1.0.0" } }, + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/package.json b/package.json index 742ce1c3..a419237e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "vue-grid-layout", - "version": "3.0.0-beta1", - "description": "A draggable and resizable grid layout, as a Vue component.", + "name": "hz-grid-layout", + "version": "0.0.2", + "description": "基于vue-grid-layout-3.0.0-bate1,支持isBounded参数功能", "keywords": [ "grid", "vuejs", @@ -14,12 +14,12 @@ ], "repository": { "type": "git", - "url": "https://github.com/jbaysolutions/vue-grid-layout.git" + "url": "https://github.com/pirateJs/vue-grid-layout" }, - "author": "Gustavo Santos (JBay Solutions) (http://www.jbaysolutions.com)", + "author": "pirate6", "homepage": "https://github.com/jbaysolutions/vue-grid-layout", - "main": "dist/vue-grid-layout.common.js", - "unpkg": "dist/vue-grid-layout.umd.min.js", + "main": "dist/hz-grid-layout.common.js", + "unpkg": "dist/hz-grid-layout.umd.min.js", "scripts": { "serve": "vue-cli-service serve", "build": "rimraf dist && vue-cli-service build", diff --git a/src/App.vue b/src/App.vue index 8452fb01..7b4ab619 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,6 +28,7 @@ Draggable + Bounded Resizable Mirrored Responsive @@ -45,10 +46,13 @@ :is-draggable="draggable" :is-resizable="resizable" :is-mirrored="mirrored" + :is-bounded="bounded" :prevent-collision="preventCollision" :vertical-compact="compact" :use-css-transforms="true" :responsive="responsive" + :max-rows="15" + ref="gridlayout" @layout-created="layoutCreatedEvent" @layout-before-mount="layoutBeforeMountEvent" @layout-mounted="layoutMountedEvent" @@ -71,11 +75,15 @@ :min-y="item.minY" :max-y="item.maxY" :preserve-aspect-ratio="item.preserveAspectRatio" + :ref="setItemRefArr" @resize="resize" @move="move" @resized="resized" @container-resized="containerResized" @moved="moved" + @mouseup="e => mouseup(e, item)" + @moveing="mouseXYChange" + @movestart="movestart" > @@ -127,19 +135,21 @@ {"x":0,"y":5,"w":2,"h":5,"i":"6"}, {"x":2,"y":5,"w":2,"h":5,"i":"7"}, {"x":4,"y":5,"w":2,"h":5,"i":"8"}, - {"x":6,"y":4,"w":2,"h":4,"i":"9"}, - {"x":8,"y":4,"w":2,"h":4,"i":"10"}, - {"x":10,"y":4,"w":2,"h":4,"i":"11"}, - {"x":0,"y":10,"w":2,"h":5,"i":"12"}, - {"x":2,"y":10,"w":2,"h":5,"i":"13"}, - {"x":4,"y":8,"w":2,"h":4,"i":"14"}, - {"x":6,"y":8,"w":2,"h":4,"i":"15"}, - {"x":8,"y":10,"w":2,"h":5,"i":"16"}, - {"x":10,"y":4,"w":2,"h":2,"i":"17"}, - {"x":0,"y":9,"w":2,"h":3,"i":"18"}, - {"x":2,"y":6,"w":2,"h":2,"i":"19"} + // {"x":6,"y":4,"w":2,"h":4,"i":"9"}, + // {"x":8,"y":4,"w":2,"h":4,"i":"10"}, + // {"x":10,"y":4,"w":2,"h":4,"i":"11"}, + // {"x":0,"y":10,"w":2,"h":5,"i":"12"}, + // {"x":2,"y":10,"w":2,"h":5,"i":"13"}, + // {"x":4,"y":8,"w":2,"h":4,"i":"14"}, + // {"x":6,"y":8,"w":2,"h":4,"i":"15"}, + // {"x":8,"y":10,"w":2,"h":5,"i":"16"}, + // {"x":10,"y":4,"w":2,"h":2,"i":"17"}, + // {"x":0,"y":9,"w":2,"h":3,"i":"18"}, + // {"x":2,"y":6,"w":2,"h":2,"i":"19"} ], }; + let mouseXY = {"x": null, "y": null}; + let DragPos = {"x": null, "y": null, "w": 1, "h": 1, "i": null}; /*let testLayout = [ {"x":0,"y":0,"w":2,"h":2,"i":"0", resizable: true, draggable: true, static: false, minY: 0, maxY: 2}, @@ -178,23 +188,129 @@ // layout2: JSON.parse(JSON.stringify(testLayout)), layouts: testLayouts, layout: testLayouts["lg"], + layouts1: JSON.parse(JSON.stringify(testLayouts)), + layout1: JSON.parse(JSON.stringify(testLayouts["lg"])), draggable: true, resizable: true, mirrored: false, - responsive: true, - preventCollision: false, + bounded: false, + responsive: false, + preventCollision: true, compact: true, rowHeight: 30, colNum: 12, index: 0, marginX: 10, marginY: 10, + itemRefArr: [], + moveObj: null, } }, mounted: function () { + let that = this; + document.addEventListener("dragover", function (e) { + that.mouseXYChange(e); + }, false); this.index = this.layout.length; }, methods: { + movestart({i, event}) { + this.moveObj = {i} + }, + setItemRefArr(el) { + const flag = this.itemRefArr.some((item) => (item && el && (item.i === el.i))) + if (el && !flag) { + this.itemRefArr.push(el) + } + }, + mouseup(e, data) { + // console.log(this.itemRefArr, '+++++++++++itemRefArr++++++++++'); + const mouseGrid = this.itemRefArr.find(item => { + const curRect = item.$el.getBoundingClientRect(); + // console.log(item, '+++++++++++curRect++++++++++', curRect); + return mouseXY.x && mouseXY.y && this.moveObj && this.moveObj.i && item.i !== this.moveObj.i && ((mouseXY.x > curRect.left) && (mouseXY.x < curRect.right)) && ((mouseXY.y > curRect.top) && (mouseXY.y < curRect.bottom)) + }); + if(mouseGrid) { + console.log(mouseGrid, '+++++++++++mouseup++++++++++', mouseXY); + // this.itemRefArr = this.itemRefArr.filter(obj => obj.i !== this.moveObj.i && mouseGrid.i !== obj.i); + this.layout = this.layout.filter(obj => obj.i !== this.moveObj.i && mouseGrid.i !== obj.i); + // console.log(this.itemRefArr, e, '+++++++++++mouseup++++++++++', data, items); + } + this.moveObj = null; + }, + mouseXYChange: function(e) { + mouseXY.x = e.clientX; + mouseXY.y = e.clientY; + // console.log(e, '======mouseXYChange======', mouseXY); + }, + drag: function (e) { + let parentRect = document.getElementById('content').getBoundingClientRect(); + let mouseInGrid = false; + if (((mouseXY.x > parentRect.left) && (mouseXY.x < parentRect.right)) && ((mouseXY.y > parentRect.top) && (mouseXY.y < parentRect.bottom))) { + mouseInGrid = true; + } + if (mouseInGrid === true && (this.layout.findIndex(item => item.i === 'drop')) === -1) { + this.layout.push({ + x: (this.layout.length * 2) % (this.colNum || 12), + y: this.layout.length + (this.colNum || 12), // puts it at the bottom + w: 1, + h: 1, + i: 'drop', + }); + } + let index = this.layout.findIndex(item => item.i === 'drop'); + if (index !== -1) { + // // console.log(this.$refs.gridlayout, '++++++1122334++++', this.layout.length); + // // try { + // // this.$refs.gridlayout.$el.children[this.layout.length].$refs.item.style.display = "none"; + // // } catch { + // // console.log('111111') + // // } + let el = this.$refs['gridItemdrop']; + el.dragging = {"top": mouseXY.y - parentRect.top, "left": mouseXY.x - parentRect.left}; + // let new_pos = el.calcXY(mouseXY.y - parentRect.top, mouseXY.x - parentRect.left); + + // if (mouseInGrid === true) { + // this.$refs.gridlayout.dragEvent('dragstart', 'drop', new_pos.x, new_pos.y, 1, 1); + // DragPos.i = String(index); + // DragPos.x = this.layout[index].x; + // DragPos.y = this.layout[index].y; + // } + // if (mouseInGrid === false) { + // this.$refs.gridlayout.dragEvent('dragend', 'drop', new_pos.x, new_pos.y, 1, 1); + // this.layout = this.layout.filter(obj => obj.i !== 'drop'); + // } + console.log(this.$refs, '============', el) + } + }, + dragend: function () { + let parentRect = document.getElementById('content').getBoundingClientRect(); + let mouseInGrid = false; + if (((mouseXY.x > parentRect.left) && (mouseXY.x < parentRect.right)) && ((mouseXY.y > parentRect.top) && (mouseXY.y < parentRect.bottom))) { + mouseInGrid = true; + } + if (mouseInGrid === true) { + // alert(`Dropped element props:\n${JSON.stringify(DragPos, ['x', 'y', 'w', 'h'], 2)}`); + this.$refs.gridlayout.dragEvent('dragend', 'drop', DragPos.x, DragPos.y, 1, 1); + this.layout = this.layout.filter(obj => obj.i !== 'drop'); + + // UNCOMMENT below if you want to add a grid-item + /* + this.layout.push({ + x: DragPos.x, + y: DragPos.y, + w: 1, + h: 1, + i: DragPos.i, + }); + this.$refs.gridLayout.dragEvent('dragend', DragPos.i, DragPos.x,DragPos.y,1,1); + try { + this.$refs.gridLayout.$children[this.layout.length].$refs.item.style.display="block"; + } catch { + } + */ + } + }, clicked: function() { window.alert("CLICK!"); }, @@ -235,19 +351,19 @@ this.layout.push(item); }, move: function(i, newX, newY){ - console.log("MOVE i=" + i + ", X=" + newX + ", Y=" + newY); + // console.log("MOVE i=" + i + ", X=" + newX + ", Y=" + newY); }, resize: function(i, newH, newW, newHPx, newWPx){ - console.log("RESIZE i=" + i + ", H=" + newH + ", W=" + newW + ", H(px)=" + newHPx + ", W(px)=" + newWPx); + // console.log("RESIZE i=" + i + ", H=" + newH + ", W=" + newW + ", H(px)=" + newHPx + ", W(px)=" + newWPx); }, moved: function(i, newX, newY){ - console.log("### MOVED i=" + i + ", X=" + newX + ", Y=" + newY); + // console.log("### MOVED i=" + i + ", X=" + newX + ", Y=" + newY); }, resized: function(i, newH, newW, newHPx, newWPx){ - console.log("### RESIZED i=" + i + ", H=" + newH + ", W=" + newW + ", H(px)=" + newHPx + ", W(px)=" + newWPx); + // console.log("### RESIZED i=" + i + ", H=" + newH + ", W=" + newW + ", H(px)=" + newHPx + ", W(px)=" + newWPx); }, containerResized: function(i, newH, newW, newHPx, newWPx){ - console.log("### CONTAINER RESIZED i=" + i + ", H=" + newH + ", W=" + newW + ", H(px)=" + newHPx + ", W(px)=" + newWPx); + // console.log("### CONTAINER RESIZED i=" + i + ", H=" + newH + ", W=" + newW + ", H(px)=" + newHPx + ", W(px)=" + newWPx); }, /** * Add change direction button @@ -265,24 +381,32 @@ }, layoutCreatedEvent: function(newLayout){ - console.log("Created layout: ", newLayout) + // console.log("Created layout: ", newLayout) }, layoutBeforeMountEvent: function(newLayout){ - console.log("beforeMount layout: ", newLayout) + // console.log("beforeMount layout: ", newLayout) }, layoutMountedEvent: function(newLayout){ - console.log("Mounted layout: ", newLayout) + // console.log("Mounted layout: ", newLayout) }, layoutReadyEvent: function(newLayout){ - console.log("Ready layout: ", newLayout) + // console.log("Ready layout: ", newLayout) this.layout = newLayout }, layoutUpdatedEvent: function(newLayout){ - console.log("Updated layout: ", newLayout) + // console.log("Updated layout: ", newLayout) this.layout = newLayout }, + layoutReadyEvent1: function(newLayout){ + // console.log("Ready layout: ", newLayout) + this.layout1 = newLayout + }, + layoutUpdatedEvent1: function(newLayout){ + // console.log("Updated layout: ", newLayout) + this.layout1 = newLayout + }, breakpointChangedEvent: function(newBreakpoint, newLayout){ - console.log("breakpoint changed breakpoint=", newBreakpoint, ", layout: ", newLayout ); + // console.log("breakpoint changed breakpoint=", newBreakpoint, ", layout: ", newLayout ); } }, @@ -319,6 +443,91 @@