twgl.js 5.5.2 → 5.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/5.x/twgl.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @license twgl.js 5.5.2 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
2
+ * @license twgl.js 5.5.4 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
3
3
  * Available via the MIT license.
4
4
  * see: http://github.com/greggman/twgl.js for details
5
5
  */
@@ -12,106 +12,20 @@
12
12
  exports["twgl"] = factory();
13
13
  else
14
14
  root["twgl"] = factory();
15
- })(typeof self !== 'undefined' ? self : this, function() {
16
- return /******/ (function(modules) { // webpackBootstrap
17
- /******/ // The module cache
18
- /******/ var installedModules = {};
19
- /******/
20
- /******/ // The require function
21
- /******/ function __webpack_require__(moduleId) {
22
- /******/
23
- /******/ // Check if module is in cache
24
- /******/ if(installedModules[moduleId]) {
25
- /******/ return installedModules[moduleId].exports;
26
- /******/ }
27
- /******/ // Create a new module (and put it into the cache)
28
- /******/ var module = installedModules[moduleId] = {
29
- /******/ i: moduleId,
30
- /******/ l: false,
31
- /******/ exports: {}
32
- /******/ };
33
- /******/
34
- /******/ // Execute the module function
35
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
36
- /******/
37
- /******/ // Flag the module as loaded
38
- /******/ module.l = true;
39
- /******/
40
- /******/ // Return the exports of the module
41
- /******/ return module.exports;
42
- /******/ }
43
- /******/
44
- /******/
45
- /******/ // expose the modules object (__webpack_modules__)
46
- /******/ __webpack_require__.m = modules;
47
- /******/
48
- /******/ // expose the module cache
49
- /******/ __webpack_require__.c = installedModules;
50
- /******/
51
- /******/ // define getter function for harmony exports
52
- /******/ __webpack_require__.d = function(exports, name, getter) {
53
- /******/ if(!__webpack_require__.o(exports, name)) {
54
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
55
- /******/ }
56
- /******/ };
57
- /******/
58
- /******/ // define __esModule on exports
59
- /******/ __webpack_require__.r = function(exports) {
60
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
61
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
62
- /******/ }
63
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
64
- /******/ };
65
- /******/
66
- /******/ // create a fake namespace object
67
- /******/ // mode & 1: value is a module id, require it
68
- /******/ // mode & 2: merge all properties of value into the ns
69
- /******/ // mode & 4: return value when already ns object
70
- /******/ // mode & 8|1: behave like require
71
- /******/ __webpack_require__.t = function(value, mode) {
72
- /******/ if(mode & 1) value = __webpack_require__(value);
73
- /******/ if(mode & 8) return value;
74
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
75
- /******/ var ns = Object.create(null);
76
- /******/ __webpack_require__.r(ns);
77
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
78
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
79
- /******/ return ns;
80
- /******/ };
81
- /******/
82
- /******/ // getDefaultExport function for compatibility with non-harmony modules
83
- /******/ __webpack_require__.n = function(module) {
84
- /******/ var getter = module && module.__esModule ?
85
- /******/ function getDefault() { return module['default']; } :
86
- /******/ function getModuleExports() { return module; };
87
- /******/ __webpack_require__.d(getter, 'a', getter);
88
- /******/ return getter;
89
- /******/ };
90
- /******/
91
- /******/ // Object.prototype.hasOwnProperty.call
92
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
93
- /******/
94
- /******/ // __webpack_public_path__
95
- /******/ __webpack_require__.p = "";
96
- /******/
97
- /******/
98
- /******/ // Load entry module and return exports
99
- /******/ return __webpack_require__(__webpack_require__.s = "./src/twgl-base.js");
100
- /******/ })
101
- /************************************************************************/
102
- /******/ ({
15
+ })(typeof self !== 'undefined' ? self : this, () => {
16
+ return /******/ (() => { // webpackBootstrap
17
+ /******/ "use strict";
18
+ /******/ var __webpack_modules__ = ({
103
19
 
104
20
  /***/ "./src/attributes.js":
105
21
  /*!***************************!*\
106
22
  !*** ./src/attributes.js ***!
107
23
  \***************************/
108
- /*! no static exports found */
109
- /***/ (function(module, exports, __webpack_require__) {
24
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
110
25
 
111
- "use strict";
112
26
 
113
27
 
114
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
28
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
115
29
  exports.__esModule = true;
116
30
  exports.createAttribsFromArrays = createAttribsFromArrays;
117
31
  exports.createBufferFromArray = createBufferFromArray;
@@ -125,8 +39,8 @@ exports.setAttributeDefaults_ = setDefaults;
125
39
  exports.setAttributePrefix = setAttributePrefix;
126
40
  var typedArrays = _interopRequireWildcard(__webpack_require__(/*! ./typedarrays.js */ "./src/typedarrays.js"));
127
41
  var helper = _interopRequireWildcard(__webpack_require__(/*! ./helper.js */ "./src/helper.js"));
128
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
129
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
42
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
43
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
130
44
  /*
131
45
  * Copyright 2019 Gregg Tavares
132
46
  *
@@ -262,7 +176,6 @@ function guessNumComponentsFromName(name, length) {
262
176
  } else {
263
177
  numComponents = 3; // position, normals, indices ...
264
178
  }
265
-
266
179
  if (length % numComponents > 0) {
267
180
  throw new Error("Can not guess numComponents for attribute '".concat(name, "'. Tried ").concat(numComponents, " but ").concat(length, " values is not evenly divisible by ").concat(numComponents, ". You should specify it."));
268
181
  }
@@ -626,7 +539,6 @@ function getNumElementsFromNonIndexedArrays(arrays) {
626
539
  if (length === undefined) {
627
540
  return 1; // There's no arrays
628
541
  }
629
-
630
542
  var numComponents = getNumComponents(array, key);
631
543
  var numElements = length / numComponents;
632
544
  if (length % numComponents > 0) {
@@ -654,7 +566,6 @@ function getNumElementsFromAttributes(gl, attribs) {
654
566
  if (!attrib.buffer) {
655
567
  return 1; // There's no buffer
656
568
  }
657
-
658
569
  gl.bindBuffer(ARRAY_BUFFER, attrib.buffer);
659
570
  var numBytes = gl.getBufferParameter(ARRAY_BUFFER, BUFFER_SIZE);
660
571
  gl.bindBuffer(ARRAY_BUFFER, null);
@@ -868,19 +779,17 @@ function createBuffersFromArrays(gl, arrays) {
868
779
  /*!*********************!*\
869
780
  !*** ./src/draw.js ***!
870
781
  \*********************/
871
- /*! no static exports found */
872
- /***/ (function(module, exports, __webpack_require__) {
782
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
873
783
 
874
- "use strict";
875
784
 
876
785
 
877
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
786
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
878
787
  exports.__esModule = true;
879
788
  exports.drawBufferInfo = drawBufferInfo;
880
789
  exports.drawObjectList = drawObjectList;
881
790
  var programs = _interopRequireWildcard(__webpack_require__(/*! ./programs.js */ "./src/programs.js"));
882
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
883
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
791
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
792
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
884
793
  /*
885
794
  * Copyright 2019 Gregg Tavares
886
795
  *
@@ -1044,21 +953,19 @@ function drawObjectList(gl, objectsToDraw) {
1044
953
  /*!*****************************!*\
1045
954
  !*** ./src/framebuffers.js ***!
1046
955
  \*****************************/
1047
- /*! no static exports found */
1048
- /***/ (function(module, exports, __webpack_require__) {
956
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1049
957
 
1050
- "use strict";
1051
958
 
1052
959
 
1053
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
960
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1054
961
  exports.__esModule = true;
1055
962
  exports.bindFramebufferInfo = bindFramebufferInfo;
1056
963
  exports.createFramebufferInfo = createFramebufferInfo;
1057
964
  exports.resizeFramebufferInfo = resizeFramebufferInfo;
1058
965
  var textures = _interopRequireWildcard(__webpack_require__(/*! ./textures.js */ "./src/textures.js"));
1059
966
  var helper = _interopRequireWildcard(__webpack_require__(/*! ./helper.js */ "./src/helper.js"));
1060
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
1061
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
967
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
968
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
1062
969
  /*
1063
970
  * Copyright 2019 Gregg Tavares
1064
971
  *
@@ -1417,10 +1324,8 @@ function bindFramebufferInfo(gl, framebufferInfo, target) {
1417
1324
  /*!***********************!*\
1418
1325
  !*** ./src/helper.js ***!
1419
1326
  \***********************/
1420
- /*! no static exports found */
1421
- /***/ (function(module, exports, __webpack_require__) {
1327
+ /***/ ((__unused_webpack_module, exports) => {
1422
1328
 
1423
- "use strict";
1424
1329
 
1425
1330
 
1426
1331
  exports.__esModule = true;
@@ -1433,7 +1338,7 @@ exports.isSampler = isSampler;
1433
1338
  exports.isShader = isShader;
1434
1339
  exports.isTexture = isTexture;
1435
1340
  exports.warn = warn;
1436
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1341
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1437
1342
  /*
1438
1343
  * Copyright 2019 Gregg Tavares
1439
1344
  *
@@ -1538,13 +1443,11 @@ function isSampler(gl, t) {
1538
1443
  /*!*************************!*\
1539
1444
  !*** ./src/programs.js ***!
1540
1445
  \*************************/
1541
- /*! no static exports found */
1542
- /***/ (function(module, exports, __webpack_require__) {
1446
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1543
1447
 
1544
- "use strict";
1545
1448
 
1546
1449
 
1547
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1450
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1548
1451
  exports.__esModule = true;
1549
1452
  exports.bindTransformFeedbackInfo = bindTransformFeedbackInfo;
1550
1453
  exports.bindUniformBlock = bindUniformBlock;
@@ -1574,25 +1477,47 @@ exports.setUniforms = setUniforms;
1574
1477
  exports.setUniformsAndBindTextures = void 0;
1575
1478
  var utils = _interopRequireWildcard(__webpack_require__(/*! ./utils.js */ "./src/utils.js"));
1576
1479
  var helper = _interopRequireWildcard(__webpack_require__(/*! ./helper.js */ "./src/helper.js"));
1577
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
1578
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
1579
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
1580
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1581
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1582
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1480
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
1481
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
1482
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(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 resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.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, y) : this.complete(a); }, complete: function complete(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), y; }, finish: function finish(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), resetTryEntry(r), y; } }, "catch": function _catch(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; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
1483
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1484
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1485
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1486
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1487
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1583
1488
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
1584
1489
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
1585
1490
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1586
1491
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1587
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1492
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
1588
1493
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1589
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; 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(_e2) { throw _e2; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1494
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, 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; } } }; }
1590
1495
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
1591
1496
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1592
1497
  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(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
1593
1498
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
1594
1499
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
1595
- function _arrayLikeToArray(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; }
1500
+ function _arrayLikeToArray(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; } /*
1501
+ * Copyright 2019 Gregg Tavares
1502
+ *
1503
+ * Permission is hereby granted, free of charge, to any person obtaining a
1504
+ * copy of this software and associated documentation files (the "Software"),
1505
+ * to deal in the Software without restriction, including without limitation
1506
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1507
+ * and/or sell copies of the Software, and to permit persons to whom the
1508
+ * Software is furnished to do so, subject to the following conditions:
1509
+ *
1510
+ * The above copyright notice and this permission notice shall be included in
1511
+ * all copies or substantial portions of the Software.
1512
+ *
1513
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1514
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1515
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1516
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1517
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1518
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1519
+ * DEALINGS IN THE SOFTWARE.
1520
+ */
1596
1521
  /**
1597
1522
  * Low level shader program related functions
1598
1523
  *
@@ -2582,7 +2507,7 @@ function createProgramNoCheck(gl, shaders, programOptions) {
2582
2507
  * @param {WebGLRenderingContext} gl The WebGLRenderingContext to use.
2583
2508
  * @param {WebGLShader[]|string[]} shaders The shaders to attach, or element ids for their source, or strings that contain their source
2584
2509
  * @param {module:twgl.ProgramOptions|string[]|module:twgl.ErrorCallback} [opt_attribs] Options for the program or an array of attribs names or an error callback. Locations will be assigned by index if not passed in
2585
- * @param {number[]} [opt_locations|module:twgl.ErrorCallback] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2510
+ * @param {number[]|module:twgl.ErrorCallback} [opt_locations] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2586
2511
  * @param {module:twgl.ErrorCallback} [opt_errorCallback] callback for errors. By default it just prints an error to the console
2587
2512
  * on error. If you want something else pass an callback. It's passed an error message.
2588
2513
  * @return {WebGLProgram?} the created program or null if error of a callback was provided.
@@ -2649,13 +2574,13 @@ function wrapCallbackFnToAsyncFn(fn) {
2649
2574
  * @param {WebGLRenderingContext} gl The WebGLRenderingContext to use.
2650
2575
  * @param {WebGLShader[]|string[]} shaders The shaders to attach, or element ids for their source, or strings that contain their source
2651
2576
  * @param {module:twgl.ProgramOptions|string[]|module:twgl.ErrorCallback} [opt_attribs] Options for the program or an array of attribs names or an error callback. Locations will be assigned by index if not passed in
2652
- * @param {number[]} [opt_locations|module:twgl.ErrorCallback] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2577
+ * @param {number[]|module:twgl.ErrorCallback} [opt_locations] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2653
2578
  * @param {module:twgl.ErrorCallback} [opt_errorCallback] callback for errors. By default it just prints an error to the console
2654
2579
  * on error. If you want something else pass an callback. It's passed an error message.
2655
2580
  * @return {Promise<WebGLProgram>} The created program
2656
2581
  * @memberOf module:twgl/programs
2657
2582
  */
2658
- var createProgramAsync = wrapCallbackFnToAsyncFn(createProgram);
2583
+ var createProgramAsync = exports.createProgramAsync = wrapCallbackFnToAsyncFn(createProgram);
2659
2584
 
2660
2585
  /**
2661
2586
  * Same as createProgramInfo but returns a promise
@@ -2666,15 +2591,13 @@ var createProgramAsync = wrapCallbackFnToAsyncFn(createProgram);
2666
2591
  * shaders or ids. The first is assumed to be the vertex shader,
2667
2592
  * the second the fragment shader.
2668
2593
  * @param {module:twgl.ProgramOptions|string[]|module:twgl.ErrorCallback} [opt_attribs] Options for the program or an array of attribs names or an error callback. Locations will be assigned by index if not passed in
2669
- * @param {number[]} [opt_locations|module:twgl.ErrorCallback] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2594
+ * @param {number[]|module:twgl.ErrorCallback} [opt_locations] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2670
2595
  * @param {module:twgl.ErrorCallback} [opt_errorCallback] callback for errors. By default it just prints an error to the console
2671
2596
  * on error. If you want something else pass an callback. It's passed an error message.
2672
2597
  * @return {Promise<module:twgl.ProgramInfo>} The created ProgramInfo
2673
2598
  * @memberOf module:twgl/programs
2674
2599
  */
2675
- exports.createProgramAsync = createProgramAsync;
2676
- var createProgramInfoAsync = wrapCallbackFnToAsyncFn(createProgramInfo);
2677
- exports.createProgramInfoAsync = createProgramInfoAsync;
2600
+ var createProgramInfoAsync = exports.createProgramInfoAsync = wrapCallbackFnToAsyncFn(createProgramInfo);
2678
2601
  function waitForProgramLinkCompletionAsync(_x, _x2) {
2679
2602
  return _waitForProgramLinkCompletionAsync.apply(this, arguments);
2680
2603
  }
@@ -2682,31 +2605,29 @@ function _waitForProgramLinkCompletionAsync() {
2682
2605
  _waitForProgramLinkCompletionAsync = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(gl, program) {
2683
2606
  var ext, checkFn, waitTime;
2684
2607
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2685
- while (1) {
2686
- switch (_context.prev = _context.next) {
2687
- case 0:
2688
- ext = gl.getExtension('KHR_parallel_shader_compile');
2689
- checkFn = ext ? function (gl, program) {
2690
- return gl.getProgramParameter(program, ext.COMPLETION_STATUS_KHR);
2691
- } : function () {
2692
- return true;
2693
- };
2694
- waitTime = 0;
2695
- case 3:
2696
- _context.next = 5;
2697
- return wait(waitTime);
2698
- case 5:
2699
- // must wait at least once
2700
- waitTime = 1000 / 60;
2701
- case 6:
2702
- if (!checkFn(gl, program)) {
2703
- _context.next = 3;
2704
- break;
2705
- }
2706
- case 7:
2707
- case "end":
2708
- return _context.stop();
2709
- }
2608
+ while (1) switch (_context.prev = _context.next) {
2609
+ case 0:
2610
+ ext = gl.getExtension('KHR_parallel_shader_compile');
2611
+ checkFn = ext ? function (gl, program) {
2612
+ return gl.getProgramParameter(program, ext.COMPLETION_STATUS_KHR);
2613
+ } : function () {
2614
+ return true;
2615
+ };
2616
+ waitTime = 0;
2617
+ case 3:
2618
+ _context.next = 5;
2619
+ return wait(waitTime);
2620
+ case 5:
2621
+ // must wait at least once
2622
+ waitTime = 1000 / 60;
2623
+ case 6:
2624
+ if (!checkFn(gl, program)) {
2625
+ _context.next = 3;
2626
+ break;
2627
+ }
2628
+ case 7:
2629
+ case "end":
2630
+ return _context.stop();
2710
2631
  }
2711
2632
  }, _callee);
2712
2633
  }));
@@ -2714,38 +2635,37 @@ function _waitForProgramLinkCompletionAsync() {
2714
2635
  }
2715
2636
  function waitForAllProgramsLinkCompletionAsync(_x3, _x4) {
2716
2637
  return _waitForAllProgramsLinkCompletionAsync.apply(this, arguments);
2717
- } /**
2718
- * Check a program's link status
2719
- * @param {WebGLRenderingContext} gl The WebGLRenderingContext to use.
2720
- * @param {WebGLProgram} program Program to check
2721
- * @param {ErrorCallback} [errFn] func for errors
2722
- * @return {string?} errors if program is failed, else undefined
2723
- * @private
2724
- */
2638
+ }
2639
+ /**
2640
+ * Check a program's link status
2641
+ * @param {WebGLRenderingContext} gl The WebGLRenderingContext to use.
2642
+ * @param {WebGLProgram} program Program to check
2643
+ * @param {ErrorCallback} [errFn] func for errors
2644
+ * @return {string?} errors if program is failed, else undefined
2645
+ * @private
2646
+ */
2725
2647
  function _waitForAllProgramsLinkCompletionAsync() {
2726
2648
  _waitForAllProgramsLinkCompletionAsync = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(gl, programs) {
2727
- var _i4, _Object$values2, program;
2649
+ var _i3, _Object$values2, program;
2728
2650
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2729
- while (1) {
2730
- switch (_context2.prev = _context2.next) {
2731
- case 0:
2732
- _i4 = 0, _Object$values2 = Object.values(programs);
2733
- case 1:
2734
- if (!(_i4 < _Object$values2.length)) {
2735
- _context2.next = 8;
2736
- break;
2737
- }
2738
- program = _Object$values2[_i4];
2739
- _context2.next = 5;
2740
- return waitForProgramLinkCompletionAsync(gl, program);
2741
- case 5:
2742
- _i4++;
2743
- _context2.next = 1;
2651
+ while (1) switch (_context2.prev = _context2.next) {
2652
+ case 0:
2653
+ _i3 = 0, _Object$values2 = Object.values(programs);
2654
+ case 1:
2655
+ if (!(_i3 < _Object$values2.length)) {
2656
+ _context2.next = 8;
2744
2657
  break;
2745
- case 8:
2746
- case "end":
2747
- return _context2.stop();
2748
- }
2658
+ }
2659
+ program = _Object$values2[_i3];
2660
+ _context2.next = 5;
2661
+ return waitForProgramLinkCompletionAsync(gl, program);
2662
+ case 5:
2663
+ _i3++;
2664
+ _context2.next = 1;
2665
+ break;
2666
+ case 8:
2667
+ case "end":
2668
+ return _context2.stop();
2749
2669
  }
2750
2670
  }, _callee2);
2751
2671
  }));
@@ -2787,7 +2707,7 @@ function getProgramErrors(gl, program, errFn) {
2787
2707
  * tags for the shaders. The first is assumed to be the
2788
2708
  * vertex shader, the second the fragment shader.
2789
2709
  * @param {module:twgl.ProgramOptions|string[]|module:twgl.ErrorCallback} [opt_attribs] Options for the program or an array of attribs names or an error callback. Locations will be assigned by index if not passed in
2790
- * @param {number[]} [opt_locations|module:twgl.ErrorCallback] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2710
+ * @param {number[]|module:twgl.ErrorCallback} [opt_locations] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2791
2711
  * @param {module:twgl.ErrorCallback} [opt_errorCallback] callback for errors. By default it just prints an error to the console
2792
2712
  * on error. If you want something else pass an callback. It's passed an error message.
2793
2713
  * @return {WebGLProgram?} the created program or null if error or a callback was provided.
@@ -2831,7 +2751,7 @@ function createProgramFromScripts(gl, shaderScriptIds, opt_attribs, opt_location
2831
2751
  * shaders. The first is assumed to be the vertex shader,
2832
2752
  * the second the fragment shader.
2833
2753
  * @param {module:twgl.ProgramOptions|string[]|module:twgl.ErrorCallback} [opt_attribs] Options for the program or an array of attribs names or an error callback. Locations will be assigned by index if not passed in
2834
- * @param {number[]} [opt_locations|module:twgl.ErrorCallback] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2754
+ * @param {number[]|module:twgl.ErrorCallback} [opt_locations] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
2835
2755
  * @param {module:twgl.ErrorCallback} [opt_errorCallback] callback for errors. By default it just prints an error to the console
2836
2756
  * on error. If you want something else pass an callback. It's passed an error message.
2837
2757
  * @return {WebGLProgram?} the created program or null if error or a callback was provided.
@@ -2880,7 +2800,6 @@ function addSetterToUniformTree(fullPath, setter, node, uniformSetters) {
2880
2800
  if (isArrayIndex) {
2881
2801
  path += tokens[tokenNdx++]; // skip ']'
2882
2802
  }
2883
-
2884
2803
  var isLastToken = tokenNdx === tokens.length;
2885
2804
  if (isLastToken) {
2886
2805
  node[accessor] = setter;
@@ -2929,7 +2848,6 @@ function createUniformSetters(gl, program) {
2929
2848
  if (!typeInfo) {
2930
2849
  throw new Error("unknown type: 0x".concat(type.toString(16))); // we should never get here.
2931
2850
  }
2932
-
2933
2851
  var setter;
2934
2852
  if (typeInfo.bindPoint) {
2935
2853
  // it's a sampler
@@ -3648,7 +3566,7 @@ function setUniforms(setters) {
3648
3566
  * @param {Object.<string, ?>} values an object with values for the
3649
3567
  * @memberOf module:twgl/programs
3650
3568
  */
3651
- var setUniformsAndBindTextures = setUniforms;
3569
+ var setUniformsAndBindTextures = exports.setUniformsAndBindTextures = setUniforms;
3652
3570
 
3653
3571
  /**
3654
3572
  * Creates setter functions for all attributes of a shader
@@ -3660,7 +3578,6 @@ var setUniformsAndBindTextures = setUniforms;
3660
3578
  * @return {Object.<string, function>} an object with a setter for each attribute by name.
3661
3579
  * @memberOf module:twgl/programs
3662
3580
  */
3663
- exports.setUniformsAndBindTextures = setUniformsAndBindTextures;
3664
3581
  function createAttributeSetters(gl, program) {
3665
3582
  var attribSetters = {};
3666
3583
  var numAttribs = gl.getProgramParameter(program, ACTIVE_ATTRIBUTES);
@@ -3857,7 +3774,7 @@ var notIdRE = /\s|{|}|;/;
3857
3774
  * shaders or ids. The first is assumed to be the vertex shader,
3858
3775
  * the second the fragment shader.
3859
3776
  * @param {module:twgl.ProgramOptions|string[]|module:twgl.ErrorCallback} [opt_attribs] Options for the program or an array of attribs names or an error callback. Locations will be assigned by index if not passed in
3860
- * @param {number[]} [opt_locations|module:twgl.ErrorCallback] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
3777
+ * @param {number[]|module:twgl.ErrorCallback} [opt_locations] The locations for the. A parallel array to opt_attribs letting you assign locations or an error callback.
3861
3778
  * @param {module:twgl.ErrorCallback} [opt_errorCallback] callback for errors. By default it just prints an error to the console
3862
3779
  * on error. If you want something else pass an callback. It's passed an error message.
3863
3780
  * @return {module:twgl.ProgramInfo?} The created ProgramInfo or null if it failed to link or compile
@@ -3897,8 +3814,8 @@ function createProgramInfo(gl, shaderSources, opt_attribs, opt_locations, opt_er
3897
3814
  }
3898
3815
  function checkAllPrograms(gl, programs, programSpecs, noDeleteShadersSet, programOptions) {
3899
3816
  // check errors for everything.
3900
- for (var _i2 = 0, _Object$entries = Object.entries(programs); _i2 < _Object$entries.length; _i2++) {
3901
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i2], 2),
3817
+ for (var _i = 0, _Object$entries = Object.entries(programs); _i < _Object$entries.length; _i++) {
3818
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
3902
3819
  name = _Object$entries$_i[0],
3903
3820
  program = _Object$entries$_i[1];
3904
3821
  var options = _objectSpread({}, programOptions);
@@ -3909,8 +3826,8 @@ function checkAllPrograms(gl, programs, programSpecs, noDeleteShadersSet, progra
3909
3826
  var errors = getProgramErrors(gl, program, options.errorCallback);
3910
3827
  if (errors) {
3911
3828
  // delete everything we created
3912
- for (var _i3 = 0, _Object$values = Object.values(programs); _i3 < _Object$values.length; _i3++) {
3913
- var _program = _Object$values[_i3];
3829
+ for (var _i2 = 0, _Object$values = Object.values(programs); _i2 < _Object$values.length; _i2++) {
3830
+ var _program = _Object$values[_i2];
3914
3831
  var shaders = gl.getAttachedShaders(_program);
3915
3832
  gl.deleteProgram(_program);
3916
3833
  var _iterator3 = _createForOfIteratorHelper(shaders),
@@ -4071,7 +3988,7 @@ function createProgramInfos(gl, programSpecs, programOptions) {
4071
3988
  * @param {module:twgl.ProgramOptions} [programOptions] options to apply to all programs
4072
3989
  * @return {Object.<string, WebGLProgram>?} the created programInfos by name
4073
3990
  */
4074
- var createProgramsAsync = wrapCallbackFnToAsyncFn(createPrograms);
3991
+ var createProgramsAsync = exports.createProgramsAsync = wrapCallbackFnToAsyncFn(createPrograms);
4075
3992
 
4076
3993
  /**
4077
3994
  * Creates multiple programInfos asynchronously
@@ -4095,9 +4012,7 @@ var createProgramsAsync = wrapCallbackFnToAsyncFn(createPrograms);
4095
4012
  * @param {module:twgl.ProgramOptions} [programOptions] options to apply to all programs
4096
4013
  * @return {Promise<Object.<string, module:twgl.ProgramInfo>>} the created programInfos by name
4097
4014
  */
4098
- exports.createProgramsAsync = createProgramsAsync;
4099
- var createProgramInfosAsync = wrapCallbackFnToAsyncFn(createProgramInfos);
4100
- exports.createProgramInfosAsync = createProgramInfosAsync;
4015
+ var createProgramInfosAsync = exports.createProgramInfosAsync = wrapCallbackFnToAsyncFn(createProgramInfos);
4101
4016
 
4102
4017
  /***/ }),
4103
4018
 
@@ -4105,13 +4020,11 @@ exports.createProgramInfosAsync = createProgramInfosAsync;
4105
4020
  /*!*************************!*\
4106
4021
  !*** ./src/textures.js ***!
4107
4022
  \*************************/
4108
- /*! no static exports found */
4109
- /***/ (function(module, exports, __webpack_require__) {
4023
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4110
4024
 
4111
- "use strict";
4112
4025
 
4113
4026
 
4114
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4027
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4115
4028
  exports.__esModule = true;
4116
4029
  exports.canFilter = canFilter;
4117
4030
  exports.canGenerateMipmap = canGenerateMipmap;
@@ -4135,8 +4048,8 @@ exports.setTextureParameters = setTextureParameters;
4135
4048
  var utils = _interopRequireWildcard(__webpack_require__(/*! ./utils.js */ "./src/utils.js"));
4136
4049
  var typedArrays = _interopRequireWildcard(__webpack_require__(/*! ./typedarrays.js */ "./src/typedarrays.js"));
4137
4050
  var helper = _interopRequireWildcard(__webpack_require__(/*! ./helper.js */ "./src/helper.js"));
4138
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
4139
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
4051
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
4052
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
4140
4053
  /*
4141
4054
  * Copyright 2019 Gregg Tavares
4142
4055
  *
@@ -5594,7 +5507,6 @@ function loadImage(url, crossOrigin, callback) {
5594
5507
  if (crossOrigin) {
5595
5508
  options.mode = 'cors'; // TODO: not sure how to translate image.crossOrigin
5596
5509
  }
5597
-
5598
5510
  fetch(url, options).then(function (response) {
5599
5511
  if (!response.ok) {
5600
5512
  throw response;
@@ -6277,10 +6189,8 @@ function createTextures(gl, textureOptions, callback) {
6277
6189
  /*!**************************!*\
6278
6190
  !*** ./src/twgl-base.js ***!
6279
6191
  \**************************/
6280
- /*! no static exports found */
6281
- /***/ (function(module, exports, __webpack_require__) {
6192
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
6282
6193
 
6283
- "use strict";
6284
6194
 
6285
6195
 
6286
6196
  exports.__esModule = true;
@@ -6297,13 +6207,11 @@ Object.keys(_twgl).forEach(function (key) {
6297
6207
  /*!*********************!*\
6298
6208
  !*** ./src/twgl.js ***!
6299
6209
  \*********************/
6300
- /*! no static exports found */
6301
- /***/ (function(module, exports, __webpack_require__) {
6210
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
6302
6211
 
6303
- "use strict";
6304
6212
 
6305
6213
 
6306
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
6214
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6307
6215
  exports.__esModule = true;
6308
6216
  var _exportNames = {
6309
6217
  addExtensionsToContext: true,
@@ -6393,8 +6301,8 @@ Object.keys(vertexArrays).forEach(function (key) {
6393
6301
  if (key in exports && exports[key] === vertexArrays[key]) return;
6394
6302
  exports[key] = vertexArrays[key];
6395
6303
  });
6396
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6397
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
6304
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
6305
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
6398
6306
  /*
6399
6307
  * Copyright 2019 Gregg Tavares
6400
6308
  *
@@ -6527,7 +6435,6 @@ function setDefaults(newDefaults) {
6527
6435
  attributes.setAttributeDefaults_(newDefaults); // eslint-disable-line
6528
6436
  textures.setTextureDefaults_(newDefaults); // eslint-disable-line
6529
6437
  }
6530
-
6531
6438
  var prefixRE = /^(.*?)_/;
6532
6439
  function addExtensionToContext(gl, extensionName) {
6533
6440
  utils.glEnumToString(gl, 0);
@@ -6750,16 +6657,25 @@ function resizeCanvasToDisplaySize(canvas, multiplier) {
6750
6657
  return false;
6751
6658
  }
6752
6659
 
6660
+ // function notPrivate(name) {
6661
+ // return name[name.length - 1] !== '_';
6662
+ // }
6663
+ //
6664
+ // function copyPublicProperties(src, dst) {
6665
+ // Object.keys(src).filter(notPrivate).forEach(function(key) {
6666
+ // dst[key] = src[key];
6667
+ // });
6668
+ // return dst;
6669
+ // }
6670
+
6753
6671
  /***/ }),
6754
6672
 
6755
6673
  /***/ "./src/typedarrays.js":
6756
6674
  /*!****************************!*\
6757
6675
  !*** ./src/typedarrays.js ***!
6758
6676
  \****************************/
6759
- /*! no static exports found */
6760
- /***/ (function(module, exports, __webpack_require__) {
6677
+ /***/ ((__unused_webpack_module, exports) => {
6761
6678
 
6762
- "use strict";
6763
6679
 
6764
6680
 
6765
6681
  exports.__esModule = true;
@@ -6928,12 +6844,11 @@ function getTypedArrayTypeForGLType(type) {
6928
6844
  }
6929
6845
  return CTOR;
6930
6846
  }
6931
- var isArrayBuffer = typeof SharedArrayBuffer !== 'undefined' ? function isArrayBufferOrSharedArrayBuffer(a) {
6847
+ var isArrayBuffer = exports.isArrayBuffer = typeof SharedArrayBuffer !== 'undefined' ? function isArrayBufferOrSharedArrayBuffer(a) {
6932
6848
  return a && a.buffer && (a.buffer instanceof ArrayBuffer || a.buffer instanceof SharedArrayBuffer);
6933
6849
  } : function isArrayBuffer(a) {
6934
6850
  return a && a.buffer && a.buffer instanceof ArrayBuffer;
6935
6851
  };
6936
- exports.isArrayBuffer = isArrayBuffer;
6937
6852
 
6938
6853
  /***/ }),
6939
6854
 
@@ -6941,10 +6856,8 @@ exports.isArrayBuffer = isArrayBuffer;
6941
6856
  /*!**********************!*\
6942
6857
  !*** ./src/utils.js ***!
6943
6858
  \**********************/
6944
- /*! no static exports found */
6945
- /***/ (function(module, exports, __webpack_require__) {
6859
+ /***/ ((__unused_webpack_module, exports) => {
6946
6860
 
6947
- "use strict";
6948
6861
 
6949
6862
 
6950
6863
  exports.__esModule = true;
@@ -7060,7 +6973,7 @@ function isWebGL1(gl) {
7060
6973
  * @memberOf module:twgl
7061
6974
  * @function glEnumToString
7062
6975
  */
7063
- var glEnumToString = function () {
6976
+ var glEnumToString = exports.glEnumToString = function () {
7064
6977
  var haveEnumsForType = {};
7065
6978
  var enums = {};
7066
6979
  function addEnums(gl) {
@@ -7080,7 +6993,6 @@ var glEnumToString = function () {
7080
6993
  return enums[value] || (typeof value === 'number' ? "0x".concat(value.toString(16)) : value);
7081
6994
  };
7082
6995
  }();
7083
- exports.glEnumToString = glEnumToString;
7084
6996
 
7085
6997
  /***/ }),
7086
6998
 
@@ -7088,20 +7000,18 @@ exports.glEnumToString = glEnumToString;
7088
7000
  /*!******************************!*\
7089
7001
  !*** ./src/vertex-arrays.js ***!
7090
7002
  \******************************/
7091
- /*! no static exports found */
7092
- /***/ (function(module, exports, __webpack_require__) {
7003
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7093
7004
 
7094
- "use strict";
7095
7005
 
7096
7006
 
7097
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
7007
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
7098
7008
  exports.__esModule = true;
7099
7009
  exports.createVAOAndSetAttributes = createVAOAndSetAttributes;
7100
7010
  exports.createVAOFromBufferInfo = createVAOFromBufferInfo;
7101
7011
  exports.createVertexArrayInfo = createVertexArrayInfo;
7102
7012
  var programs = _interopRequireWildcard(__webpack_require__(/*! ./programs.js */ "./src/programs.js"));
7103
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
7104
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
7013
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
7014
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
7105
7015
  /*
7106
7016
  * Copyright 2019 Gregg Tavares
7107
7017
  *
@@ -7247,6 +7157,41 @@ function createVAOFromBufferInfo(gl, programInfo, bufferInfo) {
7247
7157
 
7248
7158
  /***/ })
7249
7159
 
7250
- /******/ });
7160
+ /******/ });
7161
+ /************************************************************************/
7162
+ /******/ // The module cache
7163
+ /******/ var __webpack_module_cache__ = {};
7164
+ /******/
7165
+ /******/ // The require function
7166
+ /******/ function __webpack_require__(moduleId) {
7167
+ /******/ // Check if module is in cache
7168
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
7169
+ /******/ if (cachedModule !== undefined) {
7170
+ /******/ return cachedModule.exports;
7171
+ /******/ }
7172
+ /******/ // Create a new module (and put it into the cache)
7173
+ /******/ var module = __webpack_module_cache__[moduleId] = {
7174
+ /******/ // no module.id needed
7175
+ /******/ // no module.loaded needed
7176
+ /******/ exports: {}
7177
+ /******/ };
7178
+ /******/
7179
+ /******/ // Execute the module function
7180
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
7181
+ /******/
7182
+ /******/ // Return the exports of the module
7183
+ /******/ return module.exports;
7184
+ /******/ }
7185
+ /******/
7186
+ /************************************************************************/
7187
+ /******/
7188
+ /******/ // startup
7189
+ /******/ // Load entry module and return exports
7190
+ /******/ // This entry module is referenced by other modules so it can't be inlined
7191
+ /******/ var __webpack_exports__ = __webpack_require__("./src/twgl-base.js");
7192
+ /******/
7193
+ /******/ return __webpack_exports__;
7194
+ /******/ })()
7195
+ ;
7251
7196
  });
7252
7197
  //# sourceMappingURL=twgl.js.map