diff --git a/src/plugin/xml-digital-teaching/lib/catalog.css b/src/plugin/xml-digital-teaching/lib/catalog.css index 12c67d1..d0f842d 100644 --- a/src/plugin/xml-digital-teaching/lib/catalog.css +++ b/src/plugin/xml-digital-teaching/lib/catalog.css @@ -3,17 +3,17 @@ display: flex !important; } -.catalog-node-label[data-v-179d841f] { +.catalog-node-label[data-v-2adc1e7a] { display: flex; align-items: center; } -.catalog-node-label img[data-v-179d841f] { +.catalog-node-label img[data-v-2adc1e7a] { margin-right: 4px; } -.xml-show-catalog[data-v-179d841f] .el-tree-node__content { +.xml-show-catalog[data-v-2adc1e7a] .el-tree-node__content { height: auto; } -.xml-show-catalog[data-v-179d841f] .el-tree-node__content .catalog-node-label { +.xml-show-catalog[data-v-2adc1e7a] .el-tree-node__content .catalog-node-label { max-width: calc(100% - 24px); word-break: break-all; white-space: normal; diff --git a/src/plugin/xml-digital-teaching/lib/catalog.js b/src/plugin/xml-digital-teaching/lib/catalog.js index 300df5b..9d19416 100644 --- a/src/plugin/xml-digital-teaching/lib/catalog.js +++ b/src/plugin/xml-digital-teaching/lib/catalog.js @@ -1,6 +1,6 @@ /* * XmlDigitalTeaching v0.0.1 -* Copyright ©Tue May 13 2025 14:46:23 GMT+0800 (中国标准时间) smile +* Copyright ©Wed May 21 2025 14:29:30 GMT+0800 (中国标准时间) smile * Released under the ISC License. */ // @@ -307,7 +307,7 @@ __vue_render__._withStripped = true; /* style */ const __vue_inject_styles__ = undefined; /* scoped */ - const __vue_scope_id__ = "data-v-179d841f"; + const __vue_scope_id__ = "data-v-2adc1e7a"; /* module identifier */ const __vue_module_identifier__ = undefined; /* functional template */ diff --git a/src/plugin/xml-digital-teaching/lib/catalog.min.css b/src/plugin/xml-digital-teaching/lib/catalog.min.css index 54ca3c3..efe3d3a 100644 --- a/src/plugin/xml-digital-teaching/lib/catalog.min.css +++ b/src/plugin/xml-digital-teaching/lib/catalog.min.css @@ -1 +1 @@ -.xml-show-catalog .el-tree-node__content{display:flex!important}.catalog-node-label[data-v-179d841f]{display:flex;align-items:center}.catalog-node-label img[data-v-179d841f]{margin-right:4px}.xml-show-catalog[data-v-179d841f] .el-tree-node__content{height:auto}.xml-show-catalog[data-v-179d841f] .el-tree-node__content .catalog-node-label{max-width:calc(100% - 24px);word-break:break-all;white-space:normal} \ No newline at end of file +.xml-show-catalog .el-tree-node__content{display:flex!important}.catalog-node-label[data-v-2adc1e7a]{display:flex;align-items:center}.catalog-node-label img[data-v-2adc1e7a]{margin-right:4px}.xml-show-catalog[data-v-2adc1e7a] .el-tree-node__content{height:auto}.xml-show-catalog[data-v-2adc1e7a] .el-tree-node__content .catalog-node-label{max-width:calc(100% - 24px);word-break:break-all;white-space:normal} \ No newline at end of file diff --git a/src/plugin/xml-digital-teaching/lib/ebook.css b/src/plugin/xml-digital-teaching/lib/ebook.css index 5789f2a..6416de1 100644 --- a/src/plugin/xml-digital-teaching/lib/ebook.css +++ b/src/plugin/xml-digital-teaching/lib/ebook.css @@ -1,9 +1,9 @@ -.xml-ebook-container-h5[data-v-ba4453a8] { +.xml-ebook-container-h5[data-v-8b95769e] { } -.xml-ebook-container-pc[data-v-ba4453a8] { +.xml-ebook-container-pc[data-v-8b95769e] { } -.xml-ebook-container-pad[data-v-ba4453a8] { +.xml-ebook-container-pad[data-v-8b95769e] { } diff --git a/src/plugin/xml-digital-teaching/lib/ebook.js b/src/plugin/xml-digital-teaching/lib/ebook.js index 7b471e6..346810d 100644 --- a/src/plugin/xml-digital-teaching/lib/ebook.js +++ b/src/plugin/xml-digital-teaching/lib/ebook.js @@ -1,6 +1,6 @@ /* * XmlDigitalTeaching v0.0.1 -* Copyright ©Tue May 13 2025 14:46:23 GMT+0800 (中国标准时间) smile +* Copyright ©Wed May 21 2025 14:29:30 GMT+0800 (中国标准时间) smile * Released under the ISC License. */ // @@ -864,7 +864,7 @@ __vue_render__._withStripped = true; /* style */ const __vue_inject_styles__ = undefined; /* scoped */ - const __vue_scope_id__ = "data-v-ba4453a8"; + const __vue_scope_id__ = "data-v-8b95769e"; /* module identifier */ const __vue_module_identifier__ = undefined; /* functional template */ diff --git a/src/plugin/xml-digital-teaching/lib/group.js b/src/plugin/xml-digital-teaching/lib/group.js index f3ff7cd..68ab2d9 100644 --- a/src/plugin/xml-digital-teaching/lib/group.js +++ b/src/plugin/xml-digital-teaching/lib/group.js @@ -1,6 +1,6 @@ /* * XmlDigitalTeaching v0.0.1 -* Copyright ©Tue May 13 2025 14:46:23 GMT+0800 (中国标准时间) smile +* Copyright ©Wed May 21 2025 14:29:30 GMT+0800 (中国标准时间) smile * Released under the ISC License. */ // @@ -217,7 +217,7 @@ __vue_render__._withStripped = true; /* style */ const __vue_inject_styles__ = undefined; /* scoped */ - const __vue_scope_id__ = "data-v-66bda01b"; + const __vue_scope_id__ = "data-v-1ffc40b6"; /* module identifier */ const __vue_module_identifier__ = undefined; /* functional template */ diff --git a/src/plugin/xml-digital-teaching/lib/html.js b/src/plugin/xml-digital-teaching/lib/html.js index 8bf7036..66428c1 100644 --- a/src/plugin/xml-digital-teaching/lib/html.js +++ b/src/plugin/xml-digital-teaching/lib/html.js @@ -1,6 +1,6 @@ /* * XmlDigitalTeaching v0.0.1 -* Copyright ©Tue May 13 2025 14:46:23 GMT+0800 (中国标准时间) smile +* Copyright ©Wed May 21 2025 14:29:30 GMT+0800 (中国标准时间) smile * Released under the ISC License. */ // diff --git a/src/plugin/xml-digital-teaching/lib/image.css b/src/plugin/xml-digital-teaching/lib/image.css index ca402ff..e60a0f9 100644 --- a/src/plugin/xml-digital-teaching/lib/image.css +++ b/src/plugin/xml-digital-teaching/lib/image.css @@ -4,15 +4,15 @@ } -.el-image__inner[data-v-52e83b54] { +.el-image__inner[data-v-0ec43bef] { width: 100% !important; } -.xml-image-ping-pu-h5[data-v-52e83b54] { +.xml-image-ping-pu-h5[data-v-0ec43bef] { display: flex; flex-direction: column; align-items: center; } -.xml-image-hua-lang[data-v-52e83b54] { +.xml-image-hua-lang[data-v-0ec43bef] { display: flex; flex-direction: column; align-items: center; diff --git a/src/plugin/xml-digital-teaching/lib/image.js b/src/plugin/xml-digital-teaching/lib/image.js index 30cf5b4..9e9a27e 100644 --- a/src/plugin/xml-digital-teaching/lib/image.js +++ b/src/plugin/xml-digital-teaching/lib/image.js @@ -1,6 +1,6 @@ /* * XmlDigitalTeaching v0.0.1 -* Copyright ©Tue May 13 2025 14:46:23 GMT+0800 (中国标准时间) smile +* Copyright ©Wed May 21 2025 14:29:30 GMT+0800 (中国标准时间) smile * Released under the ISC License. */ import Vue from 'vue'; @@ -1118,7 +1118,7 @@ __vue_render__$2._withStripped = true; /* style */ const __vue_inject_styles__$1 = undefined; /* scoped */ - const __vue_scope_id__$1 = "data-v-52e83b54"; + const __vue_scope_id__$1 = "data-v-0ec43bef"; /* module identifier */ const __vue_module_identifier__$1 = undefined; /* functional template */ diff --git a/src/plugin/xml-digital-teaching/lib/image.min.css b/src/plugin/xml-digital-teaching/lib/image.min.css index 82dd9d6..890e423 100644 --- a/src/plugin/xml-digital-teaching/lib/image.min.css +++ b/src/plugin/xml-digital-teaching/lib/image.min.css @@ -1 +1 @@ -.xml-image-lun-bo .el-carousel__item{text-align:center}.el-image__inner[data-v-52e83b54]{width:100%!important}.xml-image-ping-pu-h5[data-v-52e83b54]{display:flex;flex-direction:column;align-items:center}.xml-image-hua-lang[data-v-52e83b54]{display:flex;flex-direction:column;align-items:center} \ No newline at end of file +.xml-image-lun-bo .el-carousel__item{text-align:center}.el-image__inner[data-v-0ec43bef]{width:100%!important}.xml-image-ping-pu-h5[data-v-0ec43bef]{display:flex;flex-direction:column;align-items:center}.xml-image-hua-lang[data-v-0ec43bef]{display:flex;flex-direction:column;align-items:center} \ No newline at end of file diff --git a/src/plugin/xml-digital-teaching/lib/imageText.css b/src/plugin/xml-digital-teaching/lib/imageText.css index c5b41ee..09b38f6 100644 --- a/src/plugin/xml-digital-teaching/lib/imageText.css +++ b/src/plugin/xml-digital-teaching/lib/imageText.css @@ -1,23 +1,23 @@ -/*# sourceMappingURL=eighth.vue.map */ - - -/*# sourceMappingURL=fifth.vue.map */ - - /*# sourceMappingURL=second.vue.map */ -/*# sourceMappingURL=sixth.vue.map */ - - /*# sourceMappingURL=first.vue.map */ +/*# sourceMappingURL=eighth.vue.map */ + + /*# sourceMappingURL=fourth.vue.map */ +/*# sourceMappingURL=sixth.vue.map */ + + +/*# sourceMappingURL=fifth.vue.map */ + + /*# sourceMappingURL=third.vue.map */ @@ -27,6 +27,14 @@ text-align: center; } + +.xml-text-h5[data-v-69788445] { +} +.xml-text-pc[data-v-69788445] { +} +.xml-text-h5[data-v-69788445] { +} + .xml-text-h5 .inline-audio-wrap, .xml-text-h5 .inline-link-wrap { align-items: center; @@ -98,14 +106,6 @@ /*# sourceMappingURL=XmlText.vue.map */ -.xml-text-h5[data-v-4258792c] { -} -.xml-text-pc[data-v-4258792c] { -} -.xml-text-h5[data-v-4258792c] { -} - - /*# sourceMappingURL=XmlTextDialog.vue.map */ @@ -711,15 +711,15 @@ -.el-image__inner[data-v-52e83b54] { +.el-image__inner[data-v-0ec43bef] { width: 100% !important; } -.xml-image-ping-pu-h5[data-v-52e83b54] { +.xml-image-ping-pu-h5[data-v-0ec43bef] { display: flex; flex-direction: column; align-items: center; } -.xml-image-hua-lang[data-v-52e83b54] { +.xml-image-hua-lang[data-v-0ec43bef] { display: flex; flex-direction: column; align-items: center; diff --git a/src/plugin/xml-digital-teaching/lib/imageText.js b/src/plugin/xml-digital-teaching/lib/imageText.js index cad698c..0ecdfdf 100644 --- a/src/plugin/xml-digital-teaching/lib/imageText.js +++ b/src/plugin/xml-digital-teaching/lib/imageText.js @@ -1,6 +1,6 @@ /* * XmlDigitalTeaching v0.0.1 -* Copyright ©Tue May 13 2025 14:46:23 GMT+0800 (中国标准时间) smile +* Copyright ©Wed May 21 2025 14:29:30 GMT+0800 (中国标准时间) smile * Released under the ISC License. */ import Vue from 'vue'; @@ -1118,7 +1118,7 @@ __vue_render__$e._withStripped = true; /* style */ const __vue_inject_styles__$d = undefined; /* scoped */ - const __vue_scope_id__$d = "data-v-52e83b54"; + const __vue_scope_id__$d = "data-v-0ec43bef"; /* module identifier */ const __vue_module_identifier__$d = undefined; /* functional template */ @@ -2492,7 +2492,7 @@ __vue_render__$b._withStripped = true; /* style */ const __vue_inject_styles__$b = undefined; /* scoped */ - const __vue_scope_id__$b = "data-v-9094a8a8"; + const __vue_scope_id__$b = "data-v-1742a731"; /* module identifier */ const __vue_module_identifier__$b = undefined; /* functional template */ @@ -11746,7 +11746,7 @@ __vue_render__$a._withStripped = true; /* style */ const __vue_inject_styles__$a = undefined; /* scoped */ - const __vue_scope_id__$a = "data-v-6f58d350"; + const __vue_scope_id__$a = "data-v-62f6421d"; /* module identifier */ const __vue_module_identifier__$a = undefined; /* functional template */ @@ -11966,9 +11966,9 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js !function (e) { var t = "object" == typeof window && !!window.document, a = t ? window : Object; - !function (e, w) { + !function (e, y) { - var M = function () {}, + var A = function () {}, f = function (e) { return "number" == typeof e; }, @@ -11978,20 +11978,20 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js W = function (e) { return new _(e); }, - y = W.LM = "2024-10-20 22:15", - A = "https://github.com/xiangyuecn/Recorder", + k = W.LM = "2025-01-11 09:28", + R = "https://github.com/xiangyuecn/Recorder", T = "Recorder", - k = "getUserMedia", + x = "getUserMedia", N = "srcSampleRate", V = "sampleRate", i = "bitRate", E = "catch", t = e[T]; - if (t && t.LM == y) return t.CLog(t.i18n.$T("K8zP::重复导入{1}", 0, T), 3); + if (t && t.LM == k) return t.CLog(t.i18n.$T("K8zP::重复导入{1}", 0, T), 3); W.IsOpen = function () { var e = W.Stream; if (e) { - var t = D(e), + var t = j(e), a = t[0]; if (a) { var n = a.readyState; @@ -12000,17 +12000,17 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js } return !1; }, W.BufferSize = 4096, W.Destroy = function () { - for (var e in Q(T + " Destroy"), O(), a) a[e](); + for (var e in Q(T + " Destroy"), F(), a) a[e](); }; var a = {}; W.BindDestroy = function (e, t) { a[e] = t; }, W.Support = function () { - if (!w) return !1; + if (!y) return !1; var e = navigator.mediaDevices || {}; - return e[k] || (e = navigator)[k] || (e[k] = e.webkitGetUserMedia || e.mozGetUserMedia || e.msGetUserMedia), !!e[k] && (W.Scope = e, !!W.GetContext()); + return e[x] || (e = navigator)[x] || (e[x] = e.webkitGetUserMedia || e.mozGetUserMedia || e.msGetUserMedia), !!e[x] && (W.Scope = e, !!W.GetContext()); }, W.GetContext = function (e) { - if (!w) return null; + if (!y) return null; var t = window.AudioContext; if (t || (t = window.webkitAudioContext), !t) return null; var a = W.Ctx, @@ -12070,22 +12070,22 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js p = W.CtxSpEnd = function (e) { return "suspended" == e || "interrupted" == e; }, - R = function (e) { + I = function (e) { var t = e.state, a = "ctx.state=" + t; return p(t) && (a += $("nMIy::(注意:ctx不是running状态,rec.open和start至少要有一个在用户操作(触摸、点击等)时进行调用,否则将在rec.start时尝试进行ctx.resume,可能会产生兼容性问题(仅iOS),请参阅文档中runningContext配置)")), a; }, - I = "ConnectEnableWebM"; - W[I] = !0; - var L = "ConnectEnableWorklet"; - W[L] = !1; - var x = function (e) { + L = "ConnectEnableWebM"; + W[L] = !0; + var P = "ConnectEnableWorklet"; + W[P] = !1; + var H = function (e) { var _ = e.BufferSize || W.BufferSize, l = e.Stream, i = l._c, f = i[V], c = {}, - t = D(l), + t = j(l), a = t[0], n = null, s = ""; @@ -12133,7 +12133,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js A = i.createScriptProcessor || i.createJavaScriptNode, k = $("ZGlf::。由于{1}内部1秒375次回调,在移动端可能会有性能问题导致回调丢失录音变短,PC端无影响,暂不建议开启{1}。", 0, g), R = function () { - o = l.isWorklet = !1, P(l), Q($("7TU0::Connect采用老的{1},", 0, d) + q.get($(W[L] ? "JwCL::但已设置{1}尝试启用{2}" : "VGjB::可设置{1}尝试启用{2}", 2), [T + "." + L + "=true", g]) + p + k, 3); + o = l.isWorklet = !1, O(l), Q($("7TU0::Connect采用老的{1},", 0, d) + U.get($(W[P] ? "JwCL::但已设置{1}尝试启用{2}" : "VGjB::可设置{1}尝试启用{2}", 2), [T + "." + P + "=true", g]) + p + k, 3); var e = l._p = A.call(i, _, 1, 1); b(e), e.onaudioprocess = function (e) { var t = e.inputBuffer.getChannelData(0); @@ -12141,7 +12141,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js }; }, x = function () { - u = l.isWebM = !1, H(l), o = l.isWorklet = !A || W[L]; + u = l.isWebM = !1, D(l), o = l.isWorklet = !A || W[P]; var t = window.AudioWorkletNode; if (o && i[g] && t) { var n = function () { @@ -12161,7 +12161,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js }); b(e), e.port.onmessage = function (e) { h && (clearTimeout(h), h = ""), n() ? v(e.data.val, f) : o || Q($("XUap::{1}多余回调", 0, g), 3); - }, Q($("yOta::Connect采用{1},设置{2}可恢复老式{3}", 0, g, T + "." + L + "=false", d) + p + k, 3); + }, Q($("yOta::Connect采用{1},设置{2}可恢复老式{3}", 0, g, T + "." + P + "=false", d) + p + k, 3); } }, e = function () { @@ -12212,7 +12212,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js var e = window[M], t = "ondataavailable", a = "audio/webm; codecs=pcm"; - u = l.isWebM = W[I]; + u = l.isWebM = W[L]; var n = e && t in e.prototype && e.isTypeSupported(a); if (p = n ? "" : $("VwPd::(此浏览器不支持{1})", 0, y), !u || !n) return x(); var s = function () { @@ -12232,24 +12232,29 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js var t = new FileReader(); t.onloadend = function () { if (s()) { - var e = F(new Uint8Array(t.result), o); + var e = X(new Uint8Array(t.result), o); if (!e) return; if (-1 == e) return void x(); h && (clearTimeout(h), h = ""), v(e, o.webmSR); } else u || Q($("O9P7::{1}多余回调", 0, M), 3); }, t.readAsArrayBuffer(e.data); - }, i.start(~~(_ / 48)), Q($("LMEm::Connect采用{1},设置{2}可恢复使用{3}或老式{4}", 0, y, T + "." + I + "=false", g, d)); + }; + try { + i.start(~~(_ / 48)), Q($("LMEm::Connect采用{1},设置{2}可恢复使用{3}或老式{4}", 0, y, T + "." + L + "=false", g, d)); + } catch (e) { + Q("mr start err", 1, e), x(); + } }(); }, r = function (e) { e._na && e._na(), e._ra && e._ra(); }, - P = function (e) { + O = function (e) { e._na = null, e._n && (e._n.port.postMessage({ kill: !0 }), e._n.disconnect(), e._n = null); }, - H = function (e) { + D = function (e) { if (e._ra = null, e._r) { try { e._r.stop(); @@ -12259,19 +12264,19 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js e._r = null; } }, - O = function (e) { + F = function (e) { var t = (e = e || W) == W, a = e.Stream; - a && (a._m && (a._m.disconnect(), a._m = null), !a._RC && a._c && W.CloseNewCtx(a._c), a._RC = null, a._c = null, a._d && (n(a._d.stream), a._d = null), a._p && (a._p.disconnect(), a._p.onaudioprocess = a._p = null), P(a), H(a), t && n(a)), e.Stream = 0; + a && (a._m && (a._m.disconnect(), a._m = null), !a._RC && a._c && W.CloseNewCtx(a._c), a._RC = null, a._c = null, a._d && (n(a._d.stream), a._d = null), a._p && (a._p.disconnect(), a._p.onaudioprocess = a._p = null), O(a), D(a), t && n(a)), e.Stream = 0; }, n = W.StopS_ = function (e) { - for (var t = D(e), a = 0; a < t.length; a++) { + for (var t = j(e), a = 0; a < t.length; a++) { var n = t[a]; n.stop && n.stop(); } e.stop && e.stop(); }, - D = function (e) { + j = function (e) { var t = 0, a = 0, n = []; @@ -12438,7 +12443,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js t.id = ++o, l(); var a = { type: "mp3", - onProcess: M + onProcess: A }; for (var n in e) a[n] = e[n]; var s = (t.set = a)[i], @@ -12468,11 +12473,11 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js l = _.set, n = _._streamStore(), s = 0; - e = e || M; + e = e || A; var r = function (e, t) { t = !!t, _.CLog($("5tWi::录音open失败:") + e + ",isUserNotAllow:" + t, 1), s && W.CloseNewCtx(s), a && a(e, t); }; - _._streamTag = k; + _._streamTag = x; var i = function () { _.CLog("open ok, id:" + _.id + " stream:" + _._streamTag), e(), _._SO = 0; }, @@ -12480,7 +12485,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js f = ++o.O, c = o.C; _._O = _._O_ = f, _._SO = _._S; - if (w) { + if (y) { var t = _.envCheck({ envName: "H5", canProcess: !0 @@ -12492,13 +12497,13 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js }; if (l.sourceStream) { if (_._streamTag = "set.sourceStream", !W.GetContext()) return void r($("1iU7::不支持此浏览器从流中获取录音")); - h(), O(n); + h(), F(n); var b = _.Stream = l.sourceStream; b._c = u, b._RC = l.runningContext, b._call = {}; try { - x(n); + H(n); } catch (e) { - return O(n), void r($("BTW2::从流中打开录音失败:") + e.message); + return F(n), void r($("BTW2::从流中打开录音失败:") + e.message); } i(); } else { @@ -12518,61 +12523,66 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js }; if (W.IsOpen()) i();else if (W.Support()) { h(); - var v = function (t) { + var v, + d, + g = function (t) { setTimeout(function () { t._call = {}; var e = W.Stream; - e && (O(), t._call = e._call), (W.Stream = t)._c = u, t._RC = l.runningContext, function () { + e && (F(), t._call = e._call), (W.Stream = t)._c = u, t._RC = l.runningContext, function () { if (c != o.C || !_._O) { var e = $("dFm8::open被取消"); return f == o.O ? _.close() : e = $("VtJO::open被中断"), r(e), !0; } - }() || (W.IsOpen() ? (e && _.CLog($("upb8::发现同时多次调用open"), 1), x(n), i()) : r($("Q1GA::录音功能无效:无音频流"))); + }() || (W.IsOpen() ? (e && _.CLog($("upb8::发现同时多次调用open"), 1), H(n), i()) : r($("Q1GA::录音功能无效:无音频流"))); }, 100); }, - d = function (e) { + S = function (e) { var t = e.name || e.message || e.code + ":" + e, a = ""; - 1 == g && m(0, t) && (a = $("KxE2::,将尝试禁用回声消除后重试")), _.CLog($("xEQR::请求录音权限错误") + a + "|" + e, a ? 3 : 1, e), a ? S(1) : p(t, $("bDOG::无法录音:") + e); + 1 == w && m(0, t) && (a = $("KxE2::,将尝试禁用回声消除后重试")); + var n = $("xEQR::请求录音权限错误"), + s = $("bDOG::无法录音:"); + _.CLog(n + a + "|" + e, a || d ? 3 : 1, e), a ? (v = t, d = e, M(1)) : d ? (_.CLog(n + "|" + d, 1, d), p(v, s + d)) : p(t, s + e); }, - g = 0, - S = function (e) { - g++; + w = 0, + M = function (e) { + w++; var t = "audioTrackSet", a = "autoGainControl", n = "echoCancellation", s = "noiseSuppression", r = JSON.parse(B(l[t] || !0)); - _.CLog("open... " + g + " " + t + ":" + B(r)), e && ("object" != typeof r && (r = {}), r[a] = !1, r[n] = !1, r[s] = !1), r[V] && _.CLog($("IjL3::注意:已配置{1}参数,可能会出现浏览器不能正确选用麦克风、移动端无法启用回声消除等现象", 0, t + "." + V), 3); + _.CLog("open... " + w + " " + t + ":" + B(r)), e && ("object" != typeof r && (r = {}), r[a] = !1, r[n] = !1, r[s] = !1), r[V] && _.CLog($("IjL3::注意:已配置{1}参数,可能会出现浏览器不能正确选用麦克风、移动端无法启用回声消除等现象", 0, t + "." + V), 3); var i = { audio: r, video: l.videoTrackSet || !1 }; try { - var o = W.Scope[k](i, v, d); + var o = W.Scope[x](i, g, S); } catch (e) { - _.CLog(k, 3, e), i = { + _.CLog(x, 3, e), i = { audio: !0, video: !1 - }, o = W.Scope[k](i, v, d); + }, o = W.Scope[x](i, g, S); } - _.CLog(k + "(" + B(i) + ") " + R(u) + $("RiWe::,未配置 {1} 时浏览器可能会自动启用回声消除,移动端未禁用回声消除时可能会降低系统播放音量(关闭录音后可恢复)和仅提供16k采样率的音频流(不需要回声消除时可明确配置成禁用来获得48k高音质的流),请参阅文档中{2}配置", 0, "audioTrackSet:{echoCancellation,noiseSuppression,autoGainControl}", t) + "(" + A + ") LM:" + y + " UA:" + navigator.userAgent), o && o.then && o.then(v)[E](d); + _.CLog(x + "(" + B(i) + ") " + I(u) + $("RiWe::,未配置 {1} 时浏览器可能会自动启用回声消除,移动端未禁用回声消除时可能会降低系统播放音量(关闭录音后可恢复)和仅提供16k采样率的音频流(不需要回声消除时可明确配置成禁用来获得48k高音质的流),请参阅文档中{2}配置", 0, "audioTrackSet:{echoCancellation,noiseSuppression,autoGainControl}", t) + "(" + R + ") LM:" + k + " UA:" + navigator.userAgent), o && o.then && o.then(g)[E](S); }; - S(); + M(); } else p("", $("COxc::此浏览器不支持录音")); } } - } else r($.G("NonBrowser-1", ["open"]) + $("EMJq::,可尝试使用RecordApp解决方案") + "(" + A + "/tree/master/app-support-sample)"); + } else r($.G("NonBrowser-1", ["open"]) + $("EMJq::,可尝试使用RecordApp解决方案") + "(" + R + "/tree/master/app-support-sample)"); }, close: function (e) { - e = e || M; + e = e || A; var t = this, a = t._streamStore(); t._stop(); var n = " stream:" + t._streamTag, s = a.Sync; if (t._O = 0, t._O_ != s.O) return t.CLog($("hWVz::close被忽略(因为同时open了多个rec,只有最后一个会真正close)") + n, 3), void e(); - s.C++, O(a), t.CLog("close," + n), e(); + s.C++, F(a), t.CLog("close," + n), e(); }, mock: function (e, t) { var a = this; @@ -12641,7 +12651,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js var M = u - g.t - h; if (h / 5 < M) { var y = !r.disableEnvInFix; - if (s.CLog("[" + u + "]" + q.get($(y ? "4Kfd::补偿{1}ms" : "bM5i::未补偿{1}ms", 1), [M]), 3), s.envInFix += M, y) { + if (s.CLog("[" + u + "]" + U.get($(y ? "4Kfd::补偿{1}ms" : "bM5i::未补偿{1}ms", 1), [M]), 3), s.envInFix += M, y) { var A = new Int16Array(M * a / 1e3); n += A.length, _.push(A); } @@ -12671,12 +12681,12 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js L = 0, P = "rec.set.onProcess"; try { - L = r.onProcess(_, o, T, a, l, I); + L = !0 === (L = r.onProcess(_, o, T, a, l, I)); } catch (e) { console.error(P + $("gFUF::回调出错是不允许的,需保证不会抛异常"), e); } var H = Date.now() - u; - if (10 < H && 1e3 < s.envInFirst - u && s.CLog(P + $("2ghS::低性能,耗时{1}ms", 0, H), 3), !0 === L) { + if (10 < H && 1e3 < s.envInFirst - u && s.CLog(P + $("2ghS::低性能,耗时{1}ms", 0, H), 3), L) { for (var O = 0, v = l; v < E; v++) null == _[v] ? O = 1 : _[v] = new Int16Array(0); O ? s.CLog($("ufqH::未进入异步前不能清除buffers"), 3) : i ? i.pcmSize -= R : s.recSize -= R; } else I(); @@ -12687,7 +12697,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js e = 1; if (t.set.sourceStream ? t.Stream || (e = 0) : W.IsOpen() || (e = 0), e) { var a = t._streamCtx(); - if (t.CLog($("kLDN::start 开始录音,") + R(a) + " stream:" + t._streamTag), t._stop(), t.envStart(null, a[V]), t.state = 3, t._SO && t._SO + 1 != t._S) t.CLog($("Bp2y::start被中断"), 3);else { + if (t.CLog($("kLDN::start 开始录音,") + I(a) + " stream:" + t._streamTag), t._stop(), t.envStart(null, a[V]), t.state = 3, t._SO && t._SO + 1 != t._S) t.CLog($("Bp2y::start被中断"), 3);else { t._SO = 0; var n = function () { 3 == t.state && (t.state = 1, t.resume()); @@ -12740,7 +12750,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js b = h.set, a = h.envInLast - h.envInFirst, n = a && h.buffers.length; - h.CLog($("Xq4s::stop 和start时差:") + (a ? a + "ms " + $("3CQP::补偿:") + h.envInFix + "ms envIn:" + n + " fps:" + (n / a * 1e3).toFixed(1) : "-") + " stream:" + h._streamTag + " (" + A + ") LM:" + y); + h.CLog($("Xq4s::stop 和start时差:") + (a ? a + "ms " + $("3CQP::补偿:") + h.envInFix + "ms envIn:" + n + " fps:" + (n / a * 1e3).toFixed(1) : "-") + " stream:" + h._streamTag + " (" + R + ") LM:" + k); var p = function () { h._stop(), e && h.close(); }, @@ -12802,7 +12812,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js } else m($("Ltz3::未采集到录音")); } }; - var F = function (e, t) { + var X = function (e, t) { t.pos || (t.pos = [0], t.tracks = {}, t.bytes = []); var a = t.tracks, n = [t.pos[0]], @@ -12812,43 +12822,43 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js r = t.bytes.length, i = new Uint8Array(r + e.length); if (i.set(t.bytes), i.set(e, r), t.bytes = i, !t._ht) { - if (Y(i, n), z(i, n), !j(Y(i, n), [24, 83, 128, 103])) return; - for (Y(i, n); n[0] < i.length;) { - var o = Y(i, n), - _ = z(i, n), + if (q(i, n), G(i, n), !Y(q(i, n), [24, 83, 128, 103])) return; + for (q(i, n); n[0] < i.length;) { + var o = q(i, n), + _ = G(i, n), l = [0], f = 0; if (!_) return; - if (j(o, [22, 84, 174, 107])) { + if (Y(o, [22, 84, 174, 107])) { for (; l[0] < _.length;) { - var c = Y(_, l), - u = z(_, l), + var c = q(_, l), + u = G(_, l), h = [0], b = { channels: 0, sampleRate: 0 }; - if (j(c, [174])) for (; h[0] < u.length;) { - var p = Y(u, h), - m = z(u, h), + if (Y(c, [174])) for (; h[0] < u.length;) { + var p = q(u, h), + m = G(u, h), v = [0]; - if (j(p, [215])) { - var d = X(m); + if (Y(p, [215])) { + var d = z(m); b.number = d, a[d] = b; - } else if (j(p, [131])) { - var d = X(m); + } else if (Y(p, [131])) { + var d = z(m); 1 == d ? b.type = "video" : 2 == d ? (b.type = "audio", f || (t.track0 = b), b.idx = f++) : b.type = "Type-" + d; - } else if (j(p, [134])) { + } else if (Y(p, [134])) { for (var g = "", S = 0; S < m.length; S++) g += String.fromCharCode(m[S]); b.codec = g; - } else if (j(p, [225])) for (; v[0] < m.length;) { - var w = Y(m, v), - M = z(m, v); - if (j(w, [181])) { + } else if (Y(p, [225])) for (; v[0] < m.length;) { + var w = q(m, v), + M = G(m, v); + if (Y(w, [181])) { var d = 0, y = new Uint8Array(M.reverse()).buffer; 4 == M.length ? d = new Float32Array(y)[0] : 8 == M.length ? d = new Float64Array(y)[0] : Q("WebM Track !Float", 1, M), b[V] = Math.round(d); - } else j(w, [98, 100]) ? b.bitDepth = X(M) : j(w, [159]) && (b.channels = X(M)); + } else Y(w, [98, 100]) ? b.bitDepth = z(M) : Y(w, [159]) && (b.channels = z(M)); } } } @@ -12862,18 +12872,17 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js var k = A[V]; if (t.webmSR = k, 16 == A.bitDepth && /FLOAT/i.test(A.codec) && (A.bitDepth = 32, Q("WebM 16->32 bit", 3)), k < 8e3 || 32 != A.bitDepth || A.channels < 1 || !/(\b|_)PCM\b/i.test(A.codec)) return t.bytes = [], t.bad || Q("WebM Track Unexpected", 3, t), -(t.bad = 1); for (var R = [], x = 0; n[0] < i.length;) { - var c = Y(i, n), - u = z(i, n); + var c = q(i, n), + u = G(i, n); if (!u) break; - if (j(c, [163])) { + if (Y(c, [163])) { var B = 15 & u[0], b = a[B]; - if (b) { - if (0 === b.idx) { - for (var T = new Uint8Array(u.length - 4), S = 4; S < u.length; S++) T[S - 4] = u[S]; - R.push(T), x += T.length; - } - } else Q("WebM !Track" + B, 1, a); + if (!b) return Q("WebM !Track" + B, 1, a), -1; + if (0 === b.idx) { + for (var T = new Uint8Array(u.length - 4), S = 4; S < u.length; S++) T[S - 4] = u[S]; + R.push(T), x += T.length; + } } s(); } @@ -12890,20 +12899,20 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js } } }, - j = function (e, t) { + Y = function (e, t) { if (!e || e.length != t.length) return !1; if (1 == e.length) return e[0] == t[0]; for (var a = 0; a < e.length; a++) if (e[a] != t[a]) return !1; return !0; }, - X = function (e) { + z = function (e) { for (var t = "", a = 0; a < e.length; a++) { var n = e[a]; t += (n < 16 ? "0" : "") + n.toString(16); } return parseInt(t, 16) || 0; }, - Y = function (e, t, a) { + q = function (e, t, a) { var n = t[0]; if (!(n >= e.length)) { var s = e[n], @@ -12919,10 +12928,10 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js } } }, - z = function (e, t) { - var a = Y(e, t, 1); + G = function (e, t) { + var a = q(e, t, 1); if (a) { - var n = X(a), + var n = z(a), s = t[0], r = []; if (n < 2147483647) { @@ -12932,7 +12941,7 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js return t[0] = s, r; } }, - q = W.i18n = { + U = W.i18n = { lang: "zh-CN", alias: { "zh-CN": "zh", @@ -12945,9 +12954,9 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js n = e.overwrite; n = null == n || n; var s = e.lang; - if (!(s = q.alias[s] || s)) throw new Error(a + "set.lang?"); - var r = q.locales[s]; - r || (r = {}, q.locales[s] = r); + if (!(s = U.alias[s] || s)) throw new Error(a + "set.lang?"); + var r = U.locales[s]; + r || (r = {}, U.locales[s] = r); for (var i, o = /^([\w\-]+):/, _ = 0; _ < t.length; _++) { var l = t[_]; if (i = o.exec(l)) { @@ -12958,18 +12967,18 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js } }, get: function () { - return q.v_G.apply(null, arguments); + return U.v_G.apply(null, arguments); }, v_G: function (n, s, e) { - s = s || [], e = e || q.lang, e = q.alias[e] || e; - var t = q.locales[e], + s = s || [], e = e || U.lang, e = U.alias[e] || e; + var t = U.locales[e], r = t && t[n] || ""; - return r || "zh" == e ? (q.lastLang = e, "=Empty" == r ? "" : r.replace(/\{(\d+)(\!?)\}/g, function (e, t, a) { + return r || "zh" == e ? (U.lastLang = e, "=Empty" == r ? "" : r.replace(/\{(\d+)(\!?)\}/g, function (e, t, a) { return e = s[(t = +t || 0) - 1], (t < 1 || t > s.length) && (e = "{?}", Q("i18n[" + n + "] no {" + t + "}: " + r, 3)), a ? "" : e; - })) : "en" == e ? q.v_G(n, s, "zh") : q.v_G(n, s, "en"); + })) : "en" == e ? U.v_G(n, s, "zh") : U.v_G(n, s, "en"); }, $T: function () { - return q.v_T.apply(null, arguments); + return U.v_T.apply(null, arguments); }, v_T: function () { for (var e, t = arguments, a = "", n = [], s = 0, r = T + ".i18n.$T:", i = /^([\w\-]*):/, o = 0; o < t.length; o++) { @@ -12986,20 +12995,20 @@ src: recorder-core.js,engine/mp3.js,engine/mp3-engine.js } else { var l = 1 == o ? "en" : o ? "" : "zh"; if ((e = i.exec(_)) && (l = e[1] || l, _ = _.substr(e[1].length + 1)), !e || !l) throw new Error(r + o + " 'lang:'?"); - q.put({ + U.put({ lang: l, overwrite: !1 }, [a + ":" + _]); } } } - return a ? 0 < s ? a : q.v_G(a, n) : ""; + return a ? 0 < s ? a : U.v_G(a, n) : ""; } }, - $ = q.$T; - $.G = q.get, $("NonBrowser-1::非浏览器环境,不支持{1}", 1), $("IllegalArgs-1::参数错误:{1}", 1), $("NeedImport-2::调用{1}需要先导入{2}", 2), $("NotSupport-1::不支持:{1}", 1), W.TrafficImgUrl = "//ia.51.la/go1?id=20469973&pvFlag=1"; + $ = U.$T; + $.G = U.get, $("NonBrowser-1::非浏览器环境,不支持{1}", 1), $("IllegalArgs-1::参数错误:{1}", 1), $("NeedImport-2::调用{1}需要先导入{2}", 2), $("NotSupport-1::不支持:{1}", 1), W.TrafficImgUrl = "//ia.51.la/go1?id=20469973&pvFlag=1"; var l = W.Traffic = function (e) { - if (w) { + if (y) { e = e ? "/" + T + "/Report/" + e : ""; var t = W.TrafficImgUrl; if (t) { @@ -18163,6 +18172,7 @@ __vue_render__$8._withStripped = true; ); var setupDefaults = { + keyId: 1, cookies: { path: '/' }, @@ -18409,12 +18419,19 @@ function mixin() { }); }); } -function setup(options) { +function setConfig(options) { return assign_1(setupDefaults_1, options); } -XEUtils.VERSION = '3.6.0'; +function getConfig() { + return setupDefaults_1; +} +var version = '3.7.4'; +XEUtils.VERSION = version; +XEUtils.version = version; XEUtils.mixin = mixin; -XEUtils.setup = setup; +XEUtils.setup = setConfig; +XEUtils.setConfig = setConfig; +XEUtils.getConfig = getConfig; var ctor = XEUtils; function lastArrayEach(obj, iterate, context) { @@ -18492,10 +18509,17 @@ function isPlainObject(obj) { } var isPlainObject_1 = isPlainObject; +function helperCheckCopyKey(key) { + return key !== '__proto__' && key !== 'constructor'; +} +var helperCheckCopyKey_1 = helperCheckCopyKey; + function handleMerge(target, source) { if (isPlainObject_1(target) && isPlainObject_1(source) || isArray_1(target) && isArray_1(source)) { - each_1(source, function (obj, key) { - target[key] = handleMerge(target[key], obj); + each_1(source, function (val, key) { + if (helperCheckCopyKey_1(key)) { + target[key] = isFunction_1(source) ? val : handleMerge(target[key], val); + } }); return target; } @@ -20446,9 +20470,8 @@ var getType_1 = getType; * @param {String} prefix 前缀 * @return {Number} */ -var __uniqueId = 0; function uniqueId(prefix) { - return [prefix, ++__uniqueId].join(''); + return '' + (eqNull_1(prefix) ? '' : prefix) + setupDefaults_1.keyId++; } var uniqueId_1 = uniqueId; @@ -20693,7 +20716,7 @@ function setDeepProps(obj, key, isEnd, nextKey, value) { * @param {Object} value 值 */ function set(obj, property, value) { - if (obj) { + if (obj && helperCheckCopyKey_1(property)) { if ((obj[property] || hasOwnProp_1(obj, property)) && !isPrototypePolluted(property)) { obj[property] = value; } else { @@ -21371,10 +21394,10 @@ function helperCreateGetDateWeek(getStartDate, checkCrossDate) { var targetWeekEndDate = new Date(targetWeekEndTime); var firstWeekStartDate = getWhatWeek_1(firstDate, 0, viewStartDay, viewStartDay); var firstWeekStartTime = helperGetDateTime_1(firstWeekStartDate); + var tempTime; if (targetWeekStartTime === firstWeekStartTime) { return 1; } - var tempTime; if (checkCrossDate(targetWeekStartDate, targetWeekEndDate)) { tempTime = helperGetDateTime_1(getStartDate(targetWeekEndDate)); for (; tempTime < targetWeekEndTime; tempTime += staticDayTime_1) { @@ -23114,7 +23137,7 @@ var Prism = function (_self) { if (typeof document === 'undefined') { return null; } - if ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) { + if (document.currentScript && document.currentScript.tagName === 'SCRIPT' && 1 < 2 /* hack to trip TS' flow analysis */) { return /** @type {any} */document.currentScript; } @@ -24661,398 +24684,6 @@ Prism.languages.js = Prism.languages.javascript; })(); }); -Prism.languages.clike = { - 'comment': [{ - pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, - lookbehind: true, - greedy: true - }, { - pattern: /(^|[^\\:])\/\/.*/, - lookbehind: true, - greedy: true - }], - 'string': { - pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, - greedy: true - }, - 'class-name': { - pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, - lookbehind: true, - inside: { - 'punctuation': /[.\\]/ - } - }, - 'keyword': /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, - 'boolean': /\b(?:false|true)\b/, - 'function': /\b\w+(?=\()/, - 'number': /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, - 'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, - 'punctuation': /[{}[\];(),.:]/ -}; - -Prism.languages.markup = { - 'comment': { - pattern: //, - greedy: true - }, - 'prolog': { - pattern: /<\?[\s\S]+?\?>/, - greedy: true - }, - 'doctype': { - // https://www.w3.org/TR/xml/#NT-doctypedecl - pattern: /"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i, - greedy: true, - inside: { - 'internal-subset': { - pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, - lookbehind: true, - greedy: true, - inside: null // see below - }, - 'string': { - pattern: /"[^"]*"|'[^']*'/, - greedy: true - }, - 'punctuation': /^$|[[\]]/, - 'doctype-tag': /^DOCTYPE/i, - 'name': /[^\s<>'"]+/ - } - }, - 'cdata': { - pattern: //i, - greedy: true - }, - 'tag': { - pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, - greedy: true, - inside: { - 'tag': { - pattern: /^<\/?[^\s>\/]+/, - inside: { - 'punctuation': /^<\/?/, - 'namespace': /^[^\s>\/:]+:/ - } - }, - 'special-attr': [], - 'attr-value': { - pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, - inside: { - 'punctuation': [{ - pattern: /^=/, - alias: 'attr-equals' - }, { - pattern: /^(\s*)["']|["']$/, - lookbehind: true - }] - } - }, - 'punctuation': /\/?>/, - 'attr-name': { - pattern: /[^\s>\/]+/, - inside: { - 'namespace': /^[^\s>\/:]+:/ - } - } - } - }, - 'entity': [{ - pattern: /&[\da-z]{1,8};/i, - alias: 'named-entity' - }, /&#x?[\da-f]{1,8};/i] -}; -Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] = Prism.languages.markup['entity']; -Prism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup; - -// Plugin to make entity title show the real entity, idea by Roman Komarov -Prism.hooks.add('wrap', function (env) { - if (env.type === 'entity') { - env.attributes['title'] = env.content.replace(/&/, '&'); - } -}); -Object.defineProperty(Prism.languages.markup.tag, 'addInlined', { - /** - * Adds an inlined language to markup. - * - * An example of an inlined language is CSS with `