vue-mapbox
Version:
> Combine powers of [Vue.js](https://vuejs.org/) and [Mapbox Gl JS](https://mapbox.com/mapbox-gl-js)
1,412 lines (1,316 loc) • 178 kB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if (typeof exports === "object" && typeof module === "object")
module.exports = factory(require("map-promisified"), require("mapbox-gl"));
else if (typeof define === "function" && define.amd)
define(["map-promisified", "mapbox-gl"], factory);
else if (typeof exports === "object")
exports["vue-mapbox"] = factory(
require("map-promisified"),
require("mapbox-gl")
);
else root["vue-mapbox"] = factory(root["map-promisified"], root["mapbox-gl"]);
})(typeof self !== "undefined" ? self : this, function(
__WEBPACK_EXTERNAL_MODULE__2191__,
__WEBPACK_EXTERNAL_MODULE__2ff6__
) {
return /******/ (function(modules) {
// webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1]; // add "moreModules" to the modules object, // then flag all "chunkIds" as loaded and fire callback
/******/
/******/
/******/ /******/ /******/ var moduleId,
chunkId,
i = 0,
resolves = [];
/******/ for (; i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if (installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]);
/******/
}
/******/ installedChunks[chunkId] = 0;
/******/
}
/******/ for (moduleId in moreModules) {
/******/ if (
Object.prototype.hasOwnProperty.call(moreModules, moduleId)
) {
/******/ modules[moduleId] = moreModules[moduleId];
/******/
}
/******/
}
/******/ if (parentJsonpFunction) parentJsonpFunction(data);
/******/
/******/ while (resolves.length) {
/******/ resolves.shift()();
/******/
}
/******/
/******/
} // The module cache
/******/
/******/
/******/ /******/ var installedModules = {}; // object to store loaded and loading chunks // undefined = chunk not loaded, null = chunk preloaded/prefetched // Promise = chunk loading, 0 = chunk loaded
/******/
/******/ /******/ /******/ /******/ var installedChunks = {
/******/ 0: 0
/******/
}; // script path function
/******/
/******/
/******/
/******/ /******/ function jsonpScriptSrc(chunkId) {
/******/ return (
__webpack_require__.p +
"vue-mapbox.umd." +
({}[chunkId] || chunkId) +
".js"
);
/******/
} // The require function
/******/
/******/ /******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if (installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
} // Create a new module (and put it into the cache)
/******/ /******/ var module = (installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/
}); // Execute the module function
/******/
/******/ /******/ modules[moduleId].call(
module.exports,
module,
module.exports,
__webpack_require__
); // Flag the module as loaded
/******/
/******/ /******/ module.l = true; // Return the exports of the module
/******/
/******/ /******/ return module.exports;
/******/
} // expose the modules object (__webpack_modules__)
/******/
/******/
/******/ /******/ __webpack_require__.m = modules; // expose the module cache
/******/
/******/ /******/ __webpack_require__.c = installedModules; // define getter function for harmony exports
/******/
/******/ /******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if (!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
enumerable: true,
get: getter
});
/******/
}
/******/
}; // define __esModule on exports
/******/
/******/ /******/ __webpack_require__.r = function(exports) {
/******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
/******/
}
/******/ Object.defineProperty(exports, "__esModule", { value: true });
/******/
}; // create a fake namespace object // mode & 1: value is a module id, require it // mode & 2: merge all properties of value into the ns // mode & 4: return value when already ns object // mode & 8|1: behave like require
/******/
/******/ /******/ /******/ /******/ /******/ /******/ __webpack_require__.t = function(
value,
mode
) {
/******/ if (mode & 1) value = __webpack_require__(value);
/******/ if (mode & 8) return value;
/******/ if (
mode & 4 &&
typeof value === "object" &&
value &&
value.__esModule
)
return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, "default", {
enumerable: true,
value: value
});
/******/ if (mode & 2 && typeof value != "string")
for (var key in value)
__webpack_require__.d(
ns,
key,
function(key) {
return value[key];
}.bind(null, key)
);
/******/ return ns;
/******/
}; // getDefaultExport function for compatibility with non-harmony modules
/******/
/******/ /******/ __webpack_require__.n = function(module) {
/******/ var getter =
module && module.__esModule
? /******/ function getDefault() {
return module["default"];
}
: /******/ function getModuleExports() {
return module;
};
/******/ __webpack_require__.d(getter, "a", getter);
/******/ return getter;
/******/
}; // Object.prototype.hasOwnProperty.call
/******/
/******/ /******/ __webpack_require__.o = function(object, property) {
return Object.prototype.hasOwnProperty.call(object, property);
}; // __webpack_public_path__
/******/
/******/ /******/ __webpack_require__.p = ""; // on error function for async loading
/******/
/******/ /******/ __webpack_require__.oe = function(err) {
console.error(err);
throw err;
};
/******/
/******/ var jsonpArray = ((typeof self !== "undefined" ? self : this)[
"webpackJsonpvue_mapbox"
] =
(typeof self !== "undefined" ? self : this)["webpackJsonpvue_mapbox"] ||
[]);
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
/******/ jsonpArray.push = webpackJsonpCallback;
/******/ jsonpArray = jsonpArray.slice();
/******/ for (var i = 0; i < jsonpArray.length; i++)
webpackJsonpCallback(jsonpArray[i]);
/******/ var parentJsonpFunction = oldJsonpFunction; // Load entry module and return exports
/******/
/******/
/******/ /******/ return __webpack_require__(
(__webpack_require__.s = "fb15")
);
/******/
})(
/************************************************************************/
/******/ {
/***/ "01f9": /***/ function(module, exports, __webpack_require__) {
"use strict";
var LIBRARY = __webpack_require__("2d00");
var $export = __webpack_require__("5ca1");
var redefine = __webpack_require__("2aba");
var hide = __webpack_require__("32e9");
var Iterators = __webpack_require__("84f2");
var $iterCreate = __webpack_require__("41a0");
var setToStringTag = __webpack_require__("7f20");
var getPrototypeOf = __webpack_require__("38fd");
var ITERATOR = __webpack_require__("2b4c")("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;
};
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 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 = $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 &&
IteratorPrototype.next
) {
// Set @@toStringTag to native iterators
setToStringTag(IteratorPrototype, TAG, true);
// fix for some old engines
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != "function")
hide(IteratorPrototype, ITERATOR, returnThis);
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
if (DEF_VALUES && $native && $native.name !== VALUES) {
VALUES_BUG = true;
$default = function values() {
return $native.call(this);
};
}
// Define iterator
if (
(!LIBRARY || FORCED) &&
(BUGGY || VALUES_BUG || !proto[ITERATOR])
) {
hide(proto, ITERATOR, $default);
}
// Plug for library
Iterators[NAME] = $default;
Iterators[TAG] = returnThis;
if (DEFAULT) {
methods = {
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]);
}
else
$export(
$export.P + $export.F * (BUGGY || VALUES_BUG),
NAME,
methods
);
}
return methods;
};
/***/
},
/***/ "0d58": /***/ function(module, exports, __webpack_require__) {
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__("ce10");
var enumBugKeys = __webpack_require__("e11e");
module.exports =
Object.keys ||
function keys(O) {
return $keys(O, enumBugKeys);
};
/***/
},
/***/ "11e9": /***/ function(module, exports, __webpack_require__) {
var pIE = __webpack_require__("52a7");
var createDesc = __webpack_require__("4630");
var toIObject = __webpack_require__("6821");
var toPrimitive = __webpack_require__("6a99");
var has = __webpack_require__("69a8");
var IE8_DOM_DEFINE = __webpack_require__("c69a");
var gOPD = Object.getOwnPropertyDescriptor;
exports.f = __webpack_require__("9e1e")
? gOPD
: function getOwnPropertyDescriptor(O, P) {
O = toIObject(O);
P = toPrimitive(P, true);
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]);
};
/***/
},
/***/ "1495": /***/ function(module, exports, __webpack_require__) {
var dP = __webpack_require__("86cc");
var anObject = __webpack_require__("cb7c");
var getKeys = __webpack_require__("0d58");
module.exports = __webpack_require__("9e1e")
? Object.defineProperties
: function defineProperties(O, Properties) {
anObject(O);
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;
};
/***/
},
/***/ "1991": /***/ function(module, exports, __webpack_require__) {
var ctx = __webpack_require__("9b43");
var invoke = __webpack_require__("31f4");
var html = __webpack_require__("fab2");
var cel = __webpack_require__("230e");
var global = __webpack_require__("7726");
var process = global.process;
var setTask = global.setImmediate;
var clearTask = global.clearImmediate;
var MessageChannel = global.MessageChannel;
var Dispatch = global.Dispatch;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = "onreadystatechange";
var defer, channel, port;
var run = function() {
var id = +this;
// eslint-disable-next-line no-prototype-builtins
if (queue.hasOwnProperty(id)) {
var fn = queue[id];
delete queue[id];
fn();
}
};
var listener = function(event) {
run.call(event.data);
};
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
if (!setTask || !clearTask) {
setTask = function setImmediate(fn) {
var args = [];
var i = 1;
while (arguments.length > i) args.push(arguments[i++]);
queue[++counter] = function() {
// eslint-disable-next-line no-new-func
invoke(typeof fn == "function" ? fn : Function(fn), args);
};
defer(counter);
return counter;
};
clearTask = function clearImmediate(id) {
delete queue[id];
};
// Node.js 0.8-
if (__webpack_require__("2d95")(process) == "process") {
defer = function(id) {
process.nextTick(ctx(run, id, 1));
};
// Sphere (JS game engine) Dispatch API
} else if (Dispatch && Dispatch.now) {
defer = function(id) {
Dispatch.now(ctx(run, id, 1));
};
// Browsers with MessageChannel, includes WebWorkers
} else if (MessageChannel) {
channel = new MessageChannel();
port = channel.port2;
channel.port1.onmessage = listener;
defer = ctx(port.postMessage, port, 1);
// Browsers with postMessage, skip WebWorkers
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
} else if (
global.addEventListener &&
typeof postMessage == "function" &&
!global.importScripts
) {
defer = function(id) {
global.postMessage(id + "", "*");
};
global.addEventListener("message", listener, false);
// IE8-
} else if (ONREADYSTATECHANGE in cel("script")) {
defer = function(id) {
html.appendChild(cel("script"))[ONREADYSTATECHANGE] = function() {
html.removeChild(this);
run.call(id);
};
};
// Rest old browsers
} else {
defer = function(id) {
setTimeout(ctx(run, id, 1), 0);
};
}
}
module.exports = {
set: setTask,
clear: clearTask
};
/***/
},
/***/ "1fa8": /***/ function(module, exports, __webpack_require__) {
// call something on iterator step with safe closing on error
var anObject = __webpack_require__("cb7c");
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) {
var ret = iterator["return"];
if (ret !== undefined) anObject(ret.call(iterator));
throw e;
}
};
/***/
},
/***/ "214f": /***/ function(module, exports, __webpack_require__) {
"use strict";
var hide = __webpack_require__("32e9");
var redefine = __webpack_require__("2aba");
var fails = __webpack_require__("79e5");
var defined = __webpack_require__("be13");
var wks = __webpack_require__("2b4c");
module.exports = function(KEY, length, exec) {
var SYMBOL = wks(KEY);
var fns = exec(defined, SYMBOL, ""[KEY]);
var strfn = fns[0];
var rxfn = fns[1];
if (
fails(function() {
var O = {};
O[SYMBOL] = function() {
return 7;
};
return ""[KEY](O) != 7;
})
) {
redefine(String.prototype, KEY, strfn);
hide(
RegExp.prototype,
SYMBOL,
length == 2
? // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
function(string, arg) {
return rxfn.call(string, this, arg);
}
: // 21.2.5.6 RegExp.prototype[@@match](string)
// 21.2.5.9 RegExp.prototype[@@search](string)
function(string) {
return rxfn.call(string, this);
}
);
}
};
/***/
},
/***/ "2191": /***/ function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE__2191__;
/***/
},
/***/ "230e": /***/ function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("d3f4");
var document = __webpack_require__("7726").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) : {};
};
/***/
},
/***/ "23c6": /***/ function(module, exports, __webpack_require__) {
// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = __webpack_require__("2d95");
var TAG = __webpack_require__("2b4c")("toStringTag");
// ES3 wrong here
var ARG =
cof(
(function() {
return arguments;
})()
) == "Arguments";
// fallback for IE11 Script Access Denied error
var tryGet = function(it, key) {
try {
return it[key];
} catch (e) {
/* empty */
}
};
module.exports = function(it) {
var O, T, B;
return it === undefined
? "Undefined"
: it === null
? "Null"
: // @@toStringTag case
typeof (T = tryGet((O = Object(it)), TAG)) == "string"
? T
: // builtinTag case
ARG
? cof(O)
: // ES3 arguments fallback
(B = cof(O)) == "Object" && typeof O.callee == "function"
? "Arguments"
: B;
};
/***/
},
/***/ "27ee": /***/ function(module, exports, __webpack_require__) {
var classof = __webpack_require__("23c6");
var ITERATOR = __webpack_require__("2b4c")("iterator");
var Iterators = __webpack_require__("84f2");
module.exports = __webpack_require__(
"8378"
).getIteratorMethod = function(it) {
if (it != undefined)
return it[ITERATOR] || it["@@iterator"] || Iterators[classof(it)];
};
/***/
},
/***/ "28a5": /***/ function(module, exports, __webpack_require__) {
// @@split logic
__webpack_require__("214f")("split", 2, function(
defined,
SPLIT,
$split
) {
"use strict";
var isRegExp = __webpack_require__("aae3");
var _split = $split;
var $push = [].push;
var $SPLIT = "split";
var LENGTH = "length";
var LAST_INDEX = "lastIndex";
if (
"abbc"[$SPLIT](/(b)*/)[1] == "c" ||
"test"[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
"ab"[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
"."[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
"."[$SPLIT](/()()/)[LENGTH] > 1 ||
""[$SPLIT](/.?/)[LENGTH]
) {
var NPCG = /()??/.exec("")[1] === undefined; // nonparticipating capturing group
// based on es5-shim implementation, need to rework it
$split = function(separator, limit) {
var string = String(this);
if (separator === undefined && limit === 0) return [];
// If `separator` is not a regex, use native split
if (!isRegExp(separator))
return _split.call(string, separator, limit);
var output = [];
var flags =
(separator.ignoreCase ? "i" : "") +
(separator.multiline ? "m" : "") +
(separator.unicode ? "u" : "") +
(separator.sticky ? "y" : "");
var lastLastIndex = 0;
var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;
// Make `global` and avoid `lastIndex` issues by working with a copy
var separatorCopy = new RegExp(separator.source, flags + "g");
var separator2, match, lastIndex, lastLength, i;
// Doesn't need flags gy, but they don't hurt
if (!NPCG)
separator2 = new RegExp(
"^" + separatorCopy.source + "$(?!\\s)",
flags
);
while ((match = separatorCopy.exec(string))) {
// `separatorCopy.lastIndex` is not reliable cross-browser
lastIndex = match.index + match[0][LENGTH];
if (lastIndex > lastLastIndex) {
output.push(string.slice(lastLastIndex, match.index));
// Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG
// eslint-disable-next-line no-loop-func
if (!NPCG && match[LENGTH] > 1)
match[0].replace(separator2, function() {
for (i = 1; i < arguments[LENGTH] - 2; i++)
if (arguments[i] === undefined) match[i] = undefined;
});
if (match[LENGTH] > 1 && match.index < string[LENGTH])
$push.apply(output, match.slice(1));
lastLength = match[0][LENGTH];
lastLastIndex = lastIndex;
if (output[LENGTH] >= splitLimit) break;
}
if (separatorCopy[LAST_INDEX] === match.index)
separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
}
if (lastLastIndex === string[LENGTH]) {
if (lastLength || !separatorCopy.test("")) output.push("");
} else output.push(string.slice(lastLastIndex));
return output[LENGTH] > splitLimit
? output.slice(0, splitLimit)
: output;
};
// Chakra, V8
} else if ("0"[$SPLIT](undefined, 0)[LENGTH]) {
$split = function(separator, limit) {
return separator === undefined && limit === 0
? []
: _split.call(this, separator, limit);
};
}
// 21.1.3.17 String.prototype.split(separator, limit)
return [
function split(separator, limit) {
var O = defined(this);
var fn = separator == undefined ? undefined : separator[SPLIT];
return fn !== undefined
? fn.call(separator, O, limit)
: $split.call(String(O), separator, limit);
},
$split
];
});
/***/
},
/***/ "2aba": /***/ function(module, exports, __webpack_require__) {
var global = __webpack_require__("7726");
var hide = __webpack_require__("32e9");
var has = __webpack_require__("69a8");
var SRC = __webpack_require__("ca5a")("src");
var TO_STRING = "toString";
var $toString = Function[TO_STRING];
var TPL = ("" + $toString).split(TO_STRING);
__webpack_require__("8378").inspectSource = function(it) {
return $toString.call(it);
};
(module.exports = function(O, key, val, safe) {
var isFunction = typeof val == "function";
if (isFunction) has(val, "name") || hide(val, "name", key);
if (O[key] === val) return;
if (isFunction)
has(val, SRC) ||
hide(val, SRC, O[key] ? "" + O[key] : TPL.join(String(key)));
if (O === global) {
O[key] = val;
} else if (!safe) {
delete O[key];
hide(O, key, val);
} else if (O[key]) {
O[key] = val;
} else {
hide(O, key, val);
}
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, TO_STRING, function toString() {
return (
(typeof this == "function" && this[SRC]) || $toString.call(this)
);
});
/***/
},
/***/ "2aeb": /***/ function(module, exports, __webpack_require__) {
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__("cb7c");
var dPs = __webpack_require__("1495");
var enumBugKeys = __webpack_require__("e11e");
var IE_PROTO = __webpack_require__("613b")("IE_PROTO");
var Empty = function() {
/* empty */
};
var PROTOTYPE = "prototype";
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function() {
// Thrash, waste and sodomy: IE GC bug
var iframe = __webpack_require__("230e")("iframe");
var i = enumBugKeys.length;
var lt = "<";
var gt = ">";
var iframeDocument;
iframe.style.display = "none";
__webpack_require__("fab2").appendChild(iframe);
iframe.src = "javascript:"; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(
lt + "script" + gt + "document.F=Object" + lt + "/script" + gt
);
iframeDocument.close();
createDict = iframeDocument.F;
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
module.exports =
Object.create ||
function create(O, Properties) {
var result;
if (O !== null) {
Empty[PROTOTYPE] = anObject(O);
result = new Empty();
Empty[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : dPs(result, Properties);
};
/***/
},
/***/ "2b4c": /***/ function(module, exports, __webpack_require__) {
var store = __webpack_require__("5537")("wks");
var uid = __webpack_require__("ca5a");
var Symbol = __webpack_require__("7726").Symbol;
var USE_SYMBOL = typeof Symbol == "function";
var $exports = (module.exports = function(name) {
return (
store[name] ||
(store[name] =
(USE_SYMBOL && Symbol[name]) ||
(USE_SYMBOL ? Symbol : uid)("Symbol." + name))
);
});
$exports.store = store;
/***/
},
/***/ "2d00": /***/ function(module, exports) {
module.exports = false;
/***/
},
/***/ "2d95": /***/ function(module, exports) {
var toString = {}.toString;
module.exports = function(it) {
return toString.call(it).slice(8, -1);
};
/***/
},
/***/ "2fdb": /***/ function(module, exports, __webpack_require__) {
"use strict";
// 21.1.3.7 String.prototype.includes(searchString, position = 0)
var $export = __webpack_require__("5ca1");
var context = __webpack_require__("d2c8");
var INCLUDES = "includes";
$export(
$export.P + $export.F * __webpack_require__("5147")(INCLUDES),
"String",
{
includes: function includes(searchString /* , position = 0 */) {
return !!~context(this, searchString, INCLUDES).indexOf(
searchString,
arguments.length > 1 ? arguments[1] : undefined
);
}
}
);
/***/
},
/***/ "2ff6": /***/ function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE__2ff6__;
/***/
},
/***/ "31f4": /***/ function(module, exports) {
// fast apply, http://jsperf.lnkit.com/fast-apply/5
module.exports = function(fn, args, that) {
var un = that === undefined;
switch (args.length) {
case 0:
return un ? fn() : fn.call(that);
case 1:
return un ? fn(args[0]) : fn.call(that, args[0]);
case 2:
return un
? fn(args[0], args[1])
: fn.call(that, args[0], args[1]);
case 3:
return un
? fn(args[0], args[1], args[2])
: fn.call(that, args[0], args[1], args[2]);
case 4:
return un
? fn(args[0], args[1], args[2], args[3])
: fn.call(that, args[0], args[1], args[2], args[3]);
}
return fn.apply(that, args);
};
/***/
},
/***/ "32e9": /***/ function(module, exports, __webpack_require__) {
var dP = __webpack_require__("86cc");
var createDesc = __webpack_require__("4630");
module.exports = __webpack_require__("9e1e")
? function(object, key, value) {
return dP.f(object, key, createDesc(1, value));
}
: function(object, key, value) {
object[key] = value;
return object;
};
/***/
},
/***/ "33a4": /***/ function(module, exports, __webpack_require__) {
// check on default Array iterator
var Iterators = __webpack_require__("84f2");
var ITERATOR = __webpack_require__("2b4c")("iterator");
var ArrayProto = Array.prototype;
module.exports = function(it) {
return (
it !== undefined &&
(Iterators.Array === it || ArrayProto[ITERATOR] === it)
);
};
/***/
},
/***/ "38fd": /***/ function(module, exports, __webpack_require__) {
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__("69a8");
var toObject = __webpack_require__("4bf8");
var IE_PROTO = __webpack_require__("613b")("IE_PROTO");
var ObjectProto = Object.prototype;
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
) {
return O.constructor.prototype;
}
return O instanceof Object ? ObjectProto : null;
};
/***/
},
/***/ "41a0": /***/ function(module, exports, __webpack_require__) {
"use strict";
var create = __webpack_require__("2aeb");
var descriptor = __webpack_require__("4630");
var setToStringTag = __webpack_require__("7f20");
var IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__("32e9")(
IteratorPrototype,
__webpack_require__("2b4c")("iterator"),
function() {
return this;
}
);
module.exports = function(Constructor, NAME, next) {
Constructor.prototype = create(IteratorPrototype, {
next: descriptor(1, next)
});
setToStringTag(Constructor, NAME + " Iterator");
};
/***/
},
/***/ "456d": /***/ function(module, exports, __webpack_require__) {
// 19.1.2.14 Object.keys(O)
var toObject = __webpack_require__("4bf8");
var $keys = __webpack_require__("0d58");
__webpack_require__("5eda")("keys", function() {
return function keys(it) {
return $keys(toObject(it));
};
});
/***/
},
/***/ "4588": /***/ function(module, exports) {
// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function(it) {
return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it);
};
/***/
},
/***/ "4630": /***/ function(module, exports) {
module.exports = function(bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
/***/
},
/***/ "4a59": /***/ function(module, exports, __webpack_require__) {
var ctx = __webpack_require__("9b43");
var call = __webpack_require__("1fa8");
var isArrayIter = __webpack_require__("33a4");
var anObject = __webpack_require__("cb7c");
var toLength = __webpack_require__("9def");
var getIterFn = __webpack_require__("27ee");
var BREAK = {};
var RETURN = {};
var exports = (module.exports = function(
iterable,
entries,
fn,
that,
ITERATOR
) {
var iterFn = ITERATOR
? function() {
return iterable;
}
: getIterFn(iterable);
var f = ctx(fn, that, entries ? 2 : 1);
var index = 0;
var length, step, iterator, result;
if (typeof iterFn != "function")
throw TypeError(iterable + " is not iterable!");
// fast case for arrays with default iterator
if (isArrayIter(iterFn))
for (length = toLength(iterable.length); length > index; index++) {
result = entries
? f(anObject((step = iterable[index]))[0], step[1])
: f(iterable[index]);
if (result === BREAK || result === RETURN) return result;
}
else
for (
iterator = iterFn.call(iterable);
!(step = iterator.next()).done;
) {
result = call(iterator, f, step.value, entries);
if (result === BREAK || result === RETURN) return result;
}
});
exports.BREAK = BREAK;
exports.RETURN = RETURN;
/***/
},
/***/ "4bf8": /***/ function(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
var defined = __webpack_require__("be13");
module.exports = function(it) {
return Object(defined(it));
};
/***/
},
/***/ "504c": /***/ function(module, exports, __webpack_require__) {
var getKeys = __webpack_require__("0d58");
var toIObject = __webpack_require__("6821");
var isEnum = __webpack_require__("52a7").f;
module.exports = function(isEntries) {
return function(it) {
var O = toIObject(it);
var keys = getKeys(O);
var length = keys.length;
var i = 0;
var result = [];
var key;
while (length > i)
if (isEnum.call(O, (key = keys[i++]))) {
result.push(isEntries ? [key, O[key]] : O[key]);
}
return result;
};
};
/***/
},
/***/ "5147": /***/ function(module, exports, __webpack_require__) {
var MATCH = __webpack_require__("2b4c")("match");
module.exports = function(KEY) {
var re = /./;
try {
"/./"[KEY](re);
} catch (e) {
try {
re[MATCH] = false;
return !"/./"[KEY](re);
} catch (f) {
/* empty */
}
}
return true;
};
/***/
},
/***/ "52a7": /***/ function(module, exports) {
exports.f = {}.propertyIsEnumerable;
/***/
},
/***/ "551c": /***/ function(module, exports, __webpack_require__) {
"use strict";
var LIBRARY = __webpack_require__("2d00");
var global = __webpack_require__("7726");
var ctx = __webpack_require__("9b43");
var classof = __webpack_require__("23c6");
var $export = __webpack_require__("5ca1");
var isObject = __webpack_require__("d3f4");
var aFunction = __webpack_require__("d8e8");
var anInstance = __webpack_require__("f605");
var forOf = __webpack_require__("4a59");
var speciesConstructor = __webpack_require__("ebd6");
var task = __webpack_require__("1991").set;
var microtask = __webpack_require__("8079")();
var newPromiseCapabilityModule = __webpack_require__("a5b8");
var perform = __webpack_require__("9c80");
var userAgent = __webpack_require__("a25f");
var promiseResolve = __webpack_require__("bcaa");
var PROMISE = "Promise";
var TypeError = global.TypeError;
var process = global.process;
var versions = process && process.versions;
var v8 = (versions && versions.v8) || "";
var $Promise = global[PROMISE];
var isNode = classof(process) == "process";
var empty = function() {
/* empty */
};
var Internal,
newGenericPromiseCapability,
OwnPromiseCapability,
Wrapper;
var newPromiseCapability = (newGenericPromiseCapability =
newPromiseCapabilityModule.f);
var USE_NATIVE = !!(function() {
try {
// correct subclassing with @@species support
var promise = $Promise.resolve(1);
var FakePromise = ((promise.constructor = {})[
__webpack_require__("2b4c")("species")
] = function(exec) {
exec(empty, empty);
});
// unhandled rejections tracking support, NodeJS Promise without it fails @@species test
return (
(isNode || typeof PromiseRejectionEvent == "function") &&
promise.then(empty) instanceof FakePromise &&
// v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
// we can't detect it synchronously, so just check versions
v8.indexOf("6.6") !== 0 &&
userAgent.indexOf("Chrome/66") === -1
);
} catch (e) {
/* empty */
}
})();
// helpers
var isThenable = function(it) {
var then;
return isObject(it) && typeof (then = it.then) == "function"
? then
: false;
};
var notify = function(promise, isReject) {
if (promise._n) return;
promise._n = true;
var chain = promise._c;
microtask(function() {
var value = promise._v;
var ok = promise._s == 1;
var i = 0;
var run = function(reaction) {
var handler = ok ? reaction.ok : reaction.fail;
var resolve = reaction.resolve;
var reject = reaction.reject;
var domain = reaction.domain;
var result, then, exited;
try {
if (handler) {
if (!ok) {
if (promise._h == 2) onHandleUnhandled(promise);
promise._h = 1;
}
if (handler === true) result = value;
else {
if (domain) domain.enter();
result = handler(value); // may throw
if (domain) {
domain.exit();
exited = true;
}
}
if (result === reaction.promise) {
reject(TypeError("Promise-chain cycle"));
} else if ((then = isThenable(result))) {
then.call(result, resolve, reject);
} else resolve(result);
} else reject(value);
} catch (e) {
if (domain && !exited) domain.exit();
reject(e);
}
};
while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
promise._c = [];
promise._n = false;
if (isReject && !promise._h) onUnhandled(promise);
});
};
var onUnhandled = function(promise) {
task.call(global, function() {
var value = promise._v;
var unhandled = isUnhandled(promise);
var result, handler, console;
if (unhandled) {
result = perform(function() {
if (isNode) {
process.emit("unhandledRejection", value, promise);
} else if ((handler = global.onunhandledrejection)) {
handler({ promise: promise, reason: value });
} else if ((console = global.console) && console.error) {
console.error("Unhandled promise rejection", value);
}
});
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
promise._h = isNode || isUnhandled(promise) ? 2 : 1;
}
promise._a = undefined;
if (unhandled && result.e) throw result.v;
});
};
var isUnhandled = function(promise) {
return promise._h !== 1 && (promise._a || promise._c).length === 0;
};
var onHandleUnhandled = function(promise) {
task.call(global, function() {
var handler;
if (isNode) {
process.emit("rejectionHandled", promise);
} else if ((handler = global.onrejectionhandled)) {
handler({ promise: promise, reason: promise._v });
}
});
};
var $reject = function(value) {
var promise = this;
if (promise._d) return;
promise._d = true;
promise = promise._w || promise; // unwrap
promise._v = value;
promise._s = 2;
if (!promise._a) promise._a = promise._c.slice();
notify(promise, true);
};
var $resolve = function(value) {
var promise = this;
var then;
if (promise._d) return;
promise._d = true;
promise = promise._w || promise; // unwrap
try {
if (promise === value)
throw TypeError("Promise can't be resolved itself");
if ((then = isThenable(value))) {
microtask(function() {
var wrapper = { _w: promise, _d: false }; // wrap
try {
then.call(
value,
ctx($resolve, wrapper, 1),
ctx($reject, wrapper, 1)
);
} catch (e) {
$reject.call(wrapper, e);
}
});
} else {
promise._v = value;
promise._s = 1;
notify(promise, false);
}
} catch (e) {
$reject.call({ _w: promise, _d: false }, e); // wrap
}
};
// constructor polyfill
if (!USE_NATIVE) {
// 25.4.3.1 Promise(executor)
$Promise = function Promise(executor) {
anInstance(this, $Promise, PROMISE, "_h");
aFunction(executor);
Internal.call(this);
try {
executor(ctx($resolve, this, 1), ctx($reject, this, 1));
} catch (err) {
$reject.call(this, err);
}
};
// eslint-disable-next-line no-unused-vars
Internal = function Promise(executor) {
this._c = []; // <- awaiting reactions
this._a = undefined; // <- checked in isUnhandled reactions
this._s = 0; // <- state
this._d = false; // <- done
this._v = undefined; // <- value
this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
this._n = false; // <- notify
};
Internal.prototype = __webpack_require__("dcbc")($Promise.prototype, {
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
then: function then(onFulfilled, onRejected) {
var reaction = newPromiseCapability(
speciesConstructor(this, $Promise)
);
reaction.ok =
typeof onFulfilled == "function" ? onFulfilled : true;
reaction.fail = typeof onRejected == "function" && onRejected;
reaction.domain = isNode ? process.domain : undefined;
this._c.push(reaction);
if (this._a) this._a.push(reaction);
if (this._s) notify(this, false);
return reaction.promise;
},
// 25.4.5.1 Promise.prototype.catch(onRejected)
catch: function(onRejected) {
return this.then(undefined, onRejected);
}
});
OwnPromiseCapability = function() {
var promise = new Internal();
this.promise = promise;
this.resolve = ctx($resolve, promise, 1);
this.reject = ctx($reject, promise, 1);
};
newPromiseCapabilityModule.f = newPromiseCapability = function(C) {
return C === $Promise || C === Wrapper
? new OwnPromiseCapability(C)
: newGenericPromiseCapability(C);
};
}
$export($export.G + $export.W + $export.F * !USE_NATIVE, {
Promise: $Promise
});
__webpack_require__("7f20")($Promise, PROMISE);
__webpack_require__("7a56")(PROMISE);
Wrapper = __webpack_require__("8378")[PROMISE];
// statics
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
// 25.4.4.5 Promise.reject(r)
reject: function reject(r) {
var capability = newPromiseCapability(this);
var $$reject = capability.reject;
$$reject(r);
return capability.promise;
}
});
$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
// 25.4.4.6 Promise.resolve(x)
resolve: function resolve(x) {
return promiseResolve(
LIBRARY && this === Wrapper ? $Promise : this,
x
);
}
});
$export(
$export.S +
$export.F *
!(
USE_NATIVE &&
__webpack_require__("5cc5")(function(iter) {
$Promise.all(iter)["catch"](empty);
})
),
PROMISE,
{
// 25.4.4.1 Promise.all(iterable)
all: function all(iterable) {
var