Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-functions

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-functions - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

168

dist/vue-functions.cjs.js
/*!
* vue-functions v2.0.4
* vue-functions v2.0.5
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)
* Homepage: undefined
* Released under the MIT License.

@@ -10,4 +11,9 @@ */

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _toConsumableArray = _interopDefault(require('@babel/runtime/helpers/toConsumableArray'));
var _regeneratorRuntime = _interopDefault(require('@babel/runtime/regenerator'));
var hp = require('helper-js');
var _marked = /*#__PURE__*/_regeneratorRuntime.mark(iterateObjectWithoutDollarDash);
/**

@@ -41,3 +47,5 @@ * [updatablePropsEvenUnbound description]

if (!prop.$localSetter) {
prop.$localSetter = value => value;
prop.$localSetter = function (value) {
return value;
};
} // make standardProp

@@ -48,3 +56,3 @@

standardProps[name] = standardProp;
Object.keys(props[name]).forEach(key => {
Object.keys(props[name]).forEach(function (key) {
if (key[0] !== '$') {

@@ -71,3 +79,4 @@ standardProp[key] = prop[key];

for (var _name of Object.keys(props)) {
for (var _i = 0, _Object$keys = Object.keys(props); _i < _Object$keys.length; _i++) {
var _name = _Object$keys[_i];
t.localValueOfUpdatableProps[_name] = this[_name];

@@ -79,7 +88,8 @@ }

var _loop2 = function _loop2(_name2) {
var prop = props[_name2];
var _loop2 = function _loop2() {
var name = _Object$keys2[_i2];
var prop = props[name];
component.watch[_name2] = function (value) {
this.localValueOfUpdatableProps[_name2] = prop.$localSetter(value, this);
component.watch[name] = function (value) {
this.localValueOfUpdatableProps[name] = prop.$localSetter(value, this);
};

@@ -89,21 +99,19 @@

component.computed[localName] = {
get() {
return this.localValueOfUpdatableProps[_name2];
get: function get() {
return this.localValueOfUpdatableProps[name];
},
set(value) {
if (_name2 === 'value') {
set: function set(value) {
if (name === 'value') {
this.$emit('input', value);
} else {
this.$emit("update:".concat(_name2), value);
this.$emit("update:".concat(name), value);
}
this.localValueOfUpdatableProps[_name2] = prop.$localSetter(value, this);
this.localValueOfUpdatableProps[name] = prop.$localSetter(value, this);
}
};
};
for (var _name2 of Object.keys(props)) {
_loop2(_name2);
for (var _i2 = 0, _Object$keys2 = Object.keys(props); _i2 < _Object$keys2.length; _i2++) {
_loop2();
}

@@ -126,3 +134,5 @@

function destroy() {
destroies.forEach(f => f());
destroies.forEach(function (f) {
return f();
});
destroies = [];

@@ -134,3 +144,5 @@ }

var first = true;
var unwatch = vm.$watch(() => getter.call(vm, exec), value2 => {
var unwatch = vm.$watch(function () {
return getter.call(vm, exec);
}, function (value2) {
value = value2;

@@ -158,3 +170,3 @@

var getterExecuted = value => {
var getterExecuted = function getterExecuted(value) {
if (localCount !== count) {

@@ -186,5 +198,5 @@ // expired

var update = () => {
var update = function update() {
var getter = handler.call(vm, oldValue);
unwatch = vm.$watch(getter, value => {
unwatch = vm.$watch(getter, function (value) {
unwatch();

@@ -197,19 +209,48 @@ oldValue = value;

update();
return () => unwatch && unwatch();
return function () {
return unwatch && unwatch();
};
}
function* iterateObjectWithoutDollarDash(obj) {
for (var key in obj) {
var start = key.substr(0, 1);
function iterateObjectWithoutDollarDash(obj) {
var key, start;
return _regeneratorRuntime.wrap(function iterateObjectWithoutDollarDash$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.t0 = _regeneratorRuntime.keys(obj);
if (start !== '$' && start !== '_') {
yield {
key,
value: obj[key]
};
case 1:
if ((_context.t1 = _context.t0()).done) {
_context.next = 9;
break;
}
key = _context.t1.value;
start = key.substr(0, 1);
if (!(start !== '$' && start !== '_')) {
_context.next = 7;
break;
}
_context.next = 7;
return {
key: key,
value: obj[key]
};
case 7:
_context.next = 1;
break;
case 9:
case "end":
return _context.stop();
}
}
}
}, _marked);
} // add reactive `windowSize`
var windowSize = {
data() {
data: function data() {
return {

@@ -224,5 +265,4 @@ windowSize: {

},
methods: {
updateWindowSize() {
updateWindowSize: function updateWindowSize() {
Object.assign(this.windowSize, {

@@ -235,9 +275,10 @@ innerWidth: window.innerWidth,

}
},
created: function created() {
var _this = this;
created() {
this._windowSize_onresize = () => {
this.updateWindowSize();
this.$emit('window-resize');
this._windowSize_onresize = function () {
_this.updateWindowSize();
_this.$emit('window-resize');
};

@@ -247,7 +288,5 @@

},
beforeDestroy() {
beforeDestroy: function beforeDestroy() {
hp.offDOM(window, 'resize', this._windowSize_onresize);
}
};

@@ -257,3 +296,3 @@ function registerPreventURLChange(Vue, router, msg) {

var msg0 = "It looks like you have been editing something.\nIf you leave before saving, your changes will be lost.";
router.beforeEach((to, from, next) => {
router.beforeEach(function (to, from, next) {
if (preventRouter) {

@@ -271,3 +310,3 @@ if (window.confirm(msg || msg0)) {

var beforeunload = e => {
var beforeunload = function beforeunload(e) {
var confirmationMessage = msg || msg0;

@@ -279,3 +318,3 @@ e.returnValue = confirmationMessage; // Gecko, Trident, Chrome 34+

Vue.preventURLChange = Vue.prototype.$preventURLChange = msg2 => {
Vue.preventURLChange = Vue.prototype.$preventURLChange = function (msg2) {
if (msg2 != null) {

@@ -291,3 +330,3 @@ msg = msg2;

Vue.allowURLChange = Vue.prototype.$allowURLChange = () => {
Vue.allowURLChange = Vue.prototype.$allowURLChange = function () {
preventRouter = false;

@@ -301,3 +340,3 @@ window.removeEventListener("beforeunload", beforeunload);

// get hooks in this._hooks, without which in props
_getNonPropHooksByName(name) {
_getNonPropHooksByName: function _getNonPropHooksByName(name) {
if (this._hooks) {

@@ -307,4 +346,3 @@ return this._hooks[name];

},
addHook(name, func) {
addHook: function addHook(name, func) {
if (!this._getNonPropHooksByName(name)) {

@@ -322,4 +360,3 @@ if (!this._hooks) {

},
removeHook(name, func) {
removeHook: function removeHook(name, func) {
var hooks = this._getNonPropHooksByName(name);

@@ -331,10 +368,8 @@

},
hasHook(name) {
hasHook: function hasHook(name) {
return this._getNonPropHooksByName(name) || this[name];
},
executeHook: function executeHook(name, args) {
var _this2 = this;
executeHook(name, args) {
var _this = this;
var hooks = this._getNonPropHooksByName(name);

@@ -350,24 +385,23 @@

return _this[name](...args);
return _this2[name].apply(_this2, args);
});
}
return hp.joinFunctionsByNext(hooks)(...args);
return hp.joinFunctionsByNext(hooks).apply(void 0, _toConsumableArray(args));
}
}
};
var mountedMixin = {
data() {
data: function data() {
var _this3 = this;
return {
mounted: new Promise((resolve, reject) => {
this._mounted_resolve = resolve;
mounted: new Promise(function (resolve, reject) {
_this3._mounted_resolve = resolve;
})
};
},
mounted() {
mounted: function mounted() {
this._mounted_resolve();
}
};

@@ -374,0 +408,0 @@

/*!
* vue-functions v2.0.4
* vue-functions v2.0.5
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)
* Homepage: undefined
* Released under the MIT License.
*/
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
import _regeneratorRuntime from '@babel/runtime/regenerator';
import { isFunction, isPromise, onDOM, offDOM, arrayRemove, joinFunctionsByNext } from 'helper-js';
var _marked = /*#__PURE__*/_regeneratorRuntime.mark(iterateObjectWithoutDollarDash);
/**

@@ -36,3 +40,5 @@ * [updatablePropsEvenUnbound description]

if (!prop.$localSetter) {
prop.$localSetter = value => value;
prop.$localSetter = function (value) {
return value;
};
} // make standardProp

@@ -43,3 +49,3 @@

standardProps[name] = standardProp;
Object.keys(props[name]).forEach(key => {
Object.keys(props[name]).forEach(function (key) {
if (key[0] !== '$') {

@@ -66,3 +72,4 @@ standardProp[key] = prop[key];

for (var _name of Object.keys(props)) {
for (var _i = 0, _Object$keys = Object.keys(props); _i < _Object$keys.length; _i++) {
var _name = _Object$keys[_i];
t.localValueOfUpdatableProps[_name] = this[_name];

@@ -74,7 +81,8 @@ }

var _loop2 = function _loop2(_name2) {
var prop = props[_name2];
var _loop2 = function _loop2() {
var name = _Object$keys2[_i2];
var prop = props[name];
component.watch[_name2] = function (value) {
this.localValueOfUpdatableProps[_name2] = prop.$localSetter(value, this);
component.watch[name] = function (value) {
this.localValueOfUpdatableProps[name] = prop.$localSetter(value, this);
};

@@ -84,21 +92,19 @@

component.computed[localName] = {
get() {
return this.localValueOfUpdatableProps[_name2];
get: function get() {
return this.localValueOfUpdatableProps[name];
},
set(value) {
if (_name2 === 'value') {
set: function set(value) {
if (name === 'value') {
this.$emit('input', value);
} else {
this.$emit("update:".concat(_name2), value);
this.$emit("update:".concat(name), value);
}
this.localValueOfUpdatableProps[_name2] = prop.$localSetter(value, this);
this.localValueOfUpdatableProps[name] = prop.$localSetter(value, this);
}
};
};
for (var _name2 of Object.keys(props)) {
_loop2(_name2);
for (var _i2 = 0, _Object$keys2 = Object.keys(props); _i2 < _Object$keys2.length; _i2++) {
_loop2();
}

@@ -121,3 +127,5 @@

function destroy() {
destroies.forEach(f => f());
destroies.forEach(function (f) {
return f();
});
destroies = [];

@@ -129,3 +137,5 @@ }

var first = true;
var unwatch = vm.$watch(() => getter.call(vm, exec), value2 => {
var unwatch = vm.$watch(function () {
return getter.call(vm, exec);
}, function (value2) {
value = value2;

@@ -153,3 +163,3 @@

var getterExecuted = value => {
var getterExecuted = function getterExecuted(value) {
if (localCount !== count) {

@@ -181,5 +191,5 @@ // expired

var update = () => {
var update = function update() {
var getter = handler.call(vm, oldValue);
unwatch = vm.$watch(getter, value => {
unwatch = vm.$watch(getter, function (value) {
unwatch();

@@ -192,19 +202,48 @@ oldValue = value;

update();
return () => unwatch && unwatch();
return function () {
return unwatch && unwatch();
};
}
function* iterateObjectWithoutDollarDash(obj) {
for (var key in obj) {
var start = key.substr(0, 1);
function iterateObjectWithoutDollarDash(obj) {
var key, start;
return _regeneratorRuntime.wrap(function iterateObjectWithoutDollarDash$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.t0 = _regeneratorRuntime.keys(obj);
if (start !== '$' && start !== '_') {
yield {
key,
value: obj[key]
};
case 1:
if ((_context.t1 = _context.t0()).done) {
_context.next = 9;
break;
}
key = _context.t1.value;
start = key.substr(0, 1);
if (!(start !== '$' && start !== '_')) {
_context.next = 7;
break;
}
_context.next = 7;
return {
key: key,
value: obj[key]
};
case 7:
_context.next = 1;
break;
case 9:
case "end":
return _context.stop();
}
}
}
}, _marked);
} // add reactive `windowSize`
var windowSize = {
data() {
data: function data() {
return {

@@ -219,5 +258,4 @@ windowSize: {

},
methods: {
updateWindowSize() {
updateWindowSize: function updateWindowSize() {
Object.assign(this.windowSize, {

@@ -230,9 +268,10 @@ innerWidth: window.innerWidth,

}
},
created: function created() {
var _this = this;
created() {
this._windowSize_onresize = () => {
this.updateWindowSize();
this.$emit('window-resize');
this._windowSize_onresize = function () {
_this.updateWindowSize();
_this.$emit('window-resize');
};

@@ -242,7 +281,5 @@

},
beforeDestroy() {
beforeDestroy: function beforeDestroy() {
offDOM(window, 'resize', this._windowSize_onresize);
}
};

@@ -252,3 +289,3 @@ function registerPreventURLChange(Vue, router, msg) {

var msg0 = "It looks like you have been editing something.\nIf you leave before saving, your changes will be lost.";
router.beforeEach((to, from, next) => {
router.beforeEach(function (to, from, next) {
if (preventRouter) {

@@ -266,3 +303,3 @@ if (window.confirm(msg || msg0)) {

var beforeunload = e => {
var beforeunload = function beforeunload(e) {
var confirmationMessage = msg || msg0;

@@ -274,3 +311,3 @@ e.returnValue = confirmationMessage; // Gecko, Trident, Chrome 34+

Vue.preventURLChange = Vue.prototype.$preventURLChange = msg2 => {
Vue.preventURLChange = Vue.prototype.$preventURLChange = function (msg2) {
if (msg2 != null) {

@@ -286,3 +323,3 @@ msg = msg2;

Vue.allowURLChange = Vue.prototype.$allowURLChange = () => {
Vue.allowURLChange = Vue.prototype.$allowURLChange = function () {
preventRouter = false;

@@ -296,3 +333,3 @@ window.removeEventListener("beforeunload", beforeunload);

// get hooks in this._hooks, without which in props
_getNonPropHooksByName(name) {
_getNonPropHooksByName: function _getNonPropHooksByName(name) {
if (this._hooks) {

@@ -302,4 +339,3 @@ return this._hooks[name];

},
addHook(name, func) {
addHook: function addHook(name, func) {
if (!this._getNonPropHooksByName(name)) {

@@ -317,4 +353,3 @@ if (!this._hooks) {

},
removeHook(name, func) {
removeHook: function removeHook(name, func) {
var hooks = this._getNonPropHooksByName(name);

@@ -326,10 +361,8 @@

},
hasHook(name) {
hasHook: function hasHook(name) {
return this._getNonPropHooksByName(name) || this[name];
},
executeHook: function executeHook(name, args) {
var _this2 = this;
executeHook(name, args) {
var _this = this;
var hooks = this._getNonPropHooksByName(name);

@@ -345,26 +378,25 @@

return _this[name](...args);
return _this2[name].apply(_this2, args);
});
}
return joinFunctionsByNext(hooks)(...args);
return joinFunctionsByNext(hooks).apply(void 0, _toConsumableArray(args));
}
}
};
var mountedMixin = {
data() {
data: function data() {
var _this3 = this;
return {
mounted: new Promise((resolve, reject) => {
this._mounted_resolve = resolve;
mounted: new Promise(function (resolve, reject) {
_this3._mounted_resolve = resolve;
})
};
},
mounted() {
mounted: function mounted() {
this._mounted_resolve();
}
};
export { doWatch, hookHelper, isPropTrue, iterateObjectWithoutDollarDash, mountedMixin, registerPreventURLChange, updatablePropsEvenUnbound, watchAsync, windowSize };
/*!
* vue-functions v2.0.4
* vue-functions v2.0.5
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)
* Homepage: undefined
* Released under the MIT License.

@@ -12,16 +13,22 @@ */

function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
arr2[i] = arr[i];
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
return arr2;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = arr[i];
}
return arr2;
}
var arrayLikeToArray = _arrayLikeToArray;
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return arrayLikeToArray(arr);
}
var arrayWithoutHoles = _arrayWithoutHoles;
function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
}

@@ -31,4 +38,15 @@

function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
}
var unsupportedIterableToArray = _unsupportedIterableToArray;
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

@@ -39,3 +57,3 @@

function _toConsumableArray(arr) {
return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
}

@@ -181,3 +199,3 @@

function AsyncIterator(generator) {
function AsyncIterator(generator, PromiseImpl) {
function invoke(method, arg, resolve, reject) {

@@ -193,3 +211,3 @@ var record = tryCatch(generator[method], generator, arg);

hasOwn.call(value, "__await")) {
return Promise.resolve(value.__await).then(function(value) {
return PromiseImpl.resolve(value.__await).then(function(value) {
invoke("next", value, resolve, reject);

@@ -201,3 +219,3 @@ }, function(err) {

return Promise.resolve(value).then(function(unwrapped) {
return PromiseImpl.resolve(value).then(function(unwrapped) {
// When a yielded Promise is resolved, its final value becomes

@@ -220,3 +238,3 @@ // the .value of the Promise<{value,done}> result for the

function callInvokeWithMethodAndArg() {
return new Promise(function(resolve, reject) {
return new PromiseImpl(function(resolve, reject) {
invoke(method, arg, resolve, reject);

@@ -261,5 +279,8 @@ });

// the final result produced by the iterator.
exports.async = function(innerFn, outerFn, self, tryLocsList) {
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
if (PromiseImpl === void 0) PromiseImpl = Promise;
var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList)
wrap(innerFn, outerFn, self, tryLocsList),
PromiseImpl
);

@@ -784,22 +805,2 @@

var _typeof_1 = createCommonjsModule(function (module) {
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
module.exports = _typeof = function _typeof(obj) {
return typeof obj;
};
} else {
module.exports = _typeof = function _typeof(obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
module.exports = _typeof;
});
var getPrototypeOf = createCommonjsModule(function (module) {

@@ -864,8 +865,105 @@ function _getPrototypeOf(o) {

var regenerator$1 = runtime_1;
var _typeof_1 = createCommonjsModule(function (module) {
function _typeof(obj) {
"@babel/helpers - typeof";
var _marked =
/*#__PURE__*/
regenerator$1.mark(iterateAll);
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
module.exports = _typeof = function _typeof(obj) {
return typeof obj;
};
} else {
module.exports = _typeof = function _typeof(obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
module.exports = _typeof;
});
/*!
* helper-js v1.4.36
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)
* Homepage: undefined
* Released under the MIT License.
*/
var _marked = /*#__PURE__*/regenerator.mark(iterateAll);
function _createForOfIteratorHelper(o) {
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (Array.isArray(o) || (o = _unsupportedIterableToArray$1(o))) {
var i = 0;
var F = function F() {};
return {
s: F,
n: function n() {
if (i >= o.length) return {
done: true
};
return {
done: false,
value: o[i++]
};
},
e: function e(_e) {
throw _e;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var it,
normalCompletion = true,
didErr = false,
err;
return {
s: function s() {
it = o[Symbol.iterator]();
},
n: function n() {
var step = it.next();
normalCompletion = step.done;
return step;
},
e: function e(_e2) {
didErr = true;
err = _e2;
},
f: function f() {
try {
if (!normalCompletion && it.return != null) it.return();
} finally {
if (didErr) throw err;
}
}
};
}
function _unsupportedIterableToArray$1(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
}
function _arrayLikeToArray$1(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = arr[i];
}
return arr2;
} // local store
function isObject(v) {

@@ -901,10 +999,10 @@ return Object.prototype.toString.call(v) === '[object Object]';

info,
_i10,
_i7,
_Object$keys2,
key,
_info,
_i5,
_i8,
_info2,
keys,
_i11,
_i9,
_keys2,

@@ -915,7 +1013,7 @@ _key2,

return regenerator$1.wrap(function iterateAll$(_context) {
return regenerator.wrap(function iterateAll$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
opt = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}; // opt: {reverse, exclude}
opt = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};

@@ -968,6 +1066,6 @@ if (opt.reverse) {

_i10 = 0, _Object$keys2 = Object.keys(val);
_i7 = 0, _Object$keys2 = Object.keys(val);
case 16:
if (!(_i10 < _Object$keys2.length)) {
if (!(_i7 < _Object$keys2.length)) {
_context.next = 25;

@@ -977,3 +1075,3 @@ break;

key = _Object$keys2[_i10];
key = _Object$keys2[_i7];
_info = {

@@ -993,3 +1091,3 @@ value: val[key],

case 22:
_i10++;
_i7++;
_context.next = 16;

@@ -1015,6 +1113,6 @@ break;

_i5 = val.length - 1;
_i8 = val.length - 1;
case 32:
if (!(_i5 >= 0)) {
if (!(_i8 >= 0)) {
_context.next = 40;

@@ -1025,4 +1123,4 @@ break;

_info2 = {
value: val[_i5],
index: _i5
value: val[_i8],
index: _i8
};

@@ -1039,3 +1137,3 @@

case 37:
_i5--;
_i8--;
_context.next = 32;

@@ -1056,6 +1154,6 @@ break;

keys.reverse();
_i11 = 0, _keys2 = keys;
_i9 = 0, _keys2 = keys;
case 46:
if (!(_i11 < _keys2.length)) {
if (!(_i9 < _keys2.length)) {
_context.next = 55;

@@ -1065,3 +1163,3 @@ break;

_key2 = _keys2[_i11];
_key2 = _keys2[_i9];
_info3 = {

@@ -1081,3 +1179,3 @@ value: val[_key2],

case 52:
_i11++;
_i9++;
_context.next = 46;

@@ -1105,10 +1203,9 @@ break;

var _iteratorNormalCompletion8 = true;
var _didIteratorError8 = false;
var _iteratorError8 = undefined;
var _iterator8 = _createForOfIteratorHelper(iterateAll(funcs, {
reverse: true
})),
_step8;
try {
for (var _iterator8 = iterateAll(funcs, {
reverse: true
})[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
var func = _step8.value.value;

@@ -1119,14 +1216,5 @@ var currentNext = next;

} catch (err) {
_didIteratorError8 = true;
_iteratorError8 = err;
_iterator8.e(err);
} finally {
try {
if (!_iteratorNormalCompletion8 && _iterator8["return"] != null) {
_iterator8["return"]();
}
} finally {
if (_didIteratorError8) {
throw _iteratorError8;
}
}
_iterator8.f();
}

@@ -1176,5 +1264,3 @@

var _marked$1 =
/*#__PURE__*/
regenerator.mark(iterateObjectWithoutDollarDash);
var _marked$1 = /*#__PURE__*/regenerator.mark(iterateObjectWithoutDollarDash);
/**

@@ -1181,0 +1267,0 @@ * [updatablePropsEvenUnbound description]

/*!
* vue-functions v2.0.4
* vue-functions v2.0.5
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)
* Homepage: undefined
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vueFunctions={})}(this,(function(t){"use strict";var e=function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}};var r=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)};var n=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var o=function(t){return e(t)||r(t)||n()};function i(t,e){return t(e={exports:{}},e.exports),e.exports}var a=i((function(t){var e=function(t){var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=m(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var f=u(t,e,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===s)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var s={};function f(){}function l(){}function h(){}var p={};p[o]=function(){return this};var d=Object.getPrototypeOf,v=d&&d(d(_([])));v&&v!==e&&r.call(v,o)&&(p=v);var y=h.prototype=f.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function w(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var c=u(t[n],t,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function m(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,m(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function _(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return l.prototype=y.constructor=h,h.constructor=l,h[a]=l.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o){var i=new w(c(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(y),y[a]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=_,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),c=a,u=(i((function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e})),i((function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(r)}t.exports=e})));var s=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},f=(i((function(t){function e(r,n,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,r){var n=s(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}},e(r,n,o||r)}t.exports=e})),i((function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(r,n)}t.exports=e})),a),l=f.mark(d);function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function p(t){return"function"==typeof t}function d(t){var e,r,n,o,i,a,c,u,s,p,d,v,y,g,w=arguments;return f.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if((e=w.length>1&&void 0!==w[1]?w[1]:{}).reverse){f.next=30;break}if(null==t.length){f.next=14;break}r=0;case 4:if(!(r<t.length)){f.next=12;break}if(n={value:t[r],index:r},e.exclude&&e.exclude(n)){f.next=9;break}return f.next=9,n;case 9:r++,f.next=4;break;case 12:f.next=28;break;case 14:if(!h(t)){f.next=27;break}o=0,i=Object.keys(t);case 16:if(!(o<i.length)){f.next=25;break}if(a=i[o],c={value:t[a],key:a},e.exclude&&e.exclude(c)){f.next=22;break}return f.next=22,c;case 22:o++,f.next=16;break;case 25:f.next=28;break;case 27:throw"Unsupported type";case 28:f.next=58;break;case 30:if(null==t.length){f.next=42;break}u=t.length-1;case 32:if(!(u>=0)){f.next=40;break}if(s={value:t[u],index:u},e.exclude&&e.exclude(s)){f.next=37;break}return f.next=37,s;case 37:u--,f.next=32;break;case 40:f.next=58;break;case 42:if(!h(t)){f.next=57;break}(p=Object.keys(t)).reverse(),d=0,v=p;case 46:if(!(d<v.length)){f.next=55;break}if(y=v[d],g={value:t[y],key:y},e.exclude&&e.exclude(g)){f.next=52;break}return f.next=52,g;case 52:d++,f.next=46;break;case 55:f.next=58;break;case 57:throw"Unsupported type";case 58:case"end":return f.stop()}}),l)}var v=c.mark(y);function y(t){var e,r;return c.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=c.keys(t);case 1:if((n.t1=n.t0()).done){n.next=9;break}if(e=n.t1.value,"$"===(r=e.substr(0,1))||"_"===r){n.next=7;break}return n.next=7,{key:e,value:t[e]};case 7:n.next=1;break;case 9:case"end":return n.stop()}}),v)}var g={data:function(){return{windowSize:{innerWidth:window.innerWidth,innerHeight:window.innerHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight}}},methods:{updateWindowSize:function(){Object.assign(this.windowSize,{innerWidth:window.innerWidth,innerHeight:window.innerHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight})}},created:function(){var t=this;this._windowSize_onresize=function(){t.updateWindowSize(),t.$emit("window-resize")},function(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];t.addEventListener?t.addEventListener.apply(t,[e,r].concat(o)):t.attachEvent&&t.attachEvent.apply(t,["on".concat(e),r].concat(o))}(window,"resize",this._windowSize_onresize)},beforeDestroy:function(){!function(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];t.removeEventListener?t.removeEventListener.apply(t,[e,r].concat(o)):t.detachEvent&&t.detachEvent.apply(t,["on".concat(e),r].concat(o))}(window,"resize",this._windowSize_onresize)}};var w={methods:{_getNonPropHooksByName:function(t){if(this._hooks)return this._hooks[t]},addHook:function(t,e){this._getNonPropHooksByName(t)||(this._hooks||(this._hooks={}),this._hooks[t]||(this._hooks[t]=[])),this._hooks[t].push(e)},removeHook:function(t,e){var r=this._getNonPropHooksByName(t);r&&function(t,e){for(var r,n=0;(r=t.indexOf(e))>-1;)t.splice(r,1),n++}(r,e)},hasHook:function(t){return this._getNonPropHooksByName(t)||this[t]},executeHook:function(t,e){var r=this,n=this._getNonPropHooksByName(t);return n=n?n.slice():[],this[t]&&p(this[t])&&n.push((function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r[t].apply(r,o)})),function(t){var e=function(){},r=!0,n=!1,o=void 0;try{for(var i,a=d(t,{reverse:!0})[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){e=c(i.value.value,e)}}catch(t){n=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return e;function c(t,e){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.apply(void 0,[e].concat(n))}}}(n).apply(void 0,o(e))}}},m={data:function(){var t=this;return{mounted:new Promise((function(e,r){t._mounted_resolve=e}))}},mounted:function(){this._mounted_resolve()}};t.doWatch=function(t,e){var r,n;return function o(){var i=e.call(t,r);n=t.$watch(i,(function(t){n(),r=t,o()}))}(),function(){return n&&n()}},t.hookHelper=w,t.isPropTrue=function(t){return""===t||t},t.iterateObjectWithoutDollarDash=y,t.mountedMixin=m,t.registerPreventURLChange=function(t,e,r){var n=!1,o="It looks like you have been editing something.\nIf you leave before saving, your changes will be lost.";e.beforeEach((function(e,i,a){n?window.confirm(r||o)?(t.allowURLChange(),a()):a(!1):a()}));var i=function(t){var e=r||o;return t.returnValue=e,e};t.preventURLChange=t.prototype.$preventURLChange=function(t){null!=t&&(r=t),n||(n=!0,window.addEventListener("beforeunload",i))},t.allowURLChange=t.prototype.$allowURLChange=function(){n=!1,window.removeEventListener("beforeunload",i)}},t.updatablePropsEvenUnbound=function(t){t=p(t)?t():Object.assign({},t);var e={},r=function(r){var n=t[r];n.$localName||(n.$localName="localProps_".concat(r)),n.$localSetter||(n.$localSetter=function(t){return t});var o={};e[r]=o,Object.keys(t[r]).forEach((function(t){"$"!==t[0]&&(o[t]=n[t])}))};for(var n in t)r(n);for(var o={props:e,computed:{},watch:{},data:function(){for(var e={localValueOfUpdatableProps:{}},r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];e.localValueOfUpdatableProps[o]=this[o]}return e}},i=function(){var e=c[a],r=t[e];o.watch[e]=function(t){this.localValueOfUpdatableProps[e]=r.$localSetter(t,this)};var n=r.$localName;o.computed[n]={get:function(){return this.localValueOfUpdatableProps[e]},set:function(t){"value"===e?this.$emit("input",t):this.$emit("update:".concat(e),t),this.localValueOfUpdatableProps[e]=r.$localSetter(t,this)}}},a=0,c=Object.keys(t);a<c.length;a++)i();return o},t.watchAsync=function(t,e,r,n){var o=[],i=-1;return u(),a;function a(){o.forEach((function(t){return t()})),o=[]}function c(e,r){var n,i=!0,a=t.$watch((function(){return e.call(t,c)}),(function(t){n=t,i?i=!1:u()}),{immediate:!0,deep:r&&r.deep});return o.push(a),n}function u(){a();var o=e.call(t,c),u=++i;void 0;var s,f=function(e){u===i&&(0===u?n&&n.immediate&&r.call(t,e,void 0):r.call(t,e,void 0))};s=o,"[object Promise]"===Object.prototype.toString.call(s)?o.then(f):f(o)}},t.windowSize=g,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vueFunctions={})}(this,(function(t){"use strict";var e=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n};var r=function(t){if(Array.isArray(t))return e(t)};var n=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)};var o=function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}};var i=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var a=function(t){return r(t)||n(t)||o(t)||i()};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var u=c((function(t){var e=function(t){var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r,n){var o=e&&e.prototype instanceof s?e:s,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=w(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function s(){}function l(){}function h(){}var p={};p[o]=function(){return this};var d=Object.getPrototypeOf,v=d&&d(d(_([])));v&&v!==e&&r.call(v,o)&&(p=v);var y=h.prototype=s.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function m(t,e){var n;this._invoke=function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,c){var f=u(t[o],t,i);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(f.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function _(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return l.prototype=y.constructor=h,h.constructor=l,h[a]=l.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(m.prototype),m.prototype[i]=function(){return this},t.AsyncIterator=m,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new m(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(y),y[a]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=_,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),f=c((function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(r)}t.exports=e}));var s=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t},l=(c((function(t){function e(r,n,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,r){var n=s(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}},e(r,n,o||r)}t.exports=e})),c((function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(r,n)}t.exports=e})),c((function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e})),u.mark(y));function h(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,e)}(t))){var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function d(t){return"[object Object]"===Object.prototype.toString.call(t)}function v(t){return"function"==typeof t}function y(t){var e,r,n,o,i,a,c,f,s,h,p,v,y,g,m=arguments;return u.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if((e=m.length>1&&void 0!==m[1]?m[1]:{}).reverse){u.next=30;break}if(null==t.length){u.next=14;break}r=0;case 4:if(!(r<t.length)){u.next=12;break}if(n={value:t[r],index:r},e.exclude&&e.exclude(n)){u.next=9;break}return u.next=9,n;case 9:r++,u.next=4;break;case 12:u.next=28;break;case 14:if(!d(t)){u.next=27;break}o=0,i=Object.keys(t);case 16:if(!(o<i.length)){u.next=25;break}if(a=i[o],c={value:t[a],key:a},e.exclude&&e.exclude(c)){u.next=22;break}return u.next=22,c;case 22:o++,u.next=16;break;case 25:u.next=28;break;case 27:throw"Unsupported type";case 28:u.next=58;break;case 30:if(null==t.length){u.next=42;break}f=t.length-1;case 32:if(!(f>=0)){u.next=40;break}if(s={value:t[f],index:f},e.exclude&&e.exclude(s)){u.next=37;break}return u.next=37,s;case 37:f--,u.next=32;break;case 40:u.next=58;break;case 42:if(!d(t)){u.next=57;break}(h=Object.keys(t)).reverse(),p=0,v=h;case 46:if(!(p<v.length)){u.next=55;break}if(y=v[p],g={value:t[y],key:y},e.exclude&&e.exclude(g)){u.next=52;break}return u.next=52,g;case 52:p++,u.next=46;break;case 55:u.next=58;break;case 57:throw"Unsupported type";case 58:case"end":return u.stop()}}),l)}var g=u.mark(m);function m(t){var e,r;return u.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=u.keys(t);case 1:if((n.t1=n.t0()).done){n.next=9;break}if(e=n.t1.value,"$"===(r=e.substr(0,1))||"_"===r){n.next=7;break}return n.next=7,{key:e,value:t[e]};case 7:n.next=1;break;case 9:case"end":return n.stop()}}),g)}var w={data:function(){return{windowSize:{innerWidth:window.innerWidth,innerHeight:window.innerHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight}}},methods:{updateWindowSize:function(){Object.assign(this.windowSize,{innerWidth:window.innerWidth,innerHeight:window.innerHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight})}},created:function(){var t=this;this._windowSize_onresize=function(){t.updateWindowSize(),t.$emit("window-resize")},function(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];t.addEventListener?t.addEventListener.apply(t,[e,r].concat(o)):t.attachEvent&&t.attachEvent.apply(t,["on".concat(e),r].concat(o))}(window,"resize",this._windowSize_onresize)},beforeDestroy:function(){!function(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];t.removeEventListener?t.removeEventListener.apply(t,[e,r].concat(o)):t.detachEvent&&t.detachEvent.apply(t,["on".concat(e),r].concat(o))}(window,"resize",this._windowSize_onresize)}};var b={methods:{_getNonPropHooksByName:function(t){if(this._hooks)return this._hooks[t]},addHook:function(t,e){this._getNonPropHooksByName(t)||(this._hooks||(this._hooks={}),this._hooks[t]||(this._hooks[t]=[])),this._hooks[t].push(e)},removeHook:function(t,e){var r=this._getNonPropHooksByName(t);r&&function(t,e){for(var r,n=0;(r=t.indexOf(e))>-1;)t.splice(r,1),n++}(r,e)},hasHook:function(t){return this._getNonPropHooksByName(t)||this[t]},executeHook:function(t,e){var r=this,n=this._getNonPropHooksByName(t);return n=n?n.slice():[],this[t]&&v(this[t])&&n.push((function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r[t].apply(r,o)})),function(t){var e,r=function(){},n=h(y(t,{reverse:!0}));try{for(n.s();!(e=n.n()).done;){r=o(e.value.value,r)}}catch(t){n.e(t)}finally{n.f()}return r;function o(t,e){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.apply(void 0,[e].concat(n))}}}(n).apply(void 0,a(e))}}},x={data:function(){var t=this;return{mounted:new Promise((function(e,r){t._mounted_resolve=e}))}},mounted:function(){this._mounted_resolve()}};t.doWatch=function(t,e){var r,n;return function o(){var i=e.call(t,r);n=t.$watch(i,(function(t){n(),r=t,o()}))}(),function(){return n&&n()}},t.hookHelper=b,t.isPropTrue=function(t){return""===t||t},t.iterateObjectWithoutDollarDash=m,t.mountedMixin=x,t.registerPreventURLChange=function(t,e,r){var n=!1,o="It looks like you have been editing something.\nIf you leave before saving, your changes will be lost.";e.beforeEach((function(e,i,a){n?window.confirm(r||o)?(t.allowURLChange(),a()):a(!1):a()}));var i=function(t){var e=r||o;return t.returnValue=e,e};t.preventURLChange=t.prototype.$preventURLChange=function(t){null!=t&&(r=t),n||(n=!0,window.addEventListener("beforeunload",i))},t.allowURLChange=t.prototype.$allowURLChange=function(){n=!1,window.removeEventListener("beforeunload",i)}},t.updatablePropsEvenUnbound=function(t){t=v(t)?t():Object.assign({},t);var e={},r=function(r){var n=t[r];n.$localName||(n.$localName="localProps_".concat(r)),n.$localSetter||(n.$localSetter=function(t){return t});var o={};e[r]=o,Object.keys(t[r]).forEach((function(t){"$"!==t[0]&&(o[t]=n[t])}))};for(var n in t)r(n);for(var o={props:e,computed:{},watch:{},data:function(){for(var e={localValueOfUpdatableProps:{}},r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];e.localValueOfUpdatableProps[o]=this[o]}return e}},i=function(){var e=c[a],r=t[e];o.watch[e]=function(t){this.localValueOfUpdatableProps[e]=r.$localSetter(t,this)};var n=r.$localName;o.computed[n]={get:function(){return this.localValueOfUpdatableProps[e]},set:function(t){"value"===e?this.$emit("input",t):this.$emit("update:".concat(e),t),this.localValueOfUpdatableProps[e]=r.$localSetter(t,this)}}},a=0,c=Object.keys(t);a<c.length;a++)i();return o},t.watchAsync=function(t,e,r,n){var o=[],i=-1;return u(),a;function a(){o.forEach((function(t){return t()})),o=[]}function c(e,r){var n,i=!0,a=t.$watch((function(){return e.call(t,c)}),(function(t){n=t,i?i=!1:u()}),{immediate:!0,deep:r&&r.deep});return o.push(a),n}function u(){a();var o=e.call(t,c),u=++i;void 0;var f,s=function(e){u===i&&(0===u?n&&n.immediate&&r.call(t,e,void 0):r.call(t,e,void 0))};f=o,"[object Promise]"===Object.prototype.toString.call(f)?o.then(s):s(o)}},t.windowSize=w,Object.defineProperty(t,"__esModule",{value:!0})}));
{
"name": "vue-functions",
"version": "2.0.4",
"version": "2.0.5",
"description": "",

@@ -11,3 +11,4 @@ "main": "dist/vue-functions.cjs.js",

"scripts": {
"build": "rogo"
"compile-scripts": "tsc --target ES6 --module CommonJS scripts/build.ts",
"build": "rollup -c scripts/build.js & node scripts/build.js --report"
},

@@ -24,9 +25,9 @@ "author": "phphe <phphe@outlook.com> (https://github.com/phphe)",

"devDependencies": {
"rogo": "^1.0.4"
"rogo": "^2.0.2"
},
"dependencies": {
"@babel/runtime": "^7.7.7",
"helper-js": "^1.4.33"
"helper-js": "^1.4.36"
},
"license": "MIT"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc