yxspeechrecognition 1.0.9 → 1.1.0
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/YxSpeechRecognition.common.js +815 -281
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +815 -281
- package/YxSpeechRecognition.umd.js.map +1 -1
- package/YxSpeechRecognition.umd.min.js +2 -2
- package/YxSpeechRecognition.umd.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -28,16 +28,16 @@ var update = add("45c40d67", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
28
28
|
/***/ }),
|
|
29
29
|
|
|
30
30
|
/***/ 110:
|
|
31
|
-
/***/ (function(module,
|
|
31
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
32
|
+
|
|
33
|
+
"use strict";
|
|
34
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(284);
|
|
36
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
32
37
|
|
|
33
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;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); }
|
|
34
38
|
!function (t, e) {
|
|
35
|
-
"object" == (
|
|
36
|
-
|
|
37
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
38
|
-
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
39
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;
|
|
40
|
-
}(this, function () {
|
|
39
|
+
"object" == (typeof exports === "undefined" ? "undefined" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(exports)) && "undefined" != "object" ? module.exports = e() : "function" == typeof define && __webpack_require__.amdO ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
|
40
|
+
}(undefined, function () {
|
|
41
41
|
"use strict";
|
|
42
42
|
|
|
43
43
|
var t = 1e3,
|
|
@@ -131,7 +131,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;function _type
|
|
|
131
131
|
},
|
|
132
132
|
O = function O(t, e) {
|
|
133
133
|
if (S(t)) return t.clone();
|
|
134
|
-
var n = "object" ==
|
|
134
|
+
var n = "object" == (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(e) ? e : {};
|
|
135
135
|
return n.date = t, n.args = arguments, new _(n);
|
|
136
136
|
},
|
|
137
137
|
b = v;
|
|
@@ -683,6 +683,26 @@ function applyToTag (styleElement, obj) {
|
|
|
683
683
|
"use strict";
|
|
684
684
|
module.exports = __WEBPACK_EXTERNAL_MODULE__274__;
|
|
685
685
|
|
|
686
|
+
/***/ }),
|
|
687
|
+
|
|
688
|
+
/***/ 284:
|
|
689
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
690
|
+
|
|
691
|
+
"use strict";
|
|
692
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
693
|
+
/* harmony export */ A: function() { return /* binding */ _typeof; }
|
|
694
|
+
/* harmony export */ });
|
|
695
|
+
function _typeof(o) {
|
|
696
|
+
"@babel/helpers - typeof";
|
|
697
|
+
|
|
698
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
699
|
+
return typeof o;
|
|
700
|
+
} : function (o) {
|
|
701
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
702
|
+
}, _typeof(o);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
|
|
686
706
|
/***/ }),
|
|
687
707
|
|
|
688
708
|
/***/ 314:
|
|
@@ -819,19 +839,19 @@ module.exports = function (url, options) {
|
|
|
819
839
|
/***/ }),
|
|
820
840
|
|
|
821
841
|
/***/ 436:
|
|
822
|
-
/***/ (function(module,
|
|
842
|
+
/***/ (function(module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
843
|
+
|
|
844
|
+
"use strict";
|
|
845
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(284);
|
|
846
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
823
847
|
|
|
824
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;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); }
|
|
825
848
|
!function (e, _) {
|
|
826
|
-
"object" == (
|
|
827
|
-
|
|
828
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
829
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;
|
|
830
|
-
}(this, function (e) {
|
|
849
|
+
"object" == (typeof exports === "undefined" ? "undefined" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(exports)) && "undefined" != "object" ? module.exports = _(__webpack_require__(110)) : "function" == typeof define && __webpack_require__.amdO ? define(["dayjs"], _) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_zh_cn = _(e.dayjs);
|
|
850
|
+
}(undefined, function (e) {
|
|
831
851
|
"use strict";
|
|
832
852
|
|
|
833
853
|
function _(e) {
|
|
834
|
-
return e && "object" ==
|
|
854
|
+
return e && "object" == (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(e) && "default" in e ? e : {
|
|
835
855
|
default: e
|
|
836
856
|
};
|
|
837
857
|
}
|
|
@@ -907,16 +927,15 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".message-wrapper[data-v-03109883]{disp
|
|
|
907
927
|
/***/ }),
|
|
908
928
|
|
|
909
929
|
/***/ 527:
|
|
910
|
-
/***/ (function(module,
|
|
930
|
+
/***/ (function(module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
931
|
+
|
|
932
|
+
"use strict";
|
|
933
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(284);
|
|
934
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
911
935
|
|
|
912
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;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); }
|
|
913
936
|
!function (e, t) {
|
|
914
|
-
"object" == (
|
|
915
|
-
|
|
916
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
917
|
-
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
918
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;
|
|
919
|
-
}(this, function () {
|
|
937
|
+
"object" == (typeof exports === "undefined" ? "undefined" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(exports)) && "undefined" != "object" ? module.exports = t() : "function" == typeof define && __webpack_require__.amdO ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekday = t();
|
|
938
|
+
}(undefined, function () {
|
|
920
939
|
"use strict";
|
|
921
940
|
|
|
922
941
|
return function (e, t) {
|
|
@@ -959,6 +978,284 @@ var update = add("506940f9", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
959
978
|
|
|
960
979
|
/***/ }),
|
|
961
980
|
|
|
981
|
+
/***/ 633:
|
|
982
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
983
|
+
|
|
984
|
+
var _typeof = (__webpack_require__(738)["default"]);
|
|
985
|
+
function _regeneratorRuntime() {
|
|
986
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
987
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
988
|
+
return r;
|
|
989
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
990
|
+
var t,
|
|
991
|
+
r = {},
|
|
992
|
+
e = Object.prototype,
|
|
993
|
+
n = e.hasOwnProperty,
|
|
994
|
+
o = "function" == typeof Symbol ? Symbol : {},
|
|
995
|
+
i = o.iterator || "@@iterator",
|
|
996
|
+
a = o.asyncIterator || "@@asyncIterator",
|
|
997
|
+
u = o.toStringTag || "@@toStringTag";
|
|
998
|
+
function c(t, r, e, n) {
|
|
999
|
+
Object.defineProperty(t, r, {
|
|
1000
|
+
value: e,
|
|
1001
|
+
enumerable: !n,
|
|
1002
|
+
configurable: !n,
|
|
1003
|
+
writable: !n
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
try {
|
|
1007
|
+
c({}, "");
|
|
1008
|
+
} catch (t) {
|
|
1009
|
+
c = function c(t, r, e) {
|
|
1010
|
+
return t[r] = e;
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
function h(r, e, n, o) {
|
|
1014
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
1015
|
+
a = Object.create(i.prototype);
|
|
1016
|
+
return c(a, "_invoke", function (r, e, n) {
|
|
1017
|
+
var o = 1;
|
|
1018
|
+
return function (i, a) {
|
|
1019
|
+
if (3 === o) throw Error("Generator is already running");
|
|
1020
|
+
if (4 === o) {
|
|
1021
|
+
if ("throw" === i) throw a;
|
|
1022
|
+
return {
|
|
1023
|
+
value: t,
|
|
1024
|
+
done: !0
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
for (n.method = i, n.arg = a;;) {
|
|
1028
|
+
var u = n.delegate;
|
|
1029
|
+
if (u) {
|
|
1030
|
+
var c = d(u, n);
|
|
1031
|
+
if (c) {
|
|
1032
|
+
if (c === f) continue;
|
|
1033
|
+
return c;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
1037
|
+
if (1 === o) throw o = 4, n.arg;
|
|
1038
|
+
n.dispatchException(n.arg);
|
|
1039
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
1040
|
+
o = 3;
|
|
1041
|
+
var h = s(r, e, n);
|
|
1042
|
+
if ("normal" === h.type) {
|
|
1043
|
+
if (o = n.done ? 4 : 2, h.arg === f) continue;
|
|
1044
|
+
return {
|
|
1045
|
+
value: h.arg,
|
|
1046
|
+
done: n.done
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
"throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
|
|
1050
|
+
}
|
|
1051
|
+
};
|
|
1052
|
+
}(r, n, new Context(o || [])), !0), a;
|
|
1053
|
+
}
|
|
1054
|
+
function s(t, r, e) {
|
|
1055
|
+
try {
|
|
1056
|
+
return {
|
|
1057
|
+
type: "normal",
|
|
1058
|
+
arg: t.call(r, e)
|
|
1059
|
+
};
|
|
1060
|
+
} catch (t) {
|
|
1061
|
+
return {
|
|
1062
|
+
type: "throw",
|
|
1063
|
+
arg: t
|
|
1064
|
+
};
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
r.wrap = h;
|
|
1068
|
+
var f = {};
|
|
1069
|
+
function Generator() {}
|
|
1070
|
+
function GeneratorFunction() {}
|
|
1071
|
+
function GeneratorFunctionPrototype() {}
|
|
1072
|
+
var l = {};
|
|
1073
|
+
c(l, i, function () {
|
|
1074
|
+
return this;
|
|
1075
|
+
});
|
|
1076
|
+
var p = Object.getPrototypeOf,
|
|
1077
|
+
y = p && p(p(x([])));
|
|
1078
|
+
y && y !== e && n.call(y, i) && (l = y);
|
|
1079
|
+
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
|
|
1080
|
+
function g(t) {
|
|
1081
|
+
["next", "throw", "return"].forEach(function (r) {
|
|
1082
|
+
c(t, r, function (t) {
|
|
1083
|
+
return this._invoke(r, t);
|
|
1084
|
+
});
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
function AsyncIterator(t, r) {
|
|
1088
|
+
function e(o, i, a, u) {
|
|
1089
|
+
var c = s(t[o], t, i);
|
|
1090
|
+
if ("throw" !== c.type) {
|
|
1091
|
+
var h = c.arg,
|
|
1092
|
+
f = h.value;
|
|
1093
|
+
return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
|
|
1094
|
+
e("next", t, a, u);
|
|
1095
|
+
}, function (t) {
|
|
1096
|
+
e("throw", t, a, u);
|
|
1097
|
+
}) : r.resolve(f).then(function (t) {
|
|
1098
|
+
h.value = t, a(h);
|
|
1099
|
+
}, function (t) {
|
|
1100
|
+
return e("throw", t, a, u);
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
u(c.arg);
|
|
1104
|
+
}
|
|
1105
|
+
var o;
|
|
1106
|
+
c(this, "_invoke", function (t, n) {
|
|
1107
|
+
function i() {
|
|
1108
|
+
return new r(function (r, o) {
|
|
1109
|
+
e(t, n, r, o);
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
return o = o ? o.then(i, i) : i();
|
|
1113
|
+
}, !0);
|
|
1114
|
+
}
|
|
1115
|
+
function d(r, e) {
|
|
1116
|
+
var n = e.method,
|
|
1117
|
+
o = r.i[n];
|
|
1118
|
+
if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
|
|
1119
|
+
var i = s(o, r.i, e.arg);
|
|
1120
|
+
if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
|
|
1121
|
+
var a = i.arg;
|
|
1122
|
+
return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
|
|
1123
|
+
}
|
|
1124
|
+
function w(t) {
|
|
1125
|
+
this.tryEntries.push(t);
|
|
1126
|
+
}
|
|
1127
|
+
function m(r) {
|
|
1128
|
+
var e = r[4] || {};
|
|
1129
|
+
e.type = "normal", e.arg = t, r[4] = e;
|
|
1130
|
+
}
|
|
1131
|
+
function Context(t) {
|
|
1132
|
+
this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
|
|
1133
|
+
}
|
|
1134
|
+
function x(r) {
|
|
1135
|
+
if (null != r) {
|
|
1136
|
+
var e = r[i];
|
|
1137
|
+
if (e) return e.call(r);
|
|
1138
|
+
if ("function" == typeof r.next) return r;
|
|
1139
|
+
if (!isNaN(r.length)) {
|
|
1140
|
+
var o = -1,
|
|
1141
|
+
a = function e() {
|
|
1142
|
+
for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
|
|
1143
|
+
return e.value = t, e.done = !0, e;
|
|
1144
|
+
};
|
|
1145
|
+
return a.next = a;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
throw new TypeError(_typeof(r) + " is not iterable");
|
|
1149
|
+
}
|
|
1150
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) {
|
|
1151
|
+
var r = "function" == typeof t && t.constructor;
|
|
1152
|
+
return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
|
|
1153
|
+
}, r.mark = function (t) {
|
|
1154
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
|
|
1155
|
+
}, r.awrap = function (t) {
|
|
1156
|
+
return {
|
|
1157
|
+
__await: t
|
|
1158
|
+
};
|
|
1159
|
+
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
1160
|
+
return this;
|
|
1161
|
+
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
1162
|
+
void 0 === i && (i = Promise);
|
|
1163
|
+
var a = new AsyncIterator(h(t, e, n, o), i);
|
|
1164
|
+
return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
|
|
1165
|
+
return t.done ? t.value : a.next();
|
|
1166
|
+
});
|
|
1167
|
+
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
1168
|
+
return this;
|
|
1169
|
+
}), c(v, "toString", function () {
|
|
1170
|
+
return "[object Generator]";
|
|
1171
|
+
}), r.keys = function (t) {
|
|
1172
|
+
var r = Object(t),
|
|
1173
|
+
e = [];
|
|
1174
|
+
for (var n in r) e.unshift(n);
|
|
1175
|
+
return function t() {
|
|
1176
|
+
for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
|
|
1177
|
+
return t.done = !0, t;
|
|
1178
|
+
};
|
|
1179
|
+
}, r.values = x, Context.prototype = {
|
|
1180
|
+
constructor: Context,
|
|
1181
|
+
reset: function reset(r) {
|
|
1182
|
+
if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
|
|
1183
|
+
},
|
|
1184
|
+
stop: function stop() {
|
|
1185
|
+
this.done = !0;
|
|
1186
|
+
var t = this.tryEntries[0][4];
|
|
1187
|
+
if ("throw" === t.type) throw t.arg;
|
|
1188
|
+
return this.rval;
|
|
1189
|
+
},
|
|
1190
|
+
dispatchException: function dispatchException(r) {
|
|
1191
|
+
if (this.done) throw r;
|
|
1192
|
+
var e = this;
|
|
1193
|
+
function n(t) {
|
|
1194
|
+
a.type = "throw", a.arg = r, e.next = t;
|
|
1195
|
+
}
|
|
1196
|
+
for (var o = e.tryEntries.length - 1; o >= 0; --o) {
|
|
1197
|
+
var i = this.tryEntries[o],
|
|
1198
|
+
a = i[4],
|
|
1199
|
+
u = this.prev,
|
|
1200
|
+
c = i[1],
|
|
1201
|
+
h = i[2];
|
|
1202
|
+
if (-1 === i[0]) return n("end"), !1;
|
|
1203
|
+
if (!c && !h) throw Error("try statement without catch or finally");
|
|
1204
|
+
if (null != i[0] && i[0] <= u) {
|
|
1205
|
+
if (u < c) return this.method = "next", this.arg = t, n(c), !0;
|
|
1206
|
+
if (u < h) return n(h), !1;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
abrupt: function abrupt(t, r) {
|
|
1211
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
1212
|
+
var n = this.tryEntries[e];
|
|
1213
|
+
if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
|
|
1214
|
+
var o = n;
|
|
1215
|
+
break;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
|
|
1219
|
+
var i = o ? o[4] : {};
|
|
1220
|
+
return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
|
|
1221
|
+
},
|
|
1222
|
+
complete: function complete(t, r) {
|
|
1223
|
+
if ("throw" === t.type) throw t.arg;
|
|
1224
|
+
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 && r && (this.next = r), f;
|
|
1225
|
+
},
|
|
1226
|
+
finish: function finish(t) {
|
|
1227
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
1228
|
+
var e = this.tryEntries[r];
|
|
1229
|
+
if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
"catch": function _catch(t) {
|
|
1233
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
1234
|
+
var e = this.tryEntries[r];
|
|
1235
|
+
if (e[0] === t) {
|
|
1236
|
+
var n = e[4];
|
|
1237
|
+
if ("throw" === n.type) {
|
|
1238
|
+
var o = n.arg;
|
|
1239
|
+
m(e);
|
|
1240
|
+
}
|
|
1241
|
+
return o;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
throw Error("illegal catch attempt");
|
|
1245
|
+
},
|
|
1246
|
+
delegateYield: function delegateYield(r, e, n) {
|
|
1247
|
+
return this.delegate = {
|
|
1248
|
+
i: x(r),
|
|
1249
|
+
r: e,
|
|
1250
|
+
n: n
|
|
1251
|
+
}, "next" === this.method && (this.arg = t), f;
|
|
1252
|
+
}
|
|
1253
|
+
}, r;
|
|
1254
|
+
}
|
|
1255
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1256
|
+
|
|
1257
|
+
/***/ }),
|
|
1258
|
+
|
|
962
1259
|
/***/ 671:
|
|
963
1260
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
964
1261
|
|
|
@@ -973,6 +1270,44 @@ module.exports = __webpack_require__.p + "img/icon4.cae3c66c.png";
|
|
|
973
1270
|
"use strict";
|
|
974
1271
|
module.exports = "data:image/png;base64,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";
|
|
975
1272
|
|
|
1273
|
+
/***/ }),
|
|
1274
|
+
|
|
1275
|
+
/***/ 738:
|
|
1276
|
+
/***/ (function(module) {
|
|
1277
|
+
|
|
1278
|
+
function _typeof(o) {
|
|
1279
|
+
"@babel/helpers - typeof";
|
|
1280
|
+
|
|
1281
|
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
1282
|
+
return typeof o;
|
|
1283
|
+
} : function (o) {
|
|
1284
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1285
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
1286
|
+
}
|
|
1287
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1288
|
+
|
|
1289
|
+
/***/ }),
|
|
1290
|
+
|
|
1291
|
+
/***/ 756:
|
|
1292
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1293
|
+
|
|
1294
|
+
// TODO(Babel 8): Remove this file.
|
|
1295
|
+
|
|
1296
|
+
var runtime = __webpack_require__(633)();
|
|
1297
|
+
module.exports = runtime;
|
|
1298
|
+
|
|
1299
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
1300
|
+
try {
|
|
1301
|
+
regeneratorRuntime = runtime;
|
|
1302
|
+
} catch (accidentalStrictMode) {
|
|
1303
|
+
if (typeof globalThis === "object") {
|
|
1304
|
+
globalThis.regeneratorRuntime = runtime;
|
|
1305
|
+
} else {
|
|
1306
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
|
|
976
1311
|
/***/ }),
|
|
977
1312
|
|
|
978
1313
|
/***/ 780:
|
|
@@ -1309,12 +1644,15 @@ window && (window.CryptoJSTest = CryptoJS);
|
|
|
1309
1644
|
/******/ // Create a new module (and put it into the cache)
|
|
1310
1645
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1311
1646
|
/******/ id: moduleId,
|
|
1312
|
-
/******/
|
|
1647
|
+
/******/ loaded: false,
|
|
1313
1648
|
/******/ exports: {}
|
|
1314
1649
|
/******/ };
|
|
1315
1650
|
/******/
|
|
1316
1651
|
/******/ // Execute the module function
|
|
1317
|
-
/******/ __webpack_modules__[moduleId]
|
|
1652
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1653
|
+
/******/
|
|
1654
|
+
/******/ // Flag the module as loaded
|
|
1655
|
+
/******/ module.loaded = true;
|
|
1318
1656
|
/******/
|
|
1319
1657
|
/******/ // Return the exports of the module
|
|
1320
1658
|
/******/ return module.exports;
|
|
@@ -1324,6 +1662,11 @@ window && (window.CryptoJSTest = CryptoJS);
|
|
|
1324
1662
|
/******/ __webpack_require__.m = __webpack_modules__;
|
|
1325
1663
|
/******/
|
|
1326
1664
|
/************************************************************************/
|
|
1665
|
+
/******/ /* webpack/runtime/amd options */
|
|
1666
|
+
/******/ !function() {
|
|
1667
|
+
/******/ __webpack_require__.amdO = {};
|
|
1668
|
+
/******/ }();
|
|
1669
|
+
/******/
|
|
1327
1670
|
/******/ /* webpack/runtime/compat get default export */
|
|
1328
1671
|
/******/ !function() {
|
|
1329
1672
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
@@ -1348,6 +1691,21 @@ window && (window.CryptoJSTest = CryptoJS);
|
|
|
1348
1691
|
/******/ };
|
|
1349
1692
|
/******/ }();
|
|
1350
1693
|
/******/
|
|
1694
|
+
/******/ /* webpack/runtime/harmony module decorator */
|
|
1695
|
+
/******/ !function() {
|
|
1696
|
+
/******/ __webpack_require__.hmd = function(module) {
|
|
1697
|
+
/******/ module = Object.create(module);
|
|
1698
|
+
/******/ if (!module.children) module.children = [];
|
|
1699
|
+
/******/ Object.defineProperty(module, 'exports', {
|
|
1700
|
+
/******/ enumerable: true,
|
|
1701
|
+
/******/ set: function() {
|
|
1702
|
+
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
1703
|
+
/******/ }
|
|
1704
|
+
/******/ });
|
|
1705
|
+
/******/ return module;
|
|
1706
|
+
/******/ };
|
|
1707
|
+
/******/ }();
|
|
1708
|
+
/******/
|
|
1351
1709
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1352
1710
|
/******/ !function() {
|
|
1353
1711
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
@@ -1510,6 +1868,70 @@ var staticRenderFns = [function () {
|
|
|
1510
1868
|
|
|
1511
1869
|
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=0c23a6db&scoped=true
|
|
1512
1870
|
|
|
1871
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
1872
|
+
var esm_typeof = __webpack_require__(284);
|
|
1873
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
1874
|
+
|
|
1875
|
+
function toPrimitive(t, r) {
|
|
1876
|
+
if ("object" != (0,esm_typeof/* default */.A)(t) || !t) return t;
|
|
1877
|
+
var e = t[Symbol.toPrimitive];
|
|
1878
|
+
if (void 0 !== e) {
|
|
1879
|
+
var i = e.call(t, r || "default");
|
|
1880
|
+
if ("object" != (0,esm_typeof/* default */.A)(i)) return i;
|
|
1881
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1882
|
+
}
|
|
1883
|
+
return ("string" === r ? String : Number)(t);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
function toPropertyKey(t) {
|
|
1890
|
+
var i = toPrimitive(t, "string");
|
|
1891
|
+
return "symbol" == (0,esm_typeof/* default */.A)(i) ? i : i + "";
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
;// ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
1895
|
+
|
|
1896
|
+
function _defineProperty(e, r, t) {
|
|
1897
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1898
|
+
value: t,
|
|
1899
|
+
enumerable: !0,
|
|
1900
|
+
configurable: !0,
|
|
1901
|
+
writable: !0
|
|
1902
|
+
}) : e[r] = t, e;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
;// ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
1906
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
1907
|
+
try {
|
|
1908
|
+
var i = n[a](c),
|
|
1909
|
+
u = i.value;
|
|
1910
|
+
} catch (n) {
|
|
1911
|
+
return void e(n);
|
|
1912
|
+
}
|
|
1913
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
1914
|
+
}
|
|
1915
|
+
function _asyncToGenerator(n) {
|
|
1916
|
+
return function () {
|
|
1917
|
+
var t = this,
|
|
1918
|
+
e = arguments;
|
|
1919
|
+
return new Promise(function (r, o) {
|
|
1920
|
+
var a = n.apply(t, e);
|
|
1921
|
+
function _next(n) {
|
|
1922
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
1923
|
+
}
|
|
1924
|
+
function _throw(n) {
|
|
1925
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
1926
|
+
}
|
|
1927
|
+
_next(void 0);
|
|
1928
|
+
});
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
1933
|
+
var regenerator = __webpack_require__(756);
|
|
1934
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
1513
1935
|
// EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
|
|
1514
1936
|
var cryptojs = __webpack_require__(950);
|
|
1515
1937
|
;// ./package/SpeechRecognition/utils/speech/getSignature.js
|
|
@@ -1546,19 +1968,71 @@ function signCallback(signStr) {
|
|
|
1546
1968
|
/* harmony default export */ var getSignature = (signCallback);
|
|
1547
1969
|
|
|
1548
1970
|
/** 获取签名 end */
|
|
1971
|
+
;// ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
1972
|
+
function _classCallCheck(a, n) {
|
|
1973
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
;// ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
1977
|
+
|
|
1978
|
+
function _defineProperties(e, r) {
|
|
1979
|
+
for (var t = 0; t < r.length; t++) {
|
|
1980
|
+
var o = r[t];
|
|
1981
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
function _createClass(e, r, t) {
|
|
1985
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
1986
|
+
writable: !1
|
|
1987
|
+
}), e;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
;// ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
1991
|
+
function _arrayLikeToArray(r, a) {
|
|
1992
|
+
(null == a || a > r.length) && (a = r.length);
|
|
1993
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
1994
|
+
return n;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
;// ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
1998
|
+
|
|
1999
|
+
function _arrayWithoutHoles(r) {
|
|
2000
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
;// ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
2004
|
+
function _iterableToArray(r) {
|
|
2005
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
;// ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
2009
|
+
|
|
2010
|
+
function _unsupportedIterableToArray(r, a) {
|
|
2011
|
+
if (r) {
|
|
2012
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
2013
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
2014
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
;// ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
2019
|
+
function _nonIterableSpread() {
|
|
2020
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
function toConsumableArray_toConsumableArray(r) {
|
|
2029
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
2030
|
+
}
|
|
2031
|
+
|
|
1549
2032
|
;// ./package/SpeechRecognition/utils/speech/webrecorder.js
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
1554
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
1555
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
1556
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1557
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
1558
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
1559
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
1560
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
1561
|
-
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); }
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
|
|
1562
2036
|
var audioWorkletCode = "\nclass MyProcessor extends AudioWorkletProcessor {\n constructor(options) {\n super(options);\n this.audioData = [];\n this.nextUpdateFrame = 40;\n }\n\n get intervalInFrames() {\n return 200 / 1000 * sampleRate;\n }\n\n process(inputs) {\n // \u53BB\u5904\u7406\u97F3\u9891\u6570\u636E\n // eslint-disable-next-line no-undef\n if (inputs[0][0]) {\n const output = ".concat(to16kHz, "(inputs[0][0], sampleRate);\n const audioData = ").concat(to16BitPCM, "(output);\n const data = [...new Int8Array(audioData.buffer)];\n this.audioData = this.audioData.concat(data);\n this.nextUpdateFrame -= inputs[0][0].length;\n if (this.nextUpdateFrame < 0) {\n this.nextUpdateFrame += this.intervalInFrames;\n this.port.postMessage({\n audioData: new Int8Array(this.audioData)\n });\n this.audioData = [];\n }\n return true;\n }\n }\n}\n\nregisterProcessor('my-processor', MyProcessor);\n");
|
|
1563
2037
|
var audioWorkletBlobURL = window.URL.createObjectURL(new Blob([audioWorkletCode], {
|
|
1564
2038
|
type: 'text/javascript'
|
|
@@ -1687,7 +2161,7 @@ var WebRecorder = /*#__PURE__*/function () {
|
|
|
1687
2161
|
var inputData = e.inputBuffer.getChannelData(0);
|
|
1688
2162
|
var output = to16kHz(inputData, _this.audioContext.sampleRate);
|
|
1689
2163
|
var audioData = to16BitPCM(output);
|
|
1690
|
-
(_this$audioData = _this.audioData).push.apply(_this$audioData,
|
|
2164
|
+
(_this$audioData = _this.audioData).push.apply(_this$audioData, toConsumableArray_toConsumableArray(new Int8Array(audioData.buffer)));
|
|
1691
2165
|
if (_this.audioData.length > 6400) {
|
|
1692
2166
|
var audioDataArray = new Int8Array(_this.audioData);
|
|
1693
2167
|
_this.OnReceivedData(audioDataArray);
|
|
@@ -1736,29 +2210,67 @@ var WebRecorder = /*#__PURE__*/function () {
|
|
|
1736
2210
|
}();
|
|
1737
2211
|
|
|
1738
2212
|
window && (window.WebRecorder = WebRecorder);
|
|
2213
|
+
;// ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
2214
|
+
function _arrayWithHoles(r) {
|
|
2215
|
+
if (Array.isArray(r)) return r;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
;// ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
2219
|
+
function _iterableToArrayLimit(r, l) {
|
|
2220
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
2221
|
+
if (null != t) {
|
|
2222
|
+
var e,
|
|
2223
|
+
n,
|
|
2224
|
+
i,
|
|
2225
|
+
u,
|
|
2226
|
+
a = [],
|
|
2227
|
+
f = !0,
|
|
2228
|
+
o = !1;
|
|
2229
|
+
try {
|
|
2230
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
2231
|
+
if (Object(t) !== t) return;
|
|
2232
|
+
f = !1;
|
|
2233
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
2234
|
+
} catch (r) {
|
|
2235
|
+
o = !0, n = r;
|
|
2236
|
+
} finally {
|
|
2237
|
+
try {
|
|
2238
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
2239
|
+
} finally {
|
|
2240
|
+
if (o) throw n;
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
return a;
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
;// ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
2248
|
+
function _nonIterableRest() {
|
|
2249
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
;// ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
function _slicedToArray(r, e) {
|
|
2258
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
2259
|
+
}
|
|
2260
|
+
|
|
1739
2261
|
;// ./package/SpeechRecognition/utils/speech/speechrecognizer.js
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
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; } }
|
|
1746
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
|
|
1747
2267
|
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; }
|
|
1748
2268
|
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; }
|
|
1749
|
-
|
|
1750
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == speechrecognizer_typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(speechrecognizer_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { 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 && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
1751
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
1752
|
-
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
1753
|
-
function speechrecognizer_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
1754
|
-
function speechrecognizer_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, speechrecognizer_toPropertyKey(o.key), o); } }
|
|
1755
|
-
function speechrecognizer_createClass(e, r, t) { return r && speechrecognizer_defineProperties(e.prototype, r), t && speechrecognizer_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
1756
|
-
function speechrecognizer_toPropertyKey(t) { var i = speechrecognizer_toPrimitive(t, "string"); return "symbol" == speechrecognizer_typeof(i) ? i : i + ""; }
|
|
1757
|
-
function speechrecognizer_toPrimitive(t, r) { if ("object" != speechrecognizer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != speechrecognizer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2269
|
+
|
|
1758
2270
|
|
|
1759
2271
|
var NewCredential = /*#__PURE__*/function () {
|
|
1760
2272
|
function NewCredential(query) {
|
|
1761
|
-
|
|
2273
|
+
_classCallCheck(this, NewCredential);
|
|
1762
2274
|
this.config = {
|
|
1763
2275
|
appid: query.appid,
|
|
1764
2276
|
secretid: query.secretid,
|
|
@@ -1766,7 +2278,7 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1766
2278
|
};
|
|
1767
2279
|
this.query = query || null;
|
|
1768
2280
|
}
|
|
1769
|
-
return
|
|
2281
|
+
return _createClass(NewCredential, [{
|
|
1770
2282
|
key: "formatSignString",
|
|
1771
2283
|
value: function formatSignString(params) {
|
|
1772
2284
|
var strParam = '';
|
|
@@ -1786,14 +2298,14 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1786
2298
|
}, {
|
|
1787
2299
|
key: "createQuery",
|
|
1788
2300
|
value: function () {
|
|
1789
|
-
var _createQuery = _asyncToGenerator(/*#__PURE__*/
|
|
2301
|
+
var _createQuery = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
1790
2302
|
var params, time, guid, getServerTime, _getServerTime, serverTime;
|
|
1791
|
-
return
|
|
2303
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
1792
2304
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1793
2305
|
case 0:
|
|
1794
2306
|
_getServerTime = function _getServerTime3() {
|
|
1795
|
-
_getServerTime = _asyncToGenerator(/*#__PURE__*/
|
|
1796
|
-
return
|
|
2307
|
+
_getServerTime = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
2308
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
1797
2309
|
while (1) switch (_context.prev = _context.next) {
|
|
1798
2310
|
case 0:
|
|
1799
2311
|
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
@@ -1868,9 +2380,9 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1868
2380
|
}, {
|
|
1869
2381
|
key: "getSignStr",
|
|
1870
2382
|
value: function () {
|
|
1871
|
-
var _getSignStr = _asyncToGenerator(/*#__PURE__*/
|
|
2383
|
+
var _getSignStr = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
1872
2384
|
var queryStr;
|
|
1873
|
-
return
|
|
2385
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
1874
2386
|
while (1) switch (_context3.prev = _context3.next) {
|
|
1875
2387
|
case 0:
|
|
1876
2388
|
_context3.next = 2;
|
|
@@ -1893,7 +2405,7 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1893
2405
|
}();
|
|
1894
2406
|
var SpeechRecognizer = /*#__PURE__*/function () {
|
|
1895
2407
|
function SpeechRecognizer(params) {
|
|
1896
|
-
|
|
2408
|
+
_classCallCheck(this, SpeechRecognizer);
|
|
1897
2409
|
this.appid = params.appid || '';
|
|
1898
2410
|
this.secretid = params.secretid || '';
|
|
1899
2411
|
this.socket = null;
|
|
@@ -1905,7 +2417,7 @@ var SpeechRecognizer = /*#__PURE__*/function () {
|
|
|
1905
2417
|
this.isRecognizeComplete = false; // 当前是否识别结束
|
|
1906
2418
|
}
|
|
1907
2419
|
// 暂停识别,关闭连接
|
|
1908
|
-
return
|
|
2420
|
+
return _createClass(SpeechRecognizer, [{
|
|
1909
2421
|
key: "stop",
|
|
1910
2422
|
value: function stop() {
|
|
1911
2423
|
if (this.socket && this.socket.readyState === 1) {
|
|
@@ -1923,9 +2435,9 @@ var SpeechRecognizer = /*#__PURE__*/function () {
|
|
|
1923
2435
|
}, {
|
|
1924
2436
|
key: "getUrl",
|
|
1925
2437
|
value: function () {
|
|
1926
|
-
var _getUrl = _asyncToGenerator(/*#__PURE__*/
|
|
2438
|
+
var _getUrl = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4() {
|
|
1927
2439
|
var asr, signStr;
|
|
1928
|
-
return
|
|
2440
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
1929
2441
|
while (1) switch (_context4.prev = _context4.next) {
|
|
1930
2442
|
case 0:
|
|
1931
2443
|
// if (!this.appid || !this.secretid) {
|
|
@@ -1952,10 +2464,10 @@ var SpeechRecognizer = /*#__PURE__*/function () {
|
|
|
1952
2464
|
}, {
|
|
1953
2465
|
key: "start",
|
|
1954
2466
|
value: function () {
|
|
1955
|
-
var _start = _asyncToGenerator(/*#__PURE__*/
|
|
2467
|
+
var _start = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
|
|
1956
2468
|
var _this = this;
|
|
1957
2469
|
var url, self, TIConfig, servicepath, headers, urlParams;
|
|
1958
|
-
return
|
|
2470
|
+
return regenerator_default().wrap(function _callee5$(_context5) {
|
|
1959
2471
|
while (1) switch (_context5.prev = _context5.next) {
|
|
1960
2472
|
case 0:
|
|
1961
2473
|
_context5.next = 2;
|
|
@@ -2126,17 +2638,13 @@ var SpeechRecognizer = /*#__PURE__*/function () {
|
|
|
2126
2638
|
|
|
2127
2639
|
window && (window.SpeechRecognizer = SpeechRecognizer);
|
|
2128
2640
|
;// ./package/SpeechRecognition/utils/speech/webaudiospeechrecognizer.js
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
function webaudiospeechrecognizer_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, webaudiospeechrecognizer_toPropertyKey(o.key), o); } }
|
|
2132
|
-
function webaudiospeechrecognizer_createClass(e, r, t) { return r && webaudiospeechrecognizer_defineProperties(e.prototype, r), t && webaudiospeechrecognizer_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2133
|
-
function webaudiospeechrecognizer_toPropertyKey(t) { var i = webaudiospeechrecognizer_toPrimitive(t, "string"); return "symbol" == webaudiospeechrecognizer_typeof(i) ? i : i + ""; }
|
|
2134
|
-
function webaudiospeechrecognizer_toPrimitive(t, r) { if ("object" != webaudiospeechrecognizer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != webaudiospeechrecognizer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2641
|
+
|
|
2642
|
+
|
|
2135
2643
|
|
|
2136
2644
|
|
|
2137
2645
|
var WebAudioSpeechRecognizer = /*#__PURE__*/function () {
|
|
2138
2646
|
function WebAudioSpeechRecognizer(params) {
|
|
2139
|
-
|
|
2647
|
+
_classCallCheck(this, WebAudioSpeechRecognizer);
|
|
2140
2648
|
this.params = params;
|
|
2141
2649
|
this.recorder = null;
|
|
2142
2650
|
this.speechRecognizer = null;
|
|
@@ -2144,7 +2652,7 @@ var WebAudioSpeechRecognizer = /*#__PURE__*/function () {
|
|
|
2144
2652
|
this.audioData = [];
|
|
2145
2653
|
this.timer = null;
|
|
2146
2654
|
}
|
|
2147
|
-
return
|
|
2655
|
+
return _createClass(WebAudioSpeechRecognizer, [{
|
|
2148
2656
|
key: "start",
|
|
2149
2657
|
value: function start() {
|
|
2150
2658
|
var _this = this;
|
|
@@ -2482,13 +2990,8 @@ function bind(fn, thisArg) {
|
|
|
2482
2990
|
;// ./node_modules/axios/lib/utils.js
|
|
2483
2991
|
|
|
2484
2992
|
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
function utils_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return utils_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? utils_arrayLikeToArray(r, a) : void 0; } }
|
|
2488
|
-
function utils_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2489
|
-
function utils_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; } }
|
|
2490
|
-
function utils_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
2491
|
-
function utils_typeof(o) { "@babel/helpers - typeof"; return utils_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; }, utils_typeof(o); }
|
|
2993
|
+
|
|
2994
|
+
|
|
2492
2995
|
|
|
2493
2996
|
|
|
2494
2997
|
// utils is a library of generic helper functions non-specific to axios
|
|
@@ -2511,7 +3014,7 @@ var kindOfTest = function kindOfTest(type) {
|
|
|
2511
3014
|
};
|
|
2512
3015
|
var typeOfTest = function typeOfTest(type) {
|
|
2513
3016
|
return function (thing) {
|
|
2514
|
-
return
|
|
3017
|
+
return (0,esm_typeof/* default */.A)(thing) === type;
|
|
2515
3018
|
};
|
|
2516
3019
|
};
|
|
2517
3020
|
|
|
@@ -2604,7 +3107,7 @@ var isNumber = typeOfTest('number');
|
|
|
2604
3107
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
2605
3108
|
*/
|
|
2606
3109
|
var isObject = function isObject(thing) {
|
|
2607
|
-
return thing !== null &&
|
|
3110
|
+
return thing !== null && (0,esm_typeof/* default */.A)(thing) === 'object';
|
|
2608
3111
|
};
|
|
2609
3112
|
|
|
2610
3113
|
/**
|
|
@@ -2702,7 +3205,7 @@ var isFormData = function isFormData(thing) {
|
|
|
2702
3205
|
*/
|
|
2703
3206
|
var isURLSearchParams = kindOfTest('URLSearchParams');
|
|
2704
3207
|
var _map = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest),
|
|
2705
|
-
_map2 =
|
|
3208
|
+
_map2 = _slicedToArray(_map, 4),
|
|
2706
3209
|
isReadableStream = _map2[0],
|
|
2707
3210
|
isRequest = _map2[1],
|
|
2708
3211
|
isResponse = _map2[2],
|
|
@@ -2746,7 +3249,7 @@ function forEach(obj, fn) {
|
|
|
2746
3249
|
var l;
|
|
2747
3250
|
|
|
2748
3251
|
// Force an array if not already something iterable
|
|
2749
|
-
if (
|
|
3252
|
+
if ((0,esm_typeof/* default */.A)(obj) !== 'object') {
|
|
2750
3253
|
/*eslint no-param-reassign:0*/
|
|
2751
3254
|
obj = [obj];
|
|
2752
3255
|
}
|
|
@@ -3298,7 +3801,7 @@ AxiosError.from = function (error, code, config, request, response, customProps)
|
|
|
3298
3801
|
;// ./node_modules/axios/lib/helpers/toFormData.js
|
|
3299
3802
|
|
|
3300
3803
|
|
|
3301
|
-
|
|
3804
|
+
|
|
3302
3805
|
|
|
3303
3806
|
|
|
3304
3807
|
// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
|
|
@@ -3434,7 +3937,7 @@ function toFormData(obj, formData, options) {
|
|
|
3434
3937
|
*/
|
|
3435
3938
|
function defaultVisitor(value, key, path) {
|
|
3436
3939
|
var arr = value;
|
|
3437
|
-
if (value && !path &&
|
|
3940
|
+
if (value && !path && (0,esm_typeof/* default */.A)(value) === 'object') {
|
|
3438
3941
|
if (utils.endsWith(key, '{}')) {
|
|
3439
3942
|
// eslint-disable-next-line no-param-reassign
|
|
3440
3943
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -3594,16 +4097,12 @@ function buildURL(url, params, options) {
|
|
|
3594
4097
|
;// ./node_modules/axios/lib/core/InterceptorManager.js
|
|
3595
4098
|
|
|
3596
4099
|
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
function InterceptorManager_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, InterceptorManager_toPropertyKey(o.key), o); } }
|
|
3600
|
-
function InterceptorManager_createClass(e, r, t) { return r && InterceptorManager_defineProperties(e.prototype, r), t && InterceptorManager_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
3601
|
-
function InterceptorManager_toPropertyKey(t) { var i = InterceptorManager_toPrimitive(t, "string"); return "symbol" == InterceptorManager_typeof(i) ? i : i + ""; }
|
|
3602
|
-
function InterceptorManager_toPrimitive(t, r) { if ("object" != InterceptorManager_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != InterceptorManager_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4100
|
+
|
|
4101
|
+
|
|
3603
4102
|
|
|
3604
4103
|
var InterceptorManager = /*#__PURE__*/function () {
|
|
3605
4104
|
function InterceptorManager() {
|
|
3606
|
-
|
|
4105
|
+
_classCallCheck(this, InterceptorManager);
|
|
3607
4106
|
this.handlers = [];
|
|
3608
4107
|
}
|
|
3609
4108
|
|
|
@@ -3615,7 +4114,7 @@ var InterceptorManager = /*#__PURE__*/function () {
|
|
|
3615
4114
|
*
|
|
3616
4115
|
* @return {Number} An ID used to remove interceptor later
|
|
3617
4116
|
*/
|
|
3618
|
-
return
|
|
4117
|
+
return _createClass(InterceptorManager, [{
|
|
3619
4118
|
key: "use",
|
|
3620
4119
|
value: function use(fulfilled, rejected, options) {
|
|
3621
4120
|
this.handlers.push({
|
|
@@ -3712,9 +4211,9 @@ var InterceptorManager = /*#__PURE__*/function () {
|
|
|
3712
4211
|
protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
|
|
3713
4212
|
});
|
|
3714
4213
|
;// ./node_modules/axios/lib/platform/common/utils.js
|
|
3715
|
-
|
|
4214
|
+
|
|
3716
4215
|
var hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
3717
|
-
var _navigator = (typeof navigator === "undefined" ? "undefined" :
|
|
4216
|
+
var _navigator = (typeof navigator === "undefined" ? "undefined" : (0,esm_typeof/* default */.A)(navigator)) === 'object' && navigator || undefined;
|
|
3718
4217
|
|
|
3719
4218
|
/**
|
|
3720
4219
|
* Determine if we're running in a standard browser environment
|
|
@@ -3752,12 +4251,9 @@ var hasStandardBrowserWebWorkerEnv = function () {
|
|
|
3752
4251
|
var origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
|
3753
4252
|
|
|
3754
4253
|
;// ./node_modules/axios/lib/platform/index.js
|
|
3755
|
-
|
|
4254
|
+
|
|
3756
4255
|
function platform_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; }
|
|
3757
|
-
function platform_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? platform_ownKeys(Object(t), !0).forEach(function (r) {
|
|
3758
|
-
function platform_defineProperty(e, r, t) { return (r = platform_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3759
|
-
function platform_toPropertyKey(t) { var i = platform_toPrimitive(t, "string"); return "symbol" == platform_typeof(i) ? i : i + ""; }
|
|
3760
|
-
function platform_toPrimitive(t, r) { if ("object" != platform_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != platform_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4256
|
+
function platform_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? platform_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : platform_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3761
4257
|
|
|
3762
4258
|
|
|
3763
4259
|
/* harmony default export */ var platform = (platform_objectSpread(platform_objectSpread({}, common_utils_namespaceObject), browser));
|
|
@@ -4037,23 +4533,13 @@ var ignoreDuplicateOf = utils.toObjectSet(['age', 'authorization', 'content-leng
|
|
|
4037
4533
|
;// ./node_modules/axios/lib/core/AxiosHeaders.js
|
|
4038
4534
|
|
|
4039
4535
|
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
function AxiosHeaders_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
4045
|
-
function AxiosHeaders_toConsumableArray(r) { return AxiosHeaders_arrayWithoutHoles(r) || AxiosHeaders_iterableToArray(r) || AxiosHeaders_unsupportedIterableToArray(r) || AxiosHeaders_nonIterableSpread(); }
|
|
4046
|
-
function AxiosHeaders_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."); }
|
|
4047
|
-
function AxiosHeaders_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
4048
|
-
function AxiosHeaders_arrayWithoutHoles(r) { if (Array.isArray(r)) return AxiosHeaders_arrayLikeToArray(r); }
|
|
4536
|
+
|
|
4537
|
+
|
|
4538
|
+
|
|
4539
|
+
|
|
4049
4540
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = AxiosHeaders_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
4050
4541
|
function AxiosHeaders_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return AxiosHeaders_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? AxiosHeaders_arrayLikeToArray(r, a) : void 0; } }
|
|
4051
4542
|
function AxiosHeaders_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4052
|
-
function AxiosHeaders_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
4053
|
-
function AxiosHeaders_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AxiosHeaders_toPropertyKey(o.key), o); } }
|
|
4054
|
-
function AxiosHeaders_createClass(e, r, t) { return r && AxiosHeaders_defineProperties(e.prototype, r), t && AxiosHeaders_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
4055
|
-
function AxiosHeaders_toPropertyKey(t) { var i = AxiosHeaders_toPrimitive(t, "string"); return "symbol" == AxiosHeaders_typeof(i) ? i : i + ""; }
|
|
4056
|
-
function AxiosHeaders_toPrimitive(t, r) { if ("object" != AxiosHeaders_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != AxiosHeaders_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4057
4543
|
|
|
4058
4544
|
|
|
4059
4545
|
var $internals = Symbol('internals');
|
|
@@ -4111,10 +4597,10 @@ function buildAccessors(obj, header) {
|
|
|
4111
4597
|
}
|
|
4112
4598
|
var AxiosHeaders = /*#__PURE__*/function () {
|
|
4113
4599
|
function AxiosHeaders(headers) {
|
|
4114
|
-
|
|
4600
|
+
_classCallCheck(this, AxiosHeaders);
|
|
4115
4601
|
headers && this.set(headers);
|
|
4116
4602
|
}
|
|
4117
|
-
return
|
|
4603
|
+
return _createClass(AxiosHeaders, [{
|
|
4118
4604
|
key: "set",
|
|
4119
4605
|
value: function set(header, valueOrRewrite, rewrite) {
|
|
4120
4606
|
var self = this;
|
|
@@ -4149,7 +4635,7 @@ var AxiosHeaders = /*#__PURE__*/function () {
|
|
|
4149
4635
|
if (!utils.isArray(entry)) {
|
|
4150
4636
|
throw TypeError('Object iterator must return a key-value pair');
|
|
4151
4637
|
}
|
|
4152
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils.isArray(dest) ? [].concat(
|
|
4638
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils.isArray(dest) ? [].concat(toConsumableArray_toConsumableArray(dest), [entry[1]]) : [dest, entry[1]] : entry[1];
|
|
4153
4639
|
}
|
|
4154
4640
|
} catch (err) {
|
|
4155
4641
|
_iterator.e(err);
|
|
@@ -4281,7 +4767,7 @@ var AxiosHeaders = /*#__PURE__*/function () {
|
|
|
4281
4767
|
key: "toString",
|
|
4282
4768
|
value: function toString() {
|
|
4283
4769
|
return Object.entries(this.toJSON()).map(function (_ref) {
|
|
4284
|
-
var _ref2 =
|
|
4770
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
4285
4771
|
header = _ref2[0],
|
|
4286
4772
|
value = _ref2[1];
|
|
4287
4773
|
return header + ': ' + value;
|
|
@@ -4526,10 +5012,7 @@ function throttle(fn, freq) {
|
|
|
4526
5012
|
}
|
|
4527
5013
|
/* harmony default export */ var helpers_throttle = (throttle);
|
|
4528
5014
|
;// ./node_modules/axios/lib/helpers/progressEventReducer.js
|
|
4529
|
-
|
|
4530
|
-
function progressEventReducer_defineProperty(e, r, t) { return (r = progressEventReducer_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4531
|
-
function progressEventReducer_toPropertyKey(t) { var i = progressEventReducer_toPrimitive(t, "string"); return "symbol" == progressEventReducer_typeof(i) ? i : i + ""; }
|
|
4532
|
-
function progressEventReducer_toPrimitive(t, r) { if ("object" != progressEventReducer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != progressEventReducer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5015
|
+
|
|
4533
5016
|
|
|
4534
5017
|
|
|
4535
5018
|
|
|
@@ -4544,7 +5027,7 @@ var progressEventReducer = function progressEventReducer(listener, isDownloadStr
|
|
|
4544
5027
|
var rate = _speedometer(progressBytes);
|
|
4545
5028
|
var inRange = loaded <= total;
|
|
4546
5029
|
bytesNotified = loaded;
|
|
4547
|
-
var data =
|
|
5030
|
+
var data = _defineProperty({
|
|
4548
5031
|
loaded: loaded,
|
|
4549
5032
|
total: total,
|
|
4550
5033
|
progress: total ? loaded / total : undefined,
|
|
@@ -4577,6 +5060,15 @@ var asyncDecorator = function asyncDecorator(fn) {
|
|
|
4577
5060
|
});
|
|
4578
5061
|
};
|
|
4579
5062
|
};
|
|
5063
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toArray.js
|
|
5064
|
+
|
|
5065
|
+
|
|
5066
|
+
|
|
5067
|
+
|
|
5068
|
+
function _toArray(r) {
|
|
5069
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
5070
|
+
}
|
|
5071
|
+
|
|
4580
5072
|
;// ./node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
4581
5073
|
|
|
4582
5074
|
/* harmony default export */ var isURLSameOrigin = (platform.hasStandardBrowserEnv ? function (origin, isMSIE) {
|
|
@@ -4673,12 +5165,9 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
4673
5165
|
;// ./node_modules/axios/lib/core/mergeConfig.js
|
|
4674
5166
|
|
|
4675
5167
|
|
|
4676
|
-
|
|
5168
|
+
|
|
4677
5169
|
function mergeConfig_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; }
|
|
4678
|
-
function mergeConfig_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? mergeConfig_ownKeys(Object(t), !0).forEach(function (r) {
|
|
4679
|
-
function mergeConfig_defineProperty(e, r, t) { return (r = mergeConfig_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4680
|
-
function mergeConfig_toPropertyKey(t) { var i = mergeConfig_toPrimitive(t, "string"); return "symbol" == mergeConfig_typeof(i) ? i : i + ""; }
|
|
4681
|
-
function mergeConfig_toPrimitive(t, r) { if ("object" != mergeConfig_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != mergeConfig_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5170
|
+
function mergeConfig_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? mergeConfig_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : mergeConfig_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4682
5171
|
|
|
4683
5172
|
|
|
4684
5173
|
var headersToObject = function headersToObject(thing) {
|
|
@@ -4785,15 +5274,8 @@ function mergeConfig(config1, config2) {
|
|
|
4785
5274
|
return config;
|
|
4786
5275
|
}
|
|
4787
5276
|
;// ./node_modules/axios/lib/helpers/resolveConfig.js
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
function resolveConfig_arrayWithoutHoles(r) { if (Array.isArray(r)) return resolveConfig_arrayLikeToArray(r); }
|
|
4791
|
-
function _toArray(r) { return resolveConfig_arrayWithHoles(r) || resolveConfig_iterableToArray(r) || resolveConfig_unsupportedIterableToArray(r) || resolveConfig_nonIterableRest(); }
|
|
4792
|
-
function resolveConfig_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."); }
|
|
4793
|
-
function resolveConfig_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return resolveConfig_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? resolveConfig_arrayLikeToArray(r, a) : void 0; } }
|
|
4794
|
-
function resolveConfig_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4795
|
-
function resolveConfig_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
4796
|
-
function resolveConfig_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
5277
|
+
|
|
5278
|
+
|
|
4797
5279
|
|
|
4798
5280
|
|
|
4799
5281
|
|
|
@@ -4829,7 +5311,7 @@ function resolveConfig_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
4829
5311
|
_ref2 = _toArray(_ref),
|
|
4830
5312
|
type = _ref2[0],
|
|
4831
5313
|
tokens = _ref2.slice(1);
|
|
4832
|
-
headers.setContentType([type || 'multipart/form-data'].concat(
|
|
5314
|
+
headers.setContentType([type || 'multipart/form-data'].concat(toConsumableArray_toConsumableArray(tokens)).join('; '));
|
|
4833
5315
|
}
|
|
4834
5316
|
}
|
|
4835
5317
|
|
|
@@ -4850,12 +5332,7 @@ function resolveConfig_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
4850
5332
|
return newConfig;
|
|
4851
5333
|
});
|
|
4852
5334
|
;// ./node_modules/axios/lib/adapters/xhr.js
|
|
4853
|
-
|
|
4854
|
-
function xhr_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."); }
|
|
4855
|
-
function xhr_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return xhr_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? xhr_arrayLikeToArray(r, a) : void 0; } }
|
|
4856
|
-
function xhr_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4857
|
-
function xhr_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; } }
|
|
4858
|
-
function xhr_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
5335
|
+
|
|
4859
5336
|
|
|
4860
5337
|
|
|
4861
5338
|
|
|
@@ -4996,7 +5473,7 @@ var isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
4996
5473
|
// Handle progress if needed
|
|
4997
5474
|
if (onDownloadProgress) {
|
|
4998
5475
|
var _progressEventReducer = progressEventReducer(onDownloadProgress, true);
|
|
4999
|
-
var _progressEventReducer2 =
|
|
5476
|
+
var _progressEventReducer2 = _slicedToArray(_progressEventReducer, 2);
|
|
5000
5477
|
downloadThrottled = _progressEventReducer2[0];
|
|
5001
5478
|
flushDownload = _progressEventReducer2[1];
|
|
5002
5479
|
request.addEventListener('progress', downloadThrottled);
|
|
@@ -5005,7 +5482,7 @@ var isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5005
5482
|
// Not all browsers support upload events
|
|
5006
5483
|
if (onUploadProgress && request.upload) {
|
|
5007
5484
|
var _progressEventReducer3 = progressEventReducer(onUploadProgress);
|
|
5008
|
-
var _progressEventReducer4 =
|
|
5485
|
+
var _progressEventReducer4 = _slicedToArray(_progressEventReducer3, 2);
|
|
5009
5486
|
uploadThrottled = _progressEventReducer4[0];
|
|
5010
5487
|
flushUpload = _progressEventReducer4[1];
|
|
5011
5488
|
request.upload.addEventListener('progress', uploadThrottled);
|
|
@@ -5080,22 +5557,123 @@ var composeSignals = function composeSignals(signals, timeout) {
|
|
|
5080
5557
|
}
|
|
5081
5558
|
};
|
|
5082
5559
|
/* harmony default export */ var helpers_composeSignals = (composeSignals);
|
|
5560
|
+
;// ./node_modules/@babel/runtime/helpers/esm/OverloadYield.js
|
|
5561
|
+
function _OverloadYield(e, d) {
|
|
5562
|
+
this.v = e, this.k = d;
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5565
|
+
;// ./node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js
|
|
5566
|
+
|
|
5567
|
+
function _wrapAsyncGenerator(e) {
|
|
5568
|
+
return function () {
|
|
5569
|
+
return new AsyncGenerator(e.apply(this, arguments));
|
|
5570
|
+
};
|
|
5571
|
+
}
|
|
5572
|
+
function AsyncGenerator(e) {
|
|
5573
|
+
var r, t;
|
|
5574
|
+
function resume(r, t) {
|
|
5575
|
+
try {
|
|
5576
|
+
var n = e[r](t),
|
|
5577
|
+
o = n.value,
|
|
5578
|
+
u = o instanceof _OverloadYield;
|
|
5579
|
+
Promise.resolve(u ? o.v : o).then(function (t) {
|
|
5580
|
+
if (u) {
|
|
5581
|
+
var i = "return" === r ? "return" : "next";
|
|
5582
|
+
if (!o.k || t.done) return resume(i, t);
|
|
5583
|
+
t = e[i](t).value;
|
|
5584
|
+
}
|
|
5585
|
+
settle(n.done ? "return" : "normal", t);
|
|
5586
|
+
}, function (e) {
|
|
5587
|
+
resume("throw", e);
|
|
5588
|
+
});
|
|
5589
|
+
} catch (e) {
|
|
5590
|
+
settle("throw", e);
|
|
5591
|
+
}
|
|
5592
|
+
}
|
|
5593
|
+
function settle(e, n) {
|
|
5594
|
+
switch (e) {
|
|
5595
|
+
case "return":
|
|
5596
|
+
r.resolve({
|
|
5597
|
+
value: n,
|
|
5598
|
+
done: !0
|
|
5599
|
+
});
|
|
5600
|
+
break;
|
|
5601
|
+
case "throw":
|
|
5602
|
+
r.reject(n);
|
|
5603
|
+
break;
|
|
5604
|
+
default:
|
|
5605
|
+
r.resolve({
|
|
5606
|
+
value: n,
|
|
5607
|
+
done: !1
|
|
5608
|
+
});
|
|
5609
|
+
}
|
|
5610
|
+
(r = r.next) ? resume(r.key, r.arg) : t = null;
|
|
5611
|
+
}
|
|
5612
|
+
this._invoke = function (e, n) {
|
|
5613
|
+
return new Promise(function (o, u) {
|
|
5614
|
+
var i = {
|
|
5615
|
+
key: e,
|
|
5616
|
+
arg: n,
|
|
5617
|
+
resolve: o,
|
|
5618
|
+
reject: u,
|
|
5619
|
+
next: null
|
|
5620
|
+
};
|
|
5621
|
+
t ? t = t.next = i : (r = t = i, resume(e, n));
|
|
5622
|
+
});
|
|
5623
|
+
}, "function" != typeof e["return"] && (this["return"] = void 0);
|
|
5624
|
+
}
|
|
5625
|
+
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
|
5626
|
+
return this;
|
|
5627
|
+
}, AsyncGenerator.prototype.next = function (e) {
|
|
5628
|
+
return this._invoke("next", e);
|
|
5629
|
+
}, AsyncGenerator.prototype["throw"] = function (e) {
|
|
5630
|
+
return this._invoke("throw", e);
|
|
5631
|
+
}, AsyncGenerator.prototype["return"] = function (e) {
|
|
5632
|
+
return this._invoke("return", e);
|
|
5633
|
+
};
|
|
5634
|
+
|
|
5635
|
+
;// ./node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js
|
|
5636
|
+
|
|
5637
|
+
function _awaitAsyncGenerator(e) {
|
|
5638
|
+
return new _OverloadYield(e, 0);
|
|
5639
|
+
}
|
|
5640
|
+
|
|
5641
|
+
;// ./node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js
|
|
5642
|
+
|
|
5643
|
+
function _asyncGeneratorDelegate(t) {
|
|
5644
|
+
var e = {},
|
|
5645
|
+
n = !1;
|
|
5646
|
+
function pump(e, r) {
|
|
5647
|
+
return n = !0, r = new Promise(function (n) {
|
|
5648
|
+
n(t[e](r));
|
|
5649
|
+
}), {
|
|
5650
|
+
done: !1,
|
|
5651
|
+
value: new _OverloadYield(r, 1)
|
|
5652
|
+
};
|
|
5653
|
+
}
|
|
5654
|
+
return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () {
|
|
5655
|
+
return this;
|
|
5656
|
+
}, e.next = function (t) {
|
|
5657
|
+
return n ? (n = !1, t) : pump("next", t);
|
|
5658
|
+
}, "function" == typeof t["throw"] && (e["throw"] = function (t) {
|
|
5659
|
+
if (n) throw n = !1, t;
|
|
5660
|
+
return pump("throw", t);
|
|
5661
|
+
}), "function" == typeof t["return"] && (e["return"] = function (t) {
|
|
5662
|
+
return n ? (n = !1, t) : pump("return", t);
|
|
5663
|
+
}), e;
|
|
5664
|
+
}
|
|
5665
|
+
|
|
5083
5666
|
;// ./node_modules/axios/lib/helpers/trackStream.js
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
function AsyncGenerator(e) { var r, t; function resume(r, t) { try { var n = e[r](t), o = n.value, u = o instanceof _OverloadYield; Promise.resolve(u ? o.v : o).then(function (t) { if (u) { var i = "return" === r ? "return" : "next"; if (!o.k || t.done) return resume(i, t); t = e[i](t).value; } settle(n.done ? "return" : "normal", t); }, function (e) { resume("throw", e); }); } catch (e) { settle("throw", e); } } function settle(e, n) { switch (e) { case "return": r.resolve({ value: n, done: !0 }); break; case "throw": r.reject(n); break; default: r.resolve({ value: n, done: !1 }); } (r = r.next) ? resume(r.key, r.arg) : t = null; } this._invoke = function (e, n) { return new Promise(function (o, u) { var i = { key: e, arg: n, resolve: o, reject: u, next: null }; t ? t = t.next = i : (r = t = i, resume(e, n)); }); }, "function" != typeof e.return && (this.return = void 0); }
|
|
5090
|
-
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { return this; }, AsyncGenerator.prototype.next = function (e) { return this._invoke("next", e); }, AsyncGenerator.prototype.throw = function (e) { return this._invoke("throw", e); }, AsyncGenerator.prototype.return = function (e) { return this._invoke("return", e); };
|
|
5091
|
-
function _awaitAsyncGenerator(e) { return new _OverloadYield(e, 0); }
|
|
5092
|
-
function _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) { return n = !0, r = new Promise(function (n) { n(t[e](r)); }), { done: !1, value: new _OverloadYield(r, 1) }; } return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { return this; }, e.next = function (t) { return n ? (n = !1, t) : pump("next", t); }, "function" == typeof t.throw && (e.throw = function (t) { if (n) throw n = !1, t; return pump("throw", t); }), "function" == typeof t.return && (e.return = function (t) { return n ? (n = !1, t) : pump("return", t); }), e; }
|
|
5093
|
-
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
5667
|
+
|
|
5668
|
+
|
|
5669
|
+
|
|
5670
|
+
|
|
5671
|
+
|
|
5094
5672
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
5095
5673
|
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(r) { var n = this.s.return; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, throw: function _throw(r) { var n = this.s.return; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
5096
|
-
var streamChunk = /*#__PURE__*/
|
|
5674
|
+
var streamChunk = /*#__PURE__*/regenerator.mark(function streamChunk(chunk, chunkSize) {
|
|
5097
5675
|
var len, pos, end;
|
|
5098
|
-
return
|
|
5676
|
+
return regenerator.wrap(function streamChunk$(_context) {
|
|
5099
5677
|
while (1) switch (_context.prev = _context.next) {
|
|
5100
5678
|
case 0:
|
|
5101
5679
|
len = chunk.byteLength;
|
|
@@ -5128,9 +5706,9 @@ var streamChunk = /*#__PURE__*/trackStream_regeneratorRuntime().mark(function st
|
|
|
5128
5706
|
}, streamChunk);
|
|
5129
5707
|
});
|
|
5130
5708
|
var readBytes = /*#__PURE__*/function () {
|
|
5131
|
-
var _ref = _wrapAsyncGenerator(/*#__PURE__*/
|
|
5709
|
+
var _ref = _wrapAsyncGenerator(/*#__PURE__*/regenerator.mark(function _callee(iterable, chunkSize) {
|
|
5132
5710
|
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk;
|
|
5133
|
-
return
|
|
5711
|
+
return regenerator.wrap(function _callee$(_context2) {
|
|
5134
5712
|
while (1) switch (_context2.prev = _context2.next) {
|
|
5135
5713
|
case 0:
|
|
5136
5714
|
_iteratorAbruptCompletion = false;
|
|
@@ -5190,9 +5768,9 @@ var readBytes = /*#__PURE__*/function () {
|
|
|
5190
5768
|
};
|
|
5191
5769
|
}();
|
|
5192
5770
|
var readStream = /*#__PURE__*/function () {
|
|
5193
|
-
var _ref2 = _wrapAsyncGenerator(/*#__PURE__*/
|
|
5771
|
+
var _ref2 = _wrapAsyncGenerator(/*#__PURE__*/regenerator.mark(function _callee2(stream) {
|
|
5194
5772
|
var reader, _yield$_awaitAsyncGen, done, value;
|
|
5195
|
-
return
|
|
5773
|
+
return regenerator.wrap(function _callee2$(_context3) {
|
|
5196
5774
|
while (1) switch (_context3.prev = _context3.next) {
|
|
5197
5775
|
case 0:
|
|
5198
5776
|
if (!stream[Symbol.asyncIterator]) {
|
|
@@ -5251,9 +5829,9 @@ var trackStream = function trackStream(stream, chunkSize, onProgress, onFinish)
|
|
|
5251
5829
|
};
|
|
5252
5830
|
return new ReadableStream({
|
|
5253
5831
|
pull: function pull(controller) {
|
|
5254
|
-
return
|
|
5832
|
+
return _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee3() {
|
|
5255
5833
|
var _yield$iterator$next, _done, value, len, loadedBytes;
|
|
5256
|
-
return
|
|
5834
|
+
return regenerator.wrap(function _callee3$(_context4) {
|
|
5257
5835
|
while (1) switch (_context4.prev = _context4.next) {
|
|
5258
5836
|
case 0:
|
|
5259
5837
|
_context4.prev = 0;
|
|
@@ -5300,21 +5878,12 @@ var trackStream = function trackStream(stream, chunkSize, onProgress, onFinish)
|
|
|
5300
5878
|
});
|
|
5301
5879
|
};
|
|
5302
5880
|
;// ./node_modules/axios/lib/adapters/fetch.js
|
|
5303
|
-
|
|
5881
|
+
|
|
5882
|
+
|
|
5883
|
+
|
|
5304
5884
|
function fetch_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; }
|
|
5305
|
-
function fetch_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? fetch_ownKeys(Object(t), !0).forEach(function (r) {
|
|
5306
|
-
|
|
5307
|
-
function fetch_toPropertyKey(t) { var i = fetch_toPrimitive(t, "string"); return "symbol" == fetch_typeof(i) ? i : i + ""; }
|
|
5308
|
-
function fetch_toPrimitive(t, r) { if ("object" != fetch_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != fetch_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5309
|
-
function fetch_slicedToArray(r, e) { return fetch_arrayWithHoles(r) || fetch_iterableToArrayLimit(r, e) || fetch_unsupportedIterableToArray(r, e) || fetch_nonIterableRest(); }
|
|
5310
|
-
function fetch_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."); }
|
|
5311
|
-
function fetch_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return fetch_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? fetch_arrayLikeToArray(r, a) : void 0; } }
|
|
5312
|
-
function fetch_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5313
|
-
function fetch_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; } }
|
|
5314
|
-
function fetch_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
5315
|
-
function fetch_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ fetch_regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == fetch_typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(fetch_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { 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 && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
5316
|
-
function fetch_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
5317
|
-
function fetch_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { fetch_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { fetch_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
5885
|
+
function fetch_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? fetch_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : fetch_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5886
|
+
|
|
5318
5887
|
|
|
5319
5888
|
|
|
5320
5889
|
|
|
@@ -5333,8 +5902,8 @@ var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? functi
|
|
|
5333
5902
|
return encoder.encode(str);
|
|
5334
5903
|
};
|
|
5335
5904
|
}(new TextEncoder()) : (/*#__PURE__*/function () {
|
|
5336
|
-
var _ref =
|
|
5337
|
-
return
|
|
5905
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee(str) {
|
|
5906
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
5338
5907
|
while (1) switch (_context.prev = _context.next) {
|
|
5339
5908
|
case 0:
|
|
5340
5909
|
_context.t0 = Uint8Array;
|
|
@@ -5394,9 +5963,9 @@ isFetchSupported && function (res) {
|
|
|
5394
5963
|
});
|
|
5395
5964
|
}(new Response());
|
|
5396
5965
|
var getBodyLength = /*#__PURE__*/function () {
|
|
5397
|
-
var _ref2 =
|
|
5966
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee2(body) {
|
|
5398
5967
|
var _request;
|
|
5399
|
-
return
|
|
5968
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
5400
5969
|
while (1) switch (_context2.prev = _context2.next) {
|
|
5401
5970
|
case 0:
|
|
5402
5971
|
if (!(body == null)) {
|
|
@@ -5452,9 +6021,9 @@ var getBodyLength = /*#__PURE__*/function () {
|
|
|
5452
6021
|
};
|
|
5453
6022
|
}();
|
|
5454
6023
|
var resolveBodyLength = /*#__PURE__*/function () {
|
|
5455
|
-
var _ref3 =
|
|
6024
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee3(headers, body) {
|
|
5456
6025
|
var length;
|
|
5457
|
-
return
|
|
6026
|
+
return regenerator.wrap(function _callee3$(_context3) {
|
|
5458
6027
|
while (1) switch (_context3.prev = _context3.next) {
|
|
5459
6028
|
case 0:
|
|
5460
6029
|
length = utils.toFiniteNumber(headers.getContentLength());
|
|
@@ -5470,9 +6039,9 @@ var resolveBodyLength = /*#__PURE__*/function () {
|
|
|
5470
6039
|
};
|
|
5471
6040
|
}();
|
|
5472
6041
|
/* harmony default export */ var adapters_fetch = (isFetchSupported && (/*#__PURE__*/function () {
|
|
5473
|
-
var _ref4 =
|
|
6042
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee4(config) {
|
|
5474
6043
|
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, response, isStreamResponse, options, responseContentLength, _ref5, _ref6, _onProgress, _flush, responseData;
|
|
5475
|
-
return
|
|
6044
|
+
return regenerator.wrap(function _callee4$(_context4) {
|
|
5476
6045
|
while (1) switch (_context4.prev = _context4.next) {
|
|
5477
6046
|
case 0:
|
|
5478
6047
|
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
|
|
@@ -5506,7 +6075,7 @@ var resolveBodyLength = /*#__PURE__*/function () {
|
|
|
5506
6075
|
headers.setContentType(contentTypeHeader);
|
|
5507
6076
|
}
|
|
5508
6077
|
if (_request.body) {
|
|
5509
|
-
_progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 =
|
|
6078
|
+
_progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 = _slicedToArray(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];
|
|
5510
6079
|
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
5511
6080
|
}
|
|
5512
6081
|
case 15:
|
|
@@ -5536,7 +6105,7 @@ var resolveBodyLength = /*#__PURE__*/function () {
|
|
|
5536
6105
|
options[prop] = response[prop];
|
|
5537
6106
|
});
|
|
5538
6107
|
responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));
|
|
5539
|
-
_ref5 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref6 =
|
|
6108
|
+
_ref5 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref6 = _slicedToArray(_ref5, 2), _onProgress = _ref6[0], _flush = _ref6[1];
|
|
5540
6109
|
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, _onProgress, function () {
|
|
5541
6110
|
_flush && _flush();
|
|
5542
6111
|
unsubscribe && unsubscribe();
|
|
@@ -5585,12 +6154,7 @@ var resolveBodyLength = /*#__PURE__*/function () {
|
|
|
5585
6154
|
};
|
|
5586
6155
|
}()));
|
|
5587
6156
|
;// ./node_modules/axios/lib/adapters/adapters.js
|
|
5588
|
-
|
|
5589
|
-
function adapters_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."); }
|
|
5590
|
-
function adapters_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return adapters_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? adapters_arrayLikeToArray(r, a) : void 0; } }
|
|
5591
|
-
function adapters_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5592
|
-
function adapters_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; } }
|
|
5593
|
-
function adapters_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
6157
|
+
|
|
5594
6158
|
|
|
5595
6159
|
|
|
5596
6160
|
|
|
@@ -5646,7 +6210,7 @@ var isResolvedHandle = function isResolvedHandle(adapter) {
|
|
|
5646
6210
|
}
|
|
5647
6211
|
if (!adapter) {
|
|
5648
6212
|
var reasons = Object.entries(rejectedReasons).map(function (_ref) {
|
|
5649
|
-
var _ref2 =
|
|
6213
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
5650
6214
|
id = _ref2[0],
|
|
5651
6215
|
state = _ref2[1];
|
|
5652
6216
|
return "adapter ".concat(id, " ") + (state === false ? 'is not supported by the environment' : 'is not available in the build');
|
|
@@ -5726,7 +6290,7 @@ var VERSION = "1.9.0";
|
|
|
5726
6290
|
;// ./node_modules/axios/lib/helpers/validator.js
|
|
5727
6291
|
|
|
5728
6292
|
|
|
5729
|
-
|
|
6293
|
+
|
|
5730
6294
|
|
|
5731
6295
|
|
|
5732
6296
|
var validators = {};
|
|
@@ -5734,7 +6298,7 @@ var validators = {};
|
|
|
5734
6298
|
// eslint-disable-next-line func-names
|
|
5735
6299
|
['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) {
|
|
5736
6300
|
validators[type] = function validator(thing) {
|
|
5737
|
-
return
|
|
6301
|
+
return (0,esm_typeof/* default */.A)(thing) === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
|
|
5738
6302
|
};
|
|
5739
6303
|
});
|
|
5740
6304
|
var deprecatedWarnings = {};
|
|
@@ -5785,7 +6349,7 @@ validators.spelling = function spelling(correctSpelling) {
|
|
|
5785
6349
|
*/
|
|
5786
6350
|
|
|
5787
6351
|
function assertOptions(options, schema, allowUnknown) {
|
|
5788
|
-
if (
|
|
6352
|
+
if ((0,esm_typeof/* default */.A)(options) !== 'object') {
|
|
5789
6353
|
throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
5790
6354
|
}
|
|
5791
6355
|
var keys = Object.keys(options);
|
|
@@ -5813,15 +6377,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
5813
6377
|
;// ./node_modules/axios/lib/core/Axios.js
|
|
5814
6378
|
|
|
5815
6379
|
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
function Axios_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
5821
|
-
function Axios_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, Axios_toPropertyKey(o.key), o); } }
|
|
5822
|
-
function Axios_createClass(e, r, t) { return r && Axios_defineProperties(e.prototype, r), t && Axios_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5823
|
-
function Axios_toPropertyKey(t) { var i = Axios_toPrimitive(t, "string"); return "symbol" == Axios_typeof(i) ? i : i + ""; }
|
|
5824
|
-
function Axios_toPrimitive(t, r) { if ("object" != Axios_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Axios_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6380
|
+
|
|
6381
|
+
|
|
6382
|
+
|
|
6383
|
+
|
|
5825
6384
|
|
|
5826
6385
|
|
|
5827
6386
|
|
|
@@ -5841,7 +6400,7 @@ var Axios_validators = validator.validators;
|
|
|
5841
6400
|
*/
|
|
5842
6401
|
var Axios = /*#__PURE__*/function () {
|
|
5843
6402
|
function Axios(instanceConfig) {
|
|
5844
|
-
|
|
6403
|
+
_classCallCheck(this, Axios);
|
|
5845
6404
|
this.defaults = instanceConfig || {};
|
|
5846
6405
|
this.interceptors = {
|
|
5847
6406
|
request: new core_InterceptorManager(),
|
|
@@ -5857,12 +6416,12 @@ var Axios = /*#__PURE__*/function () {
|
|
|
5857
6416
|
*
|
|
5858
6417
|
* @returns {Promise} The Promise to be fulfilled
|
|
5859
6418
|
*/
|
|
5860
|
-
return
|
|
6419
|
+
return _createClass(Axios, [{
|
|
5861
6420
|
key: "request",
|
|
5862
6421
|
value: (function () {
|
|
5863
|
-
var _request2 =
|
|
6422
|
+
var _request2 = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee(configOrUrl, config) {
|
|
5864
6423
|
var dummy, stack;
|
|
5865
|
-
return
|
|
6424
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
5866
6425
|
while (1) switch (_context.prev = _context.next) {
|
|
5867
6426
|
case 0:
|
|
5868
6427
|
_context.prev = 0;
|
|
@@ -6055,12 +6614,8 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
6055
6614
|
;// ./node_modules/axios/lib/cancel/CancelToken.js
|
|
6056
6615
|
|
|
6057
6616
|
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
function CancelToken_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, CancelToken_toPropertyKey(o.key), o); } }
|
|
6061
|
-
function CancelToken_createClass(e, r, t) { return r && CancelToken_defineProperties(e.prototype, r), t && CancelToken_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6062
|
-
function CancelToken_toPropertyKey(t) { var i = CancelToken_toPrimitive(t, "string"); return "symbol" == CancelToken_typeof(i) ? i : i + ""; }
|
|
6063
|
-
function CancelToken_toPrimitive(t, r) { if ("object" != CancelToken_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != CancelToken_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6617
|
+
|
|
6618
|
+
|
|
6064
6619
|
|
|
6065
6620
|
|
|
6066
6621
|
/**
|
|
@@ -6072,7 +6627,7 @@ function CancelToken_toPrimitive(t, r) { if ("object" != CancelToken_typeof(t) |
|
|
|
6072
6627
|
*/
|
|
6073
6628
|
var CancelToken = /*#__PURE__*/function () {
|
|
6074
6629
|
function CancelToken(executor) {
|
|
6075
|
-
|
|
6630
|
+
_classCallCheck(this, CancelToken);
|
|
6076
6631
|
if (typeof executor !== 'function') {
|
|
6077
6632
|
throw new TypeError('executor must be a function.');
|
|
6078
6633
|
}
|
|
@@ -6118,7 +6673,7 @@ var CancelToken = /*#__PURE__*/function () {
|
|
|
6118
6673
|
/**
|
|
6119
6674
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
6120
6675
|
*/
|
|
6121
|
-
return
|
|
6676
|
+
return _createClass(CancelToken, [{
|
|
6122
6677
|
key: "throwIfRequested",
|
|
6123
6678
|
value: function throwIfRequested() {
|
|
6124
6679
|
if (this.reason) {
|
|
@@ -6236,12 +6791,7 @@ function isAxiosError(payload) {
|
|
|
6236
6791
|
return utils.isObject(payload) && payload.isAxiosError === true;
|
|
6237
6792
|
}
|
|
6238
6793
|
;// ./node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
6239
|
-
|
|
6240
|
-
function HttpStatusCode_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."); }
|
|
6241
|
-
function HttpStatusCode_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return HttpStatusCode_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? HttpStatusCode_arrayLikeToArray(r, a) : void 0; } }
|
|
6242
|
-
function HttpStatusCode_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6243
|
-
function HttpStatusCode_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; } }
|
|
6244
|
-
function HttpStatusCode_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
6794
|
+
|
|
6245
6795
|
var HttpStatusCode = {
|
|
6246
6796
|
Continue: 100,
|
|
6247
6797
|
SwitchingProtocols: 101,
|
|
@@ -6308,7 +6858,7 @@ var HttpStatusCode = {
|
|
|
6308
6858
|
NetworkAuthenticationRequired: 511
|
|
6309
6859
|
};
|
|
6310
6860
|
Object.entries(HttpStatusCode).forEach(function (_ref) {
|
|
6311
|
-
var _ref2 =
|
|
6861
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
6312
6862
|
key = _ref2[0],
|
|
6313
6863
|
value = _ref2[1];
|
|
6314
6864
|
HttpStatusCode[value] = key;
|
|
@@ -6435,18 +6985,14 @@ request.interceptors.response.use(function (resp) {
|
|
|
6435
6985
|
});
|
|
6436
6986
|
/* harmony default export */ var gridRequest = (request);
|
|
6437
6987
|
;// ./package/SpeechRecognition/api/Tx.js
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
function Tx_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, Tx_toPropertyKey(o.key), o); } }
|
|
6441
|
-
function Tx_createClass(e, r, t) { return r && Tx_defineProperties(e.prototype, r), t && Tx_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6442
|
-
function Tx_toPropertyKey(t) { var i = Tx_toPrimitive(t, "string"); return "symbol" == Tx_typeof(i) ? i : i + ""; }
|
|
6443
|
-
function Tx_toPrimitive(t, r) { if ("object" != Tx_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Tx_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6988
|
+
|
|
6989
|
+
|
|
6444
6990
|
|
|
6445
6991
|
var Tx = /*#__PURE__*/function () {
|
|
6446
6992
|
function Tx() {
|
|
6447
|
-
|
|
6993
|
+
_classCallCheck(this, Tx);
|
|
6448
6994
|
}
|
|
6449
|
-
return
|
|
6995
|
+
return _createClass(Tx, null, [{
|
|
6450
6996
|
key: "TextToVoice",
|
|
6451
6997
|
value: function TextToVoice(text) {
|
|
6452
6998
|
return gridRequest.post("/dxwh/gateway/TextToVoice", {
|
|
@@ -6484,20 +7030,18 @@ var Tx = /*#__PURE__*/function () {
|
|
|
6484
7030
|
|
|
6485
7031
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
6486
7032
|
var dayjs_min = __webpack_require__(110);
|
|
6487
|
-
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
6488
7033
|
// EXTERNAL MODULE: ./node_modules/dayjs/locale/zh-cn.js
|
|
6489
7034
|
var zh_cn = __webpack_require__(436);
|
|
6490
7035
|
// EXTERNAL MODULE: ./node_modules/dayjs/plugin/weekday.js
|
|
6491
7036
|
var weekday = __webpack_require__(527);
|
|
6492
|
-
var weekday_default = /*#__PURE__*/__webpack_require__.n(weekday);
|
|
6493
7037
|
;// ./package/SpeechRecognition/utils/DateUtil.js
|
|
6494
7038
|
|
|
6495
7039
|
|
|
6496
7040
|
|
|
6497
|
-
|
|
6498
|
-
|
|
7041
|
+
dayjs_min["default"].extend(weekday/* default */.A);
|
|
7042
|
+
dayjs_min["default"].locale('zh-cn');
|
|
6499
7043
|
var getTimeSlot = function getTimeSlot() {
|
|
6500
|
-
var now =
|
|
7044
|
+
var now = (0,dayjs_min["default"])();
|
|
6501
7045
|
var hour = now.hour();
|
|
6502
7046
|
var timeSlot = '';
|
|
6503
7047
|
switch (true) {
|
|
@@ -6535,19 +7079,13 @@ var base64ToArrayBuffer = function base64ToArrayBuffer(base64) {
|
|
|
6535
7079
|
return bytes.buffer;
|
|
6536
7080
|
};
|
|
6537
7081
|
;// ./node_modules/pinyin-pro/dist/index.mjs
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
7082
|
+
|
|
7083
|
+
|
|
7084
|
+
|
|
7085
|
+
|
|
6542
7086
|
function dist_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = dist_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
6543
7087
|
function dist_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return dist_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? dist_arrayLikeToArray(r, a) : void 0; } }
|
|
6544
7088
|
function dist_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6545
|
-
function dist_typeof(o) { "@babel/helpers - typeof"; return dist_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; }, dist_typeof(o); }
|
|
6546
|
-
function dist_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
6547
|
-
function dist_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, dist_toPropertyKey(o.key), o); } }
|
|
6548
|
-
function dist_createClass(e, r, t) { return r && dist_defineProperties(e.prototype, r), t && dist_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6549
|
-
function dist_toPropertyKey(t) { var i = dist_toPrimitive(t, "string"); return "symbol" == dist_typeof(i) ? i : i + ""; }
|
|
6550
|
-
function dist_toPrimitive(t, r) { if ("object" != dist_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != dist_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6551
7089
|
var DoubleUnicodePrefixReg = /^[\uD800-\uDBFF]$/;
|
|
6552
7090
|
var DoubleUnicodeSuffixReg = /^[\uDC00-\uDFFF]$/;
|
|
6553
7091
|
var DoubleUnicodeReg = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
@@ -6586,11 +7124,11 @@ function splitString(text) {
|
|
|
6586
7124
|
}
|
|
6587
7125
|
var FastDictFactory = /*#__PURE__*/function () {
|
|
6588
7126
|
function FastDictFactory() {
|
|
6589
|
-
|
|
7127
|
+
_classCallCheck(this, FastDictFactory);
|
|
6590
7128
|
this.NumberDICT = [];
|
|
6591
7129
|
this.StringDICT = new Map();
|
|
6592
7130
|
}
|
|
6593
|
-
return
|
|
7131
|
+
return _createClass(FastDictFactory, [{
|
|
6594
7132
|
key: "get",
|
|
6595
7133
|
value: function get(word) {
|
|
6596
7134
|
if (word.length > 1) {
|
|
@@ -15504,10 +16042,10 @@ var TokenizationAlgorithm;
|
|
|
15504
16042
|
TokenizationAlgorithm[TokenizationAlgorithm["MaxProbability"] = 2] = "MaxProbability";
|
|
15505
16043
|
TokenizationAlgorithm[TokenizationAlgorithm["MinTokenization"] = 3] = "MinTokenization";
|
|
15506
16044
|
})(TokenizationAlgorithm || (TokenizationAlgorithm = {}));
|
|
15507
|
-
var TrieNode = /*#__PURE__*/
|
|
16045
|
+
var TrieNode = /*#__PURE__*/_createClass(function TrieNode(parent) {
|
|
15508
16046
|
var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
15509
16047
|
var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
15510
|
-
|
|
16048
|
+
_classCallCheck(this, TrieNode);
|
|
15511
16049
|
this.children = new Map();
|
|
15512
16050
|
this.fail = null;
|
|
15513
16051
|
this.patterns = [];
|
|
@@ -15517,12 +16055,12 @@ var TrieNode = /*#__PURE__*/dist_createClass(function TrieNode(parent) {
|
|
|
15517
16055
|
});
|
|
15518
16056
|
var AC = /*#__PURE__*/function () {
|
|
15519
16057
|
function AC() {
|
|
15520
|
-
|
|
16058
|
+
_classCallCheck(this, AC);
|
|
15521
16059
|
this.dictMap = new Map();
|
|
15522
16060
|
this.queues = [];
|
|
15523
16061
|
this.root = new TrieNode(null);
|
|
15524
16062
|
}
|
|
15525
|
-
return
|
|
16063
|
+
return _createClass(AC, [{
|
|
15526
16064
|
key: "build",
|
|
15527
16065
|
value: function build(patternList) {
|
|
15528
16066
|
this.buildTrie(patternList);
|
|
@@ -15699,7 +16237,7 @@ var AC = /*#__PURE__*/function () {
|
|
|
15699
16237
|
}
|
|
15700
16238
|
}]);
|
|
15701
16239
|
}(); // 常规匹配
|
|
15702
|
-
var PatternsNormal = [].concat(
|
|
16240
|
+
var PatternsNormal = [].concat(toConsumableArray_toConsumableArray(Pattern5), toConsumableArray_toConsumableArray(Pattern4), toConsumableArray_toConsumableArray(Pattern3), toConsumableArray_toConsumableArray(Pattern2), toConsumableArray_toConsumableArray(PatternNumberDict), toConsumableArray_toConsumableArray(PatternSurname));
|
|
15703
16241
|
var acTree = new AC();
|
|
15704
16242
|
acTree.build(PatternsNormal);
|
|
15705
16243
|
var customDict = {};
|
|
@@ -16235,7 +16773,7 @@ var originDictMap = new Map();
|
|
|
16235
16773
|
function addDict(dict, options) {
|
|
16236
16774
|
var patterns = [];
|
|
16237
16775
|
// string 类型时:options 为 name()
|
|
16238
|
-
var name =
|
|
16776
|
+
var name = _typeof(options) === "object" ? options.name : options;
|
|
16239
16777
|
var dictName = name || DefaultName;
|
|
16240
16778
|
var dict1Handle = (options === null || options === void 0 ? void 0 : options.dict1) || "add";
|
|
16241
16779
|
for (var word in dict) {
|
|
@@ -16447,7 +16985,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16447
16985
|
});
|
|
16448
16986
|
// 非中文匹配
|
|
16449
16987
|
if (words[_i3 - 1] === pinyin$1[_j - 1]) {
|
|
16450
|
-
var matches = [].concat(
|
|
16988
|
+
var matches = [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1]);
|
|
16451
16989
|
// 记录最长的可匹配下标数组
|
|
16452
16990
|
if (!dp[_i3][_j] || matches.length > dp[_i3][_j].length) {
|
|
16453
16991
|
dp[_i3][_j] = matches;
|
|
@@ -16482,7 +17020,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16482
17020
|
if (last) {
|
|
16483
17021
|
return {
|
|
16484
17022
|
v: {
|
|
16485
|
-
v: [].concat(
|
|
17023
|
+
v: [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1])
|
|
16486
17024
|
}
|
|
16487
17025
|
};
|
|
16488
17026
|
}
|
|
@@ -16492,7 +17030,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16492
17030
|
if (precision === "start") {
|
|
16493
17031
|
muls.forEach(function (py) {
|
|
16494
17032
|
var end = _j;
|
|
16495
|
-
var matches = [].concat(
|
|
17033
|
+
var matches = [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1]);
|
|
16496
17034
|
while (end <= pinyin$1.length && py.startsWith(pinyin$1.slice(_j - 1, end))) {
|
|
16497
17035
|
if (!dp[_i3][end] || matches.length > dp[_i3][end].length) {
|
|
16498
17036
|
dp[_i3][end] = matches;
|
|
@@ -16506,7 +17044,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16506
17044
|
if (muls.some(function (py) {
|
|
16507
17045
|
return py[0] === pinyin$1[_j - 1];
|
|
16508
17046
|
})) {
|
|
16509
|
-
var _matches = [].concat(
|
|
17047
|
+
var _matches = [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1]);
|
|
16510
17048
|
// 记录最长的可匹配下标数组
|
|
16511
17049
|
if (!dp[_i3][_j] || _matches.length > dp[_i3][_j].length) {
|
|
16512
17050
|
dp[_i3][_j] = _matches;
|
|
@@ -16518,7 +17056,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16518
17056
|
return py === pinyin$1.slice(_j - 1, _j - 1 + py.length);
|
|
16519
17057
|
});
|
|
16520
17058
|
if (completeMatch) {
|
|
16521
|
-
var _matches2 = [].concat(
|
|
17059
|
+
var _matches2 = [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1]);
|
|
16522
17060
|
var endIndex = _j - 1 + completeMatch.length;
|
|
16523
17061
|
// 记录最长的可匹配下标数组
|
|
16524
17062
|
if (!dp[_i3][endIndex] || _matches2.length > dp[_i3][endIndex].length) {
|
|
@@ -16757,7 +17295,7 @@ var toneMap = {
|
|
|
16757
17295
|
*/
|
|
16758
17296
|
function convert(pinyin, options) {
|
|
16759
17297
|
options = Object.assign(Object.assign({}, DefaultConvertOptions), options || {});
|
|
16760
|
-
var originType =
|
|
17298
|
+
var originType = _typeof(pinyin);
|
|
16761
17299
|
if (typeof pinyin === 'string') {
|
|
16762
17300
|
pinyin = pinyin.split(options.separator);
|
|
16763
17301
|
}
|
|
@@ -17065,15 +17603,11 @@ var wakeUpState = function wakeUpState() {
|
|
|
17065
17603
|
};
|
|
17066
17604
|
|
|
17067
17605
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
17068
|
-
|
|
17069
|
-
|
|
17606
|
+
|
|
17607
|
+
|
|
17608
|
+
|
|
17070
17609
|
function SpeechRecognitionvue_type_script_lang_js_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; }
|
|
17071
|
-
function SpeechRecognitionvue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? SpeechRecognitionvue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) {
|
|
17072
|
-
function SpeechRecognitionvue_type_script_lang_js_defineProperty(e, r, t) { return (r = SpeechRecognitionvue_type_script_lang_js_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
17073
|
-
function SpeechRecognitionvue_type_script_lang_js_toPropertyKey(t) { var i = SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, "string"); return "symbol" == SpeechRecognitionvue_type_script_lang_js_typeof(i) ? i : i + ""; }
|
|
17074
|
-
function SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != SpeechRecognitionvue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != SpeechRecognitionvue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17075
|
-
function SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
17076
|
-
function SpeechRecognitionvue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
17610
|
+
function SpeechRecognitionvue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? SpeechRecognitionvue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : SpeechRecognitionvue_type_script_lang_js_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17077
17611
|
|
|
17078
17612
|
|
|
17079
17613
|
|
|
@@ -17211,9 +17745,9 @@ var __default__ = {
|
|
|
17211
17745
|
},
|
|
17212
17746
|
updateSession: function updateSession(opt) {
|
|
17213
17747
|
var _this2 = this;
|
|
17214
|
-
return
|
|
17748
|
+
return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
17215
17749
|
var messages, res, type, content, _messages, voice_id, session_id, formData, _res, code, msg, obj, _content, standard_back, command_type;
|
|
17216
|
-
return
|
|
17750
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
17217
17751
|
while (1) switch (_context.prev = _context.next) {
|
|
17218
17752
|
case 0:
|
|
17219
17753
|
messages = opt.messages, res = opt.res;
|
|
@@ -17336,9 +17870,9 @@ var __default__ = {
|
|
|
17336
17870
|
},
|
|
17337
17871
|
// 语音播放
|
|
17338
17872
|
handlePlayTTS: function handlePlayTTS(opt) {
|
|
17339
|
-
return
|
|
17873
|
+
return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
17340
17874
|
var content, onEnded, res, arrayBuffer, blob, url, audio;
|
|
17341
|
-
return
|
|
17875
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
17342
17876
|
while (1) switch (_context2.prev = _context2.next) {
|
|
17343
17877
|
case 0:
|
|
17344
17878
|
_context2.prev = 0;
|