@shopify/draggable
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
# Changelog | ||
## v1.0.0-beta.5 - ? | ||
## v1.0.0-beta.6 - ? | ||
@@ -9,2 +9,39 @@ ### Added | ||
## v1.0.0-beta.5 - 2018-03-02 | ||
### Added | ||
- Increased Documentation coverage | ||
- Increased Test coverage, including better testing environment | ||
- Increased JSDoc coverage | ||
- Added docblock section to `CONTRIBUTING.md` | ||
- Added greenkeeper as integration for package dependency management | ||
- Added codecov as integration for tracking test coverage | ||
- Added github template issue | ||
- Added github template PR | ||
- Added yarn scripts for examples | ||
- Added SensorEvent to exports | ||
- Added yarn scripts for esdoc | ||
- Added `Announcement` plugin for screen reader support | ||
- Added cursor offset option for `Mirror` plugin | ||
- Added `scrollableElements` option to `Scrollable` plugin | ||
- Added `snappableElement` to `SnapEvent` | ||
- Added examples to published package | ||
- Added `Emitter` class for event emitting for draggable | ||
### Changed | ||
- Changed esdoc config | ||
- Changed node version `8.9.1` to `8.9.4` | ||
- Updated package dependencies | ||
- Updated roadmap section in README | ||
- Changed export statements | ||
- Fixes draggable state after canceling `drag:start` | ||
- Fixes `constrainDimensions` option for `Mirror` plugin | ||
- Fixes mirror position with touch devices and `Scrollable` | ||
- `AutoScroll` plugin has been renamed to `Scrollable` | ||
- Fixes scrolling edge cases with `Scrollable` | ||
- Fixes scrolling offset for touch devices in `Scrollable` | ||
- Fixes npm install issue | ||
- Fixes `overContainer` property for `DragOutContainerEvent` | ||
## v1.0.0-beta.4 - 2018-01-15 | ||
@@ -15,3 +52,3 @@ | ||
- Default `Draggable` plugins get exposed statically on `Draggable.Plugins` | ||
- Default `AutoScroll` plugin for Draggable, which auto scrolls containers/viewport while dragging | ||
- Default `Scrollable` plugin for Draggable, which auto scrolls containers/viewport while dragging | ||
- `yarn watch` task for auto-building the library | ||
@@ -18,0 +55,0 @@ - `source:original` class option for Draggable |
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
root["Snappable"] = factory(); | ||
})(this, function() { | ||
})(typeof self !== 'undefined' ? self : this, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -74,3 +74,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 43); | ||
/******/ return __webpack_require__(__webpack_require__.s = 44); | ||
/******/ }) | ||
@@ -84,5 +84,8 @@ /************************************************************************/ | ||
var global = module.exports = typeof window != 'undefined' && window.Math == Math | ||
? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); | ||
if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef | ||
? window : typeof self != 'undefined' && self.Math == Math ? self | ||
// eslint-disable-next-line no-new-func | ||
: Function('return this')(); | ||
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | ||
/***/ }), | ||
@@ -92,19 +95,20 @@ /* 1 */ | ||
var anObject = __webpack_require__(9) | ||
, IE8_DOM_DEFINE = __webpack_require__(31) | ||
, toPrimitive = __webpack_require__(17) | ||
, dP = Object.defineProperty; | ||
var anObject = __webpack_require__(10); | ||
var IE8_DOM_DEFINE = __webpack_require__(32); | ||
var toPrimitive = __webpack_require__(16); | ||
var dP = Object.defineProperty; | ||
exports.f = __webpack_require__(2) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | ||
exports.f = __webpack_require__(2) ? Object.defineProperty : function defineProperty(O, P, Attributes) { | ||
anObject(O); | ||
P = toPrimitive(P, true); | ||
anObject(Attributes); | ||
if(IE8_DOM_DEFINE)try { | ||
if (IE8_DOM_DEFINE) try { | ||
return dP(O, P, Attributes); | ||
} catch(e){ /* empty */ } | ||
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); | ||
if('value' in Attributes)O[P] = Attributes.value; | ||
} catch (e) { /* empty */ } | ||
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | ||
if ('value' in Attributes) O[P] = Attributes.value; | ||
return O; | ||
}; | ||
/***/ }), | ||
@@ -115,6 +119,7 @@ /* 2 */ | ||
// Thank's IE8 for his funny defineProperty | ||
module.exports = !__webpack_require__(13)(function(){ | ||
return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; | ||
module.exports = !__webpack_require__(13)(function () { | ||
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | ||
}); | ||
/***/ }), | ||
@@ -125,47 +130,60 @@ /* 3 */ | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
module.exports = function(it, key){ | ||
module.exports = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
}; | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports) { | ||
var core = module.exports = { version: '2.5.3' }; | ||
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | ||
/***/ }), | ||
/* 5 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// to indexed object, toObject with fallback for non-array-like ES3 strings | ||
var IObject = __webpack_require__(55) | ||
, defined = __webpack_require__(19); | ||
module.exports = function(it){ | ||
return IObject(defined(it)); | ||
var dP = __webpack_require__(1); | ||
var createDesc = __webpack_require__(14); | ||
module.exports = __webpack_require__(2) ? function (object, key, value) { | ||
return dP.f(object, key, createDesc(1, value)); | ||
} : function (object, key, value) { | ||
object[key] = value; | ||
return object; | ||
}; | ||
/***/ }), | ||
/* 5 */ | ||
/* 6 */ | ||
/***/ (function(module, exports) { | ||
var core = module.exports = {version: '2.4.0'}; | ||
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef | ||
module.exports = function (it) { | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
/***/ }), | ||
/* 6 */ | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var dP = __webpack_require__(1) | ||
, createDesc = __webpack_require__(14); | ||
module.exports = __webpack_require__(2) ? function(object, key, value){ | ||
return dP.f(object, key, createDesc(1, value)); | ||
} : function(object, key, value){ | ||
object[key] = value; | ||
return object; | ||
// to indexed object, toObject with fallback for non-array-like ES3 strings | ||
var IObject = __webpack_require__(56); | ||
var defined = __webpack_require__(18); | ||
module.exports = function (it) { | ||
return IObject(defined(it)); | ||
}; | ||
/***/ }), | ||
/* 7 */ | ||
/* 8 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var store = __webpack_require__(24)('wks') | ||
, uid = __webpack_require__(16) | ||
, Symbol = __webpack_require__(0).Symbol | ||
, USE_SYMBOL = typeof Symbol == 'function'; | ||
var store = __webpack_require__(24)('wks'); | ||
var uid = __webpack_require__(15); | ||
var Symbol = __webpack_require__(0).Symbol; | ||
var USE_SYMBOL = typeof Symbol == 'function'; | ||
var $exports = module.exports = function(name){ | ||
var $exports = module.exports = function (name) { | ||
return store[name] || (store[name] = | ||
@@ -177,28 +195,29 @@ USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | ||
/***/ }), | ||
/* 8 */ | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var global = __webpack_require__(0) | ||
, core = __webpack_require__(5) | ||
, ctx = __webpack_require__(30) | ||
, hide = __webpack_require__(6) | ||
, PROTOTYPE = 'prototype'; | ||
var global = __webpack_require__(0); | ||
var core = __webpack_require__(4); | ||
var ctx = __webpack_require__(31); | ||
var hide = __webpack_require__(5); | ||
var PROTOTYPE = 'prototype'; | ||
var $export = function(type, name, source){ | ||
var IS_FORCED = type & $export.F | ||
, IS_GLOBAL = type & $export.G | ||
, IS_STATIC = type & $export.S | ||
, IS_PROTO = type & $export.P | ||
, IS_BIND = type & $export.B | ||
, IS_WRAP = type & $export.W | ||
, exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) | ||
, expProto = exports[PROTOTYPE] | ||
, target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE] | ||
, key, own, out; | ||
if(IS_GLOBAL)source = name; | ||
for(key in source){ | ||
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 && key in exports)continue; | ||
if (own && key in exports) continue; | ||
// export native or passed | ||
@@ -211,7 +230,7 @@ out = own ? target[key] : source[key]; | ||
// 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; | ||
: 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); | ||
@@ -227,6 +246,6 @@ case 2: return new C(a, b); | ||
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME% | ||
if(IS_PROTO){ | ||
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); | ||
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); | ||
} | ||
@@ -243,23 +262,17 @@ } | ||
$export.U = 64; // safe | ||
$export.R = 128; // real proto method for `library` | ||
$export.R = 128; // real proto method for `library` | ||
module.exports = $export; | ||
/***/ }), | ||
/* 9 */ | ||
/* 10 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isObject = __webpack_require__(10); | ||
module.exports = function(it){ | ||
if(!isObject(it))throw TypeError(it + ' is not an object!'); | ||
var isObject = __webpack_require__(6); | ||
module.exports = function (it) { | ||
if (!isObject(it)) throw TypeError(it + ' is not an object!'); | ||
return it; | ||
}; | ||
/***/ }), | ||
/* 10 */ | ||
/***/ (function(module, exports) { | ||
module.exports = function(it){ | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
/***/ }), | ||
@@ -289,3 +302,3 @@ /* 11 */ | ||
var _defineProperty = __webpack_require__(45); | ||
var _defineProperty = __webpack_require__(46); | ||
@@ -318,6 +331,6 @@ var _defineProperty2 = _interopRequireDefault(_defineProperty); | ||
module.exports = function(exec){ | ||
module.exports = function (exec) { | ||
try { | ||
return !!exec(); | ||
} catch(e){ | ||
} catch (e) { | ||
return true; | ||
@@ -327,2 +340,3 @@ } | ||
/***/ }), | ||
@@ -332,73 +346,66 @@ /* 14 */ | ||
module.exports = function(bitmap, value){ | ||
module.exports = function (bitmap, value) { | ||
return { | ||
enumerable : !(bitmap & 1), | ||
enumerable: !(bitmap & 1), | ||
configurable: !(bitmap & 2), | ||
writable : !(bitmap & 4), | ||
value : value | ||
writable: !(bitmap & 4), | ||
value: value | ||
}; | ||
}; | ||
/***/ }), | ||
/* 15 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 19.1.2.14 / 15.2.3.14 Object.keys(O) | ||
var $keys = __webpack_require__(37) | ||
, enumBugKeys = __webpack_require__(25); | ||
module.exports = Object.keys || function keys(O){ | ||
return $keys(O, enumBugKeys); | ||
}; | ||
/***/ }), | ||
/* 16 */ | ||
/***/ (function(module, exports) { | ||
var id = 0 | ||
, px = Math.random(); | ||
module.exports = function(key){ | ||
var id = 0; | ||
var px = Math.random(); | ||
module.exports = function (key) { | ||
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | ||
}; | ||
/***/ }), | ||
/* 17 */ | ||
/* 16 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 7.1.1 ToPrimitive(input [, PreferredType]) | ||
var isObject = __webpack_require__(10); | ||
var isObject = __webpack_require__(6); | ||
// 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; | ||
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; | ||
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"); | ||
}; | ||
/***/ }), | ||
/* 18 */ | ||
/* 17 */ | ||
/***/ (function(module, exports) { | ||
// 7.1.4 ToInteger | ||
var ceil = Math.ceil | ||
, floor = Math.floor; | ||
module.exports = function(it){ | ||
var ceil = Math.ceil; | ||
var floor = Math.floor; | ||
module.exports = function (it) { | ||
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | ||
}; | ||
/***/ }), | ||
/* 19 */ | ||
/* 18 */ | ||
/***/ (function(module, exports) { | ||
// 7.2.1 RequireObjectCoercible(argument) | ||
module.exports = function(it){ | ||
if(it == undefined)throw TypeError("Can't call method on " + it); | ||
module.exports = function (it) { | ||
if (it == undefined) throw TypeError("Can't call method on " + it); | ||
return it; | ||
}; | ||
/***/ }), | ||
/* 20 */ | ||
/* 19 */ | ||
/***/ (function(module, exports) { | ||
@@ -408,4 +415,5 @@ | ||
/***/ }), | ||
/* 21 */ | ||
/* 20 */ | ||
/***/ (function(module, exports) { | ||
@@ -415,24 +423,25 @@ | ||
/***/ }), | ||
/* 22 */ | ||
/* 21 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | ||
var anObject = __webpack_require__(9) | ||
, dPs = __webpack_require__(54) | ||
, enumBugKeys = __webpack_require__(25) | ||
, IE_PROTO = __webpack_require__(23)('IE_PROTO') | ||
, Empty = function(){ /* empty */ } | ||
, PROTOTYPE = 'prototype'; | ||
var anObject = __webpack_require__(10); | ||
var dPs = __webpack_require__(55); | ||
var enumBugKeys = __webpack_require__(25); | ||
var IE_PROTO = __webpack_require__(23)('IE_PROTO'); | ||
var Empty = function () { /* empty */ }; | ||
var PROTOTYPE = 'prototype'; | ||
// Create object with fake `null` prototype: use iframe Object with cleared prototype | ||
var createDict = function(){ | ||
var createDict = function () { | ||
// Thrash, waste and sodomy: IE GC bug | ||
var iframe = __webpack_require__(32)('iframe') | ||
, i = enumBugKeys.length | ||
, lt = '<' | ||
, gt = '>' | ||
, iframeDocument; | ||
var iframe = __webpack_require__(33)('iframe'); | ||
var i = enumBugKeys.length; | ||
var lt = '<'; | ||
var gt = '>'; | ||
var iframeDocument; | ||
iframe.style.display = 'none'; | ||
__webpack_require__(59).appendChild(iframe); | ||
__webpack_require__(60).appendChild(iframe); | ||
iframe.src = 'javascript:'; // eslint-disable-line no-script-url | ||
@@ -446,11 +455,11 @@ // createDict = iframe.contentWindow.Object; | ||
createDict = iframeDocument.F; | ||
while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]]; | ||
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | ||
return createDict(); | ||
}; | ||
module.exports = Object.create || function create(O, Properties){ | ||
module.exports = Object.create || function create(O, Properties) { | ||
var result; | ||
if(O !== null){ | ||
if (O !== null) { | ||
Empty[PROTOTYPE] = anObject(O); | ||
result = new Empty; | ||
result = new Empty(); | ||
Empty[PROTOTYPE] = null; | ||
@@ -465,11 +474,25 @@ // add "__proto__" for Object.getPrototypeOf polyfill | ||
/***/ }), | ||
/* 22 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 19.1.2.14 / 15.2.3.14 Object.keys(O) | ||
var $keys = __webpack_require__(38); | ||
var enumBugKeys = __webpack_require__(25); | ||
module.exports = Object.keys || function keys(O) { | ||
return $keys(O, enumBugKeys); | ||
}; | ||
/***/ }), | ||
/* 23 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var shared = __webpack_require__(24)('keys') | ||
, uid = __webpack_require__(16); | ||
module.exports = function(key){ | ||
var shared = __webpack_require__(24)('keys'); | ||
var uid = __webpack_require__(15); | ||
module.exports = function (key) { | ||
return shared[key] || (shared[key] = uid(key)); | ||
}; | ||
/***/ }), | ||
@@ -479,9 +502,10 @@ /* 24 */ | ||
var global = __webpack_require__(0) | ||
, SHARED = '__core-js_shared__' | ||
, store = global[SHARED] || (global[SHARED] = {}); | ||
module.exports = function(key){ | ||
var global = __webpack_require__(0); | ||
var SHARED = '__core-js_shared__'; | ||
var store = global[SHARED] || (global[SHARED] = {}); | ||
module.exports = function (key) { | ||
return store[key] || (store[key] = {}); | ||
}; | ||
/***/ }), | ||
@@ -496,2 +520,3 @@ /* 25 */ | ||
/***/ }), | ||
@@ -501,10 +526,11 @@ /* 26 */ | ||
var def = __webpack_require__(1).f | ||
, has = __webpack_require__(3) | ||
, TAG = __webpack_require__(7)('toStringTag'); | ||
var def = __webpack_require__(1).f; | ||
var has = __webpack_require__(3); | ||
var TAG = __webpack_require__(8)('toStringTag'); | ||
module.exports = function(it, tag, stat){ | ||
if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag}); | ||
module.exports = function (it, tag, stat) { | ||
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | ||
}; | ||
/***/ }), | ||
@@ -514,4 +540,5 @@ /* 27 */ | ||
exports.f = __webpack_require__(7); | ||
exports.f = __webpack_require__(8); | ||
/***/ }), | ||
@@ -521,12 +548,13 @@ /* 28 */ | ||
var global = __webpack_require__(0) | ||
, core = __webpack_require__(5) | ||
, LIBRARY = __webpack_require__(20) | ||
, wksExt = __webpack_require__(27) | ||
, defineProperty = __webpack_require__(1).f; | ||
module.exports = function(name){ | ||
var global = __webpack_require__(0); | ||
var core = __webpack_require__(4); | ||
var LIBRARY = __webpack_require__(19); | ||
var wksExt = __webpack_require__(27); | ||
var defineProperty = __webpack_require__(1).f; | ||
module.exports = function (name) { | ||
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); | ||
if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)}); | ||
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); | ||
}; | ||
/***/ }), | ||
@@ -538,2 +566,3 @@ /* 29 */ | ||
/***/ }), | ||
@@ -543,19 +572,42 @@ /* 30 */ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _SnappableEvent = __webpack_require__(45); | ||
Object.keys(_SnappableEvent).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _SnappableEvent[key]; | ||
} | ||
}); | ||
}); | ||
/***/ }), | ||
/* 31 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// optional / simple context binding | ||
var aFunction = __webpack_require__(48); | ||
module.exports = function(fn, that, length){ | ||
var aFunction = __webpack_require__(49); | ||
module.exports = function (fn, that, length) { | ||
aFunction(fn); | ||
if(that === undefined)return fn; | ||
switch(length){ | ||
case 1: return function(a){ | ||
if (that === undefined) return fn; | ||
switch (length) { | ||
case 1: return function (a) { | ||
return fn.call(that, a); | ||
}; | ||
case 2: return function(a, b){ | ||
case 2: return function (a, b) { | ||
return fn.call(that, a, b); | ||
}; | ||
case 3: return function(a, b, c){ | ||
case 3: return function (a, b, c) { | ||
return fn.call(that, a, b, c); | ||
}; | ||
} | ||
return function(/* ...args */){ | ||
return function (/* ...args */) { | ||
return fn.apply(that, arguments); | ||
@@ -565,24 +617,27 @@ }; | ||
/***/ }), | ||
/* 31 */ | ||
/* 32 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = !__webpack_require__(2) && !__webpack_require__(13)(function(){ | ||
return Object.defineProperty(__webpack_require__(32)('div'), 'a', {get: function(){ return 7; }}).a != 7; | ||
module.exports = !__webpack_require__(2) && !__webpack_require__(13)(function () { | ||
return Object.defineProperty(__webpack_require__(33)('div'), 'a', { get: function () { return 7; } }).a != 7; | ||
}); | ||
/***/ }), | ||
/* 32 */ | ||
/* 33 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isObject = __webpack_require__(10) | ||
, document = __webpack_require__(0).document | ||
// in old IE typeof document.createElement is 'object' | ||
, is = isObject(document) && isObject(document.createElement); | ||
module.exports = function(it){ | ||
var isObject = __webpack_require__(6); | ||
var document = __webpack_require__(0).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) : {}; | ||
}; | ||
/***/ }), | ||
/* 33 */ | ||
/* 34 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -595,3 +650,3 @@ | ||
var _typeof2 = __webpack_require__(34); | ||
var _typeof2 = __webpack_require__(35); | ||
@@ -611,3 +666,3 @@ var _typeof3 = _interopRequireDefault(_typeof2); | ||
/***/ }), | ||
/* 34 */ | ||
/* 35 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -620,7 +675,7 @@ | ||
var _iterator = __webpack_require__(49); | ||
var _iterator = __webpack_require__(50); | ||
var _iterator2 = _interopRequireDefault(_iterator); | ||
var _symbol = __webpack_require__(66); | ||
var _symbol = __webpack_require__(67); | ||
@@ -640,3 +695,3 @@ var _symbol2 = _interopRequireDefault(_symbol); | ||
/***/ }), | ||
/* 35 */ | ||
/* 36 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -646,54 +701,54 @@ | ||
var LIBRARY = __webpack_require__(20) | ||
, $export = __webpack_require__(8) | ||
, redefine = __webpack_require__(36) | ||
, hide = __webpack_require__(6) | ||
, has = __webpack_require__(3) | ||
, Iterators = __webpack_require__(21) | ||
, $iterCreate = __webpack_require__(53) | ||
, setToStringTag = __webpack_require__(26) | ||
, getPrototypeOf = __webpack_require__(60) | ||
, ITERATOR = __webpack_require__(7)('iterator') | ||
, BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next` | ||
, FF_ITERATOR = '@@iterator' | ||
, KEYS = 'keys' | ||
, VALUES = 'values'; | ||
var LIBRARY = __webpack_require__(19); | ||
var $export = __webpack_require__(9); | ||
var redefine = __webpack_require__(37); | ||
var hide = __webpack_require__(5); | ||
var has = __webpack_require__(3); | ||
var Iterators = __webpack_require__(20); | ||
var $iterCreate = __webpack_require__(54); | ||
var setToStringTag = __webpack_require__(26); | ||
var getPrototypeOf = __webpack_require__(61); | ||
var ITERATOR = __webpack_require__(8)('iterator'); | ||
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | ||
var FF_ITERATOR = '@@iterator'; | ||
var KEYS = 'keys'; | ||
var VALUES = 'values'; | ||
var returnThis = function(){ return this; }; | ||
var returnThis = function () { return this; }; | ||
module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){ | ||
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | ||
$iterCreate(Constructor, NAME, next); | ||
var getMethod = function(kind){ | ||
if(!BUGGY && kind in proto)return proto[kind]; | ||
switch(kind){ | ||
case KEYS: return function keys(){ return new Constructor(this, kind); }; | ||
case VALUES: return function values(){ return new Constructor(this, kind); }; | ||
} return function entries(){ return new Constructor(this, kind); }; | ||
var getMethod = function (kind) { | ||
if (!BUGGY && kind in proto) return proto[kind]; | ||
switch (kind) { | ||
case KEYS: return function keys() { return new Constructor(this, kind); }; | ||
case VALUES: return function values() { return new Constructor(this, kind); }; | ||
} return function entries() { return new Constructor(this, kind); }; | ||
}; | ||
var TAG = NAME + ' Iterator' | ||
, DEF_VALUES = DEFAULT == VALUES | ||
, VALUES_BUG = false | ||
, proto = Base.prototype | ||
, $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT] | ||
, $default = $native || getMethod(DEFAULT) | ||
, $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined | ||
, $anyNative = NAME == 'Array' ? proto.entries || $native : $native | ||
, methods, key, IteratorPrototype; | ||
var TAG = NAME + ' Iterator'; | ||
var DEF_VALUES = DEFAULT == VALUES; | ||
var VALUES_BUG = false; | ||
var proto = Base.prototype; | ||
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | ||
var $default = (!BUGGY && $native) || getMethod(DEFAULT); | ||
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | ||
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | ||
var methods, key, IteratorPrototype; | ||
// Fix native | ||
if($anyNative){ | ||
IteratorPrototype = getPrototypeOf($anyNative.call(new Base)); | ||
if(IteratorPrototype !== Object.prototype){ | ||
if ($anyNative) { | ||
IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | ||
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | ||
// Set @@toStringTag to native iterators | ||
setToStringTag(IteratorPrototype, TAG, true); | ||
// fix for some old engines | ||
if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis); | ||
if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); | ||
} | ||
} | ||
// fix Array#{values, @@iterator}.name in V8 / FF | ||
if(DEF_VALUES && $native && $native.name !== VALUES){ | ||
if (DEF_VALUES && $native && $native.name !== VALUES) { | ||
VALUES_BUG = true; | ||
$default = function values(){ return $native.call(this); }; | ||
$default = function values() { return $native.call(this); }; | ||
} | ||
// Define iterator | ||
if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){ | ||
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | ||
hide(proto, ITERATOR, $default); | ||
@@ -703,11 +758,11 @@ } | ||
Iterators[NAME] = $default; | ||
Iterators[TAG] = returnThis; | ||
if(DEFAULT){ | ||
Iterators[TAG] = returnThis; | ||
if (DEFAULT) { | ||
methods = { | ||
values: DEF_VALUES ? $default : getMethod(VALUES), | ||
keys: IS_SET ? $default : getMethod(KEYS), | ||
values: DEF_VALUES ? $default : getMethod(VALUES), | ||
keys: IS_SET ? $default : getMethod(KEYS), | ||
entries: $entries | ||
}; | ||
if(FORCED)for(key in methods){ | ||
if(!(key in proto))redefine(proto, key, methods[key]); | ||
if (FORCED) for (key in methods) { | ||
if (!(key in proto)) redefine(proto, key, methods[key]); | ||
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | ||
@@ -718,25 +773,27 @@ } | ||
/***/ }), | ||
/* 36 */ | ||
/* 37 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = __webpack_require__(6); | ||
module.exports = __webpack_require__(5); | ||
/***/ }), | ||
/* 37 */ | ||
/* 38 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var has = __webpack_require__(3) | ||
, toIObject = __webpack_require__(4) | ||
, arrayIndexOf = __webpack_require__(56)(false) | ||
, IE_PROTO = __webpack_require__(23)('IE_PROTO'); | ||
var has = __webpack_require__(3); | ||
var toIObject = __webpack_require__(7); | ||
var arrayIndexOf = __webpack_require__(57)(false); | ||
var IE_PROTO = __webpack_require__(23)('IE_PROTO'); | ||
module.exports = function(object, names){ | ||
var O = toIObject(object) | ||
, i = 0 | ||
, result = [] | ||
, key; | ||
for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key); | ||
module.exports = function (object, names) { | ||
var O = toIObject(object); | ||
var i = 0; | ||
var result = []; | ||
var key; | ||
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | ||
// Don't enum bug & hidden keys | ||
while(names.length > i)if(has(O, key = names[i++])){ | ||
while (names.length > i) if (has(O, key = names[i++])) { | ||
~arrayIndexOf(result, key) || result.push(key); | ||
@@ -747,4 +804,5 @@ } | ||
/***/ }), | ||
/* 38 */ | ||
/* 39 */ | ||
/***/ (function(module, exports) { | ||
@@ -754,8 +812,9 @@ | ||
module.exports = function(it){ | ||
module.exports = function (it) { | ||
return toString.call(it).slice(8, -1); | ||
}; | ||
/***/ }), | ||
/* 39 */ | ||
/* 40 */ | ||
/***/ (function(module, exports) { | ||
@@ -765,37 +824,40 @@ | ||
/***/ }), | ||
/* 40 */ | ||
/* 41 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) | ||
var $keys = __webpack_require__(37) | ||
, hiddenKeys = __webpack_require__(25).concat('length', 'prototype'); | ||
var $keys = __webpack_require__(38); | ||
var hiddenKeys = __webpack_require__(25).concat('length', 'prototype'); | ||
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){ | ||
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
return $keys(O, hiddenKeys); | ||
}; | ||
/***/ }), | ||
/* 41 */ | ||
/* 42 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var pIE = __webpack_require__(29) | ||
, createDesc = __webpack_require__(14) | ||
, toIObject = __webpack_require__(4) | ||
, toPrimitive = __webpack_require__(17) | ||
, has = __webpack_require__(3) | ||
, IE8_DOM_DEFINE = __webpack_require__(31) | ||
, gOPD = Object.getOwnPropertyDescriptor; | ||
var pIE = __webpack_require__(29); | ||
var createDesc = __webpack_require__(14); | ||
var toIObject = __webpack_require__(7); | ||
var toPrimitive = __webpack_require__(16); | ||
var has = __webpack_require__(3); | ||
var IE8_DOM_DEFINE = __webpack_require__(32); | ||
var gOPD = Object.getOwnPropertyDescriptor; | ||
exports.f = __webpack_require__(2) ? gOPD : function getOwnPropertyDescriptor(O, P){ | ||
exports.f = __webpack_require__(2) ? gOPD : function getOwnPropertyDescriptor(O, P) { | ||
O = toIObject(O); | ||
P = toPrimitive(P, true); | ||
if(IE8_DOM_DEFINE)try { | ||
if (IE8_DOM_DEFINE) try { | ||
return gOPD(O, P); | ||
} catch(e){ /* empty */ } | ||
if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]); | ||
} catch (e) { /* empty */ } | ||
if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); | ||
}; | ||
/***/ }), | ||
/* 42 */ | ||
/* 43 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -816,3 +878,3 @@ | ||
var _typeof2 = __webpack_require__(34); | ||
var _typeof2 = __webpack_require__(35); | ||
@@ -840,3 +902,3 @@ var _typeof3 = _interopRequireDefault(_typeof2); | ||
/***/ }), | ||
/* 43 */ | ||
/* 44 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -851,4 +913,16 @@ | ||
var _Snappable = __webpack_require__(44); | ||
var _SnappableEvent = __webpack_require__(30); | ||
Object.keys(_SnappableEvent).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _SnappableEvent[key]; | ||
} | ||
}); | ||
}); | ||
var _Snappable = __webpack_require__(86); | ||
var _Snappable2 = _interopRequireDefault(_Snappable); | ||
@@ -861,3 +935,3 @@ | ||
/***/ }), | ||
/* 44 */ | ||
/* 45 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -871,2 +945,3 @@ | ||
}); | ||
exports.SnapOutEvent = exports.SnapInEvent = exports.SnapEvent = undefined; | ||
@@ -881,177 +956,159 @@ var _classCallCheck2 = __webpack_require__(11); | ||
var _possibleConstructorReturn2 = __webpack_require__(33); | ||
var _possibleConstructorReturn2 = __webpack_require__(34); | ||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); | ||
var _inherits2 = __webpack_require__(42); | ||
var _inherits2 = __webpack_require__(43); | ||
var _inherits3 = _interopRequireDefault(_inherits2); | ||
var _AbstractPlugin2 = __webpack_require__(84); | ||
var _AbstractEvent2 = __webpack_require__(84); | ||
var _AbstractPlugin3 = _interopRequireDefault(_AbstractPlugin2); | ||
var _AbstractEvent3 = _interopRequireDefault(_AbstractEvent2); | ||
var _SnappableEvent = __webpack_require__(86); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var Snappable = function (_AbstractPlugin) { | ||
(0, _inherits3.default)(Snappable, _AbstractPlugin); | ||
/** | ||
* Base snap event | ||
* @class SnapEvent | ||
* @module SnapEvent | ||
* @extends AbstractEvent | ||
*/ | ||
var SnapEvent = exports.SnapEvent = function (_AbstractEvent) { | ||
(0, _inherits3.default)(SnapEvent, _AbstractEvent); | ||
function Snappable(draggable) { | ||
(0, _classCallCheck3.default)(this, Snappable); | ||
function SnapEvent() { | ||
(0, _classCallCheck3.default)(this, SnapEvent); | ||
return (0, _possibleConstructorReturn3.default)(this, (SnapEvent.__proto__ || Object.getPrototypeOf(SnapEvent)).apply(this, arguments)); | ||
} | ||
var _this = (0, _possibleConstructorReturn3.default)(this, (Snappable.__proto__ || Object.getPrototypeOf(Snappable)).call(this, draggable)); | ||
(0, _createClass3.default)(SnapEvent, [{ | ||
key: 'dragEvent', | ||
_this._onDragStart = _this._onDragStart.bind(_this); | ||
_this._onDragStop = _this._onDragStop.bind(_this); | ||
_this._onDragOver = _this._onDragOver.bind(_this); | ||
_this._onDragOut = _this._onDragOut.bind(_this); | ||
return _this; | ||
} | ||
(0, _createClass3.default)(Snappable, [{ | ||
key: 'attach', | ||
value: function attach() { | ||
this.draggable.on('drag:start', this._onDragStart).on('drag:stop', this._onDragStop).on('drag:over', this._onDragOver).on('drag:out', this._onDragOut).on('droppable:over', this._onDragOver).on('droppable:out', this._onDragOut); | ||
/** | ||
* Drag event that triggered this snap event | ||
* @property dragEvent | ||
* @type {DragEvent} | ||
* @readonly | ||
*/ | ||
get: function get() { | ||
return this.data.dragEvent; | ||
} | ||
}, { | ||
key: 'detach', | ||
value: function detach() { | ||
this.draggable.off('drag:start', this._onDragStart).off('drag:stop', this._onDragStop).off('drag:over', this._onDragOver).off('drag:out', this._onDragOut).off('droppable:over', this._onDragOver).off('droppable:out', this._onDragOut); | ||
} | ||
}, { | ||
key: '_onDragStart', | ||
value: function _onDragStart(event) { | ||
if (event.canceled()) { | ||
return; | ||
} | ||
this.firstSource = event.source; | ||
} | ||
/** | ||
* Snappable element | ||
* @property snappable | ||
* @type {HTMLElement} | ||
* @readonly | ||
*/ | ||
}, { | ||
key: '_onDragStop', | ||
value: function _onDragStop() { | ||
this.firstSource = null; | ||
key: 'snappable', | ||
get: function get() { | ||
return this.data.snappable; | ||
} | ||
}, { | ||
key: '_onDragOver', | ||
value: function _onDragOver(event) { | ||
var _this2 = this; | ||
}]); | ||
return SnapEvent; | ||
}(_AbstractEvent3.default); | ||
if (event.canceled()) { | ||
return; | ||
} | ||
/** | ||
* Snap in event | ||
* @class SnapInEvent | ||
* @module SnapInEvent | ||
* @extends SnapEvent | ||
*/ | ||
var source = event.source || event.dragEvent.source; | ||
var mirror = event.mirror || event.dragEvent.mirror; | ||
if (source === this.firstSource) { | ||
this.firstSource = null; | ||
return; | ||
} | ||
SnapEvent.type = 'snap'; | ||
var snapInEvent = new _SnappableEvent.SnapInEvent({ | ||
dragEvent: event | ||
}); | ||
var SnapInEvent = exports.SnapInEvent = function (_SnapEvent) { | ||
(0, _inherits3.default)(SnapInEvent, _SnapEvent); | ||
this.draggable.trigger(snapInEvent); | ||
function SnapInEvent() { | ||
(0, _classCallCheck3.default)(this, SnapInEvent); | ||
return (0, _possibleConstructorReturn3.default)(this, (SnapInEvent.__proto__ || Object.getPrototypeOf(SnapInEvent)).apply(this, arguments)); | ||
} | ||
if (snapInEvent.canceled()) { | ||
return; | ||
} | ||
return SnapInEvent; | ||
}(SnapEvent); | ||
if (mirror) { | ||
mirror.style.display = 'none'; | ||
} | ||
/** | ||
* Snap out event | ||
* @class SnapOutEvent | ||
* @module SnapOutEvent | ||
* @extends SnapEvent | ||
*/ | ||
source.classList.remove(this.draggable.getClassNameFor('source:dragging')); | ||
source.classList.add(this.draggable.getClassNameFor('source:placed')); | ||
// Need to cancel this in drag out | ||
setTimeout(function () { | ||
source.classList.remove(_this2.draggable.getClassNameFor('source:placed')); | ||
}, this.draggable.options.placedTimeout); | ||
} | ||
}, { | ||
key: '_onDragOut', | ||
value: function _onDragOut(event) { | ||
if (event.canceled()) { | ||
return; | ||
} | ||
SnapInEvent.type = 'snap:in'; | ||
SnapInEvent.cancelable = true; | ||
var mirror = event.mirror || event.dragEvent.mirror; | ||
var source = event.source || event.dragEvent.source; | ||
var SnapOutEvent = exports.SnapOutEvent = function (_SnapEvent2) { | ||
(0, _inherits3.default)(SnapOutEvent, _SnapEvent2); | ||
var snapOutEvent = new _SnappableEvent.SnapOutEvent({ | ||
dragEvent: event | ||
}); | ||
function SnapOutEvent() { | ||
(0, _classCallCheck3.default)(this, SnapOutEvent); | ||
return (0, _possibleConstructorReturn3.default)(this, (SnapOutEvent.__proto__ || Object.getPrototypeOf(SnapOutEvent)).apply(this, arguments)); | ||
} | ||
this.draggable.trigger(snapOutEvent); | ||
return SnapOutEvent; | ||
}(SnapEvent); | ||
if (snapOutEvent.canceled()) { | ||
return; | ||
} | ||
SnapOutEvent.type = 'snap:out'; | ||
SnapOutEvent.cancelable = true; | ||
if (mirror) { | ||
mirror.style.display = ''; | ||
} | ||
source.classList.add(this.draggable.getClassNameFor('source:dragging')); | ||
} | ||
}]); | ||
return Snappable; | ||
}(_AbstractPlugin3.default); | ||
exports.default = Snappable; | ||
/***/ }), | ||
/* 45 */ | ||
/* 46 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = { "default": __webpack_require__(46), __esModule: true }; | ||
module.exports = { "default": __webpack_require__(47), __esModule: true }; | ||
/***/ }), | ||
/* 46 */ | ||
/* 47 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(47); | ||
var $Object = __webpack_require__(5).Object; | ||
module.exports = function defineProperty(it, key, desc){ | ||
__webpack_require__(48); | ||
var $Object = __webpack_require__(4).Object; | ||
module.exports = function defineProperty(it, key, desc) { | ||
return $Object.defineProperty(it, key, desc); | ||
}; | ||
/***/ }), | ||
/* 47 */ | ||
/* 48 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var $export = __webpack_require__(8); | ||
var $export = __webpack_require__(9); | ||
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) | ||
$export($export.S + $export.F * !__webpack_require__(2), 'Object', {defineProperty: __webpack_require__(1).f}); | ||
$export($export.S + $export.F * !__webpack_require__(2), 'Object', { defineProperty: __webpack_require__(1).f }); | ||
/***/ }), | ||
/* 48 */ | ||
/* 49 */ | ||
/***/ (function(module, exports) { | ||
module.exports = function(it){ | ||
if(typeof it != 'function')throw TypeError(it + ' is not a function!'); | ||
module.exports = function (it) { | ||
if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | ||
return it; | ||
}; | ||
/***/ }), | ||
/* 49 */ | ||
/* 50 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = { "default": __webpack_require__(50), __esModule: true }; | ||
module.exports = { "default": __webpack_require__(51), __esModule: true }; | ||
/***/ }), | ||
/* 50 */ | ||
/* 51 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(51); | ||
__webpack_require__(62); | ||
__webpack_require__(52); | ||
__webpack_require__(63); | ||
module.exports = __webpack_require__(27).f('iterator'); | ||
/***/ }), | ||
/* 51 */ | ||
/* 52 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1061,34 +1118,35 @@ | ||
var $at = __webpack_require__(52)(true); | ||
var $at = __webpack_require__(53)(true); | ||
// 21.1.3.27 String.prototype[@@iterator]() | ||
__webpack_require__(35)(String, 'String', function(iterated){ | ||
__webpack_require__(36)(String, 'String', function (iterated) { | ||
this._t = String(iterated); // target | ||
this._i = 0; // next index | ||
// 21.1.5.2.1 %StringIteratorPrototype%.next() | ||
}, function(){ | ||
var O = this._t | ||
, index = this._i | ||
, point; | ||
if(index >= O.length)return {value: undefined, done: true}; | ||
}, function () { | ||
var O = this._t; | ||
var index = this._i; | ||
var point; | ||
if (index >= O.length) return { value: undefined, done: true }; | ||
point = $at(O, index); | ||
this._i += point.length; | ||
return {value: point, done: false}; | ||
return { value: point, done: false }; | ||
}); | ||
/***/ }), | ||
/* 52 */ | ||
/* 53 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var toInteger = __webpack_require__(18) | ||
, defined = __webpack_require__(19); | ||
var toInteger = __webpack_require__(17); | ||
var defined = __webpack_require__(18); | ||
// true -> String#at | ||
// false -> String#codePointAt | ||
module.exports = function(TO_STRING){ | ||
return function(that, pos){ | ||
var s = String(defined(that)) | ||
, i = toInteger(pos) | ||
, l = s.length | ||
, a, b; | ||
if(i < 0 || i >= l)return TO_STRING ? '' : undefined; | ||
module.exports = function (TO_STRING) { | ||
return function (that, pos) { | ||
var s = String(defined(that)); | ||
var i = toInteger(pos); | ||
var l = s.length; | ||
var a, b; | ||
if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | ||
a = s.charCodeAt(i); | ||
@@ -1101,4 +1159,5 @@ return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | ||
/***/ }), | ||
/* 53 */ | ||
/* 54 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1108,45 +1167,49 @@ | ||
var create = __webpack_require__(22) | ||
, descriptor = __webpack_require__(14) | ||
, setToStringTag = __webpack_require__(26) | ||
, IteratorPrototype = {}; | ||
var create = __webpack_require__(21); | ||
var descriptor = __webpack_require__(14); | ||
var setToStringTag = __webpack_require__(26); | ||
var IteratorPrototype = {}; | ||
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | ||
__webpack_require__(6)(IteratorPrototype, __webpack_require__(7)('iterator'), function(){ return this; }); | ||
__webpack_require__(5)(IteratorPrototype, __webpack_require__(8)('iterator'), function () { return this; }); | ||
module.exports = function(Constructor, NAME, next){ | ||
Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)}); | ||
module.exports = function (Constructor, NAME, next) { | ||
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | ||
setToStringTag(Constructor, NAME + ' Iterator'); | ||
}; | ||
/***/ }), | ||
/* 54 */ | ||
/* 55 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var dP = __webpack_require__(1) | ||
, anObject = __webpack_require__(9) | ||
, getKeys = __webpack_require__(15); | ||
var dP = __webpack_require__(1); | ||
var anObject = __webpack_require__(10); | ||
var getKeys = __webpack_require__(22); | ||
module.exports = __webpack_require__(2) ? Object.defineProperties : function defineProperties(O, Properties){ | ||
module.exports = __webpack_require__(2) ? Object.defineProperties : function defineProperties(O, Properties) { | ||
anObject(O); | ||
var keys = getKeys(Properties) | ||
, length = keys.length | ||
, i = 0 | ||
, P; | ||
while(length > i)dP.f(O, P = keys[i++], Properties[P]); | ||
var keys = getKeys(Properties); | ||
var length = keys.length; | ||
var i = 0; | ||
var P; | ||
while (length > i) dP.f(O, P = keys[i++], Properties[P]); | ||
return O; | ||
}; | ||
/***/ }), | ||
/* 55 */ | ||
/* 56 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// fallback for non-array-like ES3 and non-enumerable old V8 strings | ||
var cof = __webpack_require__(38); | ||
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ | ||
var cof = __webpack_require__(39); | ||
// eslint-disable-next-line no-prototype-builtins | ||
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | ||
return cof(it) == 'String' ? it.split('') : Object(it); | ||
}; | ||
/***/ }), | ||
/* 56 */ | ||
/* 57 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1156,18 +1219,20 @@ | ||
// true -> Array#includes | ||
var toIObject = __webpack_require__(4) | ||
, toLength = __webpack_require__(57) | ||
, toIndex = __webpack_require__(58); | ||
module.exports = function(IS_INCLUDES){ | ||
return function($this, el, fromIndex){ | ||
var O = toIObject($this) | ||
, length = toLength(O.length) | ||
, index = toIndex(fromIndex, length) | ||
, value; | ||
var toIObject = __webpack_require__(7); | ||
var toLength = __webpack_require__(58); | ||
var toAbsoluteIndex = __webpack_require__(59); | ||
module.exports = function (IS_INCLUDES) { | ||
return function ($this, el, fromIndex) { | ||
var O = toIObject($this); | ||
var length = toLength(O.length); | ||
var index = toAbsoluteIndex(fromIndex, length); | ||
var value; | ||
// Array#includes uses SameValueZero equality algorithm | ||
if(IS_INCLUDES && el != el)while(length > index){ | ||
// eslint-disable-next-line no-self-compare | ||
if (IS_INCLUDES && el != el) while (length > index) { | ||
value = O[index++]; | ||
if(value != value)return true; | ||
// Array#toIndex ignores holes, Array#includes - not | ||
} else for(;length > index; index++)if(IS_INCLUDES || index in O){ | ||
if(O[index] === el)return IS_INCLUDES || index || 0; | ||
// eslint-disable-next-line no-self-compare | ||
if (value != value) return true; | ||
// Array#indexOf ignores holes, Array#includes - not | ||
} else for (;length > index; index++) if (IS_INCLUDES || index in O) { | ||
if (O[index] === el) return IS_INCLUDES || index || 0; | ||
} return !IS_INCLUDES && -1; | ||
@@ -1177,21 +1242,23 @@ }; | ||
/***/ }), | ||
/* 57 */ | ||
/* 58 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 7.1.15 ToLength | ||
var toInteger = __webpack_require__(18) | ||
, min = Math.min; | ||
module.exports = function(it){ | ||
var toInteger = __webpack_require__(17); | ||
var min = Math.min; | ||
module.exports = function (it) { | ||
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | ||
}; | ||
/***/ }), | ||
/* 58 */ | ||
/* 59 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var toInteger = __webpack_require__(18) | ||
, max = Math.max | ||
, min = Math.min; | ||
module.exports = function(index, length){ | ||
var toInteger = __webpack_require__(17); | ||
var max = Math.max; | ||
var min = Math.min; | ||
module.exports = function (index, length) { | ||
index = toInteger(index); | ||
@@ -1201,22 +1268,25 @@ return index < 0 ? max(index + length, 0) : min(index, length); | ||
/***/ }), | ||
/* 59 */ | ||
/* 60 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = __webpack_require__(0).document && document.documentElement; | ||
var document = __webpack_require__(0).document; | ||
module.exports = document && document.documentElement; | ||
/***/ }), | ||
/* 60 */ | ||
/* 61 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | ||
var has = __webpack_require__(3) | ||
, toObject = __webpack_require__(61) | ||
, IE_PROTO = __webpack_require__(23)('IE_PROTO') | ||
, ObjectProto = Object.prototype; | ||
var has = __webpack_require__(3); | ||
var toObject = __webpack_require__(62); | ||
var IE_PROTO = __webpack_require__(23)('IE_PROTO'); | ||
var ObjectProto = Object.prototype; | ||
module.exports = Object.getPrototypeOf || function(O){ | ||
module.exports = Object.getPrototypeOf || function (O) { | ||
O = toObject(O); | ||
if(has(O, IE_PROTO))return O[IE_PROTO]; | ||
if(typeof O.constructor == 'function' && O instanceof O.constructor){ | ||
if (has(O, IE_PROTO)) return O[IE_PROTO]; | ||
if (typeof O.constructor == 'function' && O instanceof O.constructor) { | ||
return O.constructor.prototype; | ||
@@ -1226,32 +1296,41 @@ } return O instanceof Object ? ObjectProto : null; | ||
/***/ }), | ||
/* 61 */ | ||
/* 62 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 7.1.13 ToObject(argument) | ||
var defined = __webpack_require__(19); | ||
module.exports = function(it){ | ||
var defined = __webpack_require__(18); | ||
module.exports = function (it) { | ||
return Object(defined(it)); | ||
}; | ||
/***/ }), | ||
/* 62 */ | ||
/* 63 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(63); | ||
var global = __webpack_require__(0) | ||
, hide = __webpack_require__(6) | ||
, Iterators = __webpack_require__(21) | ||
, TO_STRING_TAG = __webpack_require__(7)('toStringTag'); | ||
__webpack_require__(64); | ||
var global = __webpack_require__(0); | ||
var hide = __webpack_require__(5); | ||
var Iterators = __webpack_require__(20); | ||
var TO_STRING_TAG = __webpack_require__(8)('toStringTag'); | ||
for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){ | ||
var NAME = collections[i] | ||
, Collection = global[NAME] | ||
, proto = Collection && Collection.prototype; | ||
if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME); | ||
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + | ||
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + | ||
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + | ||
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + | ||
'TextTrackList,TouchList').split(','); | ||
for (var i = 0; i < DOMIterables.length; i++) { | ||
var NAME = DOMIterables[i]; | ||
var Collection = global[NAME]; | ||
var proto = Collection && Collection.prototype; | ||
if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); | ||
Iterators[NAME] = Iterators.Array; | ||
} | ||
/***/ }), | ||
/* 63 */ | ||
/* 64 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1261,6 +1340,6 @@ | ||
var addToUnscopables = __webpack_require__(64) | ||
, step = __webpack_require__(65) | ||
, Iterators = __webpack_require__(21) | ||
, toIObject = __webpack_require__(4); | ||
var addToUnscopables = __webpack_require__(65); | ||
var step = __webpack_require__(66); | ||
var Iterators = __webpack_require__(20); | ||
var toIObject = __webpack_require__(7); | ||
@@ -1271,3 +1350,3 @@ // 22.1.3.4 Array.prototype.entries() | ||
// 22.1.3.30 Array.prototype[@@iterator]() | ||
module.exports = __webpack_require__(35)(Array, 'Array', function(iterated, kind){ | ||
module.exports = __webpack_require__(36)(Array, 'Array', function (iterated, kind) { | ||
this._t = toIObject(iterated); // target | ||
@@ -1277,12 +1356,12 @@ this._i = 0; // next index | ||
// 22.1.5.2.1 %ArrayIteratorPrototype%.next() | ||
}, function(){ | ||
var O = this._t | ||
, kind = this._k | ||
, index = this._i++; | ||
if(!O || index >= O.length){ | ||
}, function () { | ||
var O = this._t; | ||
var kind = this._k; | ||
var index = this._i++; | ||
if (!O || index >= O.length) { | ||
this._t = undefined; | ||
return step(1); | ||
} | ||
if(kind == 'keys' )return step(0, index); | ||
if(kind == 'values')return step(0, O[index]); | ||
if (kind == 'keys') return step(0, index); | ||
if (kind == 'values') return step(0, O[index]); | ||
return step(0, [index, O[index]]); | ||
@@ -1298,34 +1377,38 @@ }, 'values'); | ||
/***/ }), | ||
/* 64 */ | ||
/* 65 */ | ||
/***/ (function(module, exports) { | ||
module.exports = function(){ /* empty */ }; | ||
module.exports = function () { /* empty */ }; | ||
/***/ }), | ||
/* 65 */ | ||
/* 66 */ | ||
/***/ (function(module, exports) { | ||
module.exports = function(done, value){ | ||
return {value: value, done: !!done}; | ||
module.exports = function (done, value) { | ||
return { value: value, done: !!done }; | ||
}; | ||
/***/ }), | ||
/* 66 */ | ||
/* 67 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = { "default": __webpack_require__(67), __esModule: true }; | ||
module.exports = { "default": __webpack_require__(68), __esModule: true }; | ||
/***/ }), | ||
/* 67 */ | ||
/* 68 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(68); | ||
__webpack_require__(69); | ||
__webpack_require__(74); | ||
__webpack_require__(75); | ||
__webpack_require__(76); | ||
module.exports = __webpack_require__(5).Symbol; | ||
module.exports = __webpack_require__(4).Symbol; | ||
/***/ }), | ||
/* 68 */ | ||
/* 69 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1336,43 +1419,43 @@ | ||
// ECMAScript 6 symbols shim | ||
var global = __webpack_require__(0) | ||
, has = __webpack_require__(3) | ||
, DESCRIPTORS = __webpack_require__(2) | ||
, $export = __webpack_require__(8) | ||
, redefine = __webpack_require__(36) | ||
, META = __webpack_require__(69).KEY | ||
, $fails = __webpack_require__(13) | ||
, shared = __webpack_require__(24) | ||
, setToStringTag = __webpack_require__(26) | ||
, uid = __webpack_require__(16) | ||
, wks = __webpack_require__(7) | ||
, wksExt = __webpack_require__(27) | ||
, wksDefine = __webpack_require__(28) | ||
, keyOf = __webpack_require__(70) | ||
, enumKeys = __webpack_require__(71) | ||
, isArray = __webpack_require__(72) | ||
, anObject = __webpack_require__(9) | ||
, toIObject = __webpack_require__(4) | ||
, toPrimitive = __webpack_require__(17) | ||
, createDesc = __webpack_require__(14) | ||
, _create = __webpack_require__(22) | ||
, gOPNExt = __webpack_require__(73) | ||
, $GOPD = __webpack_require__(41) | ||
, $DP = __webpack_require__(1) | ||
, $keys = __webpack_require__(15) | ||
, gOPD = $GOPD.f | ||
, dP = $DP.f | ||
, gOPN = gOPNExt.f | ||
, $Symbol = global.Symbol | ||
, $JSON = global.JSON | ||
, _stringify = $JSON && $JSON.stringify | ||
, PROTOTYPE = 'prototype' | ||
, HIDDEN = wks('_hidden') | ||
, TO_PRIMITIVE = wks('toPrimitive') | ||
, isEnum = {}.propertyIsEnumerable | ||
, SymbolRegistry = shared('symbol-registry') | ||
, AllSymbols = shared('symbols') | ||
, OPSymbols = shared('op-symbols') | ||
, ObjectProto = Object[PROTOTYPE] | ||
, USE_NATIVE = typeof $Symbol == 'function' | ||
, QObject = global.QObject; | ||
var global = __webpack_require__(0); | ||
var has = __webpack_require__(3); | ||
var DESCRIPTORS = __webpack_require__(2); | ||
var $export = __webpack_require__(9); | ||
var redefine = __webpack_require__(37); | ||
var META = __webpack_require__(70).KEY; | ||
var $fails = __webpack_require__(13); | ||
var shared = __webpack_require__(24); | ||
var setToStringTag = __webpack_require__(26); | ||
var uid = __webpack_require__(15); | ||
var wks = __webpack_require__(8); | ||
var wksExt = __webpack_require__(27); | ||
var wksDefine = __webpack_require__(28); | ||
var enumKeys = __webpack_require__(71); | ||
var isArray = __webpack_require__(72); | ||
var anObject = __webpack_require__(10); | ||
var isObject = __webpack_require__(6); | ||
var toIObject = __webpack_require__(7); | ||
var toPrimitive = __webpack_require__(16); | ||
var createDesc = __webpack_require__(14); | ||
var _create = __webpack_require__(21); | ||
var gOPNExt = __webpack_require__(73); | ||
var $GOPD = __webpack_require__(42); | ||
var $DP = __webpack_require__(1); | ||
var $keys = __webpack_require__(22); | ||
var gOPD = $GOPD.f; | ||
var dP = $DP.f; | ||
var gOPN = gOPNExt.f; | ||
var $Symbol = global.Symbol; | ||
var $JSON = global.JSON; | ||
var _stringify = $JSON && $JSON.stringify; | ||
var PROTOTYPE = 'prototype'; | ||
var HIDDEN = wks('_hidden'); | ||
var TO_PRIMITIVE = wks('toPrimitive'); | ||
var isEnum = {}.propertyIsEnumerable; | ||
var SymbolRegistry = shared('symbol-registry'); | ||
var AllSymbols = shared('symbols'); | ||
var OPSymbols = shared('op-symbols'); | ||
var ObjectProto = Object[PROTOTYPE]; | ||
var USE_NATIVE = typeof $Symbol == 'function'; | ||
var QObject = global.QObject; | ||
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 | ||
@@ -1382,14 +1465,14 @@ var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; | ||
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 | ||
var setSymbolDesc = DESCRIPTORS && $fails(function(){ | ||
var setSymbolDesc = DESCRIPTORS && $fails(function () { | ||
return _create(dP({}, 'a', { | ||
get: function(){ return dP(this, 'a', {value: 7}).a; } | ||
get: function () { return dP(this, 'a', { value: 7 }).a; } | ||
})).a != 7; | ||
}) ? function(it, key, D){ | ||
}) ? function (it, key, D) { | ||
var protoDesc = gOPD(ObjectProto, key); | ||
if(protoDesc)delete ObjectProto[key]; | ||
if (protoDesc) delete ObjectProto[key]; | ||
dP(it, key, D); | ||
if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc); | ||
if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); | ||
} : dP; | ||
var wrap = function(tag){ | ||
var wrap = function (tag) { | ||
var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); | ||
@@ -1400,65 +1483,65 @@ sym._k = tag; | ||
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){ | ||
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { | ||
return typeof it == 'symbol'; | ||
} : function(it){ | ||
} : function (it) { | ||
return it instanceof $Symbol; | ||
}; | ||
var $defineProperty = function defineProperty(it, key, D){ | ||
if(it === ObjectProto)$defineProperty(OPSymbols, key, D); | ||
var $defineProperty = function defineProperty(it, key, D) { | ||
if (it === ObjectProto) $defineProperty(OPSymbols, key, D); | ||
anObject(it); | ||
key = toPrimitive(key, true); | ||
anObject(D); | ||
if(has(AllSymbols, key)){ | ||
if(!D.enumerable){ | ||
if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {})); | ||
if (has(AllSymbols, key)) { | ||
if (!D.enumerable) { | ||
if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); | ||
it[HIDDEN][key] = true; | ||
} else { | ||
if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false; | ||
D = _create(D, {enumerable: createDesc(0, false)}); | ||
if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; | ||
D = _create(D, { enumerable: createDesc(0, false) }); | ||
} return setSymbolDesc(it, key, D); | ||
} return dP(it, key, D); | ||
}; | ||
var $defineProperties = function defineProperties(it, P){ | ||
var $defineProperties = function defineProperties(it, P) { | ||
anObject(it); | ||
var keys = enumKeys(P = toIObject(P)) | ||
, i = 0 | ||
, l = keys.length | ||
, key; | ||
while(l > i)$defineProperty(it, key = keys[i++], P[key]); | ||
var keys = enumKeys(P = toIObject(P)); | ||
var i = 0; | ||
var l = keys.length; | ||
var key; | ||
while (l > i) $defineProperty(it, key = keys[i++], P[key]); | ||
return it; | ||
}; | ||
var $create = function create(it, P){ | ||
var $create = function create(it, P) { | ||
return P === undefined ? _create(it) : $defineProperties(_create(it), P); | ||
}; | ||
var $propertyIsEnumerable = function propertyIsEnumerable(key){ | ||
var $propertyIsEnumerable = function propertyIsEnumerable(key) { | ||
var E = isEnum.call(this, key = toPrimitive(key, true)); | ||
if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false; | ||
if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; | ||
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; | ||
}; | ||
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){ | ||
it = toIObject(it); | ||
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { | ||
it = toIObject(it); | ||
key = toPrimitive(key, true); | ||
if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return; | ||
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; | ||
var D = gOPD(it, key); | ||
if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true; | ||
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; | ||
return D; | ||
}; | ||
var $getOwnPropertyNames = function getOwnPropertyNames(it){ | ||
var names = gOPN(toIObject(it)) | ||
, result = [] | ||
, i = 0 | ||
, key; | ||
while(names.length > i){ | ||
if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key); | ||
var $getOwnPropertyNames = function getOwnPropertyNames(it) { | ||
var names = gOPN(toIObject(it)); | ||
var result = []; | ||
var i = 0; | ||
var key; | ||
while (names.length > i) { | ||
if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); | ||
} return result; | ||
}; | ||
var $getOwnPropertySymbols = function getOwnPropertySymbols(it){ | ||
var IS_OP = it === ObjectProto | ||
, names = gOPN(IS_OP ? OPSymbols : toIObject(it)) | ||
, result = [] | ||
, i = 0 | ||
, key; | ||
while(names.length > i){ | ||
if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]); | ||
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { | ||
var IS_OP = it === ObjectProto; | ||
var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); | ||
var result = []; | ||
var i = 0; | ||
var key; | ||
while (names.length > i) { | ||
if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); | ||
} return result; | ||
@@ -1468,15 +1551,15 @@ }; | ||
// 19.4.1.1 Symbol([description]) | ||
if(!USE_NATIVE){ | ||
$Symbol = function Symbol(){ | ||
if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!'); | ||
if (!USE_NATIVE) { | ||
$Symbol = function Symbol() { | ||
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); | ||
var tag = uid(arguments.length > 0 ? arguments[0] : undefined); | ||
var $set = function(value){ | ||
if(this === ObjectProto)$set.call(OPSymbols, value); | ||
if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false; | ||
var $set = function (value) { | ||
if (this === ObjectProto) $set.call(OPSymbols, value); | ||
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; | ||
setSymbolDesc(this, tag, createDesc(1, value)); | ||
}; | ||
if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set}); | ||
if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); | ||
return wrap(tag); | ||
}; | ||
redefine($Symbol[PROTOTYPE], 'toString', function toString(){ | ||
redefine($Symbol[PROTOTYPE], 'toString', function toString() { | ||
return this._k; | ||
@@ -1486,28 +1569,28 @@ }); | ||
$GOPD.f = $getOwnPropertyDescriptor; | ||
$DP.f = $defineProperty; | ||
__webpack_require__(40).f = gOPNExt.f = $getOwnPropertyNames; | ||
__webpack_require__(29).f = $propertyIsEnumerable; | ||
__webpack_require__(39).f = $getOwnPropertySymbols; | ||
$DP.f = $defineProperty; | ||
__webpack_require__(41).f = gOPNExt.f = $getOwnPropertyNames; | ||
__webpack_require__(29).f = $propertyIsEnumerable; | ||
__webpack_require__(40).f = $getOwnPropertySymbols; | ||
if(DESCRIPTORS && !__webpack_require__(20)){ | ||
if (DESCRIPTORS && !__webpack_require__(19)) { | ||
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); | ||
} | ||
wksExt.f = function(name){ | ||
wksExt.f = function (name) { | ||
return wrap(wks(name)); | ||
} | ||
}; | ||
} | ||
$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol}); | ||
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); | ||
for(var symbols = ( | ||
for (var es6Symbols = ( | ||
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 | ||
'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' | ||
).split(','), i = 0; symbols.length > i; )wks(symbols[i++]); | ||
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); | ||
for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]); | ||
for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); | ||
$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { | ||
// 19.4.2.1 Symbol.for(key) | ||
'for': function(key){ | ||
'for': function (key) { | ||
return has(SymbolRegistry, key += '') | ||
@@ -1518,8 +1601,8 @@ ? SymbolRegistry[key] | ||
// 19.4.2.5 Symbol.keyFor(sym) | ||
keyFor: function keyFor(key){ | ||
if(isSymbol(key))return keyOf(SymbolRegistry, key); | ||
throw TypeError(key + ' is not a symbol!'); | ||
keyFor: function keyFor(sym) { | ||
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); | ||
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; | ||
}, | ||
useSetter: function(){ setter = true; }, | ||
useSimple: function(){ setter = false; } | ||
useSetter: function () { setter = true; }, | ||
useSimple: function () { setter = false; } | ||
}); | ||
@@ -1543,3 +1626,3 @@ | ||
// 24.3.2 JSON.stringify(value [, replacer [, space]]) | ||
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){ | ||
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { | ||
var S = $Symbol(); | ||
@@ -1549,15 +1632,14 @@ // MS Edge converts symbol values to JSON as {} | ||
// V8 throws on boxed symbols | ||
return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}'; | ||
return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; | ||
})), 'JSON', { | ||
stringify: function stringify(it){ | ||
if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined | ||
var args = [it] | ||
, i = 1 | ||
, replacer, $replacer; | ||
while(arguments.length > i)args.push(arguments[i++]); | ||
replacer = args[1]; | ||
if(typeof replacer == 'function')$replacer = replacer; | ||
if($replacer || !isArray(replacer))replacer = function(key, value){ | ||
if($replacer)value = $replacer.call(this, key, value); | ||
if(!isSymbol(value))return value; | ||
stringify: function stringify(it) { | ||
var args = [it]; | ||
var i = 1; | ||
var replacer, $replacer; | ||
while (arguments.length > i) args.push(arguments[i++]); | ||
$replacer = replacer = args[1]; | ||
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined | ||
if (!isArray(replacer)) replacer = function (key, value) { | ||
if (typeof $replacer == 'function') value = $replacer.call(this, key, value); | ||
if (!isSymbol(value)) return value; | ||
}; | ||
@@ -1570,3 +1652,3 @@ args[1] = replacer; | ||
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) | ||
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(6)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); | ||
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(5)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); | ||
// 19.4.3.5 Symbol.prototype[@@toStringTag] | ||
@@ -1579,31 +1661,32 @@ setToStringTag($Symbol, 'Symbol'); | ||
/***/ }), | ||
/* 69 */ | ||
/* 70 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var META = __webpack_require__(16)('meta') | ||
, isObject = __webpack_require__(10) | ||
, has = __webpack_require__(3) | ||
, setDesc = __webpack_require__(1).f | ||
, id = 0; | ||
var isExtensible = Object.isExtensible || function(){ | ||
var META = __webpack_require__(15)('meta'); | ||
var isObject = __webpack_require__(6); | ||
var has = __webpack_require__(3); | ||
var setDesc = __webpack_require__(1).f; | ||
var id = 0; | ||
var isExtensible = Object.isExtensible || function () { | ||
return true; | ||
}; | ||
var FREEZE = !__webpack_require__(13)(function(){ | ||
var FREEZE = !__webpack_require__(13)(function () { | ||
return isExtensible(Object.preventExtensions({})); | ||
}); | ||
var setMeta = function(it){ | ||
setDesc(it, META, {value: { | ||
var setMeta = function (it) { | ||
setDesc(it, META, { value: { | ||
i: 'O' + ++id, // object ID | ||
w: {} // weak collections IDs | ||
}}); | ||
} }); | ||
}; | ||
var fastKey = function(it, create){ | ||
var fastKey = function (it, create) { | ||
// return primitive with prefix | ||
if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; | ||
if(!has(it, META)){ | ||
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; | ||
if (!has(it, META)) { | ||
// can't set metadata to uncaught frozen object | ||
if(!isExtensible(it))return 'F'; | ||
if (!isExtensible(it)) return 'F'; | ||
// not necessary to add metadata | ||
if(!create)return 'E'; | ||
if (!create) return 'E'; | ||
// add missing metadata | ||
@@ -1614,8 +1697,8 @@ setMeta(it); | ||
}; | ||
var getWeak = function(it, create){ | ||
if(!has(it, META)){ | ||
var getWeak = function (it, create) { | ||
if (!has(it, META)) { | ||
// can't set metadata to uncaught frozen object | ||
if(!isExtensible(it))return true; | ||
if (!isExtensible(it)) return true; | ||
// not necessary to add metadata | ||
if(!create)return false; | ||
if (!create) return false; | ||
// add missing metadata | ||
@@ -1627,29 +1710,15 @@ setMeta(it); | ||
// add metadata on freeze-family methods calling | ||
var onFreeze = function(it){ | ||
if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it); | ||
var onFreeze = function (it) { | ||
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); | ||
return it; | ||
}; | ||
var meta = module.exports = { | ||
KEY: META, | ||
NEED: false, | ||
fastKey: fastKey, | ||
getWeak: getWeak, | ||
KEY: META, | ||
NEED: false, | ||
fastKey: fastKey, | ||
getWeak: getWeak, | ||
onFreeze: onFreeze | ||
}; | ||
/***/ }), | ||
/* 70 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var getKeys = __webpack_require__(15) | ||
, toIObject = __webpack_require__(4); | ||
module.exports = function(object, el){ | ||
var O = toIObject(object) | ||
, keys = getKeys(O) | ||
, length = keys.length | ||
, index = 0 | ||
, key; | ||
while(length > index)if(O[key = keys[index++]] === el)return key; | ||
}; | ||
/***/ }), | ||
@@ -1660,17 +1729,18 @@ /* 71 */ | ||
// all enumerable object keys, includes symbols | ||
var getKeys = __webpack_require__(15) | ||
, gOPS = __webpack_require__(39) | ||
, pIE = __webpack_require__(29); | ||
module.exports = function(it){ | ||
var result = getKeys(it) | ||
, getSymbols = gOPS.f; | ||
if(getSymbols){ | ||
var symbols = getSymbols(it) | ||
, isEnum = pIE.f | ||
, i = 0 | ||
, key; | ||
while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key); | ||
var getKeys = __webpack_require__(22); | ||
var gOPS = __webpack_require__(40); | ||
var pIE = __webpack_require__(29); | ||
module.exports = function (it) { | ||
var result = getKeys(it); | ||
var getSymbols = gOPS.f; | ||
if (getSymbols) { | ||
var symbols = getSymbols(it); | ||
var isEnum = pIE.f; | ||
var i = 0; | ||
var key; | ||
while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); | ||
} return result; | ||
}; | ||
/***/ }), | ||
@@ -1681,7 +1751,8 @@ /* 72 */ | ||
// 7.2.2 IsArray(argument) | ||
var cof = __webpack_require__(38); | ||
module.exports = Array.isArray || function isArray(arg){ | ||
var cof = __webpack_require__(39); | ||
module.exports = Array.isArray || function isArray(arg) { | ||
return cof(arg) == 'Array'; | ||
}; | ||
/***/ }), | ||
@@ -1692,5 +1763,5 @@ /* 73 */ | ||
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window | ||
var toIObject = __webpack_require__(4) | ||
, gOPN = __webpack_require__(40).f | ||
, toString = {}.toString; | ||
var toIObject = __webpack_require__(7); | ||
var gOPN = __webpack_require__(41).f; | ||
var toString = {}.toString; | ||
@@ -1700,6 +1771,6 @@ var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames | ||
var getWindowNames = function(it){ | ||
var getWindowNames = function (it) { | ||
try { | ||
return gOPN(it); | ||
} catch(e){ | ||
} catch (e) { | ||
return windowNames.slice(); | ||
@@ -1709,3 +1780,3 @@ } | ||
module.exports.f = function getOwnPropertyNames(it){ | ||
module.exports.f = function getOwnPropertyNames(it) { | ||
return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); | ||
@@ -1727,2 +1798,3 @@ }; | ||
/***/ }), | ||
@@ -1734,2 +1806,3 @@ /* 76 */ | ||
/***/ }), | ||
@@ -1746,4 +1819,5 @@ /* 77 */ | ||
__webpack_require__(79); | ||
module.exports = __webpack_require__(5).Object.setPrototypeOf; | ||
module.exports = __webpack_require__(4).Object.setPrototypeOf; | ||
/***/ }), | ||
@@ -1754,5 +1828,6 @@ /* 79 */ | ||
// 19.1.3.19 Object.setPrototypeOf(O, proto) | ||
var $export = __webpack_require__(8); | ||
$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(80).set}); | ||
var $export = __webpack_require__(9); | ||
$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(80).set }); | ||
/***/ }), | ||
@@ -1764,19 +1839,19 @@ /* 80 */ | ||
/* eslint-disable no-proto */ | ||
var isObject = __webpack_require__(10) | ||
, anObject = __webpack_require__(9); | ||
var check = function(O, proto){ | ||
var isObject = __webpack_require__(6); | ||
var anObject = __webpack_require__(10); | ||
var check = function (O, proto) { | ||
anObject(O); | ||
if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!"); | ||
if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); | ||
}; | ||
module.exports = { | ||
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line | ||
function(test, buggy, set){ | ||
function (test, buggy, set) { | ||
try { | ||
set = __webpack_require__(30)(Function.call, __webpack_require__(41).f(Object.prototype, '__proto__').set, 2); | ||
set = __webpack_require__(31)(Function.call, __webpack_require__(42).f(Object.prototype, '__proto__').set, 2); | ||
set(test, []); | ||
buggy = !(test instanceof Array); | ||
} catch(e){ buggy = true; } | ||
return function setPrototypeOf(O, proto){ | ||
} catch (e) { buggy = true; } | ||
return function setPrototypeOf(O, proto) { | ||
check(O, proto); | ||
if(buggy)O.__proto__ = proto; | ||
if (buggy) O.__proto__ = proto; | ||
else set(O, proto); | ||
@@ -1789,2 +1864,3 @@ return O; | ||
/***/ }), | ||
@@ -1801,7 +1877,8 @@ /* 81 */ | ||
__webpack_require__(83); | ||
var $Object = __webpack_require__(5).Object; | ||
module.exports = function create(P, D){ | ||
var $Object = __webpack_require__(4).Object; | ||
module.exports = function create(P, D) { | ||
return $Object.create(P, D); | ||
}; | ||
/***/ }), | ||
@@ -1811,6 +1888,7 @@ /* 83 */ | ||
var $export = __webpack_require__(8) | ||
var $export = __webpack_require__(9); | ||
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | ||
$export($export.S, 'Object', {create: __webpack_require__(22)}); | ||
$export($export.S, 'Object', { create: __webpack_require__(21) }); | ||
/***/ }), | ||
@@ -1827,9 +1905,9 @@ /* 84 */ | ||
var _AbstractPlugin = __webpack_require__(85); | ||
var _AbstractEvent = __webpack_require__(85); | ||
var _AbstractPlugin2 = _interopRequireDefault(_AbstractPlugin); | ||
var _AbstractEvent2 = _interopRequireDefault(_AbstractEvent); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = _AbstractPlugin2.default; | ||
exports.default = _AbstractEvent2.default; | ||
@@ -1857,54 +1935,99 @@ /***/ }), | ||
var _canceled = Symbol('canceled'); | ||
/** | ||
* All draggable plugins inherit from this class. | ||
* All events fired by draggable inherit this class. You can call `cancel()` to | ||
* cancel a specific event or you can check if an event has been canceled by | ||
* calling `canceled()`. | ||
* @abstract | ||
* @class AbstractPlugin | ||
* @module AbstractPlugin | ||
* @class AbstractEvent | ||
* @module AbstractEvent | ||
*/ | ||
var AbstractPlugin = function () { | ||
var AbstractEvent = function () { | ||
/** | ||
* AbstractPlugin constructor. | ||
* @constructs AbstractPlugin | ||
* @param {Draggable} draggable - Draggable instance | ||
* AbstractEvent constructor. | ||
* @constructs AbstractEvent | ||
* @param {object} data - Event data | ||
*/ | ||
function AbstractPlugin(draggable) { | ||
(0, _classCallCheck3.default)(this, AbstractPlugin); | ||
/** | ||
* Draggable instance | ||
* @property draggable | ||
* @type {Draggable} | ||
*/ | ||
this.draggable = draggable; | ||
/** | ||
* Event type | ||
* @static | ||
* @abstract | ||
* @property type | ||
* @type {String} | ||
*/ | ||
function AbstractEvent(data) { | ||
(0, _classCallCheck3.default)(this, AbstractEvent); | ||
this[_canceled] = false; | ||
this.data = data; | ||
} | ||
/** | ||
* Override to add listeners | ||
* Read-only type | ||
* @abstract | ||
* @return {String} | ||
*/ | ||
(0, _createClass3.default)(AbstractPlugin, [{ | ||
key: 'attach', | ||
value: function attach() { | ||
throw new Error('Not Implemented'); | ||
/** | ||
* Event cancelable | ||
* @static | ||
* @abstract | ||
* @property cancelable | ||
* @type {Boolean} | ||
*/ | ||
(0, _createClass3.default)(AbstractEvent, [{ | ||
key: 'cancel', | ||
/** | ||
* Cancels the event instance | ||
* @abstract | ||
*/ | ||
value: function cancel() { | ||
this[_canceled] = true; | ||
} | ||
/** | ||
* Override to remove listeners | ||
* Check if event has been canceled | ||
* @abstract | ||
* @return {Boolean} | ||
*/ | ||
}, { | ||
key: 'detach', | ||
value: function detach() { | ||
throw new Error('Not Implemented'); | ||
key: 'canceled', | ||
value: function canceled() { | ||
return Boolean(this[_canceled]); | ||
} | ||
}, { | ||
key: 'type', | ||
get: function get() { | ||
return this.constructor.type; | ||
} | ||
/** | ||
* Read-only cancelable | ||
* @abstract | ||
* @return {Boolean} | ||
*/ | ||
}, { | ||
key: 'cancelable', | ||
get: function get() { | ||
return this.constructor.cancelable; | ||
} | ||
}]); | ||
return AbstractPlugin; | ||
return AbstractEvent; | ||
}(); | ||
exports.default = AbstractPlugin; | ||
AbstractEvent.type = 'event'; | ||
AbstractEvent.cancelable = false; | ||
exports.default = AbstractEvent; | ||
@@ -1922,29 +2045,2 @@ /***/ }), | ||
var _SnappableEvent = __webpack_require__(87); | ||
Object.defineProperty(exports, 'SnapInEvent', { | ||
enumerable: true, | ||
get: function get() { | ||
return _SnappableEvent.SnapInEvent; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'SnapOutEvent', { | ||
enumerable: true, | ||
get: function get() { | ||
return _SnappableEvent.SnapOutEvent; | ||
} | ||
}); | ||
/***/ }), | ||
/* 87 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.SnapOutEvent = exports.SnapInEvent = exports.SnapEvent = undefined; | ||
var _classCallCheck2 = __webpack_require__(11); | ||
@@ -1958,95 +2054,194 @@ | ||
var _possibleConstructorReturn2 = __webpack_require__(33); | ||
var _possibleConstructorReturn2 = __webpack_require__(34); | ||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); | ||
var _inherits2 = __webpack_require__(42); | ||
var _inherits2 = __webpack_require__(43); | ||
var _inherits3 = _interopRequireDefault(_inherits2); | ||
var _AbstractEvent2 = __webpack_require__(88); | ||
var _AbstractPlugin2 = __webpack_require__(87); | ||
var _AbstractEvent3 = _interopRequireDefault(_AbstractEvent2); | ||
var _AbstractPlugin3 = _interopRequireDefault(_AbstractPlugin2); | ||
var _SnappableEvent = __webpack_require__(30); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var onDragStart = Symbol('onDragStart'); | ||
var onDragStop = Symbol('onDragStop'); | ||
var onDragOver = Symbol('onDragOver'); | ||
var onDragOut = Symbol('onDragOut'); | ||
/** | ||
* Base snap event | ||
* @class SnapEvent | ||
* @module SnapEvent | ||
* @extends AbstractEvent | ||
* Snappable plugin which snaps draggable elements into place | ||
* @class Snappable | ||
* @module Snappable | ||
* @extends AbstractPlugin | ||
*/ | ||
var SnapEvent = exports.SnapEvent = function (_AbstractEvent) { | ||
(0, _inherits3.default)(SnapEvent, _AbstractEvent); | ||
function SnapEvent() { | ||
(0, _classCallCheck3.default)(this, SnapEvent); | ||
return (0, _possibleConstructorReturn3.default)(this, (SnapEvent.__proto__ || Object.getPrototypeOf(SnapEvent)).apply(this, arguments)); | ||
var Snappable = function (_AbstractPlugin) { | ||
(0, _inherits3.default)(Snappable, _AbstractPlugin); | ||
/** | ||
* Snappable constructor. | ||
* @constructs Snappable | ||
* @param {Draggable} draggable - Draggable instance | ||
*/ | ||
function Snappable(draggable) { | ||
(0, _classCallCheck3.default)(this, Snappable); | ||
/** | ||
* Keeps track of the first source element | ||
* @property {HTMLElement|null} firstSource | ||
* @type {HTMLElement|null} | ||
*/ | ||
var _this = (0, _possibleConstructorReturn3.default)(this, (Snappable.__proto__ || Object.getPrototypeOf(Snappable)).call(this, draggable)); | ||
_this.firstSource = null; | ||
_this[onDragStart] = _this[onDragStart].bind(_this); | ||
_this[onDragStop] = _this[onDragStop].bind(_this); | ||
_this[onDragOver] = _this[onDragOver].bind(_this); | ||
_this[onDragOut] = _this[onDragOut].bind(_this); | ||
return _this; | ||
} | ||
(0, _createClass3.default)(SnapEvent, [{ | ||
key: 'dragEvent', | ||
/** | ||
* Attaches plugins event listeners | ||
*/ | ||
(0, _createClass3.default)(Snappable, [{ | ||
key: 'attach', | ||
value: function attach() { | ||
this.draggable.on('drag:start', this[onDragStart]).on('drag:stop', this[onDragStop]).on('drag:over', this[onDragOver]).on('drag:out', this[onDragOut]).on('droppable:over', this[onDragOver]).on('droppable:out', this[onDragOut]); | ||
} | ||
/** | ||
* Drag event that triggered this snap event | ||
* @property dragEvent | ||
* @type {DragEvent} | ||
* @readonly | ||
* Detaches plugins event listeners | ||
*/ | ||
get: function get() { | ||
return this.data.dragEvent; | ||
}, { | ||
key: 'detach', | ||
value: function detach() { | ||
this.draggable.off('drag:start', this[onDragStart]).off('drag:stop', this[onDragStop]).off('drag:over', this[onDragOver]).off('drag:out', this[onDragOut]).off('droppable:over', this[onDragOver]).off('droppable:out', this[onDragOut]); | ||
} | ||
}]); | ||
return SnapEvent; | ||
}(_AbstractEvent3.default); | ||
/** | ||
* Snap in event | ||
* @class SnapInEvent | ||
* @module SnapInEvent | ||
* @extends SnapEvent | ||
*/ | ||
/** | ||
* Drag start handler | ||
* @private | ||
* @param {DragStartEvent} event - Drag start event | ||
*/ | ||
}, { | ||
key: onDragStart, | ||
value: function value(event) { | ||
if (event.canceled()) { | ||
return; | ||
} | ||
SnapEvent.type = 'snap'; | ||
this.firstSource = event.source; | ||
} | ||
var SnapInEvent = exports.SnapInEvent = function (_SnapEvent) { | ||
(0, _inherits3.default)(SnapInEvent, _SnapEvent); | ||
/** | ||
* Drag stop handler | ||
* @private | ||
* @param {DragStopEvent} event - Drag stop event | ||
*/ | ||
function SnapInEvent() { | ||
(0, _classCallCheck3.default)(this, SnapInEvent); | ||
return (0, _possibleConstructorReturn3.default)(this, (SnapInEvent.__proto__ || Object.getPrototypeOf(SnapInEvent)).apply(this, arguments)); | ||
} | ||
}, { | ||
key: onDragStop, | ||
value: function value() { | ||
this.firstSource = null; | ||
} | ||
return SnapInEvent; | ||
}(SnapEvent); | ||
/** | ||
* Drag over handler | ||
* @private | ||
* @param {DragOverEvent|DroppableOverEvent} event - Drag over event | ||
*/ | ||
/** | ||
* Snap out event | ||
* @class SnapOutEvent | ||
* @module SnapOutEvent | ||
* @extends SnapEvent | ||
*/ | ||
}, { | ||
key: onDragOver, | ||
value: function value(event) { | ||
var _this2 = this; | ||
if (event.canceled()) { | ||
return; | ||
} | ||
SnapInEvent.type = 'snap:in'; | ||
SnapInEvent.cancelable = true; | ||
var source = event.source || event.dragEvent.source; | ||
var mirror = event.mirror || event.dragEvent.mirror; | ||
var SnapOutEvent = exports.SnapOutEvent = function (_SnapEvent2) { | ||
(0, _inherits3.default)(SnapOutEvent, _SnapEvent2); | ||
if (source === this.firstSource) { | ||
this.firstSource = null; | ||
return; | ||
} | ||
function SnapOutEvent() { | ||
(0, _classCallCheck3.default)(this, SnapOutEvent); | ||
return (0, _possibleConstructorReturn3.default)(this, (SnapOutEvent.__proto__ || Object.getPrototypeOf(SnapOutEvent)).apply(this, arguments)); | ||
} | ||
var snapInEvent = new _SnappableEvent.SnapInEvent({ | ||
dragEvent: event, | ||
snappable: event.over || event.droppable | ||
}); | ||
return SnapOutEvent; | ||
}(SnapEvent); | ||
this.draggable.trigger(snapInEvent); | ||
SnapOutEvent.type = 'snap:out'; | ||
SnapOutEvent.cancelable = true; | ||
if (snapInEvent.canceled()) { | ||
return; | ||
} | ||
if (mirror) { | ||
mirror.style.display = 'none'; | ||
} | ||
source.classList.remove(this.draggable.getClassNameFor('source:dragging')); | ||
source.classList.add(this.draggable.getClassNameFor('source:placed')); | ||
// Need to cancel this in drag out | ||
setTimeout(function () { | ||
source.classList.remove(_this2.draggable.getClassNameFor('source:placed')); | ||
}, this.draggable.options.placedTimeout); | ||
} | ||
/** | ||
* Drag out handler | ||
* @private | ||
* @param {DragOutEvent|DroppableOutEvent} event - Drag out event | ||
*/ | ||
}, { | ||
key: onDragOut, | ||
value: function value(event) { | ||
if (event.canceled()) { | ||
return; | ||
} | ||
var mirror = event.mirror || event.dragEvent.mirror; | ||
var source = event.source || event.dragEvent.source; | ||
var snapOutEvent = new _SnappableEvent.SnapOutEvent({ | ||
dragEvent: event, | ||
snappable: event.over || event.droppable | ||
}); | ||
this.draggable.trigger(snapOutEvent); | ||
if (snapOutEvent.canceled()) { | ||
return; | ||
} | ||
if (mirror) { | ||
mirror.style.display = ''; | ||
} | ||
source.classList.add(this.draggable.getClassNameFor('source:dragging')); | ||
} | ||
}]); | ||
return Snappable; | ||
}(_AbstractPlugin3.default); | ||
exports.default = Snappable; | ||
/***/ }), | ||
/* 88 */ | ||
/* 87 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -2061,12 +2256,12 @@ | ||
var _AbstractEvent = __webpack_require__(89); | ||
var _AbstractPlugin = __webpack_require__(88); | ||
var _AbstractEvent2 = _interopRequireDefault(_AbstractEvent); | ||
var _AbstractPlugin2 = _interopRequireDefault(_AbstractPlugin); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = _AbstractEvent2.default; | ||
exports.default = _AbstractPlugin2.default; | ||
/***/ }), | ||
/* 89 */ | ||
/* 88 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -2091,99 +2286,54 @@ | ||
var _canceled = Symbol('canceled'); | ||
/** | ||
* All events fired by draggable inherit this class. You can call `cancel()` to | ||
* cancel a specific event or you can check if an event has been canceled by | ||
* calling `canceled()`. | ||
* All draggable plugins inherit from this class. | ||
* @abstract | ||
* @class AbstractEvent | ||
* @module AbstractEvent | ||
* @class AbstractPlugin | ||
* @module AbstractPlugin | ||
*/ | ||
var AbstractPlugin = function () { | ||
var AbstractEvent = function () { | ||
/** | ||
* AbstractEvent constructor. | ||
* @constructs AbstractEvent | ||
* @param {object} data - Event data | ||
* AbstractPlugin constructor. | ||
* @constructs AbstractPlugin | ||
* @param {Draggable} draggable - Draggable instance | ||
*/ | ||
function AbstractPlugin(draggable) { | ||
(0, _classCallCheck3.default)(this, AbstractPlugin); | ||
/** | ||
* Event type | ||
* @static | ||
* @abstract | ||
* @property type | ||
* @type {String} | ||
*/ | ||
function AbstractEvent(data) { | ||
(0, _classCallCheck3.default)(this, AbstractEvent); | ||
this[_canceled] = false; | ||
this.data = data; | ||
/** | ||
* Draggable instance | ||
* @property draggable | ||
* @type {Draggable} | ||
*/ | ||
this.draggable = draggable; | ||
} | ||
/** | ||
* Read-only type | ||
* Override to add listeners | ||
* @abstract | ||
* @return {String} | ||
*/ | ||
/** | ||
* Event cancelable | ||
* @static | ||
* @abstract | ||
* @property cancelable | ||
* @type {Boolean} | ||
*/ | ||
(0, _createClass3.default)(AbstractEvent, [{ | ||
key: 'cancel', | ||
/** | ||
* Cancels the event instance | ||
* @abstract | ||
*/ | ||
value: function cancel() { | ||
this[_canceled] = true; | ||
(0, _createClass3.default)(AbstractPlugin, [{ | ||
key: 'attach', | ||
value: function attach() { | ||
throw new Error('Not Implemented'); | ||
} | ||
/** | ||
* Check if event has been canceled | ||
* Override to remove listeners | ||
* @abstract | ||
* @return {Boolean} | ||
*/ | ||
}, { | ||
key: 'canceled', | ||
value: function canceled() { | ||
return Boolean(this[_canceled]); | ||
key: 'detach', | ||
value: function detach() { | ||
throw new Error('Not Implemented'); | ||
} | ||
}, { | ||
key: 'type', | ||
get: function get() { | ||
return this.constructor.type; | ||
} | ||
/** | ||
* Read-only cancelable | ||
* @abstract | ||
* @return {Boolean} | ||
*/ | ||
}, { | ||
key: 'cancelable', | ||
get: function get() { | ||
return this.constructor.cancelable; | ||
} | ||
}]); | ||
return AbstractEvent; | ||
return AbstractPlugin; | ||
}(); | ||
AbstractEvent.type = 'event'; | ||
AbstractEvent.cancelable = false; | ||
exports.default = AbstractEvent; | ||
exports.default = AbstractPlugin; | ||
@@ -2190,0 +2340,0 @@ /***/ }) |
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
root["SwapAnimation"] = factory(); | ||
})(this, function() { | ||
})(typeof self !== 'undefined' ? self : this, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -83,5 +83,8 @@ /******/ // The module cache | ||
var global = module.exports = typeof window != 'undefined' && window.Math == Math | ||
? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); | ||
if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef | ||
? window : typeof self != 'undefined' && self.Math == Math ? self | ||
// eslint-disable-next-line no-new-func | ||
: Function('return this')(); | ||
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | ||
/***/ }), | ||
@@ -91,19 +94,20 @@ /* 1 */ | ||
var anObject = __webpack_require__(9) | ||
, IE8_DOM_DEFINE = __webpack_require__(31) | ||
, toPrimitive = __webpack_require__(15) | ||
, dP = Object.defineProperty; | ||
var anObject = __webpack_require__(10); | ||
var IE8_DOM_DEFINE = __webpack_require__(31); | ||
var toPrimitive = __webpack_require__(14); | ||
var dP = Object.defineProperty; | ||
exports.f = __webpack_require__(2) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | ||
exports.f = __webpack_require__(2) ? Object.defineProperty : function defineProperty(O, P, Attributes) { | ||
anObject(O); | ||
P = toPrimitive(P, true); | ||
anObject(Attributes); | ||
if(IE8_DOM_DEFINE)try { | ||
if (IE8_DOM_DEFINE) try { | ||
return dP(O, P, Attributes); | ||
} catch(e){ /* empty */ } | ||
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); | ||
if('value' in Attributes)O[P] = Attributes.value; | ||
} catch (e) { /* empty */ } | ||
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | ||
if ('value' in Attributes) O[P] = Attributes.value; | ||
return O; | ||
}; | ||
/***/ }), | ||
@@ -114,6 +118,7 @@ /* 2 */ | ||
// Thank's IE8 for his funny defineProperty | ||
module.exports = !__webpack_require__(11)(function(){ | ||
return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; | ||
module.exports = !__webpack_require__(11)(function () { | ||
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | ||
}); | ||
/***/ }), | ||
@@ -124,47 +129,60 @@ /* 3 */ | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
module.exports = function(it, key){ | ||
module.exports = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
}; | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports) { | ||
var core = module.exports = { version: '2.5.3' }; | ||
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | ||
/***/ }), | ||
/* 5 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// to indexed object, toObject with fallback for non-array-like ES3 strings | ||
var IObject = __webpack_require__(54) | ||
, defined = __webpack_require__(17); | ||
module.exports = function(it){ | ||
return IObject(defined(it)); | ||
var dP = __webpack_require__(1); | ||
var createDesc = __webpack_require__(12); | ||
module.exports = __webpack_require__(2) ? function (object, key, value) { | ||
return dP.f(object, key, createDesc(1, value)); | ||
} : function (object, key, value) { | ||
object[key] = value; | ||
return object; | ||
}; | ||
/***/ }), | ||
/* 5 */ | ||
/* 6 */ | ||
/***/ (function(module, exports) { | ||
var core = module.exports = {version: '2.4.0'}; | ||
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef | ||
module.exports = function (it) { | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
/***/ }), | ||
/* 6 */ | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var dP = __webpack_require__(1) | ||
, createDesc = __webpack_require__(12); | ||
module.exports = __webpack_require__(2) ? function(object, key, value){ | ||
return dP.f(object, key, createDesc(1, value)); | ||
} : function(object, key, value){ | ||
object[key] = value; | ||
return object; | ||
// to indexed object, toObject with fallback for non-array-like ES3 strings | ||
var IObject = __webpack_require__(54); | ||
var defined = __webpack_require__(16); | ||
module.exports = function (it) { | ||
return IObject(defined(it)); | ||
}; | ||
/***/ }), | ||
/* 7 */ | ||
/* 8 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var store = __webpack_require__(22)('wks') | ||
, uid = __webpack_require__(14) | ||
, Symbol = __webpack_require__(0).Symbol | ||
, USE_SYMBOL = typeof Symbol == 'function'; | ||
var store = __webpack_require__(22)('wks'); | ||
var uid = __webpack_require__(13); | ||
var Symbol = __webpack_require__(0).Symbol; | ||
var USE_SYMBOL = typeof Symbol == 'function'; | ||
var $exports = module.exports = function(name){ | ||
var $exports = module.exports = function (name) { | ||
return store[name] || (store[name] = | ||
@@ -176,28 +194,29 @@ USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | ||
/***/ }), | ||
/* 8 */ | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var global = __webpack_require__(0) | ||
, core = __webpack_require__(5) | ||
, ctx = __webpack_require__(30) | ||
, hide = __webpack_require__(6) | ||
, PROTOTYPE = 'prototype'; | ||
var global = __webpack_require__(0); | ||
var core = __webpack_require__(4); | ||
var ctx = __webpack_require__(30); | ||
var hide = __webpack_require__(5); | ||
var PROTOTYPE = 'prototype'; | ||
var $export = function(type, name, source){ | ||
var IS_FORCED = type & $export.F | ||
, IS_GLOBAL = type & $export.G | ||
, IS_STATIC = type & $export.S | ||
, IS_PROTO = type & $export.P | ||
, IS_BIND = type & $export.B | ||
, IS_WRAP = type & $export.W | ||
, exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) | ||
, expProto = exports[PROTOTYPE] | ||
, target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE] | ||
, key, own, out; | ||
if(IS_GLOBAL)source = name; | ||
for(key in source){ | ||
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 && key in exports)continue; | ||
if (own && key in exports) continue; | ||
// export native or passed | ||
@@ -210,7 +229,7 @@ out = own ? target[key] : source[key]; | ||
// 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; | ||
: 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); | ||
@@ -226,6 +245,6 @@ case 2: return new C(a, b); | ||
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME% | ||
if(IS_PROTO){ | ||
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); | ||
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); | ||
} | ||
@@ -242,23 +261,17 @@ } | ||
$export.U = 64; // safe | ||
$export.R = 128; // real proto method for `library` | ||
$export.R = 128; // real proto method for `library` | ||
module.exports = $export; | ||
/***/ }), | ||
/* 9 */ | ||
/* 10 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isObject = __webpack_require__(10); | ||
module.exports = function(it){ | ||
if(!isObject(it))throw TypeError(it + ' is not an object!'); | ||
var isObject = __webpack_require__(6); | ||
module.exports = function (it) { | ||
if (!isObject(it)) throw TypeError(it + ' is not an object!'); | ||
return it; | ||
}; | ||
/***/ }), | ||
/* 10 */ | ||
/***/ (function(module, exports) { | ||
module.exports = function(it){ | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
/***/ }), | ||
@@ -268,6 +281,6 @@ /* 11 */ | ||
module.exports = function(exec){ | ||
module.exports = function (exec) { | ||
try { | ||
return !!exec(); | ||
} catch(e){ | ||
} catch (e) { | ||
return true; | ||
@@ -277,2 +290,3 @@ } | ||
/***/ }), | ||
@@ -282,73 +296,66 @@ /* 12 */ | ||
module.exports = function(bitmap, value){ | ||
module.exports = function (bitmap, value) { | ||
return { | ||
enumerable : !(bitmap & 1), | ||
enumerable: !(bitmap & 1), | ||
configurable: !(bitmap & 2), | ||
writable : !(bitmap & 4), | ||
value : value | ||
writable: !(bitmap & 4), | ||
value: value | ||
}; | ||
}; | ||
/***/ }), | ||
/* 13 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 19.1.2.14 / 15.2.3.14 Object.keys(O) | ||
var $keys = __webpack_require__(36) | ||
, enumBugKeys = __webpack_require__(23); | ||
module.exports = Object.keys || function keys(O){ | ||
return $keys(O, enumBugKeys); | ||
}; | ||
/***/ }), | ||
/* 14 */ | ||
/***/ (function(module, exports) { | ||
var id = 0 | ||
, px = Math.random(); | ||
module.exports = function(key){ | ||
var id = 0; | ||
var px = Math.random(); | ||
module.exports = function (key) { | ||
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | ||
}; | ||
/***/ }), | ||
/* 15 */ | ||
/* 14 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 7.1.1 ToPrimitive(input [, PreferredType]) | ||
var isObject = __webpack_require__(10); | ||
var isObject = __webpack_require__(6); | ||
// 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; | ||
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; | ||
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"); | ||
}; | ||
/***/ }), | ||
/* 16 */ | ||
/* 15 */ | ||
/***/ (function(module, exports) { | ||
// 7.1.4 ToInteger | ||
var ceil = Math.ceil | ||
, floor = Math.floor; | ||
module.exports = function(it){ | ||
var ceil = Math.ceil; | ||
var floor = Math.floor; | ||
module.exports = function (it) { | ||
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | ||
}; | ||
/***/ }), | ||
/* 17 */ | ||
/* 16 */ | ||
/***/ (function(module, exports) { | ||
// 7.2.1 RequireObjectCoercible(argument) | ||
module.exports = function(it){ | ||
if(it == undefined)throw TypeError("Can't call method on " + it); | ||
module.exports = function (it) { | ||
if (it == undefined) throw TypeError("Can't call method on " + it); | ||
return it; | ||
}; | ||
/***/ }), | ||
/* 18 */ | ||
/* 17 */ | ||
/***/ (function(module, exports) { | ||
@@ -358,4 +365,5 @@ | ||
/***/ }), | ||
/* 19 */ | ||
/* 18 */ | ||
/***/ (function(module, exports) { | ||
@@ -365,22 +373,23 @@ | ||
/***/ }), | ||
/* 20 */ | ||
/* 19 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | ||
var anObject = __webpack_require__(9) | ||
, dPs = __webpack_require__(53) | ||
, enumBugKeys = __webpack_require__(23) | ||
, IE_PROTO = __webpack_require__(21)('IE_PROTO') | ||
, Empty = function(){ /* empty */ } | ||
, PROTOTYPE = 'prototype'; | ||
var anObject = __webpack_require__(10); | ||
var dPs = __webpack_require__(53); | ||
var enumBugKeys = __webpack_require__(23); | ||
var IE_PROTO = __webpack_require__(21)('IE_PROTO'); | ||
var Empty = function () { /* empty */ }; | ||
var PROTOTYPE = 'prototype'; | ||
// Create object with fake `null` prototype: use iframe Object with cleared prototype | ||
var createDict = function(){ | ||
var createDict = function () { | ||
// Thrash, waste and sodomy: IE GC bug | ||
var iframe = __webpack_require__(32)('iframe') | ||
, i = enumBugKeys.length | ||
, lt = '<' | ||
, gt = '>' | ||
, iframeDocument; | ||
var iframe = __webpack_require__(32)('iframe'); | ||
var i = enumBugKeys.length; | ||
var lt = '<'; | ||
var gt = '>'; | ||
var iframeDocument; | ||
iframe.style.display = 'none'; | ||
@@ -396,11 +405,11 @@ __webpack_require__(58).appendChild(iframe); | ||
createDict = iframeDocument.F; | ||
while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]]; | ||
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | ||
return createDict(); | ||
}; | ||
module.exports = Object.create || function create(O, Properties){ | ||
module.exports = Object.create || function create(O, Properties) { | ||
var result; | ||
if(O !== null){ | ||
if (O !== null) { | ||
Empty[PROTOTYPE] = anObject(O); | ||
result = new Empty; | ||
result = new Empty(); | ||
Empty[PROTOTYPE] = null; | ||
@@ -415,11 +424,25 @@ // add "__proto__" for Object.getPrototypeOf polyfill | ||
/***/ }), | ||
/* 20 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 19.1.2.14 / 15.2.3.14 Object.keys(O) | ||
var $keys = __webpack_require__(36); | ||
var enumBugKeys = __webpack_require__(23); | ||
module.exports = Object.keys || function keys(O) { | ||
return $keys(O, enumBugKeys); | ||
}; | ||
/***/ }), | ||
/* 21 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var shared = __webpack_require__(22)('keys') | ||
, uid = __webpack_require__(14); | ||
module.exports = function(key){ | ||
var shared = __webpack_require__(22)('keys'); | ||
var uid = __webpack_require__(13); | ||
module.exports = function (key) { | ||
return shared[key] || (shared[key] = uid(key)); | ||
}; | ||
/***/ }), | ||
@@ -429,9 +452,10 @@ /* 22 */ | ||
var global = __webpack_require__(0) | ||
, SHARED = '__core-js_shared__' | ||
, store = global[SHARED] || (global[SHARED] = {}); | ||
module.exports = function(key){ | ||
var global = __webpack_require__(0); | ||
var SHARED = '__core-js_shared__'; | ||
var store = global[SHARED] || (global[SHARED] = {}); | ||
module.exports = function (key) { | ||
return store[key] || (store[key] = {}); | ||
}; | ||
/***/ }), | ||
@@ -446,2 +470,3 @@ /* 23 */ | ||
/***/ }), | ||
@@ -451,10 +476,11 @@ /* 24 */ | ||
var def = __webpack_require__(1).f | ||
, has = __webpack_require__(3) | ||
, TAG = __webpack_require__(7)('toStringTag'); | ||
var def = __webpack_require__(1).f; | ||
var has = __webpack_require__(3); | ||
var TAG = __webpack_require__(8)('toStringTag'); | ||
module.exports = function(it, tag, stat){ | ||
if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag}); | ||
module.exports = function (it, tag, stat) { | ||
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | ||
}; | ||
/***/ }), | ||
@@ -464,4 +490,5 @@ /* 25 */ | ||
exports.f = __webpack_require__(7); | ||
exports.f = __webpack_require__(8); | ||
/***/ }), | ||
@@ -471,12 +498,13 @@ /* 26 */ | ||
var global = __webpack_require__(0) | ||
, core = __webpack_require__(5) | ||
, LIBRARY = __webpack_require__(18) | ||
, wksExt = __webpack_require__(25) | ||
, defineProperty = __webpack_require__(1).f; | ||
module.exports = function(name){ | ||
var global = __webpack_require__(0); | ||
var core = __webpack_require__(4); | ||
var LIBRARY = __webpack_require__(17); | ||
var wksExt = __webpack_require__(25); | ||
var defineProperty = __webpack_require__(1).f; | ||
module.exports = function (name) { | ||
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); | ||
if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)}); | ||
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); | ||
}; | ||
/***/ }), | ||
@@ -488,2 +516,3 @@ /* 27 */ | ||
/***/ }), | ||
@@ -543,17 +572,17 @@ /* 28 */ | ||
var aFunction = __webpack_require__(46); | ||
module.exports = function(fn, that, length){ | ||
module.exports = function (fn, that, length) { | ||
aFunction(fn); | ||
if(that === undefined)return fn; | ||
switch(length){ | ||
case 1: return function(a){ | ||
if (that === undefined) return fn; | ||
switch (length) { | ||
case 1: return function (a) { | ||
return fn.call(that, a); | ||
}; | ||
case 2: return function(a, b){ | ||
case 2: return function (a, b) { | ||
return fn.call(that, a, b); | ||
}; | ||
case 3: return function(a, b, c){ | ||
case 3: return function (a, b, c) { | ||
return fn.call(that, a, b, c); | ||
}; | ||
} | ||
return function(/* ...args */){ | ||
return function (/* ...args */) { | ||
return fn.apply(that, arguments); | ||
@@ -563,2 +592,3 @@ }; | ||
/***/ }), | ||
@@ -568,6 +598,7 @@ /* 31 */ | ||
module.exports = !__webpack_require__(2) && !__webpack_require__(11)(function(){ | ||
return Object.defineProperty(__webpack_require__(32)('div'), 'a', {get: function(){ return 7; }}).a != 7; | ||
module.exports = !__webpack_require__(2) && !__webpack_require__(11)(function () { | ||
return Object.defineProperty(__webpack_require__(32)('div'), 'a', { get: function () { return 7; } }).a != 7; | ||
}); | ||
/***/ }), | ||
@@ -577,10 +608,11 @@ /* 32 */ | ||
var isObject = __webpack_require__(10) | ||
, document = __webpack_require__(0).document | ||
// in old IE typeof document.createElement is 'object' | ||
, is = isObject(document) && isObject(document.createElement); | ||
module.exports = function(it){ | ||
var isObject = __webpack_require__(6); | ||
var document = __webpack_require__(0).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) : {}; | ||
}; | ||
/***/ }), | ||
@@ -619,54 +651,54 @@ /* 33 */ | ||
var LIBRARY = __webpack_require__(18) | ||
, $export = __webpack_require__(8) | ||
, redefine = __webpack_require__(35) | ||
, hide = __webpack_require__(6) | ||
, has = __webpack_require__(3) | ||
, Iterators = __webpack_require__(19) | ||
, $iterCreate = __webpack_require__(52) | ||
, setToStringTag = __webpack_require__(24) | ||
, getPrototypeOf = __webpack_require__(59) | ||
, ITERATOR = __webpack_require__(7)('iterator') | ||
, BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next` | ||
, FF_ITERATOR = '@@iterator' | ||
, KEYS = 'keys' | ||
, VALUES = 'values'; | ||
var LIBRARY = __webpack_require__(17); | ||
var $export = __webpack_require__(9); | ||
var redefine = __webpack_require__(35); | ||
var hide = __webpack_require__(5); | ||
var has = __webpack_require__(3); | ||
var Iterators = __webpack_require__(18); | ||
var $iterCreate = __webpack_require__(52); | ||
var setToStringTag = __webpack_require__(24); | ||
var getPrototypeOf = __webpack_require__(59); | ||
var ITERATOR = __webpack_require__(8)('iterator'); | ||
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | ||
var FF_ITERATOR = '@@iterator'; | ||
var KEYS = 'keys'; | ||
var VALUES = 'values'; | ||
var returnThis = function(){ return this; }; | ||
var returnThis = function () { return this; }; | ||
module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){ | ||
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | ||
$iterCreate(Constructor, NAME, next); | ||
var getMethod = function(kind){ | ||
if(!BUGGY && kind in proto)return proto[kind]; | ||
switch(kind){ | ||
case KEYS: return function keys(){ return new Constructor(this, kind); }; | ||
case VALUES: return function values(){ return new Constructor(this, kind); }; | ||
} return function entries(){ return new Constructor(this, kind); }; | ||
var getMethod = function (kind) { | ||
if (!BUGGY && kind in proto) return proto[kind]; | ||
switch (kind) { | ||
case KEYS: return function keys() { return new Constructor(this, kind); }; | ||
case VALUES: return function values() { return new Constructor(this, kind); }; | ||
} return function entries() { return new Constructor(this, kind); }; | ||
}; | ||
var TAG = NAME + ' Iterator' | ||
, DEF_VALUES = DEFAULT == VALUES | ||
, VALUES_BUG = false | ||
, proto = Base.prototype | ||
, $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT] | ||
, $default = $native || getMethod(DEFAULT) | ||
, $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined | ||
, $anyNative = NAME == 'Array' ? proto.entries || $native : $native | ||
, methods, key, IteratorPrototype; | ||
var TAG = NAME + ' Iterator'; | ||
var DEF_VALUES = DEFAULT == VALUES; | ||
var VALUES_BUG = false; | ||
var proto = Base.prototype; | ||
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | ||
var $default = (!BUGGY && $native) || getMethod(DEFAULT); | ||
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | ||
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | ||
var methods, key, IteratorPrototype; | ||
// Fix native | ||
if($anyNative){ | ||
IteratorPrototype = getPrototypeOf($anyNative.call(new Base)); | ||
if(IteratorPrototype !== Object.prototype){ | ||
if ($anyNative) { | ||
IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | ||
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | ||
// Set @@toStringTag to native iterators | ||
setToStringTag(IteratorPrototype, TAG, true); | ||
// fix for some old engines | ||
if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis); | ||
if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); | ||
} | ||
} | ||
// fix Array#{values, @@iterator}.name in V8 / FF | ||
if(DEF_VALUES && $native && $native.name !== VALUES){ | ||
if (DEF_VALUES && $native && $native.name !== VALUES) { | ||
VALUES_BUG = true; | ||
$default = function values(){ return $native.call(this); }; | ||
$default = function values() { return $native.call(this); }; | ||
} | ||
// Define iterator | ||
if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){ | ||
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | ||
hide(proto, ITERATOR, $default); | ||
@@ -676,11 +708,11 @@ } | ||
Iterators[NAME] = $default; | ||
Iterators[TAG] = returnThis; | ||
if(DEFAULT){ | ||
Iterators[TAG] = returnThis; | ||
if (DEFAULT) { | ||
methods = { | ||
values: DEF_VALUES ? $default : getMethod(VALUES), | ||
keys: IS_SET ? $default : getMethod(KEYS), | ||
values: DEF_VALUES ? $default : getMethod(VALUES), | ||
keys: IS_SET ? $default : getMethod(KEYS), | ||
entries: $entries | ||
}; | ||
if(FORCED)for(key in methods){ | ||
if(!(key in proto))redefine(proto, key, methods[key]); | ||
if (FORCED) for (key in methods) { | ||
if (!(key in proto)) redefine(proto, key, methods[key]); | ||
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | ||
@@ -691,2 +723,3 @@ } | ||
/***/ }), | ||
@@ -696,4 +729,5 @@ /* 35 */ | ||
module.exports = __webpack_require__(6); | ||
module.exports = __webpack_require__(5); | ||
/***/ }), | ||
@@ -703,15 +737,15 @@ /* 36 */ | ||
var has = __webpack_require__(3) | ||
, toIObject = __webpack_require__(4) | ||
, arrayIndexOf = __webpack_require__(55)(false) | ||
, IE_PROTO = __webpack_require__(21)('IE_PROTO'); | ||
var has = __webpack_require__(3); | ||
var toIObject = __webpack_require__(7); | ||
var arrayIndexOf = __webpack_require__(55)(false); | ||
var IE_PROTO = __webpack_require__(21)('IE_PROTO'); | ||
module.exports = function(object, names){ | ||
var O = toIObject(object) | ||
, i = 0 | ||
, result = [] | ||
, key; | ||
for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key); | ||
module.exports = function (object, names) { | ||
var O = toIObject(object); | ||
var i = 0; | ||
var result = []; | ||
var key; | ||
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | ||
// Don't enum bug & hidden keys | ||
while(names.length > i)if(has(O, key = names[i++])){ | ||
while (names.length > i) if (has(O, key = names[i++])) { | ||
~arrayIndexOf(result, key) || result.push(key); | ||
@@ -722,2 +756,3 @@ } | ||
/***/ }), | ||
@@ -729,6 +764,7 @@ /* 37 */ | ||
module.exports = function(it){ | ||
module.exports = function (it) { | ||
return toString.call(it).slice(8, -1); | ||
}; | ||
/***/ }), | ||
@@ -740,2 +776,3 @@ /* 38 */ | ||
/***/ }), | ||
@@ -746,9 +783,10 @@ /* 39 */ | ||
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) | ||
var $keys = __webpack_require__(36) | ||
, hiddenKeys = __webpack_require__(23).concat('length', 'prototype'); | ||
var $keys = __webpack_require__(36); | ||
var hiddenKeys = __webpack_require__(23).concat('length', 'prototype'); | ||
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){ | ||
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
return $keys(O, hiddenKeys); | ||
}; | ||
/***/ }), | ||
@@ -758,19 +796,20 @@ /* 40 */ | ||
var pIE = __webpack_require__(27) | ||
, createDesc = __webpack_require__(12) | ||
, toIObject = __webpack_require__(4) | ||
, toPrimitive = __webpack_require__(15) | ||
, has = __webpack_require__(3) | ||
, IE8_DOM_DEFINE = __webpack_require__(31) | ||
, gOPD = Object.getOwnPropertyDescriptor; | ||
var pIE = __webpack_require__(27); | ||
var createDesc = __webpack_require__(12); | ||
var toIObject = __webpack_require__(7); | ||
var toPrimitive = __webpack_require__(14); | ||
var has = __webpack_require__(3); | ||
var IE8_DOM_DEFINE = __webpack_require__(31); | ||
var gOPD = Object.getOwnPropertyDescriptor; | ||
exports.f = __webpack_require__(2) ? gOPD : function getOwnPropertyDescriptor(O, P){ | ||
exports.f = __webpack_require__(2) ? gOPD : function getOwnPropertyDescriptor(O, P) { | ||
O = toIObject(O); | ||
P = toPrimitive(P, true); | ||
if(IE8_DOM_DEFINE)try { | ||
if (IE8_DOM_DEFINE) try { | ||
return gOPD(O, P); | ||
} catch(e){ /* empty */ } | ||
if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]); | ||
} catch (e) { /* empty */ } | ||
if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); | ||
}; | ||
/***/ }), | ||
@@ -786,3 +825,3 @@ /* 41 */ | ||
}); | ||
exports.defaultSwapAnimationOptions = undefined; | ||
exports.defaultOptions = undefined; | ||
@@ -796,3 +835,3 @@ var _SwapAnimation = __webpack_require__(42); | ||
exports.default = _SwapAnimation2.default; | ||
exports.defaultSwapAnimationOptions = _SwapAnimation.defaultOptions; | ||
exports.defaultOptions = _SwapAnimation.defaultOptions; | ||
@@ -823,7 +862,7 @@ /***/ }), | ||
var _inherits2 = __webpack_require__(76); | ||
var _inherits2 = __webpack_require__(75); | ||
var _inherits3 = _interopRequireDefault(_inherits2); | ||
var _AbstractPlugin2 = __webpack_require__(84); | ||
var _AbstractPlugin2 = __webpack_require__(83); | ||
@@ -834,2 +873,11 @@ var _AbstractPlugin3 = _interopRequireDefault(_AbstractPlugin2); | ||
var onSortableSorted = Symbol('onSortableSorted'); | ||
/** | ||
* SwapAnimation default options | ||
* @property {Object} defaultOptions | ||
* @property {Number} defaultOptions.duration | ||
* @property {String} defaultOptions.easingFunction | ||
* @type {Object} | ||
*/ | ||
var defaultOptions = exports.defaultOptions = { | ||
@@ -840,8 +888,27 @@ duration: 150, | ||
/** | ||
* SwapAnimation plugin adds swap animations for sortable | ||
* @class SwapAnimation | ||
* @module SwapAnimation | ||
* @extends AbstractPlugin | ||
*/ | ||
var SwapAnimation = function (_AbstractPlugin) { | ||
(0, _inherits3.default)(SwapAnimation, _AbstractPlugin); | ||
/** | ||
* SwapAnimation constructor. | ||
* @constructs SwapAnimation | ||
* @param {Draggable} draggable - Draggable instance | ||
*/ | ||
function SwapAnimation(draggable) { | ||
(0, _classCallCheck3.default)(this, SwapAnimation); | ||
/** | ||
* SwapAnimation options | ||
* @property {Object} options | ||
* @property {Number} defaultOptions.duration | ||
* @property {String} defaultOptions.easingFunction | ||
* @type {Object} | ||
*/ | ||
var _this = (0, _possibleConstructorReturn3.default)(this, (SwapAnimation.__proto__ || Object.getPrototypeOf(SwapAnimation)).call(this, draggable)); | ||
@@ -851,19 +918,54 @@ | ||
_this.onSortableSorted = _this.onSortableSorted.bind(_this); | ||
/** | ||
* Last animation frame | ||
* @property {Number} lastAnimationFrame | ||
* @type {Number} | ||
*/ | ||
_this.lastAnimationFrame = null; | ||
_this[onSortableSorted] = _this[onSortableSorted].bind(_this); | ||
return _this; | ||
} | ||
/** | ||
* Attaches plugins event listeners | ||
*/ | ||
(0, _createClass3.default)(SwapAnimation, [{ | ||
key: 'attach', | ||
value: function attach() { | ||
this.draggable.on('sortable:sorted', this.onSortableSorted); | ||
this.draggable.on('sortable:sorted', this[onSortableSorted]); | ||
} | ||
/** | ||
* Detaches plugins event listeners | ||
*/ | ||
}, { | ||
key: 'detach', | ||
value: function detach() { | ||
this.draggable.off('sortable:sorted', this.onSortableSorted); | ||
this.draggable.off('sortable:sorted', this[onSortableSorted]); | ||
} | ||
/** | ||
* Returns options passed through draggable | ||
* @return {Object} | ||
*/ | ||
}, { | ||
key: 'onSortableSorted', | ||
value: function onSortableSorted(_ref) { | ||
key: 'getOptions', | ||
value: function getOptions() { | ||
return this.draggable.options.swapAnimation || {}; | ||
} | ||
/** | ||
* Sortable sorted handler | ||
* @param {SortableSortedEvent} sortableEvent | ||
* @private | ||
*/ | ||
}, { | ||
key: onSortableSorted, | ||
value: function value(_ref) { | ||
var _this2 = this; | ||
@@ -889,7 +991,2 @@ | ||
} | ||
}, { | ||
key: 'getOptions', | ||
value: function getOptions() { | ||
return this.draggable.options.swapAnimation || {}; | ||
} | ||
}]); | ||
@@ -899,5 +996,14 @@ return SwapAnimation; | ||
exports.default = SwapAnimation; | ||
/** | ||
* Animates two elements | ||
* @param {HTMLElement} top | ||
* @param {HTMLElement} bottom | ||
* @param {Object} options | ||
* @param {Number} options.duration | ||
* @param {String} options.easingFunction | ||
* @private | ||
*/ | ||
exports.default = SwapAnimation; | ||
function animate(top, bottom, _ref2) { | ||
@@ -930,2 +1036,7 @@ var duration = _ref2.duration, | ||
/** | ||
* Resets animation style properties after animation has completed | ||
* @param {Event} event | ||
* @private | ||
*/ | ||
function resetElementOnTransitionEnd(event) { | ||
@@ -948,7 +1059,8 @@ event.target.style.transition = ''; | ||
__webpack_require__(45); | ||
var $Object = __webpack_require__(5).Object; | ||
module.exports = function defineProperty(it, key, desc){ | ||
var $Object = __webpack_require__(4).Object; | ||
module.exports = function defineProperty(it, key, desc) { | ||
return $Object.defineProperty(it, key, desc); | ||
}; | ||
/***/ }), | ||
@@ -958,6 +1070,7 @@ /* 45 */ | ||
var $export = __webpack_require__(8); | ||
var $export = __webpack_require__(9); | ||
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) | ||
$export($export.S + $export.F * !__webpack_require__(2), 'Object', {defineProperty: __webpack_require__(1).f}); | ||
$export($export.S + $export.F * !__webpack_require__(2), 'Object', { defineProperty: __webpack_require__(1).f }); | ||
/***/ }), | ||
@@ -967,7 +1080,8 @@ /* 46 */ | ||
module.exports = function(it){ | ||
if(typeof it != 'function')throw TypeError(it + ' is not a function!'); | ||
module.exports = function (it) { | ||
if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | ||
return it; | ||
}; | ||
/***/ }), | ||
@@ -1010,2 +1124,3 @@ /* 47 */ | ||
/***/ }), | ||
@@ -1017,19 +1132,20 @@ /* 50 */ | ||
var $at = __webpack_require__(51)(true); | ||
var $at = __webpack_require__(51)(true); | ||
// 21.1.3.27 String.prototype[@@iterator]() | ||
__webpack_require__(34)(String, 'String', function(iterated){ | ||
__webpack_require__(34)(String, 'String', function (iterated) { | ||
this._t = String(iterated); // target | ||
this._i = 0; // next index | ||
// 21.1.5.2.1 %StringIteratorPrototype%.next() | ||
}, function(){ | ||
var O = this._t | ||
, index = this._i | ||
, point; | ||
if(index >= O.length)return {value: undefined, done: true}; | ||
}, function () { | ||
var O = this._t; | ||
var index = this._i; | ||
var point; | ||
if (index >= O.length) return { value: undefined, done: true }; | ||
point = $at(O, index); | ||
this._i += point.length; | ||
return {value: point, done: false}; | ||
return { value: point, done: false }; | ||
}); | ||
/***/ }), | ||
@@ -1039,13 +1155,13 @@ /* 51 */ | ||
var toInteger = __webpack_require__(16) | ||
, defined = __webpack_require__(17); | ||
var toInteger = __webpack_require__(15); | ||
var defined = __webpack_require__(16); | ||
// true -> String#at | ||
// false -> String#codePointAt | ||
module.exports = function(TO_STRING){ | ||
return function(that, pos){ | ||
var s = String(defined(that)) | ||
, i = toInteger(pos) | ||
, l = s.length | ||
, a, b; | ||
if(i < 0 || i >= l)return TO_STRING ? '' : undefined; | ||
module.exports = function (TO_STRING) { | ||
return function (that, pos) { | ||
var s = String(defined(that)); | ||
var i = toInteger(pos); | ||
var l = s.length; | ||
var a, b; | ||
if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | ||
a = s.charCodeAt(i); | ||
@@ -1058,2 +1174,3 @@ return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | ||
/***/ }), | ||
@@ -1065,15 +1182,16 @@ /* 52 */ | ||
var create = __webpack_require__(20) | ||
, descriptor = __webpack_require__(12) | ||
, setToStringTag = __webpack_require__(24) | ||
, IteratorPrototype = {}; | ||
var create = __webpack_require__(19); | ||
var descriptor = __webpack_require__(12); | ||
var setToStringTag = __webpack_require__(24); | ||
var IteratorPrototype = {}; | ||
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | ||
__webpack_require__(6)(IteratorPrototype, __webpack_require__(7)('iterator'), function(){ return this; }); | ||
__webpack_require__(5)(IteratorPrototype, __webpack_require__(8)('iterator'), function () { return this; }); | ||
module.exports = function(Constructor, NAME, next){ | ||
Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)}); | ||
module.exports = function (Constructor, NAME, next) { | ||
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | ||
setToStringTag(Constructor, NAME + ' Iterator'); | ||
}; | ||
/***/ }), | ||
@@ -1083,16 +1201,17 @@ /* 53 */ | ||
var dP = __webpack_require__(1) | ||
, anObject = __webpack_require__(9) | ||
, getKeys = __webpack_require__(13); | ||
var dP = __webpack_require__(1); | ||
var anObject = __webpack_require__(10); | ||
var getKeys = __webpack_require__(20); | ||
module.exports = __webpack_require__(2) ? Object.defineProperties : function defineProperties(O, Properties){ | ||
module.exports = __webpack_require__(2) ? Object.defineProperties : function defineProperties(O, Properties) { | ||
anObject(O); | ||
var keys = getKeys(Properties) | ||
, length = keys.length | ||
, i = 0 | ||
, P; | ||
while(length > i)dP.f(O, P = keys[i++], Properties[P]); | ||
var keys = getKeys(Properties); | ||
var length = keys.length; | ||
var i = 0; | ||
var P; | ||
while (length > i) dP.f(O, P = keys[i++], Properties[P]); | ||
return O; | ||
}; | ||
/***/ }), | ||
@@ -1104,6 +1223,8 @@ /* 54 */ | ||
var cof = __webpack_require__(37); | ||
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ | ||
// eslint-disable-next-line no-prototype-builtins | ||
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | ||
return cof(it) == 'String' ? it.split('') : Object(it); | ||
}; | ||
/***/ }), | ||
@@ -1115,18 +1236,20 @@ /* 55 */ | ||
// true -> Array#includes | ||
var toIObject = __webpack_require__(4) | ||
, toLength = __webpack_require__(56) | ||
, toIndex = __webpack_require__(57); | ||
module.exports = function(IS_INCLUDES){ | ||
return function($this, el, fromIndex){ | ||
var O = toIObject($this) | ||
, length = toLength(O.length) | ||
, index = toIndex(fromIndex, length) | ||
, value; | ||
var toIObject = __webpack_require__(7); | ||
var toLength = __webpack_require__(56); | ||
var toAbsoluteIndex = __webpack_require__(57); | ||
module.exports = function (IS_INCLUDES) { | ||
return function ($this, el, fromIndex) { | ||
var O = toIObject($this); | ||
var length = toLength(O.length); | ||
var index = toAbsoluteIndex(fromIndex, length); | ||
var value; | ||
// Array#includes uses SameValueZero equality algorithm | ||
if(IS_INCLUDES && el != el)while(length > index){ | ||
// eslint-disable-next-line no-self-compare | ||
if (IS_INCLUDES && el != el) while (length > index) { | ||
value = O[index++]; | ||
if(value != value)return true; | ||
// Array#toIndex ignores holes, Array#includes - not | ||
} else for(;length > index; index++)if(IS_INCLUDES || index in O){ | ||
if(O[index] === el)return IS_INCLUDES || index || 0; | ||
// eslint-disable-next-line no-self-compare | ||
if (value != value) return true; | ||
// Array#indexOf ignores holes, Array#includes - not | ||
} else for (;length > index; index++) if (IS_INCLUDES || index in O) { | ||
if (O[index] === el) return IS_INCLUDES || index || 0; | ||
} return !IS_INCLUDES && -1; | ||
@@ -1136,2 +1259,3 @@ }; | ||
/***/ }), | ||
@@ -1142,8 +1266,9 @@ /* 56 */ | ||
// 7.1.15 ToLength | ||
var toInteger = __webpack_require__(16) | ||
, min = Math.min; | ||
module.exports = function(it){ | ||
var toInteger = __webpack_require__(15); | ||
var min = Math.min; | ||
module.exports = function (it) { | ||
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | ||
}; | ||
/***/ }), | ||
@@ -1153,6 +1278,6 @@ /* 57 */ | ||
var toInteger = __webpack_require__(16) | ||
, max = Math.max | ||
, min = Math.min; | ||
module.exports = function(index, length){ | ||
var toInteger = __webpack_require__(15); | ||
var max = Math.max; | ||
var min = Math.min; | ||
module.exports = function (index, length) { | ||
index = toInteger(index); | ||
@@ -1162,2 +1287,3 @@ return index < 0 ? max(index + length, 0) : min(index, length); | ||
/***/ }), | ||
@@ -1167,4 +1293,6 @@ /* 58 */ | ||
module.exports = __webpack_require__(0).document && document.documentElement; | ||
var document = __webpack_require__(0).document; | ||
module.exports = document && document.documentElement; | ||
/***/ }), | ||
@@ -1175,11 +1303,11 @@ /* 59 */ | ||
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | ||
var has = __webpack_require__(3) | ||
, toObject = __webpack_require__(60) | ||
, IE_PROTO = __webpack_require__(21)('IE_PROTO') | ||
, ObjectProto = Object.prototype; | ||
var has = __webpack_require__(3); | ||
var toObject = __webpack_require__(60); | ||
var IE_PROTO = __webpack_require__(21)('IE_PROTO'); | ||
var ObjectProto = Object.prototype; | ||
module.exports = Object.getPrototypeOf || function(O){ | ||
module.exports = Object.getPrototypeOf || function (O) { | ||
O = toObject(O); | ||
if(has(O, IE_PROTO))return O[IE_PROTO]; | ||
if(typeof O.constructor == 'function' && O instanceof O.constructor){ | ||
if (has(O, IE_PROTO)) return O[IE_PROTO]; | ||
if (typeof O.constructor == 'function' && O instanceof O.constructor) { | ||
return O.constructor.prototype; | ||
@@ -1189,2 +1317,3 @@ } return O instanceof Object ? ObjectProto : null; | ||
/***/ }), | ||
@@ -1195,7 +1324,8 @@ /* 60 */ | ||
// 7.1.13 ToObject(argument) | ||
var defined = __webpack_require__(17); | ||
module.exports = function(it){ | ||
var defined = __webpack_require__(16); | ||
module.exports = function (it) { | ||
return Object(defined(it)); | ||
}; | ||
/***/ }), | ||
@@ -1206,15 +1336,22 @@ /* 61 */ | ||
__webpack_require__(62); | ||
var global = __webpack_require__(0) | ||
, hide = __webpack_require__(6) | ||
, Iterators = __webpack_require__(19) | ||
, TO_STRING_TAG = __webpack_require__(7)('toStringTag'); | ||
var global = __webpack_require__(0); | ||
var hide = __webpack_require__(5); | ||
var Iterators = __webpack_require__(18); | ||
var TO_STRING_TAG = __webpack_require__(8)('toStringTag'); | ||
for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){ | ||
var NAME = collections[i] | ||
, Collection = global[NAME] | ||
, proto = Collection && Collection.prototype; | ||
if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME); | ||
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + | ||
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + | ||
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + | ||
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + | ||
'TextTrackList,TouchList').split(','); | ||
for (var i = 0; i < DOMIterables.length; i++) { | ||
var NAME = DOMIterables[i]; | ||
var Collection = global[NAME]; | ||
var proto = Collection && Collection.prototype; | ||
if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); | ||
Iterators[NAME] = Iterators.Array; | ||
} | ||
/***/ }), | ||
@@ -1226,6 +1363,6 @@ /* 62 */ | ||
var addToUnscopables = __webpack_require__(63) | ||
, step = __webpack_require__(64) | ||
, Iterators = __webpack_require__(19) | ||
, toIObject = __webpack_require__(4); | ||
var addToUnscopables = __webpack_require__(63); | ||
var step = __webpack_require__(64); | ||
var Iterators = __webpack_require__(18); | ||
var toIObject = __webpack_require__(7); | ||
@@ -1236,3 +1373,3 @@ // 22.1.3.4 Array.prototype.entries() | ||
// 22.1.3.30 Array.prototype[@@iterator]() | ||
module.exports = __webpack_require__(34)(Array, 'Array', function(iterated, kind){ | ||
module.exports = __webpack_require__(34)(Array, 'Array', function (iterated, kind) { | ||
this._t = toIObject(iterated); // target | ||
@@ -1242,12 +1379,12 @@ this._i = 0; // next index | ||
// 22.1.5.2.1 %ArrayIteratorPrototype%.next() | ||
}, function(){ | ||
var O = this._t | ||
, kind = this._k | ||
, index = this._i++; | ||
if(!O || index >= O.length){ | ||
}, function () { | ||
var O = this._t; | ||
var kind = this._k; | ||
var index = this._i++; | ||
if (!O || index >= O.length) { | ||
this._t = undefined; | ||
return step(1); | ||
} | ||
if(kind == 'keys' )return step(0, index); | ||
if(kind == 'values')return step(0, O[index]); | ||
if (kind == 'keys') return step(0, index); | ||
if (kind == 'values') return step(0, O[index]); | ||
return step(0, [index, O[index]]); | ||
@@ -1263,2 +1400,3 @@ }, 'values'); | ||
/***/ }), | ||
@@ -1268,4 +1406,5 @@ /* 63 */ | ||
module.exports = function(){ /* empty */ }; | ||
module.exports = function () { /* empty */ }; | ||
/***/ }), | ||
@@ -1275,6 +1414,7 @@ /* 64 */ | ||
module.exports = function(done, value){ | ||
return {value: value, done: !!done}; | ||
module.exports = function (done, value) { | ||
return { value: value, done: !!done }; | ||
}; | ||
/***/ }), | ||
@@ -1291,7 +1431,8 @@ /* 65 */ | ||
__webpack_require__(67); | ||
__webpack_require__(72); | ||
__webpack_require__(73); | ||
__webpack_require__(74); | ||
__webpack_require__(75); | ||
module.exports = __webpack_require__(5).Symbol; | ||
module.exports = __webpack_require__(4).Symbol; | ||
/***/ }), | ||
@@ -1304,43 +1445,43 @@ /* 67 */ | ||
// ECMAScript 6 symbols shim | ||
var global = __webpack_require__(0) | ||
, has = __webpack_require__(3) | ||
, DESCRIPTORS = __webpack_require__(2) | ||
, $export = __webpack_require__(8) | ||
, redefine = __webpack_require__(35) | ||
, META = __webpack_require__(68).KEY | ||
, $fails = __webpack_require__(11) | ||
, shared = __webpack_require__(22) | ||
, setToStringTag = __webpack_require__(24) | ||
, uid = __webpack_require__(14) | ||
, wks = __webpack_require__(7) | ||
, wksExt = __webpack_require__(25) | ||
, wksDefine = __webpack_require__(26) | ||
, keyOf = __webpack_require__(69) | ||
, enumKeys = __webpack_require__(70) | ||
, isArray = __webpack_require__(71) | ||
, anObject = __webpack_require__(9) | ||
, toIObject = __webpack_require__(4) | ||
, toPrimitive = __webpack_require__(15) | ||
, createDesc = __webpack_require__(12) | ||
, _create = __webpack_require__(20) | ||
, gOPNExt = __webpack_require__(72) | ||
, $GOPD = __webpack_require__(40) | ||
, $DP = __webpack_require__(1) | ||
, $keys = __webpack_require__(13) | ||
, gOPD = $GOPD.f | ||
, dP = $DP.f | ||
, gOPN = gOPNExt.f | ||
, $Symbol = global.Symbol | ||
, $JSON = global.JSON | ||
, _stringify = $JSON && $JSON.stringify | ||
, PROTOTYPE = 'prototype' | ||
, HIDDEN = wks('_hidden') | ||
, TO_PRIMITIVE = wks('toPrimitive') | ||
, isEnum = {}.propertyIsEnumerable | ||
, SymbolRegistry = shared('symbol-registry') | ||
, AllSymbols = shared('symbols') | ||
, OPSymbols = shared('op-symbols') | ||
, ObjectProto = Object[PROTOTYPE] | ||
, USE_NATIVE = typeof $Symbol == 'function' | ||
, QObject = global.QObject; | ||
var global = __webpack_require__(0); | ||
var has = __webpack_require__(3); | ||
var DESCRIPTORS = __webpack_require__(2); | ||
var $export = __webpack_require__(9); | ||
var redefine = __webpack_require__(35); | ||
var META = __webpack_require__(68).KEY; | ||
var $fails = __webpack_require__(11); | ||
var shared = __webpack_require__(22); | ||
var setToStringTag = __webpack_require__(24); | ||
var uid = __webpack_require__(13); | ||
var wks = __webpack_require__(8); | ||
var wksExt = __webpack_require__(25); | ||
var wksDefine = __webpack_require__(26); | ||
var enumKeys = __webpack_require__(69); | ||
var isArray = __webpack_require__(70); | ||
var anObject = __webpack_require__(10); | ||
var isObject = __webpack_require__(6); | ||
var toIObject = __webpack_require__(7); | ||
var toPrimitive = __webpack_require__(14); | ||
var createDesc = __webpack_require__(12); | ||
var _create = __webpack_require__(19); | ||
var gOPNExt = __webpack_require__(71); | ||
var $GOPD = __webpack_require__(40); | ||
var $DP = __webpack_require__(1); | ||
var $keys = __webpack_require__(20); | ||
var gOPD = $GOPD.f; | ||
var dP = $DP.f; | ||
var gOPN = gOPNExt.f; | ||
var $Symbol = global.Symbol; | ||
var $JSON = global.JSON; | ||
var _stringify = $JSON && $JSON.stringify; | ||
var PROTOTYPE = 'prototype'; | ||
var HIDDEN = wks('_hidden'); | ||
var TO_PRIMITIVE = wks('toPrimitive'); | ||
var isEnum = {}.propertyIsEnumerable; | ||
var SymbolRegistry = shared('symbol-registry'); | ||
var AllSymbols = shared('symbols'); | ||
var OPSymbols = shared('op-symbols'); | ||
var ObjectProto = Object[PROTOTYPE]; | ||
var USE_NATIVE = typeof $Symbol == 'function'; | ||
var QObject = global.QObject; | ||
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 | ||
@@ -1350,14 +1491,14 @@ var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; | ||
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 | ||
var setSymbolDesc = DESCRIPTORS && $fails(function(){ | ||
var setSymbolDesc = DESCRIPTORS && $fails(function () { | ||
return _create(dP({}, 'a', { | ||
get: function(){ return dP(this, 'a', {value: 7}).a; } | ||
get: function () { return dP(this, 'a', { value: 7 }).a; } | ||
})).a != 7; | ||
}) ? function(it, key, D){ | ||
}) ? function (it, key, D) { | ||
var protoDesc = gOPD(ObjectProto, key); | ||
if(protoDesc)delete ObjectProto[key]; | ||
if (protoDesc) delete ObjectProto[key]; | ||
dP(it, key, D); | ||
if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc); | ||
if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); | ||
} : dP; | ||
var wrap = function(tag){ | ||
var wrap = function (tag) { | ||
var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); | ||
@@ -1368,65 +1509,65 @@ sym._k = tag; | ||
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){ | ||
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { | ||
return typeof it == 'symbol'; | ||
} : function(it){ | ||
} : function (it) { | ||
return it instanceof $Symbol; | ||
}; | ||
var $defineProperty = function defineProperty(it, key, D){ | ||
if(it === ObjectProto)$defineProperty(OPSymbols, key, D); | ||
var $defineProperty = function defineProperty(it, key, D) { | ||
if (it === ObjectProto) $defineProperty(OPSymbols, key, D); | ||
anObject(it); | ||
key = toPrimitive(key, true); | ||
anObject(D); | ||
if(has(AllSymbols, key)){ | ||
if(!D.enumerable){ | ||
if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {})); | ||
if (has(AllSymbols, key)) { | ||
if (!D.enumerable) { | ||
if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); | ||
it[HIDDEN][key] = true; | ||
} else { | ||
if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false; | ||
D = _create(D, {enumerable: createDesc(0, false)}); | ||
if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; | ||
D = _create(D, { enumerable: createDesc(0, false) }); | ||
} return setSymbolDesc(it, key, D); | ||
} return dP(it, key, D); | ||
}; | ||
var $defineProperties = function defineProperties(it, P){ | ||
var $defineProperties = function defineProperties(it, P) { | ||
anObject(it); | ||
var keys = enumKeys(P = toIObject(P)) | ||
, i = 0 | ||
, l = keys.length | ||
, key; | ||
while(l > i)$defineProperty(it, key = keys[i++], P[key]); | ||
var keys = enumKeys(P = toIObject(P)); | ||
var i = 0; | ||
var l = keys.length; | ||
var key; | ||
while (l > i) $defineProperty(it, key = keys[i++], P[key]); | ||
return it; | ||
}; | ||
var $create = function create(it, P){ | ||
var $create = function create(it, P) { | ||
return P === undefined ? _create(it) : $defineProperties(_create(it), P); | ||
}; | ||
var $propertyIsEnumerable = function propertyIsEnumerable(key){ | ||
var $propertyIsEnumerable = function propertyIsEnumerable(key) { | ||
var E = isEnum.call(this, key = toPrimitive(key, true)); | ||
if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false; | ||
if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; | ||
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; | ||
}; | ||
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){ | ||
it = toIObject(it); | ||
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { | ||
it = toIObject(it); | ||
key = toPrimitive(key, true); | ||
if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return; | ||
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; | ||
var D = gOPD(it, key); | ||
if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true; | ||
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; | ||
return D; | ||
}; | ||
var $getOwnPropertyNames = function getOwnPropertyNames(it){ | ||
var names = gOPN(toIObject(it)) | ||
, result = [] | ||
, i = 0 | ||
, key; | ||
while(names.length > i){ | ||
if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key); | ||
var $getOwnPropertyNames = function getOwnPropertyNames(it) { | ||
var names = gOPN(toIObject(it)); | ||
var result = []; | ||
var i = 0; | ||
var key; | ||
while (names.length > i) { | ||
if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); | ||
} return result; | ||
}; | ||
var $getOwnPropertySymbols = function getOwnPropertySymbols(it){ | ||
var IS_OP = it === ObjectProto | ||
, names = gOPN(IS_OP ? OPSymbols : toIObject(it)) | ||
, result = [] | ||
, i = 0 | ||
, key; | ||
while(names.length > i){ | ||
if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]); | ||
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { | ||
var IS_OP = it === ObjectProto; | ||
var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); | ||
var result = []; | ||
var i = 0; | ||
var key; | ||
while (names.length > i) { | ||
if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); | ||
} return result; | ||
@@ -1436,15 +1577,15 @@ }; | ||
// 19.4.1.1 Symbol([description]) | ||
if(!USE_NATIVE){ | ||
$Symbol = function Symbol(){ | ||
if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!'); | ||
if (!USE_NATIVE) { | ||
$Symbol = function Symbol() { | ||
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); | ||
var tag = uid(arguments.length > 0 ? arguments[0] : undefined); | ||
var $set = function(value){ | ||
if(this === ObjectProto)$set.call(OPSymbols, value); | ||
if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false; | ||
var $set = function (value) { | ||
if (this === ObjectProto) $set.call(OPSymbols, value); | ||
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; | ||
setSymbolDesc(this, tag, createDesc(1, value)); | ||
}; | ||
if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set}); | ||
if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); | ||
return wrap(tag); | ||
}; | ||
redefine($Symbol[PROTOTYPE], 'toString', function toString(){ | ||
redefine($Symbol[PROTOTYPE], 'toString', function toString() { | ||
return this._k; | ||
@@ -1454,28 +1595,28 @@ }); | ||
$GOPD.f = $getOwnPropertyDescriptor; | ||
$DP.f = $defineProperty; | ||
$DP.f = $defineProperty; | ||
__webpack_require__(39).f = gOPNExt.f = $getOwnPropertyNames; | ||
__webpack_require__(27).f = $propertyIsEnumerable; | ||
__webpack_require__(27).f = $propertyIsEnumerable; | ||
__webpack_require__(38).f = $getOwnPropertySymbols; | ||
if(DESCRIPTORS && !__webpack_require__(18)){ | ||
if (DESCRIPTORS && !__webpack_require__(17)) { | ||
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); | ||
} | ||
wksExt.f = function(name){ | ||
wksExt.f = function (name) { | ||
return wrap(wks(name)); | ||
} | ||
}; | ||
} | ||
$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol}); | ||
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); | ||
for(var symbols = ( | ||
for (var es6Symbols = ( | ||
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 | ||
'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' | ||
).split(','), i = 0; symbols.length > i; )wks(symbols[i++]); | ||
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); | ||
for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]); | ||
for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); | ||
$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { | ||
// 19.4.2.1 Symbol.for(key) | ||
'for': function(key){ | ||
'for': function (key) { | ||
return has(SymbolRegistry, key += '') | ||
@@ -1486,8 +1627,8 @@ ? SymbolRegistry[key] | ||
// 19.4.2.5 Symbol.keyFor(sym) | ||
keyFor: function keyFor(key){ | ||
if(isSymbol(key))return keyOf(SymbolRegistry, key); | ||
throw TypeError(key + ' is not a symbol!'); | ||
keyFor: function keyFor(sym) { | ||
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); | ||
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; | ||
}, | ||
useSetter: function(){ setter = true; }, | ||
useSimple: function(){ setter = false; } | ||
useSetter: function () { setter = true; }, | ||
useSimple: function () { setter = false; } | ||
}); | ||
@@ -1511,3 +1652,3 @@ | ||
// 24.3.2 JSON.stringify(value [, replacer [, space]]) | ||
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){ | ||
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { | ||
var S = $Symbol(); | ||
@@ -1517,15 +1658,14 @@ // MS Edge converts symbol values to JSON as {} | ||
// V8 throws on boxed symbols | ||
return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}'; | ||
return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; | ||
})), 'JSON', { | ||
stringify: function stringify(it){ | ||
if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined | ||
var args = [it] | ||
, i = 1 | ||
, replacer, $replacer; | ||
while(arguments.length > i)args.push(arguments[i++]); | ||
replacer = args[1]; | ||
if(typeof replacer == 'function')$replacer = replacer; | ||
if($replacer || !isArray(replacer))replacer = function(key, value){ | ||
if($replacer)value = $replacer.call(this, key, value); | ||
if(!isSymbol(value))return value; | ||
stringify: function stringify(it) { | ||
var args = [it]; | ||
var i = 1; | ||
var replacer, $replacer; | ||
while (arguments.length > i) args.push(arguments[i++]); | ||
$replacer = replacer = args[1]; | ||
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined | ||
if (!isArray(replacer)) replacer = function (key, value) { | ||
if (typeof $replacer == 'function') value = $replacer.call(this, key, value); | ||
if (!isSymbol(value)) return value; | ||
}; | ||
@@ -1538,3 +1678,3 @@ args[1] = replacer; | ||
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) | ||
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(6)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); | ||
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(5)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); | ||
// 19.4.3.5 Symbol.prototype[@@toStringTag] | ||
@@ -1547,2 +1687,3 @@ setToStringTag($Symbol, 'Symbol'); | ||
/***/ }), | ||
@@ -1552,27 +1693,27 @@ /* 68 */ | ||
var META = __webpack_require__(14)('meta') | ||
, isObject = __webpack_require__(10) | ||
, has = __webpack_require__(3) | ||
, setDesc = __webpack_require__(1).f | ||
, id = 0; | ||
var isExtensible = Object.isExtensible || function(){ | ||
var META = __webpack_require__(13)('meta'); | ||
var isObject = __webpack_require__(6); | ||
var has = __webpack_require__(3); | ||
var setDesc = __webpack_require__(1).f; | ||
var id = 0; | ||
var isExtensible = Object.isExtensible || function () { | ||
return true; | ||
}; | ||
var FREEZE = !__webpack_require__(11)(function(){ | ||
var FREEZE = !__webpack_require__(11)(function () { | ||
return isExtensible(Object.preventExtensions({})); | ||
}); | ||
var setMeta = function(it){ | ||
setDesc(it, META, {value: { | ||
var setMeta = function (it) { | ||
setDesc(it, META, { value: { | ||
i: 'O' + ++id, // object ID | ||
w: {} // weak collections IDs | ||
}}); | ||
} }); | ||
}; | ||
var fastKey = function(it, create){ | ||
var fastKey = function (it, create) { | ||
// return primitive with prefix | ||
if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; | ||
if(!has(it, META)){ | ||
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; | ||
if (!has(it, META)) { | ||
// can't set metadata to uncaught frozen object | ||
if(!isExtensible(it))return 'F'; | ||
if (!isExtensible(it)) return 'F'; | ||
// not necessary to add metadata | ||
if(!create)return 'E'; | ||
if (!create) return 'E'; | ||
// add missing metadata | ||
@@ -1583,8 +1724,8 @@ setMeta(it); | ||
}; | ||
var getWeak = function(it, create){ | ||
if(!has(it, META)){ | ||
var getWeak = function (it, create) { | ||
if (!has(it, META)) { | ||
// can't set metadata to uncaught frozen object | ||
if(!isExtensible(it))return true; | ||
if (!isExtensible(it)) return true; | ||
// not necessary to add metadata | ||
if(!create)return false; | ||
if (!create) return false; | ||
// add missing metadata | ||
@@ -1596,14 +1737,15 @@ setMeta(it); | ||
// add metadata on freeze-family methods calling | ||
var onFreeze = function(it){ | ||
if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it); | ||
var onFreeze = function (it) { | ||
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); | ||
return it; | ||
}; | ||
var meta = module.exports = { | ||
KEY: META, | ||
NEED: false, | ||
fastKey: fastKey, | ||
getWeak: getWeak, | ||
KEY: META, | ||
NEED: false, | ||
fastKey: fastKey, | ||
getWeak: getWeak, | ||
onFreeze: onFreeze | ||
}; | ||
/***/ }), | ||
@@ -1613,35 +1755,21 @@ /* 69 */ | ||
var getKeys = __webpack_require__(13) | ||
, toIObject = __webpack_require__(4); | ||
module.exports = function(object, el){ | ||
var O = toIObject(object) | ||
, keys = getKeys(O) | ||
, length = keys.length | ||
, index = 0 | ||
, key; | ||
while(length > index)if(O[key = keys[index++]] === el)return key; | ||
}; | ||
/***/ }), | ||
/* 70 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// all enumerable object keys, includes symbols | ||
var getKeys = __webpack_require__(13) | ||
, gOPS = __webpack_require__(38) | ||
, pIE = __webpack_require__(27); | ||
module.exports = function(it){ | ||
var result = getKeys(it) | ||
, getSymbols = gOPS.f; | ||
if(getSymbols){ | ||
var symbols = getSymbols(it) | ||
, isEnum = pIE.f | ||
, i = 0 | ||
, key; | ||
while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key); | ||
var getKeys = __webpack_require__(20); | ||
var gOPS = __webpack_require__(38); | ||
var pIE = __webpack_require__(27); | ||
module.exports = function (it) { | ||
var result = getKeys(it); | ||
var getSymbols = gOPS.f; | ||
if (getSymbols) { | ||
var symbols = getSymbols(it); | ||
var isEnum = pIE.f; | ||
var i = 0; | ||
var key; | ||
while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); | ||
} return result; | ||
}; | ||
/***/ }), | ||
/* 71 */ | ||
/* 70 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1651,14 +1779,15 @@ | ||
var cof = __webpack_require__(37); | ||
module.exports = Array.isArray || function isArray(arg){ | ||
module.exports = Array.isArray || function isArray(arg) { | ||
return cof(arg) == 'Array'; | ||
}; | ||
/***/ }), | ||
/* 72 */ | ||
/* 71 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window | ||
var toIObject = __webpack_require__(4) | ||
, gOPN = __webpack_require__(39).f | ||
, toString = {}.toString; | ||
var toIObject = __webpack_require__(7); | ||
var gOPN = __webpack_require__(39).f; | ||
var toString = {}.toString; | ||
@@ -1668,6 +1797,6 @@ var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames | ||
var getWindowNames = function(it){ | ||
var getWindowNames = function (it) { | ||
try { | ||
return gOPN(it); | ||
} catch(e){ | ||
} catch (e) { | ||
return windowNames.slice(); | ||
@@ -1677,3 +1806,3 @@ } | ||
module.exports.f = function getOwnPropertyNames(it){ | ||
module.exports.f = function getOwnPropertyNames(it) { | ||
return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); | ||
@@ -1684,3 +1813,3 @@ }; | ||
/***/ }), | ||
/* 73 */ | ||
/* 72 */ | ||
/***/ (function(module, exports) { | ||
@@ -1691,3 +1820,3 @@ | ||
/***/ }), | ||
/* 74 */ | ||
/* 73 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1697,4 +1826,5 @@ | ||
/***/ }), | ||
/* 75 */ | ||
/* 74 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1704,4 +1834,5 @@ | ||
/***/ }), | ||
/* 76 */ | ||
/* 75 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1714,7 +1845,7 @@ | ||
var _setPrototypeOf = __webpack_require__(77); | ||
var _setPrototypeOf = __webpack_require__(76); | ||
var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); | ||
var _create = __webpack_require__(81); | ||
var _create = __webpack_require__(80); | ||
@@ -1746,24 +1877,26 @@ var _create2 = _interopRequireDefault(_create); | ||
/***/ }), | ||
/* 77 */ | ||
/* 76 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = { "default": __webpack_require__(78), __esModule: true }; | ||
module.exports = { "default": __webpack_require__(77), __esModule: true }; | ||
/***/ }), | ||
/* 78 */ | ||
/* 77 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(79); | ||
module.exports = __webpack_require__(5).Object.setPrototypeOf; | ||
__webpack_require__(78); | ||
module.exports = __webpack_require__(4).Object.setPrototypeOf; | ||
/***/ }), | ||
/* 79 */ | ||
/* 78 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 19.1.3.19 Object.setPrototypeOf(O, proto) | ||
var $export = __webpack_require__(8); | ||
$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(80).set}); | ||
var $export = __webpack_require__(9); | ||
$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(79).set }); | ||
/***/ }), | ||
/* 80 */ | ||
/* 79 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1773,11 +1906,11 @@ | ||
/* eslint-disable no-proto */ | ||
var isObject = __webpack_require__(10) | ||
, anObject = __webpack_require__(9); | ||
var check = function(O, proto){ | ||
var isObject = __webpack_require__(6); | ||
var anObject = __webpack_require__(10); | ||
var check = function (O, proto) { | ||
anObject(O); | ||
if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!"); | ||
if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); | ||
}; | ||
module.exports = { | ||
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line | ||
function(test, buggy, set){ | ||
function (test, buggy, set) { | ||
try { | ||
@@ -1787,6 +1920,6 @@ set = __webpack_require__(30)(Function.call, __webpack_require__(40).f(Object.prototype, '__proto__').set, 2); | ||
buggy = !(test instanceof Array); | ||
} catch(e){ buggy = true; } | ||
return function setPrototypeOf(O, proto){ | ||
} catch (e) { buggy = true; } | ||
return function setPrototypeOf(O, proto) { | ||
check(O, proto); | ||
if(buggy)O.__proto__ = proto; | ||
if (buggy) O.__proto__ = proto; | ||
else set(O, proto); | ||
@@ -1799,28 +1932,31 @@ return O; | ||
/***/ }), | ||
/* 81 */ | ||
/* 80 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = { "default": __webpack_require__(82), __esModule: true }; | ||
module.exports = { "default": __webpack_require__(81), __esModule: true }; | ||
/***/ }), | ||
/* 82 */ | ||
/* 81 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(83); | ||
var $Object = __webpack_require__(5).Object; | ||
module.exports = function create(P, D){ | ||
__webpack_require__(82); | ||
var $Object = __webpack_require__(4).Object; | ||
module.exports = function create(P, D) { | ||
return $Object.create(P, D); | ||
}; | ||
/***/ }), | ||
/* 83 */ | ||
/* 82 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var $export = __webpack_require__(8) | ||
var $export = __webpack_require__(9); | ||
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | ||
$export($export.S, 'Object', {create: __webpack_require__(20)}); | ||
$export($export.S, 'Object', { create: __webpack_require__(19) }); | ||
/***/ }), | ||
/* 84 */ | ||
/* 83 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1835,3 +1971,3 @@ | ||
var _AbstractPlugin = __webpack_require__(85); | ||
var _AbstractPlugin = __webpack_require__(84); | ||
@@ -1845,3 +1981,3 @@ var _AbstractPlugin2 = _interopRequireDefault(_AbstractPlugin); | ||
/***/ }), | ||
/* 85 */ | ||
/* 84 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1848,0 +1984,0 @@ |
661
lib/utils.js
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
root["utils"] = factory(); | ||
})(this, function() { | ||
})(typeof self !== 'undefined' ? self : this, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -81,8 +81,8 @@ /******/ // The module cache | ||
var store = __webpack_require__(21)('wks') | ||
, uid = __webpack_require__(22) | ||
, Symbol = __webpack_require__(1).Symbol | ||
, USE_SYMBOL = typeof Symbol == 'function'; | ||
var store = __webpack_require__(21)('wks'); | ||
var uid = __webpack_require__(22); | ||
var Symbol = __webpack_require__(1).Symbol; | ||
var USE_SYMBOL = typeof Symbol == 'function'; | ||
var $exports = module.exports = function(name){ | ||
var $exports = module.exports = function (name) { | ||
return store[name] || (store[name] = | ||
@@ -94,2 +94,3 @@ USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | ||
/***/ }), | ||
@@ -101,5 +102,8 @@ /* 1 */ | ||
var global = module.exports = typeof window != 'undefined' && window.Math == Math | ||
? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); | ||
if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef | ||
? window : typeof self != 'undefined' && self.Math == Math ? self | ||
// eslint-disable-next-line no-new-func | ||
: Function('return this')(); | ||
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | ||
/***/ }), | ||
@@ -109,7 +113,7 @@ /* 2 */ | ||
var dP = __webpack_require__(3) | ||
, createDesc = __webpack_require__(11); | ||
module.exports = __webpack_require__(5) ? function(object, key, value){ | ||
var dP = __webpack_require__(3); | ||
var createDesc = __webpack_require__(11); | ||
module.exports = __webpack_require__(5) ? function (object, key, value) { | ||
return dP.f(object, key, createDesc(1, value)); | ||
} : function(object, key, value){ | ||
} : function (object, key, value) { | ||
object[key] = value; | ||
@@ -119,2 +123,3 @@ return object; | ||
/***/ }), | ||
@@ -124,19 +129,20 @@ /* 3 */ | ||
var anObject = __webpack_require__(4) | ||
, IE8_DOM_DEFINE = __webpack_require__(37) | ||
, toPrimitive = __webpack_require__(38) | ||
, dP = Object.defineProperty; | ||
var anObject = __webpack_require__(4); | ||
var IE8_DOM_DEFINE = __webpack_require__(37); | ||
var toPrimitive = __webpack_require__(38); | ||
var dP = Object.defineProperty; | ||
exports.f = __webpack_require__(5) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | ||
exports.f = __webpack_require__(5) ? Object.defineProperty : function defineProperty(O, P, Attributes) { | ||
anObject(O); | ||
P = toPrimitive(P, true); | ||
anObject(Attributes); | ||
if(IE8_DOM_DEFINE)try { | ||
if (IE8_DOM_DEFINE) try { | ||
return dP(O, P, Attributes); | ||
} catch(e){ /* empty */ } | ||
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); | ||
if('value' in Attributes)O[P] = Attributes.value; | ||
} catch (e) { /* empty */ } | ||
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | ||
if ('value' in Attributes) O[P] = Attributes.value; | ||
return O; | ||
}; | ||
/***/ }), | ||
@@ -147,7 +153,8 @@ /* 4 */ | ||
var isObject = __webpack_require__(10); | ||
module.exports = function(it){ | ||
if(!isObject(it))throw TypeError(it + ' is not an object!'); | ||
module.exports = function (it) { | ||
if (!isObject(it)) throw TypeError(it + ' is not an object!'); | ||
return it; | ||
}; | ||
/***/ }), | ||
@@ -158,6 +165,7 @@ /* 5 */ | ||
// Thank's IE8 for his funny defineProperty | ||
module.exports = !__webpack_require__(16)(function(){ | ||
return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; | ||
module.exports = !__webpack_require__(16)(function () { | ||
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | ||
}); | ||
/***/ }), | ||
@@ -168,6 +176,7 @@ /* 6 */ | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
module.exports = function(it, key){ | ||
module.exports = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
}; | ||
/***/ }), | ||
@@ -178,8 +187,9 @@ /* 7 */ | ||
// 7.1.4 ToInteger | ||
var ceil = Math.ceil | ||
, floor = Math.floor; | ||
module.exports = function(it){ | ||
var ceil = Math.ceil; | ||
var floor = Math.floor; | ||
module.exports = function (it) { | ||
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | ||
}; | ||
/***/ }), | ||
@@ -190,7 +200,8 @@ /* 8 */ | ||
// 7.2.1 RequireObjectCoercible(argument) | ||
module.exports = function(it){ | ||
if(it == undefined)throw TypeError("Can't call method on " + it); | ||
module.exports = function (it) { | ||
if (it == undefined) throw TypeError("Can't call method on " + it); | ||
return it; | ||
}; | ||
/***/ }), | ||
@@ -200,5 +211,6 @@ /* 9 */ | ||
var core = module.exports = {version: '2.4.0'}; | ||
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef | ||
var core = module.exports = { version: '2.5.3' }; | ||
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | ||
/***/ }), | ||
@@ -208,6 +220,7 @@ /* 10 */ | ||
module.exports = function(it){ | ||
module.exports = function (it) { | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
/***/ }), | ||
@@ -217,11 +230,12 @@ /* 11 */ | ||
module.exports = function(bitmap, value){ | ||
module.exports = function (bitmap, value) { | ||
return { | ||
enumerable : !(bitmap & 1), | ||
enumerable: !(bitmap & 1), | ||
configurable: !(bitmap & 2), | ||
writable : !(bitmap & 4), | ||
value : value | ||
writable: !(bitmap & 4), | ||
value: value | ||
}; | ||
}; | ||
/***/ }), | ||
@@ -233,2 +247,3 @@ /* 12 */ | ||
/***/ }), | ||
@@ -238,8 +253,9 @@ /* 13 */ | ||
var shared = __webpack_require__(21)('keys') | ||
, uid = __webpack_require__(22); | ||
module.exports = function(key){ | ||
var shared = __webpack_require__(21)('keys'); | ||
var uid = __webpack_require__(22); | ||
module.exports = function (key) { | ||
return shared[key] || (shared[key] = uid(key)); | ||
}; | ||
/***/ }), | ||
@@ -249,24 +265,24 @@ /* 14 */ | ||
var global = __webpack_require__(1) | ||
, core = __webpack_require__(9) | ||
, ctx = __webpack_require__(15) | ||
, hide = __webpack_require__(2) | ||
, PROTOTYPE = 'prototype'; | ||
var global = __webpack_require__(1); | ||
var core = __webpack_require__(9); | ||
var ctx = __webpack_require__(15); | ||
var hide = __webpack_require__(2); | ||
var PROTOTYPE = 'prototype'; | ||
var $export = function(type, name, source){ | ||
var IS_FORCED = type & $export.F | ||
, IS_GLOBAL = type & $export.G | ||
, IS_STATIC = type & $export.S | ||
, IS_PROTO = type & $export.P | ||
, IS_BIND = type & $export.B | ||
, IS_WRAP = type & $export.W | ||
, exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) | ||
, expProto = exports[PROTOTYPE] | ||
, target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE] | ||
, key, own, out; | ||
if(IS_GLOBAL)source = name; | ||
for(key in source){ | ||
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 && key in exports)continue; | ||
if (own && key in exports) continue; | ||
// export native or passed | ||
@@ -279,7 +295,7 @@ out = own ? target[key] : source[key]; | ||
// 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; | ||
: 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); | ||
@@ -295,6 +311,6 @@ case 2: return new C(a, b); | ||
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME% | ||
if(IS_PROTO){ | ||
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); | ||
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); | ||
} | ||
@@ -311,5 +327,6 @@ } | ||
$export.U = 64; // safe | ||
$export.R = 128; // real proto method for `library` | ||
$export.R = 128; // real proto method for `library` | ||
module.exports = $export; | ||
/***/ }), | ||
@@ -321,17 +338,17 @@ /* 15 */ | ||
var aFunction = __webpack_require__(36); | ||
module.exports = function(fn, that, length){ | ||
module.exports = function (fn, that, length) { | ||
aFunction(fn); | ||
if(that === undefined)return fn; | ||
switch(length){ | ||
case 1: return function(a){ | ||
if (that === undefined) return fn; | ||
switch (length) { | ||
case 1: return function (a) { | ||
return fn.call(that, a); | ||
}; | ||
case 2: return function(a, b){ | ||
case 2: return function (a, b) { | ||
return fn.call(that, a, b); | ||
}; | ||
case 3: return function(a, b, c){ | ||
case 3: return function (a, b, c) { | ||
return fn.call(that, a, b, c); | ||
}; | ||
} | ||
return function(/* ...args */){ | ||
return function (/* ...args */) { | ||
return fn.apply(that, arguments); | ||
@@ -341,2 +358,3 @@ }; | ||
/***/ }), | ||
@@ -346,6 +364,6 @@ /* 16 */ | ||
module.exports = function(exec){ | ||
module.exports = function (exec) { | ||
try { | ||
return !!exec(); | ||
} catch(e){ | ||
} catch (e) { | ||
return true; | ||
@@ -355,2 +373,3 @@ } | ||
/***/ }), | ||
@@ -360,10 +379,11 @@ /* 17 */ | ||
var isObject = __webpack_require__(10) | ||
, document = __webpack_require__(1).document | ||
// in old IE typeof document.createElement is 'object' | ||
, is = isObject(document) && isObject(document.createElement); | ||
module.exports = function(it){ | ||
var isObject = __webpack_require__(10); | ||
var document = __webpack_require__(1).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) : {}; | ||
}; | ||
/***/ }), | ||
@@ -374,8 +394,9 @@ /* 18 */ | ||
// to indexed object, toObject with fallback for non-array-like ES3 strings | ||
var IObject = __webpack_require__(45) | ||
, defined = __webpack_require__(8); | ||
module.exports = function(it){ | ||
var IObject = __webpack_require__(45); | ||
var defined = __webpack_require__(8); | ||
module.exports = function (it) { | ||
return IObject(defined(it)); | ||
}; | ||
/***/ }), | ||
@@ -387,6 +408,7 @@ /* 19 */ | ||
module.exports = function(it){ | ||
module.exports = function (it) { | ||
return toString.call(it).slice(8, -1); | ||
}; | ||
/***/ }), | ||
@@ -397,8 +419,9 @@ /* 20 */ | ||
// 7.1.15 ToLength | ||
var toInteger = __webpack_require__(7) | ||
, min = Math.min; | ||
module.exports = function(it){ | ||
var toInteger = __webpack_require__(7); | ||
var min = Math.min; | ||
module.exports = function (it) { | ||
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | ||
}; | ||
/***/ }), | ||
@@ -408,9 +431,10 @@ /* 21 */ | ||
var global = __webpack_require__(1) | ||
, SHARED = '__core-js_shared__' | ||
, store = global[SHARED] || (global[SHARED] = {}); | ||
module.exports = function(key){ | ||
var global = __webpack_require__(1); | ||
var SHARED = '__core-js_shared__'; | ||
var store = global[SHARED] || (global[SHARED] = {}); | ||
module.exports = function (key) { | ||
return store[key] || (store[key] = {}); | ||
}; | ||
/***/ }), | ||
@@ -420,8 +444,9 @@ /* 22 */ | ||
var id = 0 | ||
, px = Math.random(); | ||
module.exports = function(key){ | ||
var id = 0; | ||
var px = Math.random(); | ||
module.exports = function (key) { | ||
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | ||
}; | ||
/***/ }), | ||
@@ -436,2 +461,3 @@ /* 23 */ | ||
/***/ }), | ||
@@ -441,10 +467,11 @@ /* 24 */ | ||
var def = __webpack_require__(3).f | ||
, has = __webpack_require__(6) | ||
, TAG = __webpack_require__(0)('toStringTag'); | ||
var def = __webpack_require__(3).f; | ||
var has = __webpack_require__(6); | ||
var TAG = __webpack_require__(0)('toStringTag'); | ||
module.exports = function(it, tag, stat){ | ||
if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag}); | ||
module.exports = function (it, tag, stat) { | ||
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | ||
}; | ||
/***/ }), | ||
@@ -456,6 +483,7 @@ /* 25 */ | ||
var defined = __webpack_require__(8); | ||
module.exports = function(it){ | ||
module.exports = function (it) { | ||
return Object(defined(it)); | ||
}; | ||
/***/ }), | ||
@@ -615,2 +643,3 @@ /* 26 */ | ||
/***/ }), | ||
@@ -622,19 +651,20 @@ /* 32 */ | ||
var $at = __webpack_require__(33)(true); | ||
var $at = __webpack_require__(33)(true); | ||
// 21.1.3.27 String.prototype[@@iterator]() | ||
__webpack_require__(34)(String, 'String', function(iterated){ | ||
__webpack_require__(34)(String, 'String', function (iterated) { | ||
this._t = String(iterated); // target | ||
this._i = 0; // next index | ||
// 21.1.5.2.1 %StringIteratorPrototype%.next() | ||
}, function(){ | ||
var O = this._t | ||
, index = this._i | ||
, point; | ||
if(index >= O.length)return {value: undefined, done: true}; | ||
}, function () { | ||
var O = this._t; | ||
var index = this._i; | ||
var point; | ||
if (index >= O.length) return { value: undefined, done: true }; | ||
point = $at(O, index); | ||
this._i += point.length; | ||
return {value: point, done: false}; | ||
return { value: point, done: false }; | ||
}); | ||
/***/ }), | ||
@@ -644,13 +674,13 @@ /* 33 */ | ||
var toInteger = __webpack_require__(7) | ||
, defined = __webpack_require__(8); | ||
var toInteger = __webpack_require__(7); | ||
var defined = __webpack_require__(8); | ||
// true -> String#at | ||
// false -> String#codePointAt | ||
module.exports = function(TO_STRING){ | ||
return function(that, pos){ | ||
var s = String(defined(that)) | ||
, i = toInteger(pos) | ||
, l = s.length | ||
, a, b; | ||
if(i < 0 || i >= l)return TO_STRING ? '' : undefined; | ||
module.exports = function (TO_STRING) { | ||
return function (that, pos) { | ||
var s = String(defined(that)); | ||
var i = toInteger(pos); | ||
var l = s.length; | ||
var a, b; | ||
if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | ||
a = s.charCodeAt(i); | ||
@@ -663,2 +693,3 @@ return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | ||
/***/ }), | ||
@@ -670,54 +701,54 @@ /* 34 */ | ||
var LIBRARY = __webpack_require__(35) | ||
, $export = __webpack_require__(14) | ||
, redefine = __webpack_require__(39) | ||
, hide = __webpack_require__(2) | ||
, has = __webpack_require__(6) | ||
, Iterators = __webpack_require__(12) | ||
, $iterCreate = __webpack_require__(40) | ||
, setToStringTag = __webpack_require__(24) | ||
, getPrototypeOf = __webpack_require__(49) | ||
, ITERATOR = __webpack_require__(0)('iterator') | ||
, BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next` | ||
, FF_ITERATOR = '@@iterator' | ||
, KEYS = 'keys' | ||
, VALUES = 'values'; | ||
var LIBRARY = __webpack_require__(35); | ||
var $export = __webpack_require__(14); | ||
var redefine = __webpack_require__(39); | ||
var hide = __webpack_require__(2); | ||
var has = __webpack_require__(6); | ||
var Iterators = __webpack_require__(12); | ||
var $iterCreate = __webpack_require__(40); | ||
var setToStringTag = __webpack_require__(24); | ||
var getPrototypeOf = __webpack_require__(49); | ||
var ITERATOR = __webpack_require__(0)('iterator'); | ||
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | ||
var FF_ITERATOR = '@@iterator'; | ||
var KEYS = 'keys'; | ||
var VALUES = 'values'; | ||
var returnThis = function(){ return this; }; | ||
var returnThis = function () { return this; }; | ||
module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){ | ||
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | ||
$iterCreate(Constructor, NAME, next); | ||
var getMethod = function(kind){ | ||
if(!BUGGY && kind in proto)return proto[kind]; | ||
switch(kind){ | ||
case KEYS: return function keys(){ return new Constructor(this, kind); }; | ||
case VALUES: return function values(){ return new Constructor(this, kind); }; | ||
} return function entries(){ return new Constructor(this, kind); }; | ||
var getMethod = function (kind) { | ||
if (!BUGGY && kind in proto) return proto[kind]; | ||
switch (kind) { | ||
case KEYS: return function keys() { return new Constructor(this, kind); }; | ||
case VALUES: return function values() { return new Constructor(this, kind); }; | ||
} return function entries() { return new Constructor(this, kind); }; | ||
}; | ||
var TAG = NAME + ' Iterator' | ||
, DEF_VALUES = DEFAULT == VALUES | ||
, VALUES_BUG = false | ||
, proto = Base.prototype | ||
, $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT] | ||
, $default = $native || getMethod(DEFAULT) | ||
, $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined | ||
, $anyNative = NAME == 'Array' ? proto.entries || $native : $native | ||
, methods, key, IteratorPrototype; | ||
var TAG = NAME + ' Iterator'; | ||
var DEF_VALUES = DEFAULT == VALUES; | ||
var VALUES_BUG = false; | ||
var proto = Base.prototype; | ||
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | ||
var $default = (!BUGGY && $native) || getMethod(DEFAULT); | ||
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | ||
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | ||
var methods, key, IteratorPrototype; | ||
// Fix native | ||
if($anyNative){ | ||
IteratorPrototype = getPrototypeOf($anyNative.call(new Base)); | ||
if(IteratorPrototype !== Object.prototype){ | ||
if ($anyNative) { | ||
IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | ||
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | ||
// Set @@toStringTag to native iterators | ||
setToStringTag(IteratorPrototype, TAG, true); | ||
// fix for some old engines | ||
if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis); | ||
if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); | ||
} | ||
} | ||
// fix Array#{values, @@iterator}.name in V8 / FF | ||
if(DEF_VALUES && $native && $native.name !== VALUES){ | ||
if (DEF_VALUES && $native && $native.name !== VALUES) { | ||
VALUES_BUG = true; | ||
$default = function values(){ return $native.call(this); }; | ||
$default = function values() { return $native.call(this); }; | ||
} | ||
// Define iterator | ||
if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){ | ||
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | ||
hide(proto, ITERATOR, $default); | ||
@@ -727,11 +758,11 @@ } | ||
Iterators[NAME] = $default; | ||
Iterators[TAG] = returnThis; | ||
if(DEFAULT){ | ||
Iterators[TAG] = returnThis; | ||
if (DEFAULT) { | ||
methods = { | ||
values: DEF_VALUES ? $default : getMethod(VALUES), | ||
keys: IS_SET ? $default : getMethod(KEYS), | ||
values: DEF_VALUES ? $default : getMethod(VALUES), | ||
keys: IS_SET ? $default : getMethod(KEYS), | ||
entries: $entries | ||
}; | ||
if(FORCED)for(key in methods){ | ||
if(!(key in proto))redefine(proto, key, methods[key]); | ||
if (FORCED) for (key in methods) { | ||
if (!(key in proto)) redefine(proto, key, methods[key]); | ||
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | ||
@@ -742,2 +773,3 @@ } | ||
/***/ }), | ||
@@ -749,2 +781,3 @@ /* 35 */ | ||
/***/ }), | ||
@@ -754,7 +787,8 @@ /* 36 */ | ||
module.exports = function(it){ | ||
if(typeof it != 'function')throw TypeError(it + ' is not a function!'); | ||
module.exports = function (it) { | ||
if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | ||
return it; | ||
}; | ||
/***/ }), | ||
@@ -764,6 +798,7 @@ /* 37 */ | ||
module.exports = !__webpack_require__(5) && !__webpack_require__(16)(function(){ | ||
return Object.defineProperty(__webpack_require__(17)('div'), 'a', {get: function(){ return 7; }}).a != 7; | ||
module.exports = !__webpack_require__(5) && !__webpack_require__(16)(function () { | ||
return Object.defineProperty(__webpack_require__(17)('div'), 'a', { get: function () { return 7; } }).a != 7; | ||
}); | ||
/***/ }), | ||
@@ -777,11 +812,12 @@ /* 38 */ | ||
// and the second argument - flag - preferred type is a string | ||
module.exports = function(it, S){ | ||
if(!isObject(it))return it; | ||
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; | ||
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"); | ||
}; | ||
/***/ }), | ||
@@ -793,2 +829,3 @@ /* 39 */ | ||
/***/ }), | ||
@@ -800,15 +837,16 @@ /* 40 */ | ||
var create = __webpack_require__(41) | ||
, descriptor = __webpack_require__(11) | ||
, setToStringTag = __webpack_require__(24) | ||
, IteratorPrototype = {}; | ||
var create = __webpack_require__(41); | ||
var descriptor = __webpack_require__(11); | ||
var setToStringTag = __webpack_require__(24); | ||
var IteratorPrototype = {}; | ||
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | ||
__webpack_require__(2)(IteratorPrototype, __webpack_require__(0)('iterator'), function(){ return this; }); | ||
__webpack_require__(2)(IteratorPrototype, __webpack_require__(0)('iterator'), function () { return this; }); | ||
module.exports = function(Constructor, NAME, next){ | ||
Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)}); | ||
module.exports = function (Constructor, NAME, next) { | ||
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | ||
setToStringTag(Constructor, NAME + ' Iterator'); | ||
}; | ||
/***/ }), | ||
@@ -819,17 +857,17 @@ /* 41 */ | ||
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | ||
var anObject = __webpack_require__(4) | ||
, dPs = __webpack_require__(42) | ||
, enumBugKeys = __webpack_require__(23) | ||
, IE_PROTO = __webpack_require__(13)('IE_PROTO') | ||
, Empty = function(){ /* empty */ } | ||
, PROTOTYPE = 'prototype'; | ||
var anObject = __webpack_require__(4); | ||
var dPs = __webpack_require__(42); | ||
var enumBugKeys = __webpack_require__(23); | ||
var IE_PROTO = __webpack_require__(13)('IE_PROTO'); | ||
var Empty = function () { /* empty */ }; | ||
var PROTOTYPE = 'prototype'; | ||
// Create object with fake `null` prototype: use iframe Object with cleared prototype | ||
var createDict = function(){ | ||
var createDict = function () { | ||
// Thrash, waste and sodomy: IE GC bug | ||
var iframe = __webpack_require__(17)('iframe') | ||
, i = enumBugKeys.length | ||
, lt = '<' | ||
, gt = '>' | ||
, iframeDocument; | ||
var iframe = __webpack_require__(17)('iframe'); | ||
var i = enumBugKeys.length; | ||
var lt = '<'; | ||
var gt = '>'; | ||
var iframeDocument; | ||
iframe.style.display = 'none'; | ||
@@ -845,11 +883,11 @@ __webpack_require__(48).appendChild(iframe); | ||
createDict = iframeDocument.F; | ||
while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]]; | ||
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | ||
return createDict(); | ||
}; | ||
module.exports = Object.create || function create(O, Properties){ | ||
module.exports = Object.create || function create(O, Properties) { | ||
var result; | ||
if(O !== null){ | ||
if (O !== null) { | ||
Empty[PROTOTYPE] = anObject(O); | ||
result = new Empty; | ||
result = new Empty(); | ||
Empty[PROTOTYPE] = null; | ||
@@ -867,16 +905,17 @@ // add "__proto__" for Object.getPrototypeOf polyfill | ||
var dP = __webpack_require__(3) | ||
, anObject = __webpack_require__(4) | ||
, getKeys = __webpack_require__(43); | ||
var dP = __webpack_require__(3); | ||
var anObject = __webpack_require__(4); | ||
var getKeys = __webpack_require__(43); | ||
module.exports = __webpack_require__(5) ? Object.defineProperties : function defineProperties(O, Properties){ | ||
module.exports = __webpack_require__(5) ? Object.defineProperties : function defineProperties(O, Properties) { | ||
anObject(O); | ||
var keys = getKeys(Properties) | ||
, length = keys.length | ||
, i = 0 | ||
, P; | ||
while(length > i)dP.f(O, P = keys[i++], Properties[P]); | ||
var keys = getKeys(Properties); | ||
var length = keys.length; | ||
var i = 0; | ||
var P; | ||
while (length > i) dP.f(O, P = keys[i++], Properties[P]); | ||
return O; | ||
}; | ||
/***/ }), | ||
@@ -887,9 +926,10 @@ /* 43 */ | ||
// 19.1.2.14 / 15.2.3.14 Object.keys(O) | ||
var $keys = __webpack_require__(44) | ||
, enumBugKeys = __webpack_require__(23); | ||
var $keys = __webpack_require__(44); | ||
var enumBugKeys = __webpack_require__(23); | ||
module.exports = Object.keys || function keys(O){ | ||
module.exports = Object.keys || function keys(O) { | ||
return $keys(O, enumBugKeys); | ||
}; | ||
/***/ }), | ||
@@ -899,15 +939,15 @@ /* 44 */ | ||
var has = __webpack_require__(6) | ||
, toIObject = __webpack_require__(18) | ||
, arrayIndexOf = __webpack_require__(46)(false) | ||
, IE_PROTO = __webpack_require__(13)('IE_PROTO'); | ||
var has = __webpack_require__(6); | ||
var toIObject = __webpack_require__(18); | ||
var arrayIndexOf = __webpack_require__(46)(false); | ||
var IE_PROTO = __webpack_require__(13)('IE_PROTO'); | ||
module.exports = function(object, names){ | ||
var O = toIObject(object) | ||
, i = 0 | ||
, result = [] | ||
, key; | ||
for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key); | ||
module.exports = function (object, names) { | ||
var O = toIObject(object); | ||
var i = 0; | ||
var result = []; | ||
var key; | ||
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | ||
// Don't enum bug & hidden keys | ||
while(names.length > i)if(has(O, key = names[i++])){ | ||
while (names.length > i) if (has(O, key = names[i++])) { | ||
~arrayIndexOf(result, key) || result.push(key); | ||
@@ -918,2 +958,3 @@ } | ||
/***/ }), | ||
@@ -925,6 +966,8 @@ /* 45 */ | ||
var cof = __webpack_require__(19); | ||
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ | ||
// eslint-disable-next-line no-prototype-builtins | ||
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | ||
return cof(it) == 'String' ? it.split('') : Object(it); | ||
}; | ||
/***/ }), | ||
@@ -936,18 +979,20 @@ /* 46 */ | ||
// true -> Array#includes | ||
var toIObject = __webpack_require__(18) | ||
, toLength = __webpack_require__(20) | ||
, toIndex = __webpack_require__(47); | ||
module.exports = function(IS_INCLUDES){ | ||
return function($this, el, fromIndex){ | ||
var O = toIObject($this) | ||
, length = toLength(O.length) | ||
, index = toIndex(fromIndex, length) | ||
, value; | ||
var toIObject = __webpack_require__(18); | ||
var toLength = __webpack_require__(20); | ||
var toAbsoluteIndex = __webpack_require__(47); | ||
module.exports = function (IS_INCLUDES) { | ||
return function ($this, el, fromIndex) { | ||
var O = toIObject($this); | ||
var length = toLength(O.length); | ||
var index = toAbsoluteIndex(fromIndex, length); | ||
var value; | ||
// Array#includes uses SameValueZero equality algorithm | ||
if(IS_INCLUDES && el != el)while(length > index){ | ||
// eslint-disable-next-line no-self-compare | ||
if (IS_INCLUDES && el != el) while (length > index) { | ||
value = O[index++]; | ||
if(value != value)return true; | ||
// Array#toIndex ignores holes, Array#includes - not | ||
} else for(;length > index; index++)if(IS_INCLUDES || index in O){ | ||
if(O[index] === el)return IS_INCLUDES || index || 0; | ||
// eslint-disable-next-line no-self-compare | ||
if (value != value) return true; | ||
// Array#indexOf ignores holes, Array#includes - not | ||
} else for (;length > index; index++) if (IS_INCLUDES || index in O) { | ||
if (O[index] === el) return IS_INCLUDES || index || 0; | ||
} return !IS_INCLUDES && -1; | ||
@@ -957,2 +1002,3 @@ }; | ||
/***/ }), | ||
@@ -962,6 +1008,6 @@ /* 47 */ | ||
var toInteger = __webpack_require__(7) | ||
, max = Math.max | ||
, min = Math.min; | ||
module.exports = function(index, length){ | ||
var toInteger = __webpack_require__(7); | ||
var max = Math.max; | ||
var min = Math.min; | ||
module.exports = function (index, length) { | ||
index = toInteger(index); | ||
@@ -971,2 +1017,3 @@ return index < 0 ? max(index + length, 0) : min(index, length); | ||
/***/ }), | ||
@@ -976,4 +1023,6 @@ /* 48 */ | ||
module.exports = __webpack_require__(1).document && document.documentElement; | ||
var document = __webpack_require__(1).document; | ||
module.exports = document && document.documentElement; | ||
/***/ }), | ||
@@ -984,11 +1033,11 @@ /* 49 */ | ||
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | ||
var has = __webpack_require__(6) | ||
, toObject = __webpack_require__(25) | ||
, IE_PROTO = __webpack_require__(13)('IE_PROTO') | ||
, ObjectProto = Object.prototype; | ||
var has = __webpack_require__(6); | ||
var toObject = __webpack_require__(25); | ||
var IE_PROTO = __webpack_require__(13)('IE_PROTO'); | ||
var ObjectProto = Object.prototype; | ||
module.exports = Object.getPrototypeOf || function(O){ | ||
module.exports = Object.getPrototypeOf || function (O) { | ||
O = toObject(O); | ||
if(has(O, IE_PROTO))return O[IE_PROTO]; | ||
if(typeof O.constructor == 'function' && O instanceof O.constructor){ | ||
if (has(O, IE_PROTO)) return O[IE_PROTO]; | ||
if (typeof O.constructor == 'function' && O instanceof O.constructor) { | ||
return O.constructor.prototype; | ||
@@ -998,2 +1047,3 @@ } return O instanceof Object ? ObjectProto : null; | ||
/***/ }), | ||
@@ -1005,26 +1055,26 @@ /* 50 */ | ||
var ctx = __webpack_require__(15) | ||
, $export = __webpack_require__(14) | ||
, toObject = __webpack_require__(25) | ||
, call = __webpack_require__(51) | ||
, isArrayIter = __webpack_require__(52) | ||
, toLength = __webpack_require__(20) | ||
, createProperty = __webpack_require__(53) | ||
, getIterFn = __webpack_require__(54); | ||
var ctx = __webpack_require__(15); | ||
var $export = __webpack_require__(14); | ||
var toObject = __webpack_require__(25); | ||
var call = __webpack_require__(51); | ||
var isArrayIter = __webpack_require__(52); | ||
var toLength = __webpack_require__(20); | ||
var createProperty = __webpack_require__(53); | ||
var getIterFn = __webpack_require__(54); | ||
$export($export.S + $export.F * !__webpack_require__(56)(function(iter){ Array.from(iter); }), 'Array', { | ||
$export($export.S + $export.F * !__webpack_require__(56)(function (iter) { Array.from(iter); }), 'Array', { | ||
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) | ||
from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){ | ||
var O = toObject(arrayLike) | ||
, C = typeof this == 'function' ? this : Array | ||
, aLen = arguments.length | ||
, mapfn = aLen > 1 ? arguments[1] : undefined | ||
, mapping = mapfn !== undefined | ||
, index = 0 | ||
, iterFn = getIterFn(O) | ||
, length, result, step, iterator; | ||
if(mapping)mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); | ||
from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { | ||
var O = toObject(arrayLike); | ||
var C = typeof this == 'function' ? this : Array; | ||
var aLen = arguments.length; | ||
var mapfn = aLen > 1 ? arguments[1] : undefined; | ||
var mapping = mapfn !== undefined; | ||
var index = 0; | ||
var iterFn = getIterFn(O); | ||
var length, result, step, iterator; | ||
if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); | ||
// if object isn't iterable or it's array with default iterator - use simple case | ||
if(iterFn != undefined && !(C == Array && isArrayIter(iterFn))){ | ||
for(iterator = iterFn.call(O), result = new C; !(step = iterator.next()).done; index++){ | ||
if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { | ||
for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { | ||
createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); | ||
@@ -1034,3 +1084,3 @@ } | ||
length = toLength(O.length); | ||
for(result = new C(length); length > index; index++){ | ||
for (result = new C(length); length > index; index++) { | ||
createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); | ||
@@ -1051,9 +1101,9 @@ } | ||
var anObject = __webpack_require__(4); | ||
module.exports = function(iterator, fn, value, entries){ | ||
module.exports = function (iterator, fn, value, entries) { | ||
try { | ||
return entries ? fn(anObject(value)[0], value[1]) : fn(value); | ||
// 7.4.6 IteratorClose(iterator, completion) | ||
} catch(e){ | ||
} catch (e) { | ||
var ret = iterator['return']; | ||
if(ret !== undefined)anObject(ret.call(iterator)); | ||
if (ret !== undefined) anObject(ret.call(iterator)); | ||
throw e; | ||
@@ -1063,2 +1113,3 @@ } | ||
/***/ }), | ||
@@ -1069,10 +1120,11 @@ /* 52 */ | ||
// check on default Array iterator | ||
var Iterators = __webpack_require__(12) | ||
, ITERATOR = __webpack_require__(0)('iterator') | ||
, ArrayProto = Array.prototype; | ||
var Iterators = __webpack_require__(12); | ||
var ITERATOR = __webpack_require__(0)('iterator'); | ||
var ArrayProto = Array.prototype; | ||
module.exports = function(it){ | ||
module.exports = function (it) { | ||
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); | ||
}; | ||
/***/ }), | ||
@@ -1084,10 +1136,11 @@ /* 53 */ | ||
var $defineProperty = __webpack_require__(3) | ||
, createDesc = __webpack_require__(11); | ||
var $defineProperty = __webpack_require__(3); | ||
var createDesc = __webpack_require__(11); | ||
module.exports = function(object, index, value){ | ||
if(index in object)$defineProperty.f(object, index, createDesc(0, value)); | ||
module.exports = function (object, index, value) { | ||
if (index in object) $defineProperty.f(object, index, createDesc(0, value)); | ||
else object[index] = value; | ||
}; | ||
/***/ }), | ||
@@ -1097,7 +1150,7 @@ /* 54 */ | ||
var classof = __webpack_require__(55) | ||
, ITERATOR = __webpack_require__(0)('iterator') | ||
, Iterators = __webpack_require__(12); | ||
module.exports = __webpack_require__(9).getIteratorMethod = function(it){ | ||
if(it != undefined)return it[ITERATOR] | ||
var classof = __webpack_require__(55); | ||
var ITERATOR = __webpack_require__(0)('iterator'); | ||
var Iterators = __webpack_require__(12); | ||
module.exports = __webpack_require__(9).getIteratorMethod = function (it) { | ||
if (it != undefined) return it[ITERATOR] | ||
|| it['@@iterator'] | ||
@@ -1107,2 +1160,3 @@ || Iterators[classof(it)]; | ||
/***/ }), | ||
@@ -1113,15 +1167,15 @@ /* 55 */ | ||
// getting tag from 19.1.3.6 Object.prototype.toString() | ||
var cof = __webpack_require__(19) | ||
, TAG = __webpack_require__(0)('toStringTag') | ||
// ES3 wrong here | ||
, ARG = cof(function(){ return arguments; }()) == 'Arguments'; | ||
var cof = __webpack_require__(19); | ||
var TAG = __webpack_require__(0)('toStringTag'); | ||
// ES3 wrong here | ||
var ARG = cof(function () { return arguments; }()) == 'Arguments'; | ||
// fallback for IE11 Script Access Denied error | ||
var tryGet = function(it, key){ | ||
var tryGet = function (it, key) { | ||
try { | ||
return it[key]; | ||
} catch(e){ /* empty */ } | ||
} catch (e) { /* empty */ } | ||
}; | ||
module.exports = function(it){ | ||
module.exports = function (it) { | ||
var O, T, B; | ||
@@ -1137,2 +1191,3 @@ return it === undefined ? 'Undefined' : it === null ? 'Null' | ||
/***/ }), | ||
@@ -1142,26 +1197,28 @@ /* 56 */ | ||
var ITERATOR = __webpack_require__(0)('iterator') | ||
, SAFE_CLOSING = false; | ||
var ITERATOR = __webpack_require__(0)('iterator'); | ||
var SAFE_CLOSING = false; | ||
try { | ||
var riter = [7][ITERATOR](); | ||
riter['return'] = function(){ SAFE_CLOSING = true; }; | ||
Array.from(riter, function(){ throw 2; }); | ||
} catch(e){ /* empty */ } | ||
riter['return'] = function () { SAFE_CLOSING = true; }; | ||
// eslint-disable-next-line no-throw-literal | ||
Array.from(riter, function () { throw 2; }); | ||
} catch (e) { /* empty */ } | ||
module.exports = function(exec, skipClosing){ | ||
if(!skipClosing && !SAFE_CLOSING)return false; | ||
module.exports = function (exec, skipClosing) { | ||
if (!skipClosing && !SAFE_CLOSING) return false; | ||
var safe = false; | ||
try { | ||
var arr = [7] | ||
, iter = arr[ITERATOR](); | ||
iter.next = function(){ return {done: safe = true}; }; | ||
arr[ITERATOR] = function(){ return iter; }; | ||
var arr = [7]; | ||
var iter = arr[ITERATOR](); | ||
iter.next = function () { return { done: safe = true }; }; | ||
arr[ITERATOR] = function () { return iter; }; | ||
exec(arr); | ||
} catch(e){ /* empty */ } | ||
} catch (e) { /* empty */ } | ||
return safe; | ||
}; | ||
/***/ }) | ||
/******/ ]); | ||
}); |
{ | ||
"name": "@shopify/draggable", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"private": false, | ||
@@ -12,8 +12,8 @@ "license": "MIT", | ||
{ | ||
"name" : "Max Hoffmann", | ||
"email" : "max.hoffmann@shopify.com" | ||
"name": "Max Hoffmann", | ||
"email": "max.hoffmann@shopify.com" | ||
}, | ||
{ | ||
"name" : "Curtis Dulmage", | ||
"email" : "curtis.dulmage@shopify.com" | ||
"name": "Curtis Dulmage", | ||
"email": "curtis.dulmage@shopify.com" | ||
} | ||
@@ -32,2 +32,3 @@ ], | ||
"scripts": { | ||
"start": "concurrently \"webpack --watch\" \"cd examples && yarn build && yarn start\"", | ||
"build": "webpack", | ||
@@ -37,4 +38,5 @@ "watch": "webpack --watch", | ||
"lint": "eslint ./src --max-warnings 0", | ||
"esdoc": "esdoc -c esdoc.json", | ||
"test": "jest --config config.json", | ||
"test-ci": "jest --config config.json --coverage" | ||
"test-ci": "jest --config config.json --coverage && codecov" | ||
}, | ||
@@ -46,14 +48,16 @@ "files": [ | ||
"babel-core": "^6.26.0", | ||
"babel-preset-shopify": "^16.0.2", | ||
"babel-jest": "^21.2.0", | ||
"babel-jest": "^22.1.0", | ||
"babel-loader": "^7.1.2", | ||
"core-js": "^2.5.1", | ||
"babel-preset-shopify": "^16.2.0", | ||
"codecov": "^3.0.0", | ||
"concurrently": "^3.5.1", | ||
"core-js": "^2.5.3", | ||
"esdoc": "^1.0.4", | ||
"esdoc-ecmascript-proposal-plugin": "^1.0.0", | ||
"esdoc-standard-plugin": "^1.0.0", | ||
"esdoc": "^1.0.3", | ||
"eslint": "^4.10.0", | ||
"eslint": "^4.16.0", | ||
"eslint-loader": "^1.9.0", | ||
"eslint-plugin-shopify": "^17.2.1", | ||
"eslint-plugin-shopify": "^19.0.0", | ||
"jest": "^21.2.1", | ||
"webpack": "^3.8.1" | ||
"webpack": "^3.10.0" | ||
}, | ||
@@ -60,0 +64,0 @@ "eslintConfig": { |
@@ -1,16 +0,12 @@ | ||
<a href="https://circleci.com/gh/Shopify/draggable"> | ||
<img src="https://circleci.com/gh/Shopify/draggable.svg?style=shield&circle-token=bd97f87d63e330e3b4b186ef11d8223889ef925f" title="CircleCI status" alt="CircleCI status"> | ||
</a> | ||
[![CircleCI](https://circleci.com/gh/Shopify/draggable/tree/master.svg?style=shield)](https://circleci.com/gh/Shopify/draggable/tree/master) | ||
[![npm version](https://badge.fury.io/js/%40shopify%2Fdraggable.svg)](https://badge.fury.io/js/%40shopify%2Fdraggable) | ||
[![codecov](https://codecov.io/gh/Shopify/draggable/branch/v1.0.0-beta.5/graph/badge.svg)](https://codecov.io/gh/Shopify/draggable) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/Shopify/draggable.svg)](https://greenkeeper.io/) | ||
<hr/> | ||
<a href="https://shopify.github.io/draggable" title="Visit Draggable website"> | ||
<img src="https://user-images.githubusercontent.com/643944/30787041-84ccc1aa-a14e-11e7-982d-972978185636.png" alt=""> | ||
<img src="https://user-images.githubusercontent.com/643944/35602291-99e2c56e-0605-11e8-847f-95f1f6be1610.jpg" alt=""> | ||
</a> | ||
<hr/> | ||
> **Currently in beta!** While Draggable is very close to a full release, the API is still subject to change. We keep an updated CHANGELOG with every release, so when upgrading from a previous version, please check and see what has changed. | ||
> **Warning:** Draggable is currently in beta | ||
Get complete control over drag and drop behaviour with Draggable! Draggable abstracts | ||
@@ -57,17 +53,23 @@ native browser events into a comprehensive API to create a custom drag and drop experience. | ||
<!-- Entire bundle --> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.4/lib/draggable.bundle.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.5/lib/draggable.bundle.js"></script> | ||
<!-- legacy bundle for older browsers (IE11) --> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.4/lib/draggable.bundle.legacy.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.5/lib/draggable.bundle.legacy.js"></script> | ||
<!-- Draggable only --> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.4/lib/draggable.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.5/lib/draggable.js"></script> | ||
<!-- Sortable only --> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.4/lib/sortable.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.5/lib/sortable.js"></script> | ||
<!-- Droppable only --> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.4/lib/droppable.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.5/lib/droppable.js"></script> | ||
<!-- Swappable only --> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.4/lib/swappable.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.5/lib/swappable.js"></script> | ||
<!-- Plugins only --> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.4/lib/plugins.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.5/lib/plugins.js"></script> | ||
``` | ||
## Browser Compatibility | ||
![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | | ||
--- | --- | --- | --- | --- | --- | | ||
Latest ✔ | Latest ✔ | 11+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | | ||
## Documentation | ||
@@ -83,3 +85,5 @@ | ||
- [Accessibility](src/Draggable/Plugins/Accessibility) | ||
- [Announcement](src/Draggable/Plugins/Announcement) | ||
- [Mirror](src/Draggable/Plugins/Mirror) | ||
- [Scrollable](src/Draggable/Plugins/Scrollable) | ||
- [Sensors](src/Draggable/Sensors) | ||
@@ -103,2 +107,18 @@ - [DragSensor](src/Draggable/Sensors/DragSensor) | ||
## Running examples | ||
To run the examples locally run | ||
``` | ||
$ yarn install | ||
$ cd examples | ||
$ yarn install | ||
$ yarn build | ||
$ cd .. | ||
$ yarn start | ||
``` | ||
This will start a server that hosts the contents of `examples/`. It also watches for file | ||
changes from both `src/` and `examples/src` and reloads the browser. | ||
## Contributing | ||
@@ -112,6 +132,11 @@ | ||
The roadmap for the official release is still in the works. More to come | ||
We are currently working on `v1.0.0-beta.5`. Check out the [project board](https://github.com/Shopify/draggable/projects/3) to see tasks and follow progress on the release. Any Pull Requests should be pointed against the feature branch `v1.0.0-beta.5`. | ||
## Related resources | ||
- [Ember CLI Shim](https://github.com/timrourke/ember-cli-shopify-draggable-shim) on Github by [@timrourke](https://github.com/timrourke) | ||
- [Ember CLI Shim](https://www.npmjs.com/package/ember-cli-shopify-draggable-shim) on NPM by [@timrourke](https://github.com/timrourke) | ||
## Copyright | ||
Copyright (c) 2018 Shopify. See LICENSE.md for further details. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1793445
51218
139
15