@das-fed/ui 7.1.0-dev.1 → 7.1.0-dev.10

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.
Files changed (191) hide show
  1. package/esm-map.json +3 -2
  2. package/package.json +5 -5
  3. package/packages/business-components/ai-panel/{index-8yffh0Id.js → index-DMJXZM7n.js} +1067 -1056
  4. package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
  5. package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-MqhMkLo9.js} +9 -9
  6. package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
  7. package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-_q72oKSF.js} +63 -62
  8. package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
  9. package/packages/business-components/ai-panel/index.js +1 -1
  10. package/packages/business-components/app-container/style.css +1 -1
  11. package/packages/business-components/app-container/style.css.gz +0 -0
  12. package/packages/business-components/area-phone-select/index.d.ts +23 -23
  13. package/packages/business-components/area-phone-select/src/Index.vue.d.ts +2 -2
  14. package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +2 -2
  15. package/packages/business-components/device-panel/i18n/index.d.ts +40 -0
  16. package/packages/business-components/device-panel/index.js +20949 -19425
  17. package/packages/business-components/device-panel/index.js.gz +0 -0
  18. package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-knowledge.d.ts +6 -0
  19. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/Index.vue.d.ts +6 -0
  20. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/apis.d.ts +5 -0
  21. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/Info.vue.d.ts +44 -0
  22. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/downloadFile.d.ts +8 -0
  23. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/info.d.ts +24 -0
  24. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/utils/get-file-details.d.ts +2 -0
  25. package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-knowledge.d.ts +6 -0
  26. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/Index.vue.d.ts +6 -0
  27. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/apis.d.ts +5 -0
  28. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/Info.vue.d.ts +44 -0
  29. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/downloadFile.d.ts +8 -0
  30. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/info.d.ts +24 -0
  31. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/utils/get-file-details.d.ts +2 -0
  32. package/packages/business-components/device-panel/style.css +1 -1
  33. package/packages/business-components/device-panel/style.css.gz +0 -0
  34. package/packages/business-components/echarts/index.js +2056 -2049
  35. package/packages/business-components/echarts/index.js.gz +0 -0
  36. package/packages/business-components/index.d.ts +1 -0
  37. package/packages/business-components/index.js +1 -0
  38. package/packages/business-components/payment/index.d.ts +9 -11
  39. package/packages/business-components/payment/index.js +122 -129
  40. package/packages/business-components/payment/index.js.gz +0 -0
  41. package/packages/business-components/payment/style.css +1 -1
  42. package/packages/business-components/payment/type.d.ts +2 -0
  43. package/packages/business-components/process-configuration/index.js +46 -46
  44. package/packages/business-components/process-configuration/index.js.gz +0 -0
  45. package/packages/business-components/process-form/index.js +675 -655
  46. package/packages/business-components/process-form/index.js.gz +0 -0
  47. package/packages/business-components/process-form/src/utils/common-methods.d.ts +6 -0
  48. package/packages/business-components/process-search-form/index.js +73 -73
  49. package/packages/business-components/process-search-form/index.js.gz +0 -0
  50. package/packages/business-components/process-table/index.js +215 -213
  51. package/packages/business-components/process-table/index.js.gz +0 -0
  52. package/packages/business-components/update-confirm-dialog/i18n/index.d.ts +23 -0
  53. package/packages/business-components/update-confirm-dialog/index.d.ts +61 -0
  54. package/packages/business-components/update-confirm-dialog/index.js +105 -0
  55. package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
  56. package/packages/business-components/update-confirm-dialog/src/App.vue.d.ts +11 -0
  57. package/packages/business-components/update-confirm-dialog/src/type.d.ts +4 -0
  58. package/packages/business-components/urgent-panel/index.js +1104 -1096
  59. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  60. package/packages/business-components/user-org-dialog/index.js +243 -240
  61. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  62. package/packages/business-components/video-dialog/index.d.ts +10 -0
  63. package/packages/business-components/video-dialog/index.js +357 -337
  64. package/packages/business-components/video-dialog/index.js.gz +0 -0
  65. package/packages/business-components/video-dialog/src/api.d.ts +1 -0
  66. package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +2 -0
  67. package/packages/business-components/video-dialog/src/hooks/use-video/PlayerProvider.d.ts +6 -0
  68. package/packages/business-components/video-dialog/src/index.vue.d.ts +2 -0
  69. package/packages/business-components/video-dialog/src/type.d.ts +7 -1
  70. package/packages/business-components/video-dialog/style.css +1 -1
  71. package/packages/business-components/video-dialog/style.css.gz +0 -0
  72. package/packages/components/autocomplete/index.d.ts +15 -15
  73. package/packages/components/autocomplete/index.js +12 -6
  74. package/packages/components/autocomplete/index.js.gz +0 -0
  75. package/packages/components/autocomplete/src/index.vue.d.ts +2 -2
  76. package/packages/components/calendar/index.js +99 -99
  77. package/packages/components/calendar/index.js.gz +0 -0
  78. package/packages/components/cascader/index.js +2 -2
  79. package/packages/components/cascader/index.js.gz +0 -0
  80. package/packages/components/checkbox/index.d.ts +15 -15
  81. package/packages/components/checkbox/index.js +30 -30
  82. package/packages/components/checkbox/index.js.gz +0 -0
  83. package/packages/components/checkbox/src/Index.vue.d.ts +2 -2
  84. package/packages/components/color-picker/index.d.ts +8 -8
  85. package/packages/components/color-picker/src/Index.vue.d.ts +2 -2
  86. package/packages/components/custom-search-item/index.d.ts +15 -15
  87. package/packages/components/custom-search-item/src/Index.vue.d.ts +2 -2
  88. package/packages/components/date-picker/index.js +212 -212
  89. package/packages/components/date-picker/index.js.gz +0 -0
  90. package/packages/components/dialog/index.d.ts +6 -3
  91. package/packages/components/dialog/index.js +281 -184
  92. package/packages/components/dialog/index.js.gz +0 -0
  93. package/packages/components/dialog/src/Index.vue.d.ts +2 -1
  94. package/packages/components/dialog/src/directives/dialogResize.d.ts +2 -0
  95. package/packages/components/dialog/src/type.d.ts +2 -0
  96. package/packages/components/dialog/style.css +1 -1
  97. package/packages/components/dialog/style.css.gz +0 -0
  98. package/packages/components/dimple-layout/index.js +77 -75
  99. package/packages/components/dimple-layout/index.js.gz +0 -0
  100. package/packages/components/dropdown/index.js +25 -24
  101. package/packages/components/dropdown/index.js.gz +0 -0
  102. package/packages/components/edit-table/index.js +398 -397
  103. package/packages/components/edit-table/index.js.gz +0 -0
  104. package/packages/components/error-overlay-model/index.js +47 -45
  105. package/packages/components/error-overlay-model/index.js.gz +0 -0
  106. package/packages/components/form-item/index.js +67 -67
  107. package/packages/components/form-item/index.js.gz +0 -0
  108. package/packages/components/hls-player/index.js +496 -485
  109. package/packages/components/hls-player/index.js.gz +0 -0
  110. package/packages/components/hls-player/src/type.d.ts +3 -0
  111. package/packages/components/hls-player/style.css +1 -1
  112. package/packages/components/hls-player/style.css.gz +0 -0
  113. package/packages/components/image-upload/index.js +147 -143
  114. package/packages/components/image-upload/index.js.gz +0 -0
  115. package/packages/components/image-viewer/index.js +297 -293
  116. package/packages/components/image-viewer/index.js.gz +0 -0
  117. package/packages/components/input/index.d.ts +5 -5
  118. package/packages/components/input/index.js +52 -52
  119. package/packages/components/input/index.js.gz +0 -0
  120. package/packages/components/input/src/index.vue.d.ts +2 -2
  121. package/packages/components/input-dialog-select/index.d.ts +2 -2
  122. package/packages/components/input-dialog-select/src/Index.vue.d.ts +2 -2
  123. package/packages/components/input-number/index.d.ts +8 -8
  124. package/packages/components/input-number/index.js +26 -26
  125. package/packages/components/input-number/index.js.gz +0 -0
  126. package/packages/components/input-number/src/App.vue.d.ts +2 -2
  127. package/packages/components/live-player/index.d.ts +2 -0
  128. package/packages/components/live-player/index.js +988 -977
  129. package/packages/components/live-player/index.js.gz +0 -0
  130. package/packages/components/live-player/src/type.d.ts +3 -0
  131. package/packages/components/live-player/style.css +1 -1
  132. package/packages/components/map/index.js +421 -415
  133. package/packages/components/map/index.js.gz +0 -0
  134. package/packages/components/menu-aside/index.js +1 -1
  135. package/packages/components/menu-aside/index.js.gz +0 -0
  136. package/packages/components/message/index.js +6 -6
  137. package/packages/components/message/index.js.gz +0 -0
  138. package/packages/components/popover/index.js +12 -12
  139. package/packages/components/popover/index.js.gz +0 -0
  140. package/packages/components/radio/index.d.ts +15 -15
  141. package/packages/components/radio/src/Index.vue.d.ts +2 -2
  142. package/packages/components/radio-tabs/index.js +34 -34
  143. package/packages/components/radio-tabs/index.js.gz +0 -0
  144. package/packages/components/rich-editor/index.d.ts +8 -8
  145. package/packages/components/rich-editor/index.js +4613 -4583
  146. package/packages/components/rich-editor/index.js.gz +0 -0
  147. package/packages/components/rich-editor/src/Index.vue.d.ts +2 -2
  148. package/packages/components/scrollbar/index.d.ts +9 -3
  149. package/packages/components/scrollbar/index.js +394 -390
  150. package/packages/components/scrollbar/index.js.gz +0 -0
  151. package/packages/components/scrollbar/src/scrollbar.vue.d.ts +3 -1
  152. package/packages/components/scrollbar/style.css +1 -1
  153. package/packages/components/scrollbar/style.css.gz +0 -0
  154. package/packages/components/search/index.d.ts +2 -2
  155. package/packages/components/search/index.js +24 -24
  156. package/packages/components/search/index.js.gz +0 -0
  157. package/packages/components/search/src/Index.vue.d.ts +2 -2
  158. package/packages/components/search-form/index.js +175 -174
  159. package/packages/components/search-form/index.js.gz +0 -0
  160. package/packages/components/search-form/style.css +1 -1
  161. package/packages/components/search-form/style.css.gz +0 -0
  162. package/packages/components/select/index.js +60 -60
  163. package/packages/components/select/index.js.gz +0 -0
  164. package/packages/components/select-list/index.js +9 -5
  165. package/packages/components/select-list/index.js.gz +0 -0
  166. package/packages/components/special-range-picker-month/index.d.ts +2 -2
  167. package/packages/components/special-range-picker-month/index.js +16 -14
  168. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  169. package/packages/components/special-range-picker-month/src/Index.vue.d.ts +2 -2
  170. package/packages/components/special-range-picker-year/index.d.ts +2 -2
  171. package/packages/components/special-range-picker-year/index.js +53 -51
  172. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  173. package/packages/components/special-range-picker-year/src/Index.vue.d.ts +2 -2
  174. package/packages/components/spin/index.js +33 -33
  175. package/packages/components/spin/index.js.gz +0 -0
  176. package/packages/components/split-panel/index.js +129 -128
  177. package/packages/components/split-panel/index.js.gz +0 -0
  178. package/packages/components/table/index.js +179 -178
  179. package/packages/components/table/index.js.gz +0 -0
  180. package/packages/components/time-line/index.js +1 -1
  181. package/packages/components/time-line/index.js.gz +0 -0
  182. package/packages/components/tree-select/index.js +1 -1
  183. package/packages/components/tree-select/index.js.gz +0 -0
  184. package/packages/components/tree-select/src/App.vue.d.ts +2 -2
  185. package/packages/components/tree-table/index.js +2 -2
  186. package/packages/components/tree-table/index.js.gz +0 -0
  187. package/packages/components/tree-v2/index.js +1117 -1093
  188. package/packages/components/tree-v2/index.js.gz +0 -0
  189. package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
  190. package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
  191. package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
@@ -1,5 +1,5 @@
1
1
  import '@das-fed/ui/packages/components/live-player/style.css';
2
- import { defineComponent as Yt, useCssVars as Jt, ref as Xe, toRefs as Zt, computed as ot, onMounted as $t, onBeforeUnmount as Qt, withDirectives as ei, createElementBlock as dt, openBlock as ut, unref as We, normalizeStyle as ti, renderSlot as ii, createTextVNode as ri, toDisplayString as ai } from "vue";
2
+ import { defineComponent as Yt, useCssVars as Jt, ref as He, toRefs as Zt, computed as ot, onMounted as $t, onBeforeUnmount as Qt, withDirectives as ei, createElementBlock as dt, openBlock as ut, unref as Xe, normalizeStyle as ti, renderSlot as ii, createTextVNode as ri, toDisplayString as ai } from "vue";
3
3
  import { withInstall as ni } from "@das-fed/utils/with-install/index";
4
4
  import { ElLoadingDirective as si } from "element-plus/es";
5
5
  import "element-plus/es/components/base/style/css";
@@ -47,24 +47,24 @@ var Tt = { exports: {} };
47
47
  }
48
48
  return b.e = function(v, f) {
49
49
  v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
50
- var L = "[" + v + "] > " + f;
51
- b.ENABLE_CALLBACK && b.emitter.emit("log", "error", L), b.ENABLE_ERROR;
50
+ var k = "[" + v + "] > " + f;
51
+ b.ENABLE_CALLBACK && b.emitter.emit("log", "error", k), b.ENABLE_ERROR && (console.error ? console.error(k) : console.warn ? console.warn(k) : console.log(k));
52
52
  }, b.i = function(v, f) {
53
53
  v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
54
- var L = "[" + v + "] > " + f;
55
- b.ENABLE_CALLBACK && b.emitter.emit("log", "info", L), b.ENABLE_INFO;
54
+ var k = "[" + v + "] > " + f;
55
+ b.ENABLE_CALLBACK && b.emitter.emit("log", "info", k), b.ENABLE_INFO && (console.info ? console.info(k) : console.log(k));
56
56
  }, b.w = function(v, f) {
57
57
  v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
58
- var L = "[" + v + "] > " + f;
59
- b.ENABLE_CALLBACK && b.emitter.emit("log", "warn", L), b.ENABLE_WARN;
58
+ var k = "[" + v + "] > " + f;
59
+ b.ENABLE_CALLBACK && b.emitter.emit("log", "warn", k), b.ENABLE_WARN && (console.warn ? console.warn(k) : console.log(k));
60
60
  }, b.d = function(v, f) {
61
61
  v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
62
- var L = "[" + v + "] > " + f;
63
- b.ENABLE_CALLBACK && b.emitter.emit("log", "debug", L), b.ENABLE_DEBUG;
62
+ var k = "[" + v + "] > " + f;
63
+ b.ENABLE_CALLBACK && b.emitter.emit("log", "debug", k), b.ENABLE_DEBUG && (console.debug ? console.debug(k) : console.log(k));
64
64
  }, b.v = function(v, f) {
65
65
  v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
66
- var L = "[" + v + "] > " + f;
67
- b.ENABLE_CALLBACK && b.emitter.emit("log", "verbose", L), b.ENABLE_VERBOSE;
66
+ var k = "[" + v + "] > " + f;
67
+ b.ENABLE_CALLBACK && b.emitter.emit("log", "verbose", k), b.ENABLE_VERBOSE && console.log(k);
68
68
  }, b;
69
69
  }();
70
70
  m.GLOBAL_TAG = "mpegts.js", m.FORCE_GLOBAL_TAG = !1, m.ENABLE_ERROR = !0, m.ENABLE_INFO = !0, m.ENABLE_WARN = !0, m.ENABLE_DEBUG = !0, m.ENABLE_VERBOSE = !0, m.ENABLE_CALLBACK = !1, m.emitter = new B.a(), Z.a = m;
@@ -112,7 +112,7 @@ var Tt = { exports: {} };
112
112
  return this._onComplete;
113
113
  }, set: function(f) {
114
114
  this._onComplete = f;
115
- }, enumerable: !1, configurable: !0 }), v.prototype.open = function(f, L) {
115
+ }, enumerable: !1, configurable: !0 }), v.prototype.open = function(f, k) {
116
116
  throw new U.c("Unimplemented abstract function!");
117
117
  }, v.prototype.abort = function() {
118
118
  throw new U.c("Unimplemented abstract function!");
@@ -128,49 +128,49 @@ var Tt = { exports: {} };
128
128
  }), O.d(Z, "c", function() {
129
129
  return f;
130
130
  });
131
- var U, B = (U = function(L, x) {
132
- return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, V) {
133
- C.__proto__ = V;
134
- } || function(C, V) {
135
- for (var H in V) V.hasOwnProperty(H) && (C[H] = V[H]);
136
- })(L, x);
137
- }, function(L, x) {
131
+ var U, B = (U = function(k, M) {
132
+ return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, j) {
133
+ C.__proto__ = j;
134
+ } || function(C, j) {
135
+ for (var H in j) j.hasOwnProperty(H) && (C[H] = j[H]);
136
+ })(k, M);
137
+ }, function(k, M) {
138
138
  function C() {
139
- this.constructor = L;
139
+ this.constructor = k;
140
140
  }
141
- U(L, x), L.prototype = x === null ? Object.create(x) : (C.prototype = x.prototype, new C());
141
+ U(k, M), k.prototype = M === null ? Object.create(M) : (C.prototype = M.prototype, new C());
142
142
  }), m = function() {
143
- function L(x) {
144
- this._message = x;
143
+ function k(M) {
144
+ this._message = M;
145
145
  }
146
- return Object.defineProperty(L.prototype, "name", { get: function() {
146
+ return Object.defineProperty(k.prototype, "name", { get: function() {
147
147
  return "RuntimeException";
148
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "message", { get: function() {
148
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "message", { get: function() {
149
149
  return this._message;
150
- }, enumerable: !1, configurable: !0 }), L.prototype.toString = function() {
150
+ }, enumerable: !1, configurable: !0 }), k.prototype.toString = function() {
151
151
  return this.name + ": " + this.message;
152
- }, L;
153
- }(), b = function(L) {
154
- function x(C) {
155
- return L.call(this, C) || this;
152
+ }, k;
153
+ }(), b = function(k) {
154
+ function M(C) {
155
+ return k.call(this, C) || this;
156
156
  }
157
- return B(x, L), Object.defineProperty(x.prototype, "name", { get: function() {
157
+ return B(M, k), Object.defineProperty(M.prototype, "name", { get: function() {
158
158
  return "IllegalStateException";
159
- }, enumerable: !1, configurable: !0 }), x;
160
- }(m), v = function(L) {
161
- function x(C) {
162
- return L.call(this, C) || this;
159
+ }, enumerable: !1, configurable: !0 }), M;
160
+ }(m), v = function(k) {
161
+ function M(C) {
162
+ return k.call(this, C) || this;
163
163
  }
164
- return B(x, L), Object.defineProperty(x.prototype, "name", { get: function() {
164
+ return B(M, k), Object.defineProperty(M.prototype, "name", { get: function() {
165
165
  return "InvalidArgumentException";
166
- }, enumerable: !1, configurable: !0 }), x;
167
- }(m), f = function(L) {
168
- function x(C) {
169
- return L.call(this, C) || this;
166
+ }, enumerable: !1, configurable: !0 }), M;
167
+ }(m), f = function(k) {
168
+ function M(C) {
169
+ return k.call(this, C) || this;
170
170
  }
171
- return B(x, L), Object.defineProperty(x.prototype, "name", { get: function() {
171
+ return B(M, k), Object.defineProperty(M.prototype, "name", { get: function() {
172
172
  return "NotImplementedException";
173
- }, enumerable: !1, configurable: !0 }), x;
173
+ }, enumerable: !1, configurable: !0 }), M;
174
174
  }(m);
175
175
  }, function(fe, Z, O) {
176
176
  var U = {};
@@ -178,11 +178,11 @@ var Tt = { exports: {} };
178
178
  var B = self.navigator.userAgent.toLowerCase(), m = /(edge)\/([\w.]+)/.exec(B) || /(opr)[\/]([\w.]+)/.exec(B) || /(chrome)[ \/]([\w.]+)/.exec(B) || /(iemobile)[\/]([\w.]+)/.exec(B) || /(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(B) || /(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(B) || /(webkit)[ \/]([\w.]+)/.exec(B) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(B) || /(msie) ([\w.]+)/.exec(B) || B.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec(B) || B.indexOf("compatible") < 0 && /(firefox)[ \/]([\w.]+)/.exec(B) || [], b = /(ipad)/.exec(B) || /(ipod)/.exec(B) || /(windows phone)/.exec(B) || /(iphone)/.exec(B) || /(kindle)/.exec(B) || /(android)/.exec(B) || /(windows)/.exec(B) || /(mac)/.exec(B) || /(linux)/.exec(B) || /(cros)/.exec(B) || [], v = { browser: m[5] || m[3] || m[1] || "", version: m[2] || m[4] || "0", majorVersion: m[4] || m[2] || "0", platform: b[0] || "" }, f = {};
179
179
  if (v.browser) {
180
180
  f[v.browser] = !0;
181
- var L = v.majorVersion.split(".");
182
- f.version = { major: parseInt(v.majorVersion, 10), string: v.version }, L.length > 1 && (f.version.minor = parseInt(L[1], 10)), L.length > 2 && (f.version.build = parseInt(L[2], 10));
181
+ var k = v.majorVersion.split(".");
182
+ f.version = { major: parseInt(v.majorVersion, 10), string: v.version }, k.length > 1 && (f.version.minor = parseInt(k[1], 10)), k.length > 2 && (f.version.build = parseInt(k[2], 10));
183
183
  }
184
184
  v.platform && (f[v.platform] = !0), (f.chrome || f.opr || f.safari) && (f.webkit = !0), (f.rv || f.iemobile) && (f.rv && delete f.rv, v.browser = "msie", f.msie = !0), f.edge && (delete f.edge, v.browser = "msedge", f.msedge = !0), f.opr && (v.browser = "opera", f.opera = !0), f.safari && f.android && (v.browser = "android", f.android = !0);
185
- for (var x in f.name = v.browser, f.platform = v.platform, U) U.hasOwnProperty(x) && delete U[x];
185
+ for (var M in f.name = v.browser, f.platform = v.platform, U) U.hasOwnProperty(M) && delete U[M];
186
186
  Object.assign(U, f);
187
187
  })(), Z.a = U;
188
188
  }, function(fe, Z, O) {
@@ -204,51 +204,51 @@ var Tt = { exports: {} };
204
204
  }
205
205
  fe.exports = v, fe.exports.once = function(y, G) {
206
206
  return new Promise(function(T, l) {
207
- function u(c) {
208
- y.removeListener(G, _), l(c);
207
+ function u(h) {
208
+ y.removeListener(G, _), l(h);
209
209
  }
210
210
  function _() {
211
211
  typeof y.removeListener == "function" && y.removeListener("error", u), T([].slice.call(arguments));
212
212
  }
213
- ae(y, G, _, { once: !0 }), G !== "error" && function(c, P, D) {
214
- typeof c.on == "function" && ae(c, "error", P, D);
213
+ ie(y, G, _, { once: !0 }), G !== "error" && function(h, P, D) {
214
+ typeof h.on == "function" && ie(h, "error", P, D);
215
215
  }(y, u, { once: !0 });
216
216
  });
217
217
  }, v.EventEmitter = v, v.prototype._events = void 0, v.prototype._eventsCount = 0, v.prototype._maxListeners = void 0;
218
218
  var f = 10;
219
- function L(y) {
219
+ function k(y) {
220
220
  if (typeof y != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof y);
221
221
  }
222
- function x(y) {
222
+ function M(y) {
223
223
  return y._maxListeners === void 0 ? v.defaultMaxListeners : y._maxListeners;
224
224
  }
225
225
  function C(y, G, T, l) {
226
- var u, _, c, P;
227
- if (L(T), (_ = y._events) === void 0 ? (_ = y._events = /* @__PURE__ */ Object.create(null), y._eventsCount = 0) : (_.newListener !== void 0 && (y.emit("newListener", G, T.listener ? T.listener : T), _ = y._events), c = _[G]), c === void 0) c = _[G] = T, ++y._eventsCount;
228
- else if (typeof c == "function" ? c = _[G] = l ? [T, c] : [c, T] : l ? c.unshift(T) : c.push(T), (u = x(y)) > 0 && c.length > u && !c.warned) {
229
- c.warned = !0;
230
- var D = new Error("Possible EventEmitter memory leak detected. " + c.length + " " + String(G) + " listeners added. Use emitter.setMaxListeners() to increase limit");
231
- D.name = "MaxListenersExceededWarning", D.emitter = y, D.type = G, D.count = c.length, P = D;
226
+ var u, _, h, P;
227
+ if (k(T), (_ = y._events) === void 0 ? (_ = y._events = /* @__PURE__ */ Object.create(null), y._eventsCount = 0) : (_.newListener !== void 0 && (y.emit("newListener", G, T.listener ? T.listener : T), _ = y._events), h = _[G]), h === void 0) h = _[G] = T, ++y._eventsCount;
228
+ else if (typeof h == "function" ? h = _[G] = l ? [T, h] : [h, T] : l ? h.unshift(T) : h.push(T), (u = M(y)) > 0 && h.length > u && !h.warned) {
229
+ h.warned = !0;
230
+ var D = new Error("Possible EventEmitter memory leak detected. " + h.length + " " + String(G) + " listeners added. Use emitter.setMaxListeners() to increase limit");
231
+ D.name = "MaxListenersExceededWarning", D.emitter = y, D.type = G, D.count = h.length, P = D, console && console.warn && console.warn(P);
232
232
  }
233
233
  return y;
234
234
  }
235
- function V() {
235
+ function j() {
236
236
  if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
237
237
  }
238
238
  function H(y, G, T) {
239
- var l = { fired: !1, wrapFn: void 0, target: y, type: G, listener: T }, u = V.bind(l);
239
+ var l = { fired: !1, wrapFn: void 0, target: y, type: G, listener: T }, u = j.bind(l);
240
240
  return u.listener = T, l.wrapFn = u, u;
241
241
  }
242
- function ue(y, G, T) {
242
+ function le(y, G, T) {
243
243
  var l = y._events;
244
244
  if (l === void 0) return [];
245
245
  var u = l[G];
246
246
  return u === void 0 ? [] : typeof u == "function" ? T ? [u.listener || u] : [u] : T ? function(_) {
247
- for (var c = new Array(_.length), P = 0; P < c.length; ++P) c[P] = _[P].listener || _[P];
248
- return c;
249
- }(u) : Y(u, u.length);
247
+ for (var h = new Array(_.length), P = 0; P < h.length; ++P) h[P] = _[P].listener || _[P];
248
+ return h;
249
+ }(u) : X(u, u.length);
250
250
  }
251
- function se(y) {
251
+ function ne(y) {
252
252
  var G = this._events;
253
253
  if (G !== void 0) {
254
254
  var T = G[y];
@@ -257,11 +257,11 @@ var Tt = { exports: {} };
257
257
  }
258
258
  return 0;
259
259
  }
260
- function Y(y, G) {
260
+ function X(y, G) {
261
261
  for (var T = new Array(G), l = 0; l < G; ++l) T[l] = y[l];
262
262
  return T;
263
263
  }
264
- function ae(y, G, T, l) {
264
+ function ie(y, G, T, l) {
265
265
  if (typeof y.on == "function") l.once ? y.once(G, T) : y.on(G, T);
266
266
  else {
267
267
  if (typeof y.addEventListener != "function") throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof y);
@@ -281,7 +281,7 @@ var Tt = { exports: {} };
281
281
  if (typeof y != "number" || y < 0 || b(y)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + y + ".");
282
282
  return this._maxListeners = y, this;
283
283
  }, v.prototype.getMaxListeners = function() {
284
- return x(this);
284
+ return M(this);
285
285
  }, v.prototype.emit = function(y) {
286
286
  for (var G = [], T = 1; T < arguments.length; T++) G.push(arguments[T]);
287
287
  var l = y === "error", u = this._events;
@@ -290,15 +290,15 @@ var Tt = { exports: {} };
290
290
  if (l) {
291
291
  var _;
292
292
  if (G.length > 0 && (_ = G[0]), _ instanceof Error) throw _;
293
- var c = new Error("Unhandled error." + (_ ? " (" + _.message + ")" : ""));
294
- throw c.context = _, c;
293
+ var h = new Error("Unhandled error." + (_ ? " (" + _.message + ")" : ""));
294
+ throw h.context = _, h;
295
295
  }
296
296
  var P = u[y];
297
297
  if (P === void 0) return !1;
298
298
  if (typeof P == "function") m(P, this, G);
299
299
  else {
300
- var D = P.length, F = Y(P, D);
301
- for (T = 0; T < D; ++T) m(F[T], this, G);
300
+ var D = P.length, V = X(P, D);
301
+ for (T = 0; T < D; ++T) m(V[T], this, G);
302
302
  }
303
303
  return !0;
304
304
  }, v.prototype.addListener = function(y, G) {
@@ -306,24 +306,24 @@ var Tt = { exports: {} };
306
306
  }, v.prototype.on = v.prototype.addListener, v.prototype.prependListener = function(y, G) {
307
307
  return C(this, y, G, !0);
308
308
  }, v.prototype.once = function(y, G) {
309
- return L(G), this.on(y, H(this, y, G)), this;
309
+ return k(G), this.on(y, H(this, y, G)), this;
310
310
  }, v.prototype.prependOnceListener = function(y, G) {
311
- return L(G), this.prependListener(y, H(this, y, G)), this;
311
+ return k(G), this.prependListener(y, H(this, y, G)), this;
312
312
  }, v.prototype.removeListener = function(y, G) {
313
- var T, l, u, _, c;
314
- if (L(G), (l = this._events) === void 0) return this;
313
+ var T, l, u, _, h;
314
+ if (k(G), (l = this._events) === void 0) return this;
315
315
  if ((T = l[y]) === void 0) return this;
316
316
  if (T === G || T.listener === G) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete l[y], l.removeListener && this.emit("removeListener", y, T.listener || G));
317
317
  else if (typeof T != "function") {
318
318
  for (u = -1, _ = T.length - 1; _ >= 0; _--) if (T[_] === G || T[_].listener === G) {
319
- c = T[_].listener, u = _;
319
+ h = T[_].listener, u = _;
320
320
  break;
321
321
  }
322
322
  if (u < 0) return this;
323
323
  u === 0 ? T.shift() : function(P, D) {
324
324
  for (; D + 1 < P.length; D++) P[D] = P[D + 1];
325
325
  P.pop();
326
- }(T, u), T.length === 1 && (l[y] = T[0]), l.removeListener !== void 0 && this.emit("removeListener", y, c || G);
326
+ }(T, u), T.length === 1 && (l[y] = T[0]), l.removeListener !== void 0 && this.emit("removeListener", y, h || G);
327
327
  }
328
328
  return this;
329
329
  }, v.prototype.off = v.prototype.removeListener, v.prototype.removeAllListeners = function(y) {
@@ -339,12 +339,12 @@ var Tt = { exports: {} };
339
339
  else if (G !== void 0) for (l = G.length - 1; l >= 0; l--) this.removeListener(y, G[l]);
340
340
  return this;
341
341
  }, v.prototype.listeners = function(y) {
342
- return ue(this, y, !0);
342
+ return le(this, y, !0);
343
343
  }, v.prototype.rawListeners = function(y) {
344
- return ue(this, y, !1);
344
+ return le(this, y, !1);
345
345
  }, v.listenerCount = function(y, G) {
346
- return typeof y.listenerCount == "function" ? y.listenerCount(G) : se.call(y, G);
347
- }, v.prototype.listenerCount = se, v.prototype.eventNames = function() {
346
+ return typeof y.listenerCount == "function" ? y.listenerCount(G) : ne.call(y, G);
347
+ }, v.prototype.listenerCount = ne, v.prototype.eventNames = function() {
348
348
  return this._eventsCount > 0 ? U(this._events) : [];
349
349
  };
350
350
  }, function(fe, Z, O) {
@@ -357,8 +357,8 @@ var Tt = { exports: {} };
357
357
  }), O.d(Z, "c", function() {
358
358
  return b;
359
359
  });
360
- var U = function(v, f, L, x, C) {
361
- this.dts = v, this.pts = f, this.duration = L, this.originalDts = x, this.isSyncPoint = C, this.fileposition = null;
360
+ var U = function(v, f, k, M, C) {
361
+ this.dts = v, this.pts = f, this.duration = k, this.originalDts = M, this.isSyncPoint = C, this.fileposition = null;
362
362
  }, B = function() {
363
363
  function v() {
364
364
  this.beginDts = 0, this.endDts = 0, this.beginPts = 0, this.endPts = 0, this.originalBeginDts = 0, this.originalEndDts = 0, this.syncPoints = [], this.firstSample = null, this.lastSample = null;
@@ -373,19 +373,19 @@ var Tt = { exports: {} };
373
373
  return v.prototype.clear = function() {
374
374
  this._list = [];
375
375
  }, v.prototype.appendArray = function(f) {
376
- var L = this._list;
377
- f.length !== 0 && (L.length > 0 && f[0].originalDts < L[L.length - 1].originalDts && this.clear(), Array.prototype.push.apply(L, f));
376
+ var k = this._list;
377
+ f.length !== 0 && (k.length > 0 && f[0].originalDts < k[k.length - 1].originalDts && this.clear(), Array.prototype.push.apply(k, f));
378
378
  }, v.prototype.getLastSyncPointBeforeDts = function(f) {
379
379
  if (this._list.length == 0) return null;
380
- var L = this._list, x = 0, C = L.length - 1, V = 0, H = 0, ue = C;
381
- for (f < L[0].dts && (x = 0, H = ue + 1); H <= ue; ) {
382
- if ((V = H + Math.floor((ue - H) / 2)) === C || f >= L[V].dts && f < L[V + 1].dts) {
383
- x = V;
380
+ var k = this._list, M = 0, C = k.length - 1, j = 0, H = 0, le = C;
381
+ for (f < k[0].dts && (M = 0, H = le + 1); H <= le; ) {
382
+ if ((j = H + Math.floor((le - H) / 2)) === C || f >= k[j].dts && f < k[j + 1].dts) {
383
+ M = j;
384
384
  break;
385
385
  }
386
- L[V].dts < f ? H = V + 1 : ue = V - 1;
386
+ k[j].dts < f ? H = j + 1 : le = j - 1;
387
387
  }
388
- return this._list[x];
388
+ return this._list[M];
389
389
  }, v;
390
390
  }(), b = function() {
391
391
  function v(f) {
@@ -400,32 +400,32 @@ var Tt = { exports: {} };
400
400
  }, v.prototype.clear = function() {
401
401
  this._list = [], this._lastAppendLocation = -1;
402
402
  }, v.prototype._searchNearestSegmentBefore = function(f) {
403
- var L = this._list;
404
- if (L.length === 0) return -2;
405
- var x = L.length - 1, C = 0, V = 0, H = x, ue = 0;
406
- if (f < L[0].originalBeginDts) return ue = -1;
407
- for (; V <= H; ) {
408
- if ((C = V + Math.floor((H - V) / 2)) === x || f > L[C].lastSample.originalDts && f < L[C + 1].originalBeginDts) {
409
- ue = C;
403
+ var k = this._list;
404
+ if (k.length === 0) return -2;
405
+ var M = k.length - 1, C = 0, j = 0, H = M, le = 0;
406
+ if (f < k[0].originalBeginDts) return le = -1;
407
+ for (; j <= H; ) {
408
+ if ((C = j + Math.floor((H - j) / 2)) === M || f > k[C].lastSample.originalDts && f < k[C + 1].originalBeginDts) {
409
+ le = C;
410
410
  break;
411
411
  }
412
- L[C].originalBeginDts < f ? V = C + 1 : H = C - 1;
412
+ k[C].originalBeginDts < f ? j = C + 1 : H = C - 1;
413
413
  }
414
- return ue;
414
+ return le;
415
415
  }, v.prototype._searchNearestSegmentAfter = function(f) {
416
416
  return this._searchNearestSegmentBefore(f) + 1;
417
417
  }, v.prototype.append = function(f) {
418
- var L = this._list, x = f, C = this._lastAppendLocation, V = 0;
419
- C !== -1 && C < L.length && x.originalBeginDts >= L[C].lastSample.originalDts && (C === L.length - 1 || C < L.length - 1 && x.originalBeginDts < L[C + 1].originalBeginDts) ? V = C + 1 : L.length > 0 && (V = this._searchNearestSegmentBefore(x.originalBeginDts) + 1), this._lastAppendLocation = V, this._list.splice(V, 0, x);
418
+ var k = this._list, M = f, C = this._lastAppendLocation, j = 0;
419
+ C !== -1 && C < k.length && M.originalBeginDts >= k[C].lastSample.originalDts && (C === k.length - 1 || C < k.length - 1 && M.originalBeginDts < k[C + 1].originalBeginDts) ? j = C + 1 : k.length > 0 && (j = this._searchNearestSegmentBefore(M.originalBeginDts) + 1), this._lastAppendLocation = j, this._list.splice(j, 0, M);
420
420
  }, v.prototype.getLastSegmentBefore = function(f) {
421
- var L = this._searchNearestSegmentBefore(f);
422
- return L >= 0 ? this._list[L] : null;
421
+ var k = this._searchNearestSegmentBefore(f);
422
+ return k >= 0 ? this._list[k] : null;
423
423
  }, v.prototype.getLastSampleBefore = function(f) {
424
- var L = this.getLastSegmentBefore(f);
425
- return L != null ? L.lastSample : null;
424
+ var k = this.getLastSegmentBefore(f);
425
+ return k != null ? k.lastSample : null;
426
426
  }, v.prototype.getLastSyncPointBefore = function(f) {
427
- for (var L = this._searchNearestSegmentBefore(f), x = this._list[L].syncPoints; x.length === 0 && L > 0; ) L--, x = this._list[L].syncPoints;
428
- return x.length > 0 ? x[x.length - 1] : null;
427
+ for (var k = this._searchNearestSegmentBefore(f), M = this._list[k].syncPoints; M.length === 0 && k > 0; ) k--, M = this._list[k].syncPoints;
428
+ return M.length > 0 ? M[M.length - 1] : null;
429
429
  }, v;
430
430
  }();
431
431
  }, function(fe, Z, O) {
@@ -443,13 +443,13 @@ var Tt = { exports: {} };
443
443
  var b = this.keyframesIndex, v = this._search(b.times, m);
444
444
  return { index: v, milliseconds: b.times[v], fileposition: b.filepositions[v] };
445
445
  }, B.prototype._search = function(m, b) {
446
- var v = 0, f = m.length - 1, L = 0, x = 0, C = f;
447
- for (b < m[0] && (v = 0, x = C + 1); x <= C; ) {
448
- if ((L = x + Math.floor((C - x) / 2)) === f || b >= m[L] && b < m[L + 1]) {
449
- v = L;
446
+ var v = 0, f = m.length - 1, k = 0, M = 0, C = f;
447
+ for (b < m[0] && (v = 0, M = C + 1); M <= C; ) {
448
+ if ((k = M + Math.floor((C - M) / 2)) === f || b >= m[k] && b < m[k + 1]) {
449
+ v = k;
450
450
  break;
451
451
  }
452
- m[L] < b ? x = L + 1 : C = L - 1;
452
+ m[k] < b ? M = k + 1 : C = k - 1;
453
453
  }
454
454
  return v;
455
455
  }, B;
@@ -498,8 +498,8 @@ var Tt = { exports: {} };
498
498
  }, v._notifyChange = function() {
499
499
  var f = v.emitter;
500
500
  if (f.listenerCount("change") > 0) {
501
- var L = v.getConfig();
502
- f.emit("change", L);
501
+ var k = v.getConfig();
502
+ f.emit("change", k);
503
503
  }
504
504
  }, v.registerListener = function(f) {
505
505
  v.emitter.addListener("change", f);
@@ -522,7 +522,7 @@ var Tt = { exports: {} };
522
522
  }
523
523
  return !1;
524
524
  }
525
- var L, x = function(r) {
525
+ var k, M = function(r) {
526
526
  for (var t = [], i = r, e = 0, a = r.length; e < a; ) if (i[e] < 128) t.push(String.fromCharCode(i[e])), ++e;
527
527
  else {
528
528
  if (!(i[e] < 192)) {
@@ -547,7 +547,7 @@ var Tt = { exports: {} };
547
547
  t.push("�"), ++e;
548
548
  }
549
549
  return t.join("");
550
- }, C = O(3), V = (L = new ArrayBuffer(2), new DataView(L).setInt16(0, 256, !0), new Int16Array(L)[0] === 256), H = function() {
550
+ }, C = O(3), j = (k = new ArrayBuffer(2), new DataView(k).setInt16(0, 256, !0), new Int16Array(k)[0] === 256), H = function() {
551
551
  function r() {
552
552
  }
553
553
  return r.parseScriptData = function(t, i, e) {
@@ -567,15 +567,15 @@ var Tt = { exports: {} };
567
567
  return r.parseObject(t, i, e);
568
568
  }, r.parseString = function(t, i, e) {
569
569
  if (e < 2) throw new C.a("Data not enough when parse String");
570
- var a = new DataView(t, i, e).getUint16(0, !V);
571
- return { data: a > 0 ? x(new Uint8Array(t, i + 2, a)) : "", size: 2 + a };
570
+ var a = new DataView(t, i, e).getUint16(0, !j);
571
+ return { data: a > 0 ? M(new Uint8Array(t, i + 2, a)) : "", size: 2 + a };
572
572
  }, r.parseLongString = function(t, i, e) {
573
573
  if (e < 4) throw new C.a("Data not enough when parse LongString");
574
- var a = new DataView(t, i, e).getUint32(0, !V);
575
- return { data: a > 0 ? x(new Uint8Array(t, i + 4, a)) : "", size: 4 + a };
574
+ var a = new DataView(t, i, e).getUint32(0, !j);
575
+ return { data: a > 0 ? M(new Uint8Array(t, i + 4, a)) : "", size: 4 + a };
576
576
  }, r.parseDate = function(t, i, e) {
577
577
  if (e < 10) throw new C.a("Data size invalid when parse Date");
578
- var a = new DataView(t, i, e), s = a.getFloat64(0, !V), n = a.getInt16(8, !V);
578
+ var a = new DataView(t, i, e), s = a.getFloat64(0, !j), n = a.getInt16(8, !j);
579
579
  return { data: new Date(s += 60 * n * 1e3), size: 10 };
580
580
  }, r.parseValue = function(t, i, e) {
581
581
  if (e < 1) throw new C.a("Data not enough when parse Value");
@@ -583,7 +583,7 @@ var Tt = { exports: {} };
583
583
  try {
584
584
  switch (o) {
585
585
  case 0:
586
- a = s.getFloat64(1, !V), n += 8;
586
+ a = s.getFloat64(1, !j), n += 8;
587
587
  break;
588
588
  case 1:
589
589
  a = !!s.getUint8(1), n += 1;
@@ -595,27 +595,27 @@ var Tt = { exports: {} };
595
595
  case 3:
596
596
  a = {};
597
597
  var E = 0;
598
- for ((16777215 & s.getUint32(e - 4, !V)) == 9 && (E = 3); n < e - 4; ) {
598
+ for ((16777215 & s.getUint32(e - 4, !j)) == 9 && (E = 3); n < e - 4; ) {
599
599
  var A = r.parseObject(t, i + n, e - n - E);
600
600
  if (A.objectEnd) break;
601
601
  a[A.data.name] = A.data.value, n += A.size;
602
602
  }
603
- n <= e - 3 && (16777215 & s.getUint32(n - 1, !V)) === 9 && (n += 3);
603
+ n <= e - 3 && (16777215 & s.getUint32(n - 1, !j)) === 9 && (n += 3);
604
604
  break;
605
605
  case 8:
606
- for (a = {}, n += 4, E = 0, (16777215 & s.getUint32(e - 4, !V)) == 9 && (E = 3); n < e - 8; ) {
606
+ for (a = {}, n += 4, E = 0, (16777215 & s.getUint32(e - 4, !j)) == 9 && (E = 3); n < e - 8; ) {
607
607
  var S = r.parseVariable(t, i + n, e - n - E);
608
608
  if (S.objectEnd) break;
609
609
  a[S.data.name] = S.data.value, n += S.size;
610
610
  }
611
- n <= e - 3 && (16777215 & s.getUint32(n - 1, !V)) === 9 && (n += 3);
611
+ n <= e - 3 && (16777215 & s.getUint32(n - 1, !j)) === 9 && (n += 3);
612
612
  break;
613
613
  case 9:
614
614
  a = void 0, n = 1, p = !0;
615
615
  break;
616
616
  case 10:
617
617
  a = [];
618
- var w = s.getUint32(1, !V);
618
+ var w = s.getUint32(1, !j);
619
619
  n += 4;
620
620
  for (var I = 0; I < w; I++) {
621
621
  var z = r.parseValue(t, i + n, e - n);
@@ -638,7 +638,7 @@ var Tt = { exports: {} };
638
638
  }
639
639
  return { data: a, size: n, objectEnd: p };
640
640
  }, r;
641
- }(), ue = function() {
641
+ }(), le = function() {
642
642
  function r(t) {
643
643
  this.TAG = "ExpGolomb", this._buffer = t, this._buffer_index = 0, this._total_bytes = t.byteLength, this._total_bits = 8 * t.byteLength, this._current_word = 0, this._current_word_bits_left = 0;
644
644
  }
@@ -676,7 +676,7 @@ var Tt = { exports: {} };
676
676
  var t = this.readUEG();
677
677
  return 1 & t ? t + 1 >>> 1 : -1 * (t >>> 1);
678
678
  }, r;
679
- }(), se = function() {
679
+ }(), ne = function() {
680
680
  function r() {
681
681
  }
682
682
  return r._ebsp2rbsp = function(t) {
@@ -687,7 +687,7 @@ var Tt = { exports: {} };
687
687
  var s = i[a].toString(16);
688
688
  s.length < 2 && (s = "0" + s), e += s;
689
689
  }
690
- var n = r._ebsp2rbsp(t), o = new ue(n);
690
+ var n = r._ebsp2rbsp(t), o = new le(n);
691
691
  o.readByte();
692
692
  var p = o.readByte();
693
693
  o.readByte();
@@ -707,27 +707,27 @@ var Tt = { exports: {} };
707
707
  o.readBits(1);
708
708
  var he = o.readUEG(), K = o.readUEG(), Q = o.readBits(1);
709
709
  Q === 0 && o.readBits(1), o.readBits(1);
710
- var _e = 0, te = 0, ne = 0, be = 0;
711
- o.readBool() && (_e = o.readUEG(), te = o.readUEG(), ne = o.readUEG(), be = o.readUEG());
712
- var Ae = 1, le = 1, ye = 0, Re = !0, ke = 0, Ne = 0;
710
+ var _e = 0, te = 0, se = 0, be = 0;
711
+ o.readBool() && (_e = o.readUEG(), te = o.readUEG(), se = o.readUEG(), be = o.readUEG());
712
+ var Ae = 1, ue = 1, ye = 0, Re = !0, ke = 0, Ne = 0;
713
713
  if (o.readBool()) {
714
714
  if (o.readBool()) {
715
715
  var Pe = o.readByte();
716
- Pe > 0 && Pe < 16 ? (Ae = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2][Pe - 1], le = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1][Pe - 1]) : Pe === 255 && (Ae = o.readByte() << 8 | o.readByte(), le = o.readByte() << 8 | o.readByte());
716
+ Pe > 0 && Pe < 16 ? (Ae = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2][Pe - 1], ue = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1][Pe - 1]) : Pe === 255 && (Ae = o.readByte() << 8 | o.readByte(), ue = o.readByte() << 8 | o.readByte());
717
717
  }
718
718
  if (o.readBool() && o.readBool(), o.readBool() && (o.readBits(4), o.readBool() && o.readBits(24)), o.readBool() && (o.readUEG(), o.readUEG()), o.readBool()) {
719
719
  var Ge = o.readBits(32), je = o.readBits(32);
720
720
  Re = o.readBool(), ye = (ke = je) / (Ne = 2 * Ge);
721
721
  }
722
722
  }
723
- var Fe = 1;
724
- Ae === 1 && le === 1 || (Fe = Ae / le);
723
+ var Ve = 1;
724
+ Ae === 1 && ue === 1 || (Ve = Ae / ue);
725
725
  var Ce = 0, ge = 0;
726
726
  S === 0 ? (Ce = 1, ge = 2 - Q) : (Ce = S === 3 ? 1 : 2, ge = (S === 1 ? 2 : 1) * (2 - Q));
727
727
  var xe = 16 * (he + 1), Ue = 16 * (K + 1) * (2 - Q);
728
- xe -= (_e + te) * Ce, Ue -= (ne + be) * ge;
729
- var Je = Math.ceil(xe * Fe);
730
- return o.destroy(), o = null, { codec_mimetype: e, profile_idc: p, level_idc: g, profile_string: E, level_string: A, chroma_format_idc: S, bit_depth: I, bit_depth_luma: I, bit_depth_chroma: z, ref_frames: de, chroma_format: w, chroma_format_string: r.getChromaFormatString(w), frame_rate: { fixed: Re, fps: ye, fps_den: Ne, fps_num: ke }, sar_ratio: { width: Ae, height: le }, codec_size: { width: xe, height: Ue }, present_size: { width: Je, height: Ue } };
728
+ xe -= (_e + te) * Ce, Ue -= (se + be) * ge;
729
+ var Je = Math.ceil(xe * Ve);
730
+ return o.destroy(), o = null, { codec_mimetype: e, profile_idc: p, level_idc: g, profile_string: E, level_string: A, chroma_format_idc: S, bit_depth: I, bit_depth_luma: I, bit_depth_chroma: z, ref_frames: de, chroma_format: w, chroma_format_string: r.getChromaFormatString(w), frame_rate: { fixed: Re, fps: ye, fps_den: Ne, fps_num: ke }, sar_ratio: { width: Ae, height: ue }, codec_size: { width: xe, height: Ue }, present_size: { width: Je, height: Ue } };
731
731
  }, r._skipScalingList = function(t, i) {
732
732
  for (var e = 8, a = 8, s = 0; s < i; s++) a !== 0 && (a = (e + t.readSEG() + 256) % 256), e = a === 0 ? e : a;
733
733
  }, r.getProfileString = function(t) {
@@ -763,27 +763,27 @@ var Tt = { exports: {} };
763
763
  return "Unknown";
764
764
  }
765
765
  }, r;
766
- }(), Y = O(5), ae = function() {
766
+ }(), X = O(5), ie = function() {
767
767
  function r() {
768
768
  }
769
769
  return r._ebsp2rbsp = function(t) {
770
770
  for (var i = t, e = i.byteLength, a = new Uint8Array(e), s = 0, n = 0; n < e; n++) n >= 2 && i[n] === 3 && i[n - 1] === 0 && i[n - 2] === 0 || (a[s] = i[n], s++);
771
771
  return new Uint8Array(a.buffer, 0, s);
772
772
  }, r.parseVPS = function(t) {
773
- var i = r._ebsp2rbsp(t), e = new ue(i);
773
+ var i = r._ebsp2rbsp(t), e = new le(i);
774
774
  return e.readByte(), e.readByte(), e.readBits(4), e.readBits(2), e.readBits(6), { num_temporal_layers: e.readBits(3) + 1, temporal_id_nested: e.readBool() };
775
775
  }, r.parseSPS = function(t) {
776
- var i = r._ebsp2rbsp(t), e = new ue(i);
776
+ var i = r._ebsp2rbsp(t), e = new le(i);
777
777
  e.readByte(), e.readByte();
778
778
  for (var a = 0, s = 0, n = 0, o = 0, p = (e.readBits(4), e.readBits(3)), g = (e.readBool(), e.readBits(2)), E = e.readBool(), A = e.readBits(5), S = e.readByte(), w = e.readByte(), I = e.readByte(), z = e.readByte(), N = e.readByte(), J = e.readByte(), W = e.readByte(), q = e.readByte(), de = e.readByte(), he = e.readByte(), K = e.readByte(), Q = [], _e = [], te = 0; te < p; te++) Q.push(e.readBool()), _e.push(e.readBool());
779
779
  if (p > 0) for (te = p; te < 8; te++) e.readBits(2);
780
780
  for (te = 0; te < p; te++) Q[te] && (e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte()), _e[te] && e.readByte();
781
781
  e.readUEG();
782
- var ne = e.readUEG();
783
- ne == 3 && e.readBits(1);
782
+ var se = e.readUEG();
783
+ se == 3 && e.readBits(1);
784
784
  var be = e.readUEG(), Ae = e.readUEG();
785
785
  e.readBool() && (a += e.readUEG(), s += e.readUEG(), n += e.readUEG(), o += e.readUEG());
786
- var le = e.readUEG(), ye = e.readUEG(), Re = e.readUEG();
786
+ var ue = e.readUEG(), ye = e.readUEG(), Re = e.readUEG();
787
787
  for (te = e.readBool() ? 0 : p; te <= p; te++) e.readUEG(), e.readUEG(), e.readUEG();
788
788
  if (e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readBool() && e.readBool()) for (var ke = 0; ke < 4; ke++) for (var Ne = 0; Ne < (ke === 3 ? 2 : 6); Ne++)
789
789
  if (e.readBool()) {
@@ -793,8 +793,8 @@ var Tt = { exports: {} };
793
793
  e.readBool(), e.readBool(), e.readBool() && (e.readByte(), e.readUEG(), e.readUEG(), e.readBool());
794
794
  var Ge = e.readUEG(), je = 0;
795
795
  for (te = 0; te < Ge; te++) {
796
- var Fe = !1;
797
- if (te !== 0 && (Fe = e.readBool()), Fe) {
796
+ var Ve = !1;
797
+ if (te !== 0 && (Ve = e.readBool()), Ve) {
798
798
  te === Ge && e.readUEG(), e.readBool(), e.readUEG();
799
799
  for (var Ce = 0, ge = 0; ge <= je; ge++) {
800
800
  var xe = e.readBool(), Ue = !1;
@@ -814,11 +814,11 @@ var Tt = { exports: {} };
814
814
  e.readBits(1);
815
815
  }
816
816
  }
817
- var pt = 0, He = 1, qe = 1, mt = !1, it = 1, rt = 1;
817
+ var pt = 0, qe = 1, Ke = 1, mt = !1, it = 1, rt = 1;
818
818
  if (e.readBool(), e.readBool(), e.readBool()) {
819
819
  if (e.readBool()) {
820
- var Ke = e.readByte();
821
- Ke > 0 && Ke <= 16 ? (He = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2][Ke - 1], qe = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1][Ke - 1]) : Ke === 255 && (He = e.readBits(16), qe = e.readBits(16));
820
+ var We = e.readByte();
821
+ We > 0 && We <= 16 ? (qe = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2][We - 1], Ke = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1][We - 1]) : We === 255 && (qe = e.readBits(16), Ke = e.readBits(16));
822
822
  }
823
823
  if (e.readBool() && e.readBool(), e.readBool() && (e.readBits(3), e.readBool(), e.readBool() && (e.readByte(), e.readByte(), e.readByte())), e.readBool() && (e.readUEG(), e.readUEG()), e.readBool(), e.readBool(), e.readBool(), e.readBool() && (e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG()), e.readBool() && (it = e.readBits(32), rt = e.readBits(32), e.readBool() && (e.readUEG(), e.readBool()))) {
824
824
  var at = !1, nt = !1, Ze = !1;
@@ -835,10 +835,10 @@ var Tt = { exports: {} };
835
835
  e.readBool() && (e.readBool(), e.readBool(), e.readBool(), pt = e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG());
836
836
  }
837
837
  e.readBool();
838
- var Xt = "hvc1." + A + ".1.L" + K + ".B0", bt = be - (a + s) * (ne === 1 || ne === 2 ? 2 : 1), St = Ae - (n + o) * (ne === 1 ? 2 : 1), Et = 1;
839
- return He !== 1 && qe !== 1 && (Et = He / qe), e.destroy(), e = null, { codec_mimetype: Xt, level_string: r.getLevelString(K), profile_idc: A, bit_depth: le + 8, ref_frames: 1, chroma_format: ne, chroma_format_string: r.getChromaFormatString(ne), general_level_idc: K, general_profile_space: g, general_tier_flag: E, general_profile_idc: A, general_profile_compatibility_flags_1: S, general_profile_compatibility_flags_2: w, general_profile_compatibility_flags_3: I, general_profile_compatibility_flags_4: z, general_constraint_indicator_flags_1: N, general_constraint_indicator_flags_2: J, general_constraint_indicator_flags_3: W, general_constraint_indicator_flags_4: q, general_constraint_indicator_flags_5: de, general_constraint_indicator_flags_6: he, min_spatial_segmentation_idc: pt, constant_frame_rate: 0, chroma_format_idc: ne, bit_depth_luma_minus8: le, bit_depth_chroma_minus8: ye, frame_rate: { fixed: mt, fps: rt / it, fps_den: it, fps_num: rt }, sar_ratio: { width: He, height: qe }, codec_size: { width: bt, height: St }, present_size: { width: bt * Et, height: St } };
838
+ var Xt = "hvc1." + A + ".1.L" + K + ".B0", bt = be - (a + s) * (se === 1 || se === 2 ? 2 : 1), St = Ae - (n + o) * (se === 1 ? 2 : 1), Et = 1;
839
+ return qe !== 1 && Ke !== 1 && (Et = qe / Ke), e.destroy(), e = null, { codec_mimetype: Xt, level_string: r.getLevelString(K), profile_idc: A, bit_depth: ue + 8, ref_frames: 1, chroma_format: se, chroma_format_string: r.getChromaFormatString(se), general_level_idc: K, general_profile_space: g, general_tier_flag: E, general_profile_idc: A, general_profile_compatibility_flags_1: S, general_profile_compatibility_flags_2: w, general_profile_compatibility_flags_3: I, general_profile_compatibility_flags_4: z, general_constraint_indicator_flags_1: N, general_constraint_indicator_flags_2: J, general_constraint_indicator_flags_3: W, general_constraint_indicator_flags_4: q, general_constraint_indicator_flags_5: de, general_constraint_indicator_flags_6: he, min_spatial_segmentation_idc: pt, constant_frame_rate: 0, chroma_format_idc: se, bit_depth_luma_minus8: ue, bit_depth_chroma_minus8: ye, frame_rate: { fixed: mt, fps: rt / it, fps_den: it, fps_num: rt }, sar_ratio: { width: qe, height: Ke }, codec_size: { width: bt, height: St }, present_size: { width: bt * Et, height: St } };
840
840
  }, r.parsePPS = function(t) {
841
- var i = r._ebsp2rbsp(t), e = new ue(i);
841
+ var i = r._ebsp2rbsp(t), e = new le(i);
842
842
  e.readByte(), e.readByte(), e.readUEG(), e.readUEG(), e.readBool(), e.readBool(), e.readBits(3), e.readBool(), e.readBool(), e.readUEG(), e.readUEG(), e.readSEG(), e.readBool(), e.readBool(), e.readBool() && e.readUEG(), e.readSEG(), e.readSEG(), e.readBool(), e.readBool(), e.readBool(), e.readBool();
843
843
  var a = e.readBool(), s = e.readBool(), n = 1;
844
844
  return s && a ? n = 0 : s ? n = 3 : a && (n = 2), { parallelismType: n };
@@ -1051,8 +1051,8 @@ var Tt = { exports: {} };
1051
1051
  var W = { unit: J, length: J.byteLength, dts: I, pts: I };
1052
1052
  A.samples.push(W), A.length += J.length;
1053
1053
  }
1054
- } else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid audio sample rate idx: " + p);
1055
- } else this._onError(Y.a.CODEC_UNSUPPORTED, "Flv: Unsupported audio codec idx: " + n);
1054
+ } else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid audio sample rate idx: " + p);
1055
+ } else this._onError(X.a.CODEC_UNSUPPORTED, "Flv: Unsupported audio codec idx: " + n);
1056
1056
  }
1057
1057
  }, r.prototype._parseAACAudioData = function(t, i, e) {
1058
1058
  if (!(e <= 1)) {
@@ -1062,7 +1062,7 @@ var Tt = { exports: {} };
1062
1062
  m.a.w(this.TAG, "Flv: Invalid AAC packet, missing AACPacketType or/and Data!");
1063
1063
  }, r.prototype._parseAACAudioSpecificConfig = function(t, i, e) {
1064
1064
  var a, s, n = new Uint8Array(t, i, e), o = null, p = 0, g = null;
1065
- if (p = a = n[0] >>> 3, (s = (7 & n[0]) << 1 | n[1] >>> 7) < 0 || s >= this._mpegSamplingRates.length) this._onError(Y.a.FORMAT_ERROR, "Flv: AAC invalid sampling frequency index!");
1065
+ if (p = a = n[0] >>> 3, (s = (7 & n[0]) << 1 | n[1] >>> 7) < 0 || s >= this._mpegSamplingRates.length) this._onError(X.a.FORMAT_ERROR, "Flv: AAC invalid sampling frequency index!");
1066
1066
  else {
1067
1067
  var E = this._mpegSamplingRates[s], A = (120 & n[1]) >>> 3;
1068
1068
  if (!(A < 0 || A >= 8)) {
@@ -1070,7 +1070,7 @@ var Tt = { exports: {} };
1070
1070
  var S = self.navigator.userAgent.toLowerCase();
1071
1071
  return S.indexOf("firefox") !== -1 ? s >= 6 ? (p = 5, o = new Array(4), g = s - 3) : (p = 2, o = new Array(2), g = s) : S.indexOf("android") !== -1 ? (p = 2, o = new Array(2), g = s) : (p = 5, g = s, o = new Array(4), s >= 6 ? g = s - 3 : A === 1 && (p = 2, o = new Array(2), g = s)), o[0] = p << 3, o[0] |= (15 & s) >>> 1, o[1] = (15 & s) << 7, o[1] |= (15 & A) << 3, p === 5 && (o[1] |= (15 & g) >>> 1, o[2] = (1 & g) << 7, o[2] |= 8, o[3] = 0), { config: o, samplingRate: E, channelCount: A, codec: "mp4a.40." + p, originalCodec: "mp4a.40." + a };
1072
1072
  }
1073
- this._onError(Y.a.FORMAT_ERROR, "Flv: AAC invalid channel configuration");
1073
+ this._onError(X.a.FORMAT_ERROR, "Flv: AAC invalid channel configuration");
1074
1074
  }
1075
1075
  }, r.prototype._parseMP3AudioData = function(t, i, e, a) {
1076
1076
  if (!(e < 4)) {
@@ -1110,13 +1110,13 @@ var Tt = { exports: {} };
1110
1110
  var n = new Uint8Array(t, i, e)[0], o = (112 & n) >>> 4;
1111
1111
  if (128 & n) {
1112
1112
  var p = 15 & n, g = String.fromCharCode.apply(String, new Uint8Array(t, i, e).slice(1, 5));
1113
- if (g !== "hvc1") return void this._onError(Y.a.CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + g);
1113
+ if (g !== "hvc1") return void this._onError(X.a.CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + g);
1114
1114
  this._parseEnhancedHEVCVideoPacket(t, i + 5, e - 5, a, s, o, p);
1115
1115
  } else {
1116
1116
  var E = 15 & n;
1117
1117
  if (E === 7) this._parseAVCVideoPacket(t, i + 1, e - 1, a, s, o);
1118
1118
  else {
1119
- if (E !== 12) return void this._onError(Y.a.CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + E);
1119
+ if (E !== 12) return void this._onError(X.a.CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + E);
1120
1120
  this._parseHEVCVideoPacket(t, i + 1, e - 1, a, s, o);
1121
1121
  }
1122
1122
  }
@@ -1127,7 +1127,7 @@ var Tt = { exports: {} };
1127
1127
  var o = this._littleEndian, p = new DataView(t, i, e), g = p.getUint8(0), E = (16777215 & p.getUint32(0, !o)) << 8 >> 8;
1128
1128
  if (g === 0) this._parseAVCDecoderConfigurationRecord(t, i + 4, e - 4);
1129
1129
  else if (g === 1) this._parseAVCVideoData(t, i + 4, e - 4, a, s, n, E);
1130
- else if (g !== 2) return void this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid video packet type " + g);
1130
+ else if (g !== 2) return void this._onError(X.a.FORMAT_ERROR, "Flv: Invalid video packet type " + g);
1131
1131
  }
1132
1132
  }, r.prototype._parseHEVCVideoPacket = function(t, i, e, a, s, n) {
1133
1133
  if (e < 4) m.a.w(this.TAG, "Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");
@@ -1135,7 +1135,7 @@ var Tt = { exports: {} };
1135
1135
  var o = this._littleEndian, p = new DataView(t, i, e), g = p.getUint8(0), E = (16777215 & p.getUint32(0, !o)) << 8 >> 8;
1136
1136
  if (g === 0) this._parseHEVCDecoderConfigurationRecord(t, i + 4, e - 4);
1137
1137
  else if (g === 1) this._parseHEVCVideoData(t, i + 4, e - 4, a, s, n, E);
1138
- else if (g !== 2) return void this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid video packet type " + g);
1138
+ else if (g !== 2) return void this._onError(X.a.FORMAT_ERROR, "Flv: Invalid video packet type " + g);
1139
1139
  }
1140
1140
  }, r.prototype._parseEnhancedHEVCVideoPacket = function(t, i, e, a, s, n, o) {
1141
1141
  if (e < 4) m.a.w(this.TAG, "Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");
@@ -1146,7 +1146,7 @@ var Tt = { exports: {} };
1146
1146
  var E = (4294967040 & g.getUint32(0, !p)) >> 8;
1147
1147
  this._parseHEVCVideoData(t, i + 3, e - 3, a, s, n, E);
1148
1148
  } else if (o === 3) this._parseHEVCVideoData(t, i, e, a, s, n, 0);
1149
- else if (o !== 2) return void this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid video packet type " + o);
1149
+ else if (o !== 2) return void this._onError(X.a.FORMAT_ERROR, "Flv: Invalid video packet type " + o);
1150
1150
  }
1151
1151
  }, r.prototype._parseAVCDecoderConfigurationRecord = function(t, i, e) {
1152
1152
  if (e < 7) m.a.w(this.TAG, "Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");
@@ -1169,7 +1169,7 @@ var Tt = { exports: {} };
1169
1169
  if (S += 2, I !== 0) {
1170
1170
  var z = new Uint8Array(t, i + S, I);
1171
1171
  S += I;
1172
- var N = se.parseSPS(z);
1172
+ var N = ne.parseSPS(z);
1173
1173
  if (w === 0) {
1174
1174
  a.codecWidth = N.codec_size.width, a.codecHeight = N.codec_size.height, a.presentWidth = N.present_size.width, a.presentHeight = N.present_size.height, a.profile = N.profile_string, a.level = N.level_string, a.bitDepth = N.bit_depth, a.chromaFormat = N.chroma_format, a.sarRatio = N.sar_ratio, a.frameRate = N.frame_rate, N.frame_rate.fixed !== !1 && N.frame_rate.fps_num !== 0 && N.frame_rate.fps_den !== 0 || (a.frameRate = this._referenceFrameRate);
1175
1175
  var J = a.frameRate.fps_den, W = a.frameRate.fps_num;
@@ -1189,10 +1189,10 @@ var Tt = { exports: {} };
1189
1189
  for (_e > 1 && m.a.w(this.TAG, "Flv: Strange AVCDecoderConfigurationRecord: PPS Count = " + _e), S++, w = 0; w < _e; w++)
1190
1190
  I = o.getUint16(S, !n), S += 2, I !== 0 && (S += I);
1191
1191
  a.avcc = new Uint8Array(e), a.avcc.set(new Uint8Array(t, i, e), 0), m.a.v(this.TAG, "Parsed AVCDecoderConfigurationRecord"), this._isInitialMetadataDispatched() ? this._dispatch && (this._audioTrack.length || this._videoTrack.length) && this._onDataAvailable(this._audioTrack, this._videoTrack) : this._videoInitialMetadataDispatched = !0, this._dispatch = !1, this._onTrackMetadata("video", a);
1192
- } else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord: No PPS");
1193
- } else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord: No SPS");
1194
- } else this._onError(Y.a.FORMAT_ERROR, "Flv: Strange NaluLengthSizeMinusOne: " + (this._naluLengthSize - 1));
1195
- else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord");
1192
+ } else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord: No PPS");
1193
+ } else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord: No SPS");
1194
+ } else this._onError(X.a.FORMAT_ERROR, "Flv: Strange NaluLengthSizeMinusOne: " + (this._naluLengthSize - 1));
1195
+ else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord");
1196
1196
  }
1197
1197
  }, r.prototype._parseHEVCDecoderConfigurationRecord = function(t, i, e) {
1198
1198
  if (e < 22) m.a.w(this.TAG, "Flv: Invalid HEVCDecoderConfigurationRecord, lack of data!");
@@ -1214,7 +1214,7 @@ var Tt = { exports: {} };
1214
1214
  var J = o.getUint16(w + 0, !n);
1215
1215
  if (N === 0) if (I === 33) {
1216
1216
  w += 2;
1217
- var W = new Uint8Array(t, i + w, J), q = ae.parseSPS(W);
1217
+ var W = new Uint8Array(t, i + w, J), q = ie.parseSPS(W);
1218
1218
  a.codecWidth = q.codec_size.width, a.codecHeight = q.codec_size.height, a.presentWidth = q.present_size.width, a.presentHeight = q.present_size.height, a.profile = q.profile_string, a.level = q.level_string, a.bitDepth = q.bit_depth, a.chromaFormat = q.chroma_format, a.sarRatio = q.sar_ratio, a.frameRate = q.frame_rate, q.frame_rate.fixed !== !1 && q.frame_rate.fps_num !== 0 && q.frame_rate.fps_den !== 0 || (a.frameRate = this._referenceFrameRate);
1219
1219
  var de = a.frameRate.fps_den, he = a.frameRate.fps_num;
1220
1220
  a.refSampleDuration = a.timescale * (de / he), a.codec = q.codec_mimetype;
@@ -1225,8 +1225,8 @@ var Tt = { exports: {} };
1225
1225
  }
1226
1226
  }
1227
1227
  a.hvcc = new Uint8Array(e), a.hvcc.set(new Uint8Array(t, i, e), 0), m.a.v(this.TAG, "Parsed HEVCDecoderConfigurationRecord"), this._isInitialMetadataDispatched() ? this._dispatch && (this._audioTrack.length || this._videoTrack.length) && this._onDataAvailable(this._audioTrack, this._videoTrack) : this._videoInitialMetadataDispatched = !0, this._dispatch = !1, this._onTrackMetadata("video", a);
1228
- } else this._onError(Y.a.FORMAT_ERROR, "Flv: Strange NaluLengthSizeMinusOne: " + (this._naluLengthSize - 1));
1229
- else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid HEVCDecoderConfigurationRecord");
1228
+ } else this._onError(X.a.FORMAT_ERROR, "Flv: Strange NaluLengthSizeMinusOne: " + (this._naluLengthSize - 1));
1229
+ else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid HEVCDecoderConfigurationRecord");
1230
1230
  }
1231
1231
  }, r.prototype._parseAVCVideoData = function(t, i, e, a, s, n, o) {
1232
1232
  for (var p = this._littleEndian, g = new DataView(t, i, e), E = [], A = 0, S = 0, w = this._naluLengthSize, I = this._timestampBase + a, z = n === 1; S < e; ) {
@@ -1263,7 +1263,7 @@ var Tt = { exports: {} };
1263
1263
  z && (he.fileposition = s), de.samples.push(he), de.length += A;
1264
1264
  }
1265
1265
  }, r;
1266
- }(), c = function() {
1266
+ }(), h = function() {
1267
1267
  function r() {
1268
1268
  }
1269
1269
  return r.prototype.destroy = function() {
@@ -1275,7 +1275,7 @@ var Tt = { exports: {} };
1275
1275
  (function(r) {
1276
1276
  r[r.kMPEG1Audio = 3] = "kMPEG1Audio", r[r.kMPEG2Audio = 4] = "kMPEG2Audio", r[r.kPESPrivateData = 6] = "kPESPrivateData", r[r.kADTSAAC = 15] = "kADTSAAC", r[r.kLOASAAC = 17] = "kLOASAAC", r[r.kAC3 = 129] = "kAC3", r[r.kID3 = 21] = "kID3", r[r.kSCTE35 = 134] = "kSCTE35", r[r.kH264 = 27] = "kH264", r[r.kH265 = 36] = "kH265";
1277
1277
  })(u || (u = {}));
1278
- var D, F = function() {
1278
+ var D, V = function() {
1279
1279
  this.pid_stream_type = {}, this.common_pids = { h264: void 0, h265: void 0, adts_aac: void 0, loas_aac: void 0, opus: void 0, ac3: void 0, mp3: void 0 }, this.pes_private_data_pids = {}, this.timed_id3_pids = {}, this.scte_35_pids = {}, this.smpte2038_pids = {};
1280
1280
  }, ee = function() {
1281
1281
  }, pe = function() {
@@ -1285,11 +1285,11 @@ var Tt = { exports: {} };
1285
1285
  (function(r) {
1286
1286
  r[r.kUnspecified = 0] = "kUnspecified", r[r.kSliceNonIDR = 1] = "kSliceNonIDR", r[r.kSliceDPA = 2] = "kSliceDPA", r[r.kSliceDPB = 3] = "kSliceDPB", r[r.kSliceDPC = 4] = "kSliceDPC", r[r.kSliceIDR = 5] = "kSliceIDR", r[r.kSliceSEI = 6] = "kSliceSEI", r[r.kSliceSPS = 7] = "kSliceSPS", r[r.kSlicePPS = 8] = "kSlicePPS", r[r.kSliceAUD = 9] = "kSliceAUD", r[r.kEndOfSequence = 10] = "kEndOfSequence", r[r.kEndOfStream = 11] = "kEndOfStream", r[r.kFiller = 12] = "kFiller", r[r.kSPSExt = 13] = "kSPSExt", r[r.kReserved0 = 14] = "kReserved0";
1287
1287
  })(D || (D = {}));
1288
- var k, d, h = function() {
1288
+ var L, d, c = function() {
1289
1289
  }, R = function(r) {
1290
1290
  var t = r.data.byteLength;
1291
1291
  this.type = r.type, this.data = new Uint8Array(4 + t), new DataView(this.data.buffer).setUint32(0, t), this.data.set(r.data, 4);
1292
- }, X = function() {
1292
+ }, Y = function() {
1293
1293
  function r(t) {
1294
1294
  this.TAG = "H264AnnexBParser", this.current_startcode_offset_ = 0, this.eof_flag_ = !1, this.data_ = t, this.current_startcode_offset_ = this.findNextStartCodeOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not find H264 startcode until payload end!");
1295
1295
  }
@@ -1305,7 +1305,7 @@ var Tt = { exports: {} };
1305
1305
  var e = this.current_startcode_offset_, a = 31 & t[e += (t[e] << 24 | t[e + 1] << 16 | t[e + 2] << 8 | t[e + 3]) === 1 ? 4 : 3], s = (128 & t[e]) >>> 7, n = this.findNextStartCodeOffset(e);
1306
1306
  if (this.current_startcode_offset_ = n, !(a >= D.kReserved0) && s === 0) {
1307
1307
  var o = t.subarray(e, n);
1308
- (i = new h()).type = a, i.data = o;
1308
+ (i = new c()).type = a, i.data = o;
1309
1309
  }
1310
1310
  }
1311
1311
  return i;
@@ -1329,7 +1329,7 @@ var Tt = { exports: {} };
1329
1329
  }();
1330
1330
  (function(r) {
1331
1331
  r[r.kNull = 0] = "kNull", r[r.kAACMain = 1] = "kAACMain", r[r.kAAC_LC = 2] = "kAAC_LC", r[r.kAAC_SSR = 3] = "kAAC_SSR", r[r.kAAC_LTP = 4] = "kAAC_LTP", r[r.kAAC_SBR = 5] = "kAAC_SBR", r[r.kAAC_Scalable = 6] = "kAAC_Scalable", r[r.kLayer1 = 32] = "kLayer1", r[r.kLayer2 = 33] = "kLayer2", r[r.kLayer3 = 34] = "kLayer3";
1332
- })(k || (k = {})), function(r) {
1332
+ })(L || (L = {})), function(r) {
1333
1333
  r[r.k96000Hz = 0] = "k96000Hz", r[r.k88200Hz = 1] = "k88200Hz", r[r.k64000Hz = 2] = "k64000Hz", r[r.k48000Hz = 3] = "k48000Hz", r[r.k44100Hz = 4] = "k44100Hz", r[r.k32000Hz = 5] = "k32000Hz", r[r.k24000Hz = 6] = "k24000Hz", r[r.k22050Hz = 7] = "k22050Hz", r[r.k16000Hz = 8] = "k16000Hz", r[r.k12000Hz = 9] = "k12000Hz", r[r.k11025Hz = 10] = "k11025Hz", r[r.k8000Hz = 11] = "k8000Hz", r[r.k7350Hz = 12] = "k7350Hz";
1334
1334
  }(d || (d = {}));
1335
1335
  var me, Se, De = [96e3, 88200, 64e3, 48e3, 44100, 32e3, 24e3, 22050, 16e3, 12e3, 11025, 8e3, 7350], Te = (me = function(r, t) {
@@ -1343,13 +1343,13 @@ var Tt = { exports: {} };
1343
1343
  this.constructor = r;
1344
1344
  }
1345
1345
  me(r, t), r.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
1346
- }), M = function() {
1347
- }, j = function(r) {
1346
+ }), x = function() {
1347
+ }, F = function(r) {
1348
1348
  function t() {
1349
1349
  return r !== null && r.apply(this, arguments) || this;
1350
1350
  }
1351
1351
  return Te(t, r), t;
1352
- }(M), $ = function() {
1352
+ }(x), $ = function() {
1353
1353
  function r(t) {
1354
1354
  this.TAG = "AACADTSParser", this.data_ = t, this.current_syncword_offset_ = this.findNextSyncwordOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not found ADTS syncword until payload end");
1355
1355
  }
@@ -1371,7 +1371,7 @@ var Tt = { exports: {} };
1371
1371
  var w = this.findNextSyncwordOffset(e + S);
1372
1372
  if (this.current_syncword_offset_ = w, (a === 0 || a === 1) && s === 0) {
1373
1373
  var I = t.subarray(e, e + S);
1374
- (i = new M()).audio_object_type = o + 1, i.sampling_freq_index = p, i.sampling_frequency = De[p], i.channel_config = g, i.data = I;
1374
+ (i = new x()).audio_object_type = o + 1, i.sampling_freq_index = p, i.sampling_frequency = De[p], i.channel_config = g, i.data = I;
1375
1375
  }
1376
1376
  }
1377
1377
  return i;
@@ -1380,7 +1380,7 @@ var Tt = { exports: {} };
1380
1380
  }, r.prototype.getIncompleteData = function() {
1381
1381
  return this.has_last_incomplete_data ? this.data_.subarray(this.current_syncword_offset_) : null;
1382
1382
  }, r;
1383
- }(), ie = function() {
1383
+ }(), re = function() {
1384
1384
  function r(t) {
1385
1385
  this.TAG = "AACLOASParser", this.data_ = t, this.current_syncword_offset_ = this.findNextSyncwordOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not found LOAS syncword until payload end");
1386
1386
  }
@@ -1400,7 +1400,7 @@ var Tt = { exports: {} };
1400
1400
  this.eof_flag_ = !0, this.has_last_incomplete_data = !0;
1401
1401
  break;
1402
1402
  }
1403
- var n = new ue(i.subarray(a + 3, a + 3 + s)), o = null;
1403
+ var n = new le(i.subarray(a + 3, a + 3 + s)), o = null;
1404
1404
  if (n.readBool()) {
1405
1405
  if (t == null) {
1406
1406
  m.a.w(this.TAG, "StreamMuxConfig Missing"), this.current_syncword_offset_ = this.findNextSyncwordOffset(a + 3 + s), n.destroy();
@@ -1443,20 +1443,22 @@ var Tt = { exports: {} };
1443
1443
  n.readByte();
1444
1444
  var I = n.readBool();
1445
1445
  if (I) if (p) this.getLATMValue(n);
1446
- else
1446
+ else {
1447
1447
  for (var z = 0; ; ) {
1448
1448
  z <<= 8;
1449
1449
  var N = n.readBool();
1450
1450
  if (z += n.readByte(), !N) break;
1451
1451
  }
1452
- n.readBool() && n.readByte(), (o = new j()).audio_object_type = E, o.sampling_freq_index = A, o.sampling_frequency = De[o.sampling_freq_index], o.channel_config = S, o.other_data_present = I;
1452
+ console.log(z);
1453
+ }
1454
+ n.readBool() && n.readByte(), (o = new F()).audio_object_type = E, o.sampling_freq_index = A, o.sampling_frequency = De[o.sampling_freq_index], o.channel_config = S, o.other_data_present = I;
1453
1455
  }
1454
1456
  for (var J = 0; ; ) {
1455
1457
  var W = n.readByte();
1456
1458
  if (J += W, W !== 255) break;
1457
1459
  }
1458
1460
  for (var q = new Uint8Array(J), de = 0; de < J; de++) q[de] = n.readByte();
1459
- (e = new j()).audio_object_type = o.audio_object_type, e.sampling_freq_index = o.sampling_freq_index, e.sampling_frequency = De[o.sampling_freq_index], e.channel_config = o.channel_config, e.other_data_present = o.other_data_present, e.data = q, this.current_syncword_offset_ = this.findNextSyncwordOffset(a + 3 + s);
1461
+ (e = new F()).audio_object_type = o.audio_object_type, e.sampling_freq_index = o.sampling_freq_index, e.sampling_frequency = De[o.sampling_freq_index], e.channel_config = o.channel_config, e.other_data_present = o.other_data_present, e.data = q, this.current_syncword_offset_ = this.findNextSyncwordOffset(a + 3 + s);
1460
1462
  }
1461
1463
  return e;
1462
1464
  }, r.prototype.hasIncompleteData = function() {
@@ -1464,7 +1466,7 @@ var Tt = { exports: {} };
1464
1466
  }, r.prototype.getIncompleteData = function() {
1465
1467
  return this.has_last_incomplete_data ? this.data_.subarray(this.current_syncword_offset_) : null;
1466
1468
  }, r;
1467
- }(), re = function(r) {
1469
+ }(), ae = function(r) {
1468
1470
  var t = null, i = r.audio_object_type, e = r.audio_object_type, a = r.sampling_freq_index, s = r.channel_config, n = 0, o = navigator.userAgent.toLowerCase();
1469
1471
  o.indexOf("firefox") !== -1 ? a >= 6 ? (e = 5, t = new Array(4), n = a - 3) : (e = 2, t = new Array(2), n = a) : o.indexOf("android") !== -1 ? (e = 2, t = new Array(2), n = a) : (e = 5, n = a, t = new Array(4), a >= 6 ? n = a - 3 : s === 1 && (e = 2, t = new Array(2), n = a)), t[0] = e << 3, t[0] |= (15 & a) >>> 1, t[1] = (15 & a) << 7, t[1] |= (15 & s) << 3, e === 5 && (t[1] |= (15 & n) >>> 1, t[2] = (1 & n) << 7, t[2] |= 8, t[3] = 0), this.config = t, this.sampling_rate = De[a], this.channel_count = s, this.codec_mimetype = "mp4a.40." + e, this.original_codec_mimetype = "mp4a.40." + i;
1470
1472
  }, ce = function() {
@@ -1526,27 +1528,27 @@ var Tt = { exports: {} };
1526
1528
  for (var a = e.readBits(4), s = [], n = 0; n < a; n++) s.push(Ct(e));
1527
1529
  return { descriptor_tag: r, descriptor_length: t, identifier: i, audio_count: a, components: s };
1528
1530
  }, It = function(r) {
1529
- var t = new ue(r), i = t.readBits(8), e = t.readBool(), a = t.readBool();
1531
+ var t = new le(r), i = t.readBits(8), e = t.readBool(), a = t.readBool();
1530
1532
  t.readBits(2);
1531
1533
  var s = t.readBits(12), n = t.readBits(8), o = t.readBool(), p = t.readBits(6), g = 4 * t.readBits(31) + t.readBits(2), E = t.readBits(8), A = t.readBits(12), S = t.readBits(12), w = t.readBits(8), I = null;
1532
- w === Se.kSpliceNull ? I = {} : w === Se.kSpliceSchedule ? I = function(ne) {
1533
- for (var be = ne.readBits(8), Ae = [], le = 0; le < be; le++) Ae.push(et(ne));
1534
+ w === Se.kSpliceNull ? I = {} : w === Se.kSpliceSchedule ? I = function(se) {
1535
+ for (var be = se.readBits(8), Ae = [], ue = 0; ue < be; ue++) Ae.push(et(se));
1534
1536
  return { splice_count: be, events: Ae };
1535
- }(t) : w === Se.kSpliceInsert ? I = function(ne) {
1536
- var be = ne.readBits(32), Ae = ne.readBool();
1537
- ne.readBits(7);
1538
- var le = { splice_event_id: be, splice_event_cancel_indicator: Ae };
1539
- if (Ae) return le;
1540
- if (le.out_of_network_indicator = ne.readBool(), le.program_splice_flag = ne.readBool(), le.duration_flag = ne.readBool(), le.splice_immediate_flag = ne.readBool(), ne.readBits(4), le.program_splice_flag && !le.splice_immediate_flag && (le.splice_time = Oe(ne)), !le.program_splice_flag) {
1541
- le.component_count = ne.readBits(8), le.components = [];
1542
- for (var ye = 0; ye < le.component_count; ye++) le.components.push($e(le.splice_immediate_flag, ne));
1543
- }
1544
- return le.duration_flag && (le.break_duration = Be(ne)), le.unique_program_id = ne.readBits(16), le.avail_num = ne.readBits(8), le.avails_expected = ne.readBits(8), le;
1545
- }(t) : w === Se.kTimeSignal ? I = function(ne) {
1546
- return { splice_time: Oe(ne) };
1547
- }(t) : w === Se.kBandwidthReservation ? I = {} : w === Se.kPrivateCommand ? I = function(ne, be) {
1548
- for (var Ae = String.fromCharCode(be.readBits(8), be.readBits(8), be.readBits(8), be.readBits(8)), le = new Uint8Array(ne - 4), ye = 0; ye < ne - 4; ye++) le[ye] = be.readBits(8);
1549
- return { identifier: Ae, private_data: le.buffer };
1537
+ }(t) : w === Se.kSpliceInsert ? I = function(se) {
1538
+ var be = se.readBits(32), Ae = se.readBool();
1539
+ se.readBits(7);
1540
+ var ue = { splice_event_id: be, splice_event_cancel_indicator: Ae };
1541
+ if (Ae) return ue;
1542
+ if (ue.out_of_network_indicator = se.readBool(), ue.program_splice_flag = se.readBool(), ue.duration_flag = se.readBool(), ue.splice_immediate_flag = se.readBool(), se.readBits(4), ue.program_splice_flag && !ue.splice_immediate_flag && (ue.splice_time = Oe(se)), !ue.program_splice_flag) {
1543
+ ue.component_count = se.readBits(8), ue.components = [];
1544
+ for (var ye = 0; ye < ue.component_count; ye++) ue.components.push($e(ue.splice_immediate_flag, se));
1545
+ }
1546
+ return ue.duration_flag && (ue.break_duration = Be(se)), ue.unique_program_id = se.readBits(16), ue.avail_num = se.readBits(8), ue.avails_expected = se.readBits(8), ue;
1547
+ }(t) : w === Se.kTimeSignal ? I = function(se) {
1548
+ return { splice_time: Oe(se) };
1549
+ }(t) : w === Se.kBandwidthReservation ? I = {} : w === Se.kPrivateCommand ? I = function(se, be) {
1550
+ for (var Ae = String.fromCharCode(be.readBits(8), be.readBits(8), be.readBits(8), be.readBits(8)), ue = new Uint8Array(se - 4), ye = 0; ye < se - 4; ye++) ue[ye] = be.readBits(8);
1551
+ return { identifier: Ae, private_data: ue.buffer };
1550
1552
  }(S, t) : t.readBits(8 * S);
1551
1553
  for (var z = [], N = t.readBits(16), J = 0; J < N; ) {
1552
1554
  var W = t.readBits(8), q = t.readBits(8), de = String.fromCharCode(t.readBits(8), t.readBits(8), t.readBits(8), t.readBits(8));
@@ -1607,7 +1609,7 @@ var Tt = { exports: {} };
1607
1609
  }(), Ut = function() {
1608
1610
  }, Nt = function() {
1609
1611
  }, Gt = function() {
1610
- }, Ft = [[64, 64, 80, 80, 96, 96, 112, 112, 128, 128, 160, 160, 192, 192, 224, 224, 256, 256, 320, 320, 384, 384, 448, 448, 512, 512, 640, 640, 768, 768, 896, 896, 1024, 1024, 1152, 1152, 1280, 1280], [69, 70, 87, 88, 104, 105, 121, 122, 139, 140, 174, 175, 208, 209, 243, 244, 278, 279, 348, 349, 417, 418, 487, 488, 557, 558, 696, 697, 835, 836, 975, 976, 1114, 1115, 1253, 1254, 1393, 1394], [96, 96, 120, 120, 144, 144, 168, 168, 192, 192, 240, 240, 288, 288, 336, 336, 384, 384, 480, 480, 576, 576, 672, 672, 768, 768, 960, 960, 1152, 1152, 1344, 1344, 1536, 1536, 1728, 1728, 1920, 1920]], Vt = function() {
1612
+ }, Vt = [[64, 64, 80, 80, 96, 96, 112, 112, 128, 128, 160, 160, 192, 192, 224, 224, 256, 256, 320, 320, 384, 384, 448, 448, 512, 512, 640, 640, 768, 768, 896, 896, 1024, 1024, 1152, 1152, 1280, 1280], [69, 70, 87, 88, 104, 105, 121, 122, 139, 140, 174, 175, 208, 209, 243, 244, 278, 279, 348, 349, 417, 418, 487, 488, 557, 558, 696, 697, 835, 836, 975, 976, 1114, 1115, 1253, 1254, 1393, 1394], [96, 96, 120, 120, 144, 144, 168, 168, 192, 192, 240, 240, 288, 288, 336, 336, 384, 384, 480, 480, 576, 576, 672, 672, 768, 768, 960, 960, 1152, 1152, 1344, 1344, 1536, 1536, 1728, 1728, 1920, 1920]], Ft = function() {
1611
1613
  function r(t) {
1612
1614
  this.TAG = "AC3Parser", this.data_ = t, this.current_syncword_offset_ = this.findNextSyncwordOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not found AC3 syncword until payload end");
1613
1615
  }
@@ -1619,7 +1621,7 @@ var Tt = { exports: {} };
1619
1621
  }
1620
1622
  }, r.prototype.readNextAC3Frame = function() {
1621
1623
  for (var t = this.data_, i = null; i == null && !this.eof_flag_; ) {
1622
- var e = this.current_syncword_offset_, a = t[e + 4] >> 6, s = [48e3, 44200, 33e3][a], n = 63 & t[e + 4], o = 2 * Ft[a][n];
1624
+ var e = this.current_syncword_offset_, a = t[e + 4] >> 6, s = [48e3, 44200, 33e3][a], n = 63 & t[e + 4], o = 2 * Vt[a][n];
1623
1625
  if (e + o > this.data_.byteLength) {
1624
1626
  this.eof_flag_ = !0, this.has_last_incomplete_data = !0;
1625
1627
  break;
@@ -1654,8 +1656,8 @@ var Tt = { exports: {} };
1654
1656
  }
1655
1657
  r(t, i), t.prototype = i === null ? Object.create(i) : (e.prototype = i.prototype, new e());
1656
1658
  };
1657
- }(), Ve = function() {
1658
- return (Ve = Object.assign || function(r) {
1659
+ }(), Fe = function() {
1660
+ return (Fe = Object.assign || function(r) {
1659
1661
  for (var t, i = 1, e = arguments.length; i < e; i++) for (var a in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, a) && (r[a] = t[a]);
1660
1662
  return r;
1661
1663
  }).apply(this, arguments);
@@ -1826,7 +1828,7 @@ var Tt = { exports: {} };
1826
1828
  var e = i[0];
1827
1829
  if (e === 2) {
1828
1830
  var a = (15 & i[1]) << 8 | i[2], s = i[3] << 8 | i[4], n = (62 & i[5]) >>> 1, o = 1 & i[5], p = i[6], g = (i[7], null);
1829
- if (o === 1 && p === 0) (g = new F()).program_number = s, g.version_number = n, this.program_pmt_map_[s] = g;
1831
+ if (o === 1 && p === 0) (g = new V()).program_number = s, g.version_number = n, this.program_pmt_map_[s] = g;
1830
1832
  else if ((g = this.program_pmt_map_[s]) == null) return;
1831
1833
  i[8], i[9];
1832
1834
  for (var E = (15 & i[10]) << 8 | i[11], A = 12 + E, S = a - 9 - E - 4, w = A; w < A + S; ) {
@@ -1851,8 +1853,8 @@ var Tt = { exports: {} };
1851
1853
  }
1852
1854
  q += 2 + he;
1853
1855
  }
1854
- var ne = i.subarray(w + 5, w + 5 + N);
1855
- this.dispatchPESPrivateDataDescriptor(z, I, ne);
1856
+ var se = i.subarray(w + 5, w + 5 + N);
1857
+ this.dispatchPESPrivateDataDescriptor(z, I, se);
1856
1858
  }
1857
1859
  } else I === u.kID3 ? g.timed_id3_pids[z] = !0 : I === u.kSCTE35 && (g.scte_35_pids[z] = !0);
1858
1860
  else g.common_pids.mp3 = z;
@@ -1873,10 +1875,10 @@ var Tt = { exports: {} };
1873
1875
  } else e.nearest_pts = this.aac_last_sample_pts_;
1874
1876
  this.onSCTE35Metadata && this.onSCTE35Metadata(e);
1875
1877
  }, t.prototype.parseH264Payload = function(i, e, a, s, n) {
1876
- for (var o = new X(i), p = null, g = [], E = 0, A = !1; (p = o.readNextNaluPayload()) != null; ) {
1878
+ for (var o = new Y(i), p = null, g = [], E = 0, A = !1; (p = o.readNextNaluPayload()) != null; ) {
1877
1879
  var S = new R(p);
1878
1880
  if (S.type === D.kSliceSPS) {
1879
- var w = se.parseSPS(p.data);
1881
+ var w = ne.parseSPS(p.data);
1880
1882
  this.video_init_segment_dispatched_ ? this.detectVideoMetadataChange(S, w) === !0 && (m.a.v(this.TAG, "H264: Critical h264 metadata has been changed, attempt to re-generate InitSegment"), this.video_metadata_changed_ = !0, this.video_metadata_ = { vps: void 0, sps: S, pps: void 0, details: w }) : (this.video_metadata_.sps = S, this.video_metadata_.details = w);
1881
1883
  } else S.type === D.kSlicePPS ? this.video_init_segment_dispatched_ && !this.video_metadata_changed_ || (this.video_metadata_.pps = S, this.video_metadata_.sps && this.video_metadata_.pps && (this.video_metadata_changed_ && this.dispatchVideoMediaSegment(), this.dispatchVideoInitSegment())) : (S.type === D.kSliceIDR || S.type === D.kSliceNonIDR && n === 1) && (A = !0);
1882
1884
  this.video_init_segment_dispatched_ && (g.push(S), E += S.data.byteLength);
@@ -1891,10 +1893,10 @@ var Tt = { exports: {} };
1891
1893
  var S = new Pt(p);
1892
1894
  if (S.type === Ee.kSliceVPS) {
1893
1895
  if (!this.video_init_segment_dispatched_) {
1894
- var w = ae.parseVPS(p.data);
1895
- this.video_metadata_.vps = S, this.video_metadata_.details = Ve(Ve({}, this.video_metadata_.details), w);
1896
+ var w = ie.parseVPS(p.data);
1897
+ this.video_metadata_.vps = S, this.video_metadata_.details = Fe(Fe({}, this.video_metadata_.details), w);
1896
1898
  }
1897
- } else S.type === Ee.kSliceSPS ? (w = ae.parseSPS(p.data), this.video_init_segment_dispatched_ ? this.detectVideoMetadataChange(S, w) === !0 && (m.a.v(this.TAG, "H265: Critical h265 metadata has been changed, attempt to re-generate InitSegment"), this.video_metadata_changed_ = !0, this.video_metadata_ = { vps: void 0, sps: S, pps: void 0, details: w }) : (this.video_metadata_.sps = S, this.video_metadata_.details = Ve(Ve({}, this.video_metadata_.details), w))) : S.type === Ee.kSlicePPS ? (!this.video_init_segment_dispatched_ || this.video_metadata_changed_) && (w = ae.parsePPS(p.data), this.video_metadata_.pps = S, this.video_metadata_.details = Ve(Ve({}, this.video_metadata_.details), w), this.video_metadata_.vps && this.video_metadata_.sps && this.video_metadata_.pps && (this.video_metadata_changed_ && this.dispatchVideoMediaSegment(), this.dispatchVideoInitSegment())) : S.type !== Ee.kSliceIDR_W_RADL && S.type !== Ee.kSliceIDR_N_LP && S.type !== Ee.kSliceCRA_NUT || (A = !0);
1899
+ } else S.type === Ee.kSliceSPS ? (w = ie.parseSPS(p.data), this.video_init_segment_dispatched_ ? this.detectVideoMetadataChange(S, w) === !0 && (m.a.v(this.TAG, "H265: Critical h265 metadata has been changed, attempt to re-generate InitSegment"), this.video_metadata_changed_ = !0, this.video_metadata_ = { vps: void 0, sps: S, pps: void 0, details: w }) : (this.video_metadata_.sps = S, this.video_metadata_.details = Fe(Fe({}, this.video_metadata_.details), w))) : S.type === Ee.kSlicePPS ? (!this.video_init_segment_dispatched_ || this.video_metadata_changed_) && (w = ie.parsePPS(p.data), this.video_metadata_.pps = S, this.video_metadata_.details = Fe(Fe({}, this.video_metadata_.details), w), this.video_metadata_.vps && this.video_metadata_.sps && this.video_metadata_.pps && (this.video_metadata_changed_ && this.dispatchVideoMediaSegment(), this.dispatchVideoInitSegment())) : S.type !== Ee.kSliceIDR_W_RADL && S.type !== Ee.kSliceIDR_N_LP && S.type !== Ee.kSliceCRA_NUT || (A = !0);
1898
1900
  this.video_init_segment_dispatched_ && (g.push(S), E += S.data.byteLength);
1899
1901
  }
1900
1902
  var I = Math.floor(e / this.timescale_), z = Math.floor(a / this.timescale_);
@@ -1974,7 +1976,7 @@ var Tt = { exports: {} };
1974
1976
  Math.abs(p - o) > 1 && (m.a.w(this.TAG, "AAC: Detected pts overlapped, expected: " + p + "ms, PES pts: " + o + "ms"), o = p);
1975
1977
  }
1976
1978
  }
1977
- for (var g, E = new ie(i), A = null, S = o; (A = E.readNextAACFrame((a = this.loas_previous_frame) !== null && a !== void 0 ? a : void 0)) != null; ) {
1979
+ for (var g, E = new re(i), A = null, S = o; (A = E.readNextAACFrame((a = this.loas_previous_frame) !== null && a !== void 0 ? a : void 0)) != null; ) {
1978
1980
  this.loas_previous_frame = A, n = 1024 / A.sampling_frequency * 1e3;
1979
1981
  var w = { codec: "aac", data: A };
1980
1982
  this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "aac", audio_object_type: A.audio_object_type, sampling_freq_index: A.sampling_freq_index, sampling_frequency: A.sampling_frequency, channel_config: A.channel_config }, this.dispatchAudioInitSegment(w)) : this.detectAudioMetadataChange(w) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(w)), g = S;
@@ -1990,10 +1992,10 @@ var Tt = { exports: {} };
1990
1992
  if (e == null && this.aac_last_sample_pts_ != null) a = 1536 / this.audio_metadata_.sampling_frequency * 1e3, s = this.aac_last_sample_pts_ + a;
1991
1993
  else if (e == null) return void m.a.w(this.TAG, "Opus: Unknown pts");
1992
1994
  }
1993
- for (var n, o = new Vt(i), p = null, g = s; (p = o.readNextAC3Frame()) != null; ) {
1995
+ for (var n, o = new Ft(i), p = null, g = s; (p = o.readNextAC3Frame()) != null; ) {
1994
1996
  a = 1536 / p.sampling_frequency * 1e3;
1995
1997
  var E = { codec: "ac-3", data: p };
1996
- this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "ac-3", sampling_frequency: p.sampling_frequency, bit_stream_identification: p.bit_stream_identification, bit_stream_mode: p.bit_stream_mode, low_frequency_effects_channel_on: p.low_frequency_effects_channel_on, channel_mode: p.channel_mode }, this.dispatchAudioInitSegment(E)) : this.detectAudioMetadataChange(E) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(E)), n = g;
1998
+ this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "ac-3", sampling_frequency: p.sampling_frequency, bit_stream_identification: p.bit_stream_identification, bit_stream_mode: p.bit_stream_mode, low_frequency_effects_channel_on: p.low_frequency_effects_channel_on, channel_mode: p.channel_mode }, console.log(JSON.stringify(this.audio_metadata_)), this.dispatchAudioInitSegment(E)) : this.detectAudioMetadataChange(E) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(E)), n = g;
1997
1999
  var A = Math.floor(g), S = { unit: p.data, length: p.data.byteLength, pts: A, dts: A };
1998
2000
  this.audio_track_.samples.push(S), this.audio_track_.length += p.data.byteLength, g += a;
1999
2001
  }
@@ -2071,7 +2073,7 @@ var Tt = { exports: {} };
2071
2073
  }, t.prototype.dispatchAudioInitSegment = function(i) {
2072
2074
  var e = { type: "audio" };
2073
2075
  if (e.id = this.audio_track_.id, e.timescale = 1e3, e.duration = this.duration_, this.audio_metadata_.codec === "aac") {
2074
- var a = i.codec === "aac" ? i.data : null, s = new re(a);
2076
+ var a = i.codec === "aac" ? i.data : null, s = new ae(a);
2075
2077
  e.audioSampleRate = s.sampling_rate, e.channelCount = s.channel_count, e.codec = s.codec_mimetype, e.originalCodec = s.original_codec_mimetype, e.config = s.config, e.refSampleDuration = 1024 / e.audioSampleRate * e.timescale;
2076
2078
  } else if (this.audio_metadata_.codec === "ac-3") {
2077
2079
  var n = i.codec === "ac-3" ? i.data : null, o = new jt(n);
@@ -2116,7 +2118,7 @@ var Tt = { exports: {} };
2116
2118
  o.dts = g;
2117
2119
  }
2118
2120
  o.ancillaries = function(E) {
2119
- for (var A = new ue(E), S = 0, w = []; S += 6, A.readBits(6) === 0; ) {
2121
+ for (var A = new le(E), S = 0, w = []; S += 6, A.readBits(6) === 0; ) {
2120
2122
  var I = A.readBool();
2121
2123
  S += 1;
2122
2124
  var z = A.readBits(11);
@@ -2140,7 +2142,7 @@ var Tt = { exports: {} };
2140
2142
  return A.destroy(), A = null, w;
2141
2143
  }(i), this.onSMPTE2038Metadata && this.onSMPTE2038Metadata(o);
2142
2144
  }, t;
2143
- }(c), Ht = function() {
2145
+ }(h), Ht = function() {
2144
2146
  for (var r = 0, t = 0, i = arguments.length; t < i; t++) r += arguments[t].length;
2145
2147
  var e = Array(r), a = 0;
2146
2148
  for (t = 0; t < i; t++) for (var s = arguments[t], n = 0, o = s.length; n < o; n++, a++) e[a] = s[n];
@@ -2388,7 +2390,7 @@ var Tt = { exports: {} };
2388
2390
  } else A = !1;
2389
2391
  }
2390
2392
  for (var _e = [], te = 0; te < s.length; te++) {
2391
- var ne = (N = s[te]).unit, be = N.dts - this._dtsBase, Ae = (K = be, !1), le = null, ye = 0;
2393
+ var se = (N = s[te]).unit, be = N.dts - this._dtsBase, Ae = (K = be, !1), ue = null, ye = 0;
2392
2394
  if (!(be < -1e-3)) {
2393
2395
  if (this._audioMeta.codec !== "mp3") {
2394
2396
  var Re = be;
@@ -2400,22 +2402,22 @@ var Tt = { exports: {} };
2400
2402
  Ae = !0;
2401
2403
  var ke, Ne = Math.floor(n / p);
2402
2404
  m.a.w(this.TAG, `Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
2403
- originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.round(n) + " ms, generate: " + Ne + " frames"), K = Math.floor(Re), ye = Math.floor(Re + p) - K, (ke = ht.getSilentFrame(this._audioMeta.originalCodec, this._audioMeta.channelCount)) == null && (m.a.w(this.TAG, "Unable to generate silent frame for " + this._audioMeta.originalCodec + " with " + this._audioMeta.channelCount + " channels, repeat last frame"), ke = ne), le = [];
2405
+ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.round(n) + " ms, generate: " + Ne + " frames"), K = Math.floor(Re), ye = Math.floor(Re + p) - K, (ke = ht.getSilentFrame(this._audioMeta.originalCodec, this._audioMeta.channelCount)) == null && (m.a.w(this.TAG, "Unable to generate silent frame for " + this._audioMeta.originalCodec + " with " + this._audioMeta.channelCount + " channels, repeat last frame"), ke = se), ue = [];
2404
2406
  for (var Pe = 0; Pe < Ne; Pe++) {
2405
2407
  Re += p;
2406
- var Ge = Math.floor(Re), je = Math.floor(Re + p) - Ge, Fe = { dts: Ge, pts: Ge, cts: 0, unit: ke, size: ke.byteLength, duration: je, originalDts: be, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } };
2407
- le.push(Fe), I += Fe.size;
2408
+ var Ge = Math.floor(Re), je = Math.floor(Re + p) - Ge, Ve = { dts: Ge, pts: Ge, cts: 0, unit: ke, size: ke.byteLength, duration: je, originalDts: be, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } };
2409
+ ue.push(Ve), I += Ve.size;
2408
2410
  }
2409
2411
  this._audioNextDts = Re + p;
2410
2412
  } else K = Math.floor(Re), ye = Math.floor(Re + p) - K, this._audioNextDts = Re + p;
2411
2413
  } else
2412
2414
  K = be - n, te !== s.length - 1 ? ye = s[te + 1].dts - this._dtsBase - n - K : z != null ? ye = z.dts - this._dtsBase - n - K : ye = _e.length >= 1 ? _e[_e.length - 1].duration : Math.floor(p), this._audioNextDts = K + ye;
2413
- o === -1 && (o = K), _e.push({ dts: K, pts: K, cts: 0, unit: N.unit, size: N.unit.byteLength, duration: ye, originalDts: be, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } }), Ae && _e.push.apply(_e, le);
2415
+ o === -1 && (o = K), _e.push({ dts: K, pts: K, cts: 0, unit: N.unit, size: N.unit.byteLength, duration: ye, originalDts: be, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } }), Ae && _e.push.apply(_e, ue);
2414
2416
  }
2415
2417
  }
2416
2418
  if (_e.length === 0) return a.samples = [], void (a.length = 0);
2417
2419
  for (g ? w = new Uint8Array(I) : ((w = new Uint8Array(I))[0] = I >>> 24 & 255, w[1] = I >>> 16 & 255, w[2] = I >>> 8 & 255, w[3] = 255 & I, w.set(ze.types.mdat, 4)), te = 0; te < _e.length; te++)
2418
- ne = _e[te].unit, w.set(ne, S), S += ne.byteLength;
2420
+ se = _e[te].unit, w.set(se, S), S += se.byteLength;
2419
2421
  var Ce = _e[_e.length - 1];
2420
2422
  e = Ce.dts + Ce.duration;
2421
2423
  var ge = new Me.b();
@@ -2449,16 +2451,16 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2449
2451
  for (var W = new Me.b(), q = [], de = 0; de < n.length; de++) {
2450
2452
  var he = (I = n[de]).dts - this._dtsBase, K = I.isKeyframe, Q = he - o, _e = I.cts, te = Q + _e;
2451
2453
  p === -1 && (p = Q, g = te);
2452
- var ne = 0;
2453
- if (de !== n.length - 1 ? ne = n[de + 1].dts - this._dtsBase - o - Q : w != null ? ne = w.dts - this._dtsBase - o - Q : ne = q.length >= 1 ? q[q.length - 1].duration : Math.floor(this._videoMeta.refSampleDuration), K) {
2454
- var be = new Me.d(Q, te, ne, I.dts, !0);
2454
+ var se = 0;
2455
+ if (de !== n.length - 1 ? se = n[de + 1].dts - this._dtsBase - o - Q : w != null ? se = w.dts - this._dtsBase - o - Q : se = q.length >= 1 ? q[q.length - 1].duration : Math.floor(this._videoMeta.refSampleDuration), K) {
2456
+ var be = new Me.d(Q, te, se, I.dts, !0);
2455
2457
  be.fileposition = I.fileposition, W.appendSyncPoint(be);
2456
2458
  }
2457
- q.push({ dts: Q, pts: te, cts: _e, units: I.units, size: I.length, isKeyframe: K, duration: ne, originalDts: he, flags: { isLeading: 0, dependsOn: K ? 2 : 1, isDependedOn: K ? 1 : 0, hasRedundancy: 0, isNonSync: K ? 0 : 1 } });
2459
+ q.push({ dts: Q, pts: te, cts: _e, units: I.units, size: I.length, isKeyframe: K, duration: se, originalDts: he, flags: { isLeading: 0, dependsOn: K ? 2 : 1, isDependedOn: K ? 1 : 0, hasRedundancy: 0, isNonSync: K ? 0 : 1 } });
2458
2460
  }
2459
2461
  for ((A = new Uint8Array(S))[0] = S >>> 24 & 255, A[1] = S >>> 16 & 255, A[2] = S >>> 8 & 255, A[3] = 255 & S, A.set(ze.types.mdat, 4), de = 0; de < q.length; de++) for (var Ae = q[de].units; Ae.length; ) {
2460
- var le = Ae.shift().data;
2461
- A.set(le, E), E += le.byteLength;
2462
+ var ue = Ae.shift().data;
2463
+ A.set(ue, E), E += ue.byteLength;
2462
2464
  }
2463
2465
  var ye = q[q.length - 1];
2464
2466
  if (e = ye.dts + ye.duration, a = ye.pts + ye.duration, this._videoNextDts = e, W.beginDts = p, W.endDts = e, W.beginPts = g, W.endPts = a, W.originalBeginDts = q[0].originalDts, W.originalEndDts = ye.originalDts + ye.duration, W.firstSample = new Me.d(q[0].dts, q[0].pts, q[0].duration, q[0].originalDts, q[0].isKeyframe), W.lastSample = new Me.d(ye.dts, ye.pts, ye.duration, ye.originalDts, ye.isKeyframe), this._isLive || this._videoSegmentInfoList.append(W), s.samples = q, s.sequenceNumber++, this._forceFirstIDR) {
@@ -2530,7 +2532,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2530
2532
  var s = null;
2531
2533
  (s = _.probe(t)).match && (this._setupFLVDemuxerRemuxer(s), a = this._demuxer.parseChunks(t, i)), s.match || s.needMoreData || (s = lt.probe(t)).match && (this._setupTSDemuxerRemuxer(s), a = this._demuxer.parseChunks(t, i)), s.match || s.needMoreData || (s = null, m.a.e(this.TAG, "Non MPEG-TS/FLV, Unsupported media type!"), Promise.resolve().then(function() {
2532
2534
  e._internalAbort();
2533
- }), this._emitter.emit(Le.a.DEMUX_ERROR, Y.a.FORMAT_UNSUPPORTED, "Non MPEG-TS/FLV, Unsupported media type!"));
2535
+ }), this._emitter.emit(Le.a.DEMUX_ERROR, X.a.FORMAT_UNSUPPORTED, "Non MPEG-TS/FLV, Unsupported media type!"));
2534
2536
  }
2535
2537
  return a;
2536
2538
  }, r.prototype._setupFLVDemuxerRemuxer = function(t) {
@@ -2619,23 +2621,23 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2619
2621
  var l = (this._now() - this._firstCheckpoint) / 1e3;
2620
2622
  return this._totalBytes / l / 1024;
2621
2623
  }, enumerable: !1, configurable: !0 }), T;
2622
- }(), b = O(2), v = O(4), f = O(3), L = (U = function(T, l) {
2624
+ }(), b = O(2), v = O(4), f = O(3), k = (U = function(T, l) {
2623
2625
  return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, _) {
2624
2626
  u.__proto__ = _;
2625
2627
  } || function(u, _) {
2626
- for (var c in _) _.hasOwnProperty(c) && (u[c] = _[c]);
2628
+ for (var h in _) _.hasOwnProperty(h) && (u[h] = _[h]);
2627
2629
  })(T, l);
2628
2630
  }, function(T, l) {
2629
2631
  function u() {
2630
2632
  this.constructor = T;
2631
2633
  }
2632
2634
  U(T, l), T.prototype = l === null ? Object.create(l) : (u.prototype = l.prototype, new u());
2633
- }), x = function(T) {
2635
+ }), M = function(T) {
2634
2636
  function l(u, _) {
2635
- var c = T.call(this, "fetch-stream-loader") || this;
2636
- return c.TAG = "FetchStreamLoader", c._seekHandler = u, c._config = _, c._needStash = !0, c._requestAbort = !1, c._abortController = null, c._contentLength = null, c._receivedLength = 0, c;
2637
+ var h = T.call(this, "fetch-stream-loader") || this;
2638
+ return h.TAG = "FetchStreamLoader", h._seekHandler = u, h._config = _, h._needStash = !0, h._requestAbort = !1, h._abortController = null, h._contentLength = null, h._receivedLength = 0, h;
2637
2639
  }
2638
- return L(l, T), l.isSupported = function() {
2640
+ return k(l, T), l.isSupported = function() {
2639
2641
  try {
2640
2642
  var u = v.a.msedge && v.a.version.minor >= 15048, _ = !v.a.msedge || u;
2641
2643
  return self.fetch && self.ReadableStream && _;
@@ -2645,33 +2647,33 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2645
2647
  }, l.prototype.destroy = function() {
2646
2648
  this.isWorking() && this.abort(), T.prototype.destroy.call(this);
2647
2649
  }, l.prototype.open = function(u, _) {
2648
- var c = this;
2650
+ var h = this;
2649
2651
  this._dataSource = u, this._range = _;
2650
2652
  var P = u.url;
2651
2653
  this._config.reuseRedirectedURL && u.redirectedURL != null && (P = u.redirectedURL);
2652
- var D = this._seekHandler.getConfig(P, _), F = new self.Headers();
2654
+ var D = this._seekHandler.getConfig(P, _), V = new self.Headers();
2653
2655
  if (typeof D.headers == "object") {
2654
2656
  var ee = D.headers;
2655
- for (var pe in ee) ee.hasOwnProperty(pe) && F.append(pe, ee[pe]);
2656
- }
2657
- var ve = { method: "GET", headers: F, mode: "cors", cache: "default", referrerPolicy: "no-referrer-when-downgrade" };
2658
- if (typeof this._config.headers == "object") for (var pe in this._config.headers) F.append(pe, this._config.headers[pe]);
2659
- u.cors === !1 && (ve.mode = "same-origin"), u.withCredentials && (ve.credentials = "include"), u.referrerPolicy && (ve.referrerPolicy = u.referrerPolicy), self.AbortController && (this._abortController = new self.AbortController(), ve.signal = this._abortController.signal), this._status = b.c.kConnecting, self.fetch(D.url, ve).then(function(k) {
2660
- if (c._requestAbort) return c._status = b.c.kIdle, void k.body.cancel();
2661
- if (k.ok && k.status >= 200 && k.status <= 299) {
2662
- if (k.url !== D.url && c._onURLRedirect) {
2663
- var d = c._seekHandler.removeURLParameters(k.url);
2664
- c._onURLRedirect(d);
2657
+ for (var pe in ee) ee.hasOwnProperty(pe) && V.append(pe, ee[pe]);
2658
+ }
2659
+ var ve = { method: "GET", headers: V, mode: "cors", cache: "default", referrerPolicy: "no-referrer-when-downgrade" };
2660
+ if (typeof this._config.headers == "object") for (var pe in this._config.headers) V.append(pe, this._config.headers[pe]);
2661
+ u.cors === !1 && (ve.mode = "same-origin"), u.withCredentials && (ve.credentials = "include"), u.referrerPolicy && (ve.referrerPolicy = u.referrerPolicy), self.AbortController && (this._abortController = new self.AbortController(), ve.signal = this._abortController.signal), this._status = b.c.kConnecting, self.fetch(D.url, ve).then(function(L) {
2662
+ if (h._requestAbort) return h._status = b.c.kIdle, void L.body.cancel();
2663
+ if (L.ok && L.status >= 200 && L.status <= 299) {
2664
+ if (L.url !== D.url && h._onURLRedirect) {
2665
+ var d = h._seekHandler.removeURLParameters(L.url);
2666
+ h._onURLRedirect(d);
2665
2667
  }
2666
- var h = k.headers.get("Content-Length");
2667
- return h != null && (c._contentLength = parseInt(h), c._contentLength !== 0 && c._onContentLengthKnown && c._onContentLengthKnown(c._contentLength)), c._pump.call(c, k.body.getReader());
2668
+ var c = L.headers.get("Content-Length");
2669
+ return c != null && (h._contentLength = parseInt(c), h._contentLength !== 0 && h._onContentLengthKnown && h._onContentLengthKnown(h._contentLength)), h._pump.call(h, L.body.getReader());
2668
2670
  }
2669
- if (c._status = b.c.kError, !c._onError) throw new f.d("FetchStreamLoader: Http code invalid, " + k.status + " " + k.statusText);
2670
- c._onError(b.b.HTTP_STATUS_CODE_INVALID, { code: k.status, msg: k.statusText });
2671
- }).catch(function(k) {
2672
- if (!c._abortController || !c._abortController.signal.aborted) {
2673
- if (c._status = b.c.kError, !c._onError) throw k;
2674
- c._onError(b.b.EXCEPTION, { code: -1, msg: k.message });
2671
+ if (h._status = b.c.kError, !h._onError) throw new f.d("FetchStreamLoader: Http code invalid, " + L.status + " " + L.statusText);
2672
+ h._onError(b.b.HTTP_STATUS_CODE_INVALID, { code: L.status, msg: L.statusText });
2673
+ }).catch(function(L) {
2674
+ if (!h._abortController || !h._abortController.signal.aborted) {
2675
+ if (h._status = b.c.kError, !h._onError) throw L;
2676
+ h._onError(b.b.EXCEPTION, { code: -1, msg: L.message });
2675
2677
  }
2676
2678
  });
2677
2679
  }, l.prototype.abort = function() {
@@ -2681,8 +2683,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2681
2683
  }
2682
2684
  }, l.prototype._pump = function(u) {
2683
2685
  var _ = this;
2684
- return u.read().then(function(c) {
2685
- if (c.done) if (_._contentLength !== null && _._receivedLength < _._contentLength) {
2686
+ return u.read().then(function(h) {
2687
+ if (h.done) if (_._contentLength !== null && _._receivedLength < _._contentLength) {
2686
2688
  _._status = b.c.kError;
2687
2689
  var P = b.b.EARLY_EOF, D = { code: -1, msg: "Fetch stream meet Early-EOF" };
2688
2690
  if (!_._onError) throw new f.d(D.msg);
@@ -2692,25 +2694,25 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2692
2694
  if (_._abortController && _._abortController.signal.aborted) return void (_._status = b.c.kComplete);
2693
2695
  if (_._requestAbort === !0) return _._status = b.c.kComplete, u.cancel();
2694
2696
  _._status = b.c.kBuffering;
2695
- var F = c.value.buffer, ee = _._range.from + _._receivedLength;
2696
- _._receivedLength += F.byteLength, _._onDataArrival && _._onDataArrival(F, ee, _._receivedLength), _._pump(u);
2697
+ var V = h.value.buffer, ee = _._range.from + _._receivedLength;
2698
+ _._receivedLength += V.byteLength, _._onDataArrival && _._onDataArrival(V, ee, _._receivedLength), _._pump(u);
2697
2699
  }
2698
- }).catch(function(c) {
2700
+ }).catch(function(h) {
2699
2701
  if (_._abortController && _._abortController.signal.aborted) _._status = b.c.kComplete;
2700
- else if (c.code !== 11 || !v.a.msedge) {
2702
+ else if (h.code !== 11 || !v.a.msedge) {
2701
2703
  _._status = b.c.kError;
2702
2704
  var P = 0, D = null;
2703
- if (c.code !== 19 && c.message !== "network error" || !(_._contentLength === null || _._contentLength !== null && _._receivedLength < _._contentLength) ? (P = b.b.EXCEPTION, D = { code: c.code, msg: c.message }) : (P = b.b.EARLY_EOF, D = { code: c.code, msg: "Fetch stream meet Early-EOF" }), !_._onError) throw new f.d(D.msg);
2705
+ if (h.code !== 19 && h.message !== "network error" || !(_._contentLength === null || _._contentLength !== null && _._receivedLength < _._contentLength) ? (P = b.b.EXCEPTION, D = { code: h.code, msg: h.message }) : (P = b.b.EARLY_EOF, D = { code: h.code, msg: "Fetch stream meet Early-EOF" }), !_._onError) throw new f.d(D.msg);
2704
2706
  _._onError(P, D);
2705
2707
  }
2706
2708
  });
2707
2709
  }, l;
2708
2710
  }(b.a), C = /* @__PURE__ */ function() {
2709
2711
  var T = function(l, u) {
2710
- return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, c) {
2711
- _.__proto__ = c;
2712
- } || function(_, c) {
2713
- for (var P in c) c.hasOwnProperty(P) && (_[P] = c[P]);
2712
+ return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, h) {
2713
+ _.__proto__ = h;
2714
+ } || function(_, h) {
2715
+ for (var P in h) h.hasOwnProperty(P) && (_[P] = h[P]);
2714
2716
  })(l, u);
2715
2717
  };
2716
2718
  return function(l, u) {
@@ -2719,10 +2721,10 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2719
2721
  }
2720
2722
  T(l, u), l.prototype = u === null ? Object.create(u) : (_.prototype = u.prototype, new _());
2721
2723
  };
2722
- }(), V = function(T) {
2724
+ }(), j = function(T) {
2723
2725
  function l(u, _) {
2724
- var c = T.call(this, "xhr-moz-chunked-loader") || this;
2725
- return c.TAG = "MozChunkedLoader", c._seekHandler = u, c._config = _, c._needStash = !0, c._xhr = null, c._requestAbort = !1, c._contentLength = null, c._receivedLength = 0, c;
2726
+ var h = T.call(this, "xhr-moz-chunked-loader") || this;
2727
+ return h.TAG = "MozChunkedLoader", h._seekHandler = u, h._config = _, h._needStash = !0, h._xhr = null, h._requestAbort = !1, h._contentLength = null, h._receivedLength = 0, h;
2726
2728
  }
2727
2729
  return C(l, T), l.isSupported = function() {
2728
2730
  try {
@@ -2735,18 +2737,18 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2735
2737
  this.isWorking() && this.abort(), this._xhr && (this._xhr.onreadystatechange = null, this._xhr.onprogress = null, this._xhr.onloadend = null, this._xhr.onerror = null, this._xhr = null), T.prototype.destroy.call(this);
2736
2738
  }, l.prototype.open = function(u, _) {
2737
2739
  this._dataSource = u, this._range = _;
2738
- var c = u.url;
2739
- this._config.reuseRedirectedURL && u.redirectedURL != null && (c = u.redirectedURL);
2740
- var P = this._seekHandler.getConfig(c, _);
2740
+ var h = u.url;
2741
+ this._config.reuseRedirectedURL && u.redirectedURL != null && (h = u.redirectedURL);
2742
+ var P = this._seekHandler.getConfig(h, _);
2741
2743
  this._requestURL = P.url;
2742
2744
  var D = this._xhr = new XMLHttpRequest();
2743
2745
  if (D.open("GET", P.url, !0), D.responseType = "moz-chunked-arraybuffer", D.onreadystatechange = this._onReadyStateChange.bind(this), D.onprogress = this._onProgress.bind(this), D.onloadend = this._onLoadEnd.bind(this), D.onerror = this._onXhrError.bind(this), u.withCredentials && (D.withCredentials = !0), typeof P.headers == "object") {
2744
- var F = P.headers;
2745
- for (var ee in F) F.hasOwnProperty(ee) && D.setRequestHeader(ee, F[ee]);
2746
+ var V = P.headers;
2747
+ for (var ee in V) V.hasOwnProperty(ee) && D.setRequestHeader(ee, V[ee]);
2746
2748
  }
2747
2749
  if (typeof this._config.headers == "object") {
2748
- F = this._config.headers;
2749
- for (var ee in F) F.hasOwnProperty(ee) && D.setRequestHeader(ee, F[ee]);
2750
+ V = this._config.headers;
2751
+ for (var ee in V) V.hasOwnProperty(ee) && D.setRequestHeader(ee, V[ee]);
2750
2752
  }
2751
2753
  this._status = b.c.kConnecting, D.send();
2752
2754
  }, l.prototype.abort = function() {
@@ -2755,8 +2757,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2755
2757
  var _ = u.target;
2756
2758
  if (_.readyState === 2) {
2757
2759
  if (_.responseURL != null && _.responseURL !== this._requestURL && this._onURLRedirect) {
2758
- var c = this._seekHandler.removeURLParameters(_.responseURL);
2759
- this._onURLRedirect(c);
2760
+ var h = this._seekHandler.removeURLParameters(_.responseURL);
2761
+ this._onURLRedirect(h);
2760
2762
  }
2761
2763
  if (_.status !== 0 && (_.status < 200 || _.status > 299)) {
2762
2764
  if (this._status = b.c.kError, !this._onError) throw new f.d("MozChunkedLoader: Http code invalid, " + _.status + " " + _.statusText);
@@ -2766,23 +2768,23 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2766
2768
  }, l.prototype._onProgress = function(u) {
2767
2769
  if (this._status !== b.c.kError) {
2768
2770
  this._contentLength === null && u.total !== null && u.total !== 0 && (this._contentLength = u.total, this._onContentLengthKnown && this._onContentLengthKnown(this._contentLength));
2769
- var _ = u.target.response, c = this._range.from + this._receivedLength;
2770
- this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_, c, this._receivedLength);
2771
+ var _ = u.target.response, h = this._range.from + this._receivedLength;
2772
+ this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_, h, this._receivedLength);
2771
2773
  }
2772
2774
  }, l.prototype._onLoadEnd = function(u) {
2773
2775
  this._requestAbort !== !0 ? this._status !== b.c.kError && (this._status = b.c.kComplete, this._onComplete && this._onComplete(this._range.from, this._range.from + this._receivedLength - 1)) : this._requestAbort = !1;
2774
2776
  }, l.prototype._onXhrError = function(u) {
2775
2777
  this._status = b.c.kError;
2776
- var _ = 0, c = null;
2777
- if (this._contentLength && u.loaded < this._contentLength ? (_ = b.b.EARLY_EOF, c = { code: -1, msg: "Moz-Chunked stream meet Early-Eof" }) : (_ = b.b.EXCEPTION, c = { code: -1, msg: u.constructor.name + " " + u.type }), !this._onError) throw new f.d(c.msg);
2778
- this._onError(_, c);
2778
+ var _ = 0, h = null;
2779
+ if (this._contentLength && u.loaded < this._contentLength ? (_ = b.b.EARLY_EOF, h = { code: -1, msg: "Moz-Chunked stream meet Early-Eof" }) : (_ = b.b.EXCEPTION, h = { code: -1, msg: u.constructor.name + " " + u.type }), !this._onError) throw new f.d(h.msg);
2780
+ this._onError(_, h);
2779
2781
  }, l;
2780
2782
  }(b.a), H = /* @__PURE__ */ function() {
2781
2783
  var T = function(l, u) {
2782
- return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, c) {
2783
- _.__proto__ = c;
2784
- } || function(_, c) {
2785
- for (var P in c) c.hasOwnProperty(P) && (_[P] = c[P]);
2784
+ return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, h) {
2785
+ _.__proto__ = h;
2786
+ } || function(_, h) {
2787
+ for (var P in h) h.hasOwnProperty(P) && (_[P] = h[P]);
2786
2788
  })(l, u);
2787
2789
  };
2788
2790
  return function(l, u) {
@@ -2791,10 +2793,10 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2791
2793
  }
2792
2794
  T(l, u), l.prototype = u === null ? Object.create(u) : (_.prototype = u.prototype, new _());
2793
2795
  };
2794
- }(), ue = function(T) {
2796
+ }(), le = function(T) {
2795
2797
  function l(u, _) {
2796
- var c = T.call(this, "xhr-range-loader") || this;
2797
- return c.TAG = "RangeLoader", c._seekHandler = u, c._config = _, c._needStash = !1, c._chunkSizeKBList = [128, 256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192], c._currentChunkSizeKB = 384, c._currentSpeedNormalized = 0, c._zeroSpeedChunkCount = 0, c._xhr = null, c._speedSampler = new m(), c._requestAbort = !1, c._waitForTotalLength = !1, c._totalLengthReceived = !1, c._currentRequestURL = null, c._currentRedirectedURL = null, c._currentRequestRange = null, c._totalLength = null, c._contentLength = null, c._receivedLength = 0, c._lastTimeLoaded = 0, c;
2798
+ var h = T.call(this, "xhr-range-loader") || this;
2799
+ return h.TAG = "RangeLoader", h._seekHandler = u, h._config = _, h._needStash = !1, h._chunkSizeKBList = [128, 256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192], h._currentChunkSizeKB = 384, h._currentSpeedNormalized = 0, h._zeroSpeedChunkCount = 0, h._xhr = null, h._speedSampler = new m(), h._requestAbort = !1, h._waitForTotalLength = !1, h._totalLengthReceived = !1, h._currentRequestURL = null, h._currentRedirectedURL = null, h._currentRequestRange = null, h._totalLength = null, h._contentLength = null, h._receivedLength = 0, h._lastTimeLoaded = 0, h;
2798
2800
  }
2799
2801
  return H(l, T), l.isSupported = function() {
2800
2802
  try {
@@ -2809,25 +2811,25 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2809
2811
  return this._speedSampler.lastSecondKBps;
2810
2812
  }, enumerable: !1, configurable: !0 }), l.prototype.open = function(u, _) {
2811
2813
  this._dataSource = u, this._range = _, this._status = b.c.kConnecting;
2812
- var c = !1;
2813
- this._dataSource.filesize != null && this._dataSource.filesize !== 0 && (c = !0, this._totalLength = this._dataSource.filesize), this._totalLengthReceived || c ? this._openSubRange() : (this._waitForTotalLength = !0, this._internalOpen(this._dataSource, { from: 0, to: -1 }));
2814
+ var h = !1;
2815
+ this._dataSource.filesize != null && this._dataSource.filesize !== 0 && (h = !0, this._totalLength = this._dataSource.filesize), this._totalLengthReceived || h ? this._openSubRange() : (this._waitForTotalLength = !0, this._internalOpen(this._dataSource, { from: 0, to: -1 }));
2814
2816
  }, l.prototype._openSubRange = function() {
2815
- var u = 1024 * this._currentChunkSizeKB, _ = this._range.from + this._receivedLength, c = _ + u;
2816
- this._contentLength != null && c - this._range.from >= this._contentLength && (c = this._range.from + this._contentLength - 1), this._currentRequestRange = { from: _, to: c }, this._internalOpen(this._dataSource, this._currentRequestRange);
2817
+ var u = 1024 * this._currentChunkSizeKB, _ = this._range.from + this._receivedLength, h = _ + u;
2818
+ this._contentLength != null && h - this._range.from >= this._contentLength && (h = this._range.from + this._contentLength - 1), this._currentRequestRange = { from: _, to: h }, this._internalOpen(this._dataSource, this._currentRequestRange);
2817
2819
  }, l.prototype._internalOpen = function(u, _) {
2818
2820
  this._lastTimeLoaded = 0;
2819
- var c = u.url;
2820
- this._config.reuseRedirectedURL && (this._currentRedirectedURL != null ? c = this._currentRedirectedURL : u.redirectedURL != null && (c = u.redirectedURL));
2821
- var P = this._seekHandler.getConfig(c, _);
2821
+ var h = u.url;
2822
+ this._config.reuseRedirectedURL && (this._currentRedirectedURL != null ? h = this._currentRedirectedURL : u.redirectedURL != null && (h = u.redirectedURL));
2823
+ var P = this._seekHandler.getConfig(h, _);
2822
2824
  this._currentRequestURL = P.url;
2823
2825
  var D = this._xhr = new XMLHttpRequest();
2824
2826
  if (D.open("GET", P.url, !0), D.responseType = "arraybuffer", D.onreadystatechange = this._onReadyStateChange.bind(this), D.onprogress = this._onProgress.bind(this), D.onload = this._onLoad.bind(this), D.onerror = this._onXhrError.bind(this), u.withCredentials && (D.withCredentials = !0), typeof P.headers == "object") {
2825
- var F = P.headers;
2826
- for (var ee in F) F.hasOwnProperty(ee) && D.setRequestHeader(ee, F[ee]);
2827
+ var V = P.headers;
2828
+ for (var ee in V) V.hasOwnProperty(ee) && D.setRequestHeader(ee, V[ee]);
2827
2829
  }
2828
2830
  if (typeof this._config.headers == "object") {
2829
- F = this._config.headers;
2830
- for (var ee in F) F.hasOwnProperty(ee) && D.setRequestHeader(ee, F[ee]);
2831
+ V = this._config.headers;
2832
+ for (var ee in V) V.hasOwnProperty(ee) && D.setRequestHeader(ee, V[ee]);
2831
2833
  }
2832
2834
  D.send();
2833
2835
  }, l.prototype.abort = function() {
@@ -2838,8 +2840,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2838
2840
  var _ = u.target;
2839
2841
  if (_.readyState === 2) {
2840
2842
  if (_.responseURL != null) {
2841
- var c = this._seekHandler.removeURLParameters(_.responseURL);
2842
- _.responseURL !== this._currentRequestURL && c !== this._currentRedirectedURL && (this._currentRedirectedURL = c, this._onURLRedirect && this._onURLRedirect(c));
2843
+ var h = this._seekHandler.removeURLParameters(_.responseURL);
2844
+ _.responseURL !== this._currentRequestURL && h !== this._currentRedirectedURL && (this._currentRedirectedURL = h, this._onURLRedirect && this._onURLRedirect(h));
2843
2845
  }
2844
2846
  if (_.status >= 200 && _.status <= 299) {
2845
2847
  if (this._waitForTotalLength) return;
@@ -2855,8 +2857,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2855
2857
  var _ = !1;
2856
2858
  if (this._waitForTotalLength) {
2857
2859
  this._waitForTotalLength = !1, this._totalLengthReceived = !0, _ = !0;
2858
- var c = u.total;
2859
- this._internalAbort(), c != null & c !== 0 && (this._totalLength = c);
2860
+ var h = u.total;
2861
+ this._internalAbort(), h != null & h !== 0 && (this._totalLength = h);
2860
2862
  }
2861
2863
  if (this._range.to === -1 ? this._contentLength = this._totalLength - this._range.from : this._contentLength = this._range.to - this._range.from + 1, _) return void this._openSubRange();
2862
2864
  this._onContentLengthKnown && this._onContentLengthKnown(this._contentLength);
@@ -2865,11 +2867,11 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2865
2867
  this._lastTimeLoaded = u.loaded, this._speedSampler.addBytes(P);
2866
2868
  }
2867
2869
  }, l.prototype._normalizeSpeed = function(u) {
2868
- var _ = this._chunkSizeKBList, c = _.length - 1, P = 0, D = 0, F = c;
2870
+ var _ = this._chunkSizeKBList, h = _.length - 1, P = 0, D = 0, V = h;
2869
2871
  if (u < _[0]) return _[0];
2870
- for (; D <= F; ) {
2871
- if ((P = D + Math.floor((F - D) / 2)) === c || u >= _[P] && u < _[P + 1]) return _[P];
2872
- _[P] < u ? D = P + 1 : F = P - 1;
2872
+ for (; D <= V; ) {
2873
+ if ((P = D + Math.floor((V - D) / 2)) === h || u >= _[P] && u < _[P + 1]) return _[P];
2874
+ _[P] < u ? D = P + 1 : V = P - 1;
2873
2875
  }
2874
2876
  }, l.prototype._onLoad = function(u) {
2875
2877
  if (this._status !== b.c.kError) if (this._waitForTotalLength) this._waitForTotalLength = !1;
@@ -2877,26 +2879,26 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2877
2879
  this._lastTimeLoaded = 0;
2878
2880
  var _ = this._speedSampler.lastSecondKBps;
2879
2881
  if (_ === 0 && (this._zeroSpeedChunkCount++, this._zeroSpeedChunkCount >= 3 && (_ = this._speedSampler.currentKBps)), _ !== 0) {
2880
- var c = this._normalizeSpeed(_);
2881
- this._currentSpeedNormalized !== c && (this._currentSpeedNormalized = c, this._currentChunkSizeKB = c);
2882
+ var h = this._normalizeSpeed(_);
2883
+ this._currentSpeedNormalized !== h && (this._currentSpeedNormalized = h, this._currentChunkSizeKB = h);
2882
2884
  }
2883
2885
  var P = u.target.response, D = this._range.from + this._receivedLength;
2884
2886
  this._receivedLength += P.byteLength;
2885
- var F = !1;
2886
- this._contentLength != null && this._receivedLength < this._contentLength ? this._openSubRange() : F = !0, this._onDataArrival && this._onDataArrival(P, D, this._receivedLength), F && (this._status = b.c.kComplete, this._onComplete && this._onComplete(this._range.from, this._range.from + this._receivedLength - 1));
2887
+ var V = !1;
2888
+ this._contentLength != null && this._receivedLength < this._contentLength ? this._openSubRange() : V = !0, this._onDataArrival && this._onDataArrival(P, D, this._receivedLength), V && (this._status = b.c.kComplete, this._onComplete && this._onComplete(this._range.from, this._range.from + this._receivedLength - 1));
2887
2889
  }
2888
2890
  }, l.prototype._onXhrError = function(u) {
2889
2891
  this._status = b.c.kError;
2890
- var _ = 0, c = null;
2891
- if (this._contentLength && this._receivedLength > 0 && this._receivedLength < this._contentLength ? (_ = b.b.EARLY_EOF, c = { code: -1, msg: "RangeLoader meet Early-Eof" }) : (_ = b.b.EXCEPTION, c = { code: -1, msg: u.constructor.name + " " + u.type }), !this._onError) throw new f.d(c.msg);
2892
- this._onError(_, c);
2892
+ var _ = 0, h = null;
2893
+ if (this._contentLength && this._receivedLength > 0 && this._receivedLength < this._contentLength ? (_ = b.b.EARLY_EOF, h = { code: -1, msg: "RangeLoader meet Early-Eof" }) : (_ = b.b.EXCEPTION, h = { code: -1, msg: u.constructor.name + " " + u.type }), !this._onError) throw new f.d(h.msg);
2894
+ this._onError(_, h);
2893
2895
  }, l;
2894
- }(b.a), se = /* @__PURE__ */ function() {
2896
+ }(b.a), ne = /* @__PURE__ */ function() {
2895
2897
  var T = function(l, u) {
2896
- return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, c) {
2897
- _.__proto__ = c;
2898
- } || function(_, c) {
2899
- for (var P in c) c.hasOwnProperty(P) && (_[P] = c[P]);
2898
+ return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, h) {
2899
+ _.__proto__ = h;
2900
+ } || function(_, h) {
2901
+ for (var P in h) h.hasOwnProperty(P) && (_[P] = h[P]);
2900
2902
  })(l, u);
2901
2903
  };
2902
2904
  return function(l, u) {
@@ -2905,12 +2907,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2905
2907
  }
2906
2908
  T(l, u), l.prototype = u === null ? Object.create(u) : (_.prototype = u.prototype, new _());
2907
2909
  };
2908
- }(), Y = function(T) {
2910
+ }(), X = function(T) {
2909
2911
  function l() {
2910
2912
  var u = T.call(this, "websocket-loader") || this;
2911
2913
  return u.TAG = "WebSocketLoader", u._needStash = !0, u._ws = null, u._requestAbort = !1, u._receivedLength = 0, u;
2912
2914
  }
2913
- return se(l, T), l.isSupported = function() {
2915
+ return ne(l, T), l.isSupported = function() {
2914
2916
  try {
2915
2917
  return self.WebSocket !== void 0;
2916
2918
  } catch {
@@ -2924,9 +2926,9 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2924
2926
  _.binaryType = "arraybuffer", _.onopen = this._onWebSocketOpen.bind(this), _.onclose = this._onWebSocketClose.bind(this), _.onmessage = this._onWebSocketMessage.bind(this), _.onerror = this._onWebSocketError.bind(this), this._status = b.c.kConnecting;
2925
2927
  } catch (P) {
2926
2928
  this._status = b.c.kError;
2927
- var c = { code: P.code, msg: P.message };
2928
- if (!this._onError) throw new f.d(c.msg);
2929
- this._onError(b.b.EXCEPTION, c);
2929
+ var h = { code: P.code, msg: P.message };
2930
+ if (!this._onError) throw new f.d(h.msg);
2931
+ this._onError(b.b.EXCEPTION, h);
2930
2932
  }
2931
2933
  }, l.prototype.abort = function() {
2932
2934
  var u = this._ws;
@@ -2939,10 +2941,10 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2939
2941
  var _ = this;
2940
2942
  if (u.data instanceof ArrayBuffer) this._dispatchArrayBuffer(u.data);
2941
2943
  else if (u.data instanceof Blob) {
2942
- var c = new FileReader();
2943
- c.onload = function() {
2944
- _._dispatchArrayBuffer(c.result);
2945
- }, c.readAsArrayBuffer(u.data);
2944
+ var h = new FileReader();
2945
+ h.onload = function() {
2946
+ _._dispatchArrayBuffer(h.result);
2947
+ }, h.readAsArrayBuffer(u.data);
2946
2948
  } else {
2947
2949
  this._status = b.c.kError;
2948
2950
  var P = { code: -1, msg: "Unsupported WebSocket message type: " + u.data.constructor.name };
@@ -2950,23 +2952,23 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2950
2952
  this._onError(b.b.EXCEPTION, P);
2951
2953
  }
2952
2954
  }, l.prototype._dispatchArrayBuffer = function(u) {
2953
- var _ = u, c = this._receivedLength;
2954
- this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_, c, this._receivedLength);
2955
+ var _ = u, h = this._receivedLength;
2956
+ this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_, h, this._receivedLength);
2955
2957
  }, l.prototype._onWebSocketError = function(u) {
2956
2958
  this._status = b.c.kError;
2957
2959
  var _ = { code: u.code, msg: u.message };
2958
2960
  if (!this._onError) throw new f.d(_.msg);
2959
2961
  this._onError(b.b.EXCEPTION, _);
2960
2962
  }, l;
2961
- }(b.a), ae = function() {
2963
+ }(b.a), ie = function() {
2962
2964
  function T(l) {
2963
2965
  this._zeroStart = l || !1;
2964
2966
  }
2965
2967
  return T.prototype.getConfig = function(l, u) {
2966
2968
  var _ = {};
2967
2969
  if (u.from !== 0 || u.to !== -1) {
2968
- var c = void 0;
2969
- c = u.to !== -1 ? "bytes=" + u.from.toString() + "-" + u.to.toString() : "bytes=" + u.from.toString() + "-", _.Range = c;
2970
+ var h = void 0;
2971
+ h = u.to !== -1 ? "bytes=" + u.from.toString() + "-" + u.to.toString() : "bytes=" + u.from.toString() + "-", _.Range = h;
2970
2972
  } else this._zeroStart && (_.Range = "bytes=0-");
2971
2973
  return { url: l, headers: _ };
2972
2974
  }, T.prototype.removeURLParameters = function(l) {
@@ -2979,17 +2981,17 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
2979
2981
  return T.prototype.getConfig = function(l, u) {
2980
2982
  var _ = l;
2981
2983
  if (u.from !== 0 || u.to !== -1) {
2982
- var c = !0;
2983
- _.indexOf("?") === -1 && (_ += "?", c = !1), c && (_ += "&"), _ += this._startName + "=" + u.from.toString(), u.to !== -1 && (_ += "&" + this._endName + "=" + u.to.toString());
2984
+ var h = !0;
2985
+ _.indexOf("?") === -1 && (_ += "?", h = !1), h && (_ += "&"), _ += this._startName + "=" + u.from.toString(), u.to !== -1 && (_ += "&" + this._endName + "=" + u.to.toString());
2984
2986
  }
2985
2987
  return { url: _, headers: {} };
2986
2988
  }, T.prototype.removeURLParameters = function(l) {
2987
- var u = l.split("?")[0], _ = void 0, c = l.indexOf("?");
2988
- c !== -1 && (_ = l.substring(c + 1));
2989
+ var u = l.split("?")[0], _ = void 0, h = l.indexOf("?");
2990
+ h !== -1 && (_ = l.substring(h + 1));
2989
2991
  var P = "";
2990
- if (_ != null && _.length > 0) for (var D = _.split("&"), F = 0; F < D.length; F++) {
2991
- var ee = D[F].split("="), pe = F > 0;
2992
- ee[0] !== this._startName && ee[0] !== this._endName && (pe && (P += "&"), P += D[F]);
2992
+ if (_ != null && _.length > 0) for (var D = _.split("&"), V = 0; V < D.length; V++) {
2993
+ var ee = D[V].split("="), pe = V > 0;
2994
+ ee[0] !== this._startName && ee[0] !== this._endName && (pe && (P += "&"), P += D[V]);
2993
2995
  }
2994
2996
  return P.length === 0 ? u : u + "?" + P;
2995
2997
  }, T;
@@ -3040,12 +3042,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3040
3042
  }, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "currentRedirectedURL", { get: function() {
3041
3043
  return this._redirectedURL || this._dataSource.redirectedURL;
3042
3044
  }, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "currentSpeed", { get: function() {
3043
- return this._loaderClass === ue ? this._loader.currentSpeed : this._speedSampler.lastSecondKBps;
3045
+ return this._loaderClass === le ? this._loader.currentSpeed : this._speedSampler.lastSecondKBps;
3044
3046
  }, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "loaderType", { get: function() {
3045
3047
  return this._loader.type;
3046
3048
  }, enumerable: !1, configurable: !0 }), T.prototype._selectSeekHandler = function() {
3047
3049
  var l = this._config;
3048
- if (l.seekType === "range") this._seekHandler = new ae(this._config.rangeLoadZeroStart);
3050
+ if (l.seekType === "range") this._seekHandler = new ie(this._config.rangeLoadZeroStart);
3049
3051
  else if (l.seekType === "param") {
3050
3052
  var u = l.seekParamStart || "bstart", _ = l.seekParamEnd || "bend";
3051
3053
  this._seekHandler = new y(u, _);
@@ -3056,12 +3058,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3056
3058
  }
3057
3059
  }, T.prototype._selectLoader = function() {
3058
3060
  if (this._config.customLoader != null) this._loaderClass = this._config.customLoader;
3059
- else if (this._isWebSocketURL) this._loaderClass = Y;
3060
- else if (x.isSupported()) this._loaderClass = x;
3061
- else if (V.isSupported()) this._loaderClass = V;
3061
+ else if (this._isWebSocketURL) this._loaderClass = X;
3062
+ else if (M.isSupported()) this._loaderClass = M;
3063
+ else if (j.isSupported()) this._loaderClass = j;
3062
3064
  else {
3063
- if (!ue.isSupported()) throw new f.d("Your browser doesn't support xhr with arraybuffer responseType!");
3064
- this._loaderClass = ue;
3065
+ if (!le.isSupported()) throw new f.d("Your browser doesn't support xhr with arraybuffer responseType!");
3066
+ this._loaderClass = le;
3065
3067
  }
3066
3068
  }, T.prototype._createLoader = function() {
3067
3069
  this._loader = new this._loaderClass(this._seekHandler, this._config), this._loader.needStashBuffer === !1 && (this._enableStash = !1), this._loader.onContentLengthKnown = this._onContentLengthKnown.bind(this), this._loader.onURLRedirect = this._onURLRedirect.bind(this), this._loader.onDataArrival = this._onLoaderChunkArrival.bind(this), this._loader.onComplete = this._onLoaderComplete.bind(this), this._loader.onError = this._onLoaderError.bind(this);
@@ -3091,17 +3093,17 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3091
3093
  if ((u += 1048576) !== this._bufferSize) {
3092
3094
  var _ = new ArrayBuffer(u);
3093
3095
  if (this._stashUsed > 0) {
3094
- var c = new Uint8Array(this._stashBuffer, 0, this._stashUsed);
3095
- new Uint8Array(_, 0, u).set(c, 0);
3096
+ var h = new Uint8Array(this._stashBuffer, 0, this._stashUsed);
3097
+ new Uint8Array(_, 0, u).set(h, 0);
3096
3098
  }
3097
3099
  this._stashBuffer = _, this._bufferSize = u;
3098
3100
  }
3099
3101
  }, T.prototype._normalizeSpeed = function(l) {
3100
- var u = this._speedNormalizeList, _ = u.length - 1, c = 0, P = 0, D = _;
3102
+ var u = this._speedNormalizeList, _ = u.length - 1, h = 0, P = 0, D = _;
3101
3103
  if (l < u[0]) return u[0];
3102
3104
  for (; P <= D; ) {
3103
- if ((c = P + Math.floor((D - P) / 2)) === _ || l >= u[c] && l < u[c + 1]) return u[c];
3104
- u[c] < l ? P = c + 1 : D = c - 1;
3105
+ if ((h = P + Math.floor((D - P) / 2)) === _ || l >= u[h] && l < u[h + 1]) return u[h];
3106
+ u[h] < l ? P = h + 1 : D = h - 1;
3105
3107
  }
3106
3108
  }, T.prototype._adjustStashSize = function(l) {
3107
3109
  var u = 0;
@@ -3118,9 +3120,9 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3118
3120
  if (!this._onDataArrival) throw new f.a("IOController: No existing consumer (onDataArrival) callback!");
3119
3121
  if (!this._paused) {
3120
3122
  this._isEarlyEofReconnecting && (this._isEarlyEofReconnecting = !1, this._onRecoveredEarlyEof && this._onRecoveredEarlyEof()), this._speedSampler.addBytes(l.byteLength);
3121
- var c = this._speedSampler.lastSecondKBps;
3122
- if (c !== 0) {
3123
- var P = this._normalizeSpeed(c);
3123
+ var h = this._speedSampler.lastSecondKBps;
3124
+ if (h !== 0) {
3125
+ var P = this._normalizeSpeed(h);
3124
3126
  this._speedNormalized !== P && (this._speedNormalized = P, this._adjustStashSize(P));
3125
3127
  }
3126
3128
  if (this._enableStash) if (this._stashUsed === 0 && this._stashByteStart === 0 && (this._stashByteStart = u), this._stashUsed + l.byteLength <= this._stashSize)
@@ -3129,10 +3131,10 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3129
3131
  var D = this._stashBuffer.slice(0, this._stashUsed);
3130
3132
  (pe = this._dispatchChunks(D, this._stashByteStart)) < D.byteLength ? pe > 0 && (ve = new Uint8Array(D, pe), ee.set(ve, 0), this._stashUsed = ve.byteLength, this._stashByteStart += pe) : (this._stashUsed = 0, this._stashByteStart += pe), this._stashUsed + l.byteLength > this._bufferSize && (this._expandBuffer(this._stashUsed + l.byteLength), ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)), ee.set(new Uint8Array(l), this._stashUsed), this._stashUsed += l.byteLength;
3131
3133
  } else
3132
- (pe = this._dispatchChunks(l, u)) < l.byteLength && ((F = l.byteLength - pe) > this._bufferSize && (this._expandBuffer(F), ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)), ee.set(new Uint8Array(l, pe), 0), this._stashUsed += F, this._stashByteStart = u + pe);
3134
+ (pe = this._dispatchChunks(l, u)) < l.byteLength && ((V = l.byteLength - pe) > this._bufferSize && (this._expandBuffer(V), ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)), ee.set(new Uint8Array(l, pe), 0), this._stashUsed += V, this._stashByteStart = u + pe);
3133
3135
  else if (this._stashUsed === 0) {
3134
- var F;
3135
- (pe = this._dispatchChunks(l, u)) < l.byteLength && ((F = l.byteLength - pe) > this._bufferSize && this._expandBuffer(F), (ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)).set(new Uint8Array(l, pe), 0), this._stashUsed += F, this._stashByteStart = u + pe);
3136
+ var V;
3137
+ (pe = this._dispatchChunks(l, u)) < l.byteLength && ((V = l.byteLength - pe) > this._bufferSize && this._expandBuffer(V), (ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)).set(new Uint8Array(l, pe), 0), this._stashUsed += V, this._stashByteStart = u + pe);
3136
3138
  } else {
3137
3139
  var ee, pe;
3138
3140
  if (this._stashUsed + l.byteLength > this._bufferSize && this._expandBuffer(this._stashUsed + l.byteLength), (ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)).set(new Uint8Array(l), this._stashUsed), this._stashUsed += l.byteLength, (pe = this._dispatchChunks(this._stashBuffer.slice(0, this._stashUsed), this._stashByteStart)) < this._stashUsed && pe > 0) {
@@ -3144,7 +3146,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3144
3146
  }
3145
3147
  }, T.prototype._flushStashBuffer = function(l) {
3146
3148
  if (this._stashUsed > 0) {
3147
- var u = this._stashBuffer.slice(0, this._stashUsed), _ = this._dispatchChunks(u, this._stashByteStart), c = u.byteLength - _;
3149
+ var u = this._stashBuffer.slice(0, this._stashUsed), _ = this._dispatchChunks(u, this._stashByteStart), h = u.byteLength - _;
3148
3150
  if (_ < u.byteLength) {
3149
3151
  if (!l) {
3150
3152
  if (_ > 0) {
@@ -3153,9 +3155,9 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3153
3155
  }
3154
3156
  return 0;
3155
3157
  }
3156
- B.a.w(this.TAG, c + " bytes unconsumed data remain when flush buffer, dropped");
3158
+ B.a.w(this.TAG, h + " bytes unconsumed data remain when flush buffer, dropped");
3157
3159
  }
3158
- return this._stashUsed = 0, this._stashByteStart = 0, c;
3160
+ return this._stashUsed = 0, this._stashByteStart = 0, h;
3159
3161
  }
3160
3162
  return 0;
3161
3163
  }, T.prototype._onLoaderComplete = function(l, u) {
@@ -3190,7 +3192,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3190
3192
  if (m == null) throw new TypeError("Cannot convert undefined or null to object");
3191
3193
  for (var b = Object(m), v = 1; v < arguments.length; v++) {
3192
3194
  var f = arguments[v];
3193
- if (f != null) for (var L in f) f.hasOwnProperty(L) && (b[L] = f[L]);
3195
+ if (f != null) for (var k in f) f.hasOwnProperty(k) && (b[k] = f[k]);
3194
3196
  }
3195
3197
  return b;
3196
3198
  }, typeof self.Promise != "function" && O(15).polyfill();
@@ -3200,77 +3202,77 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3200
3202
  }, function(fe, Z, O) {
3201
3203
  function U(v) {
3202
3204
  var f = {};
3203
- function L(C) {
3205
+ function k(C) {
3204
3206
  if (f[C]) return f[C].exports;
3205
- var V = f[C] = { i: C, l: !1, exports: {} };
3206
- return v[C].call(V.exports, V, V.exports, L), V.l = !0, V.exports;
3207
+ var j = f[C] = { i: C, l: !1, exports: {} };
3208
+ return v[C].call(j.exports, j, j.exports, k), j.l = !0, j.exports;
3207
3209
  }
3208
- L.m = v, L.c = f, L.i = function(C) {
3210
+ k.m = v, k.c = f, k.i = function(C) {
3209
3211
  return C;
3210
- }, L.d = function(C, V, H) {
3211
- L.o(C, V) || Object.defineProperty(C, V, { configurable: !1, enumerable: !0, get: H });
3212
- }, L.r = function(C) {
3212
+ }, k.d = function(C, j, H) {
3213
+ k.o(C, j) || Object.defineProperty(C, j, { configurable: !1, enumerable: !0, get: H });
3214
+ }, k.r = function(C) {
3213
3215
  Object.defineProperty(C, "__esModule", { value: !0 });
3214
- }, L.n = function(C) {
3215
- var V = C && C.__esModule ? function() {
3216
+ }, k.n = function(C) {
3217
+ var j = C && C.__esModule ? function() {
3216
3218
  return C.default;
3217
3219
  } : function() {
3218
3220
  return C;
3219
3221
  };
3220
- return L.d(V, "a", V), V;
3221
- }, L.o = function(C, V) {
3222
- return Object.prototype.hasOwnProperty.call(C, V);
3223
- }, L.p = "/", L.oe = function(C) {
3224
- throw C;
3222
+ return k.d(j, "a", j), j;
3223
+ }, k.o = function(C, j) {
3224
+ return Object.prototype.hasOwnProperty.call(C, j);
3225
+ }, k.p = "/", k.oe = function(C) {
3226
+ throw console.error(C), C;
3225
3227
  };
3226
- var x = L(L.s = ENTRY_MODULE);
3227
- return x.default || x;
3228
+ var M = k(k.s = ENTRY_MODULE);
3229
+ return M.default || M;
3228
3230
  }
3229
3231
  function B(v) {
3230
3232
  return (v + "").replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
3231
3233
  }
3232
- function m(v, f, L) {
3233
- var x = {};
3234
- x[L] = [];
3235
- var C = f.toString(), V = C.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);
3236
- if (!V) return x;
3237
- for (var H, ue = V[1], se = new RegExp("(\\\\n|\\W)" + B(ue) + "\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)", "g"); H = se.exec(C); ) H[3] !== "dll-reference" && x[L].push(H[3]);
3238
- for (se = new RegExp("\\(" + B(ue) + '\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)', "g"); H = se.exec(C); ) v[H[2]] || (x[L].push(H[1]), v[H[2]] = O(H[1]).m), x[H[2]] = x[H[2]] || [], x[H[2]].push(H[4]);
3239
- for (var Y, ae = Object.keys(x), y = 0; y < ae.length; y++) for (var G = 0; G < x[ae[y]].length; G++) Y = x[ae[y]][G], isNaN(1 * Y) || (x[ae[y]][G] = 1 * x[ae[y]][G]);
3240
- return x;
3234
+ function m(v, f, k) {
3235
+ var M = {};
3236
+ M[k] = [];
3237
+ var C = f.toString(), j = C.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);
3238
+ if (!j) return M;
3239
+ for (var H, le = j[1], ne = new RegExp("(\\\\n|\\W)" + B(le) + "\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)", "g"); H = ne.exec(C); ) H[3] !== "dll-reference" && M[k].push(H[3]);
3240
+ for (ne = new RegExp("\\(" + B(le) + '\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)', "g"); H = ne.exec(C); ) v[H[2]] || (M[k].push(H[1]), v[H[2]] = O(H[1]).m), M[H[2]] = M[H[2]] || [], M[H[2]].push(H[4]);
3241
+ for (var X, ie = Object.keys(M), y = 0; y < ie.length; y++) for (var G = 0; G < M[ie[y]].length; G++) X = M[ie[y]][G], isNaN(1 * X) || (M[ie[y]][G] = 1 * M[ie[y]][G]);
3242
+ return M;
3241
3243
  }
3242
3244
  function b(v) {
3243
- return Object.keys(v).reduce(function(f, L) {
3244
- return f || v[L].length > 0;
3245
+ return Object.keys(v).reduce(function(f, k) {
3246
+ return f || v[k].length > 0;
3245
3247
  }, !1);
3246
3248
  }
3247
3249
  fe.exports = function(v, f) {
3248
3250
  f = f || {};
3249
- var L = { main: O.m }, x = f.all ? { main: Object.keys(L.main) } : function(se, Y) {
3250
- for (var ae = { main: [Y] }, y = { main: [] }, G = { main: {} }; b(ae); ) for (var T = Object.keys(ae), l = 0; l < T.length; l++) {
3251
- var u = T[l], _ = ae[u].pop();
3252
- if (G[u] = G[u] || {}, !G[u][_] && se[u][_]) {
3251
+ var k = { main: O.m }, M = f.all ? { main: Object.keys(k.main) } : function(ne, X) {
3252
+ for (var ie = { main: [X] }, y = { main: [] }, G = { main: {} }; b(ie); ) for (var T = Object.keys(ie), l = 0; l < T.length; l++) {
3253
+ var u = T[l], _ = ie[u].pop();
3254
+ if (G[u] = G[u] || {}, !G[u][_] && ne[u][_]) {
3253
3255
  G[u][_] = !0, y[u] = y[u] || [], y[u].push(_);
3254
- for (var c = m(se, se[u][_], u), P = Object.keys(c), D = 0; D < P.length; D++) ae[P[D]] = ae[P[D]] || [], ae[P[D]] = ae[P[D]].concat(c[P[D]]);
3256
+ for (var h = m(ne, ne[u][_], u), P = Object.keys(h), D = 0; D < P.length; D++) ie[P[D]] = ie[P[D]] || [], ie[P[D]] = ie[P[D]].concat(h[P[D]]);
3255
3257
  }
3256
3258
  }
3257
3259
  return y;
3258
- }(L, v), C = "";
3259
- Object.keys(x).filter(function(se) {
3260
- return se !== "main";
3261
- }).forEach(function(se) {
3262
- for (var Y = 0; x[se][Y]; ) Y++;
3263
- x[se].push(Y), L[se][Y] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })", C = C + "var " + se + " = (" + U.toString().replace("ENTRY_MODULE", JSON.stringify(Y)) + ")({" + x[se].map(function(ae) {
3264
- return JSON.stringify(ae) + ": " + L[se][ae].toString();
3260
+ }(k, v), C = "";
3261
+ Object.keys(M).filter(function(ne) {
3262
+ return ne !== "main";
3263
+ }).forEach(function(ne) {
3264
+ for (var X = 0; M[ne][X]; ) X++;
3265
+ M[ne].push(X), k[ne][X] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })", C = C + "var " + ne + " = (" + U.toString().replace("ENTRY_MODULE", JSON.stringify(X)) + ")({" + M[ne].map(function(ie) {
3266
+ return JSON.stringify(ie) + ": " + k[ne][ie].toString();
3265
3267
  }).join(",") + `});
3266
3268
  `;
3267
- }), C = C + "new ((" + U.toString().replace("ENTRY_MODULE", JSON.stringify(v)) + ")({" + x.main.map(function(se) {
3268
- return JSON.stringify(se) + ": " + L.main[se].toString();
3269
+ }), C = C + "new ((" + U.toString().replace("ENTRY_MODULE", JSON.stringify(v)) + ")({" + M.main.map(function(ne) {
3270
+ return JSON.stringify(ne) + ": " + k.main[ne].toString();
3269
3271
  }).join(",") + "}))(self);";
3270
- var V = new window.Blob([C], { type: "text/javascript" });
3271
- if (f.bare) return V;
3272
- var H = (window.URL || window.webkitURL || window.mozURL || window.msURL).createObjectURL(V), ue = new window.Worker(H);
3273
- return ue.objectURL = H, ue;
3272
+ var j = new window.Blob([C], { type: "text/javascript" });
3273
+ if (f.bare) return j;
3274
+ var H = (window.URL || window.webkitURL || window.mozURL || window.msURL).createObjectURL(j), le = new window.Worker(H);
3275
+ return le.objectURL = H, le;
3274
3276
  };
3275
3277
  }, function(fe, Z, O) {
3276
3278
  fe.exports = O(19).default;
@@ -3285,70 +3287,70 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3285
3287
  */
3286
3288
  var m;
3287
3289
  m = function() {
3288
- function b(M) {
3289
- return typeof M == "function";
3290
- }
3291
- var v = Array.isArray ? Array.isArray : function(M) {
3292
- return Object.prototype.toString.call(M) === "[object Array]";
3293
- }, f = 0, L = void 0, x = void 0, C = function(M, j) {
3294
- y[f] = M, y[f + 1] = j, (f += 2) === 2 && (x ? x(G) : c());
3295
- }, V = typeof window < "u" ? window : void 0, H = V || {}, ue = H.MutationObserver || H.WebKitMutationObserver, se = typeof self > "u" && U !== void 0 && {}.toString.call(U) === "[object process]", Y = typeof Uint8ClampedArray < "u" && typeof importScripts < "u" && typeof MessageChannel < "u";
3296
- function ae() {
3297
- var M = setTimeout;
3290
+ function b(x) {
3291
+ return typeof x == "function";
3292
+ }
3293
+ var v = Array.isArray ? Array.isArray : function(x) {
3294
+ return Object.prototype.toString.call(x) === "[object Array]";
3295
+ }, f = 0, k = void 0, M = void 0, C = function(x, F) {
3296
+ y[f] = x, y[f + 1] = F, (f += 2) === 2 && (M ? M(G) : h());
3297
+ }, j = typeof window < "u" ? window : void 0, H = j || {}, le = H.MutationObserver || H.WebKitMutationObserver, ne = typeof self > "u" && U !== void 0 && {}.toString.call(U) === "[object process]", X = typeof Uint8ClampedArray < "u" && typeof importScripts < "u" && typeof MessageChannel < "u";
3298
+ function ie() {
3299
+ var x = setTimeout;
3298
3300
  return function() {
3299
- return M(G, 1);
3301
+ return x(G, 1);
3300
3302
  };
3301
3303
  }
3302
3304
  var y = new Array(1e3);
3303
3305
  function G() {
3304
- for (var M = 0; M < f; M += 2) (0, y[M])(y[M + 1]), y[M] = void 0, y[M + 1] = void 0;
3306
+ for (var x = 0; x < f; x += 2) (0, y[x])(y[x + 1]), y[x] = void 0, y[x + 1] = void 0;
3305
3307
  f = 0;
3306
3308
  }
3307
- var T, l, u, _, c = void 0;
3308
- function P(M, j) {
3309
- var $ = this, ie = new this.constructor(ee);
3310
- ie[F] === void 0 && Se(ie);
3311
- var re = $._state;
3312
- if (re) {
3313
- var ce = arguments[re - 1];
3309
+ var T, l, u, _, h = void 0;
3310
+ function P(x, F) {
3311
+ var $ = this, re = new this.constructor(ee);
3312
+ re[V] === void 0 && Se(re);
3313
+ var ae = $._state;
3314
+ if (ae) {
3315
+ var ce = arguments[ae - 1];
3314
3316
  C(function() {
3315
- return oe(re, ie, ce, $._result);
3317
+ return oe(ae, re, ce, $._result);
3316
3318
  });
3317
- } else R($, ie, M, j);
3318
- return ie;
3319
+ } else R($, re, x, F);
3320
+ return re;
3319
3321
  }
3320
- function D(M) {
3321
- if (M && typeof M == "object" && M.constructor === this) return M;
3322
- var j = new this(ee);
3323
- return ve(j, M), j;
3322
+ function D(x) {
3323
+ if (x && typeof x == "object" && x.constructor === this) return x;
3324
+ var F = new this(ee);
3325
+ return ve(F, x), F;
3324
3326
  }
3325
- se ? c = function() {
3327
+ ne ? h = function() {
3326
3328
  return U.nextTick(G);
3327
- } : ue ? (l = 0, u = new ue(G), _ = document.createTextNode(""), u.observe(_, { characterData: !0 }), c = function() {
3329
+ } : le ? (l = 0, u = new le(G), _ = document.createTextNode(""), u.observe(_, { characterData: !0 }), h = function() {
3328
3330
  _.data = l = ++l % 2;
3329
- }) : Y ? ((T = new MessageChannel()).port1.onmessage = G, c = function() {
3331
+ }) : X ? ((T = new MessageChannel()).port1.onmessage = G, h = function() {
3330
3332
  return T.port2.postMessage(0);
3331
- }) : c = V === void 0 ? function() {
3333
+ }) : h = j === void 0 ? function() {
3332
3334
  try {
3333
- var M = Function("return this")().require("vertx");
3334
- return (L = M.runOnLoop || M.runOnContext) !== void 0 ? function() {
3335
- L(G);
3336
- } : ae();
3335
+ var x = Function("return this")().require("vertx");
3336
+ return (k = x.runOnLoop || x.runOnContext) !== void 0 ? function() {
3337
+ k(G);
3338
+ } : ie();
3337
3339
  } catch {
3338
- return ae();
3340
+ return ie();
3339
3341
  }
3340
- }() : ae();
3341
- var F = Math.random().toString(36).substring(2);
3342
+ }() : ie();
3343
+ var V = Math.random().toString(36).substring(2);
3342
3344
  function ee() {
3343
3345
  }
3344
- function pe(M, j, $) {
3345
- j.constructor === M.constructor && $ === P && j.constructor.resolve === D ? function(ie, re) {
3346
- re._state === 1 ? d(ie, re._result) : re._state === 2 ? h(ie, re._result) : R(re, void 0, function(ce) {
3347
- return ve(ie, ce);
3346
+ function pe(x, F, $) {
3347
+ F.constructor === x.constructor && $ === P && F.constructor.resolve === D ? function(re, ae) {
3348
+ ae._state === 1 ? d(re, ae._result) : ae._state === 2 ? c(re, ae._result) : R(ae, void 0, function(ce) {
3349
+ return ve(re, ce);
3348
3350
  }, function(ce) {
3349
- return h(ie, ce);
3351
+ return c(re, ce);
3350
3352
  });
3351
- }(M, j) : $ === void 0 ? d(M, j) : b($) ? function(ie, re, ce) {
3353
+ }(x, F) : $ === void 0 ? d(x, F) : b($) ? function(re, ae, ce) {
3352
3354
  C(function(we) {
3353
3355
  var Ee = !1, Oe = function(Be, $e, Qe, et) {
3354
3356
  try {
@@ -3356,168 +3358,168 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3356
3358
  } catch (tt) {
3357
3359
  return tt;
3358
3360
  }
3359
- }(ce, re, function(Be) {
3360
- Ee || (Ee = !0, re !== Be ? ve(we, Be) : d(we, Be));
3361
+ }(ce, ae, function(Be) {
3362
+ Ee || (Ee = !0, ae !== Be ? ve(we, Be) : d(we, Be));
3361
3363
  }, function(Be) {
3362
- Ee || (Ee = !0, h(we, Be));
3364
+ Ee || (Ee = !0, c(we, Be));
3363
3365
  }, we._label);
3364
- !Ee && Oe && (Ee = !0, h(we, Oe));
3365
- }, ie);
3366
- }(M, j, $) : d(M, j);
3366
+ !Ee && Oe && (Ee = !0, c(we, Oe));
3367
+ }, re);
3368
+ }(x, F, $) : d(x, F);
3367
3369
  }
3368
- function ve(M, j) {
3369
- if (M === j) h(M, new TypeError("You cannot resolve a promise with itself"));
3370
- else if (re = typeof (ie = j), ie === null || re !== "object" && re !== "function") d(M, j);
3370
+ function ve(x, F) {
3371
+ if (x === F) c(x, new TypeError("You cannot resolve a promise with itself"));
3372
+ else if (ae = typeof (re = F), re === null || ae !== "object" && ae !== "function") d(x, F);
3371
3373
  else {
3372
3374
  var $ = void 0;
3373
3375
  try {
3374
- $ = j.then;
3376
+ $ = F.then;
3375
3377
  } catch (ce) {
3376
- return void h(M, ce);
3378
+ return void c(x, ce);
3377
3379
  }
3378
- pe(M, j, $);
3380
+ pe(x, F, $);
3379
3381
  }
3380
- var ie, re;
3382
+ var re, ae;
3381
3383
  }
3382
- function k(M) {
3383
- M._onerror && M._onerror(M._result), X(M);
3384
+ function L(x) {
3385
+ x._onerror && x._onerror(x._result), Y(x);
3384
3386
  }
3385
- function d(M, j) {
3386
- M._state === void 0 && (M._result = j, M._state = 1, M._subscribers.length !== 0 && C(X, M));
3387
+ function d(x, F) {
3388
+ x._state === void 0 && (x._result = F, x._state = 1, x._subscribers.length !== 0 && C(Y, x));
3387
3389
  }
3388
- function h(M, j) {
3389
- M._state === void 0 && (M._state = 2, M._result = j, C(k, M));
3390
+ function c(x, F) {
3391
+ x._state === void 0 && (x._state = 2, x._result = F, C(L, x));
3390
3392
  }
3391
- function R(M, j, $, ie) {
3392
- var re = M._subscribers, ce = re.length;
3393
- M._onerror = null, re[ce] = j, re[ce + 1] = $, re[ce + 2] = ie, ce === 0 && M._state && C(X, M);
3393
+ function R(x, F, $, re) {
3394
+ var ae = x._subscribers, ce = ae.length;
3395
+ x._onerror = null, ae[ce] = F, ae[ce + 1] = $, ae[ce + 2] = re, ce === 0 && x._state && C(Y, x);
3394
3396
  }
3395
- function X(M) {
3396
- var j = M._subscribers, $ = M._state;
3397
- if (j.length !== 0) {
3398
- for (var ie = void 0, re = void 0, ce = M._result, we = 0; we < j.length; we += 3) ie = j[we], re = j[we + $], ie ? oe($, ie, re, ce) : re(ce);
3399
- M._subscribers.length = 0;
3397
+ function Y(x) {
3398
+ var F = x._subscribers, $ = x._state;
3399
+ if (F.length !== 0) {
3400
+ for (var re = void 0, ae = void 0, ce = x._result, we = 0; we < F.length; we += 3) re = F[we], ae = F[we + $], re ? oe($, re, ae, ce) : ae(ce);
3401
+ x._subscribers.length = 0;
3400
3402
  }
3401
3403
  }
3402
- function oe(M, j, $, ie) {
3403
- var re = b($), ce = void 0, we = void 0, Ee = !0;
3404
- if (re) {
3404
+ function oe(x, F, $, re) {
3405
+ var ae = b($), ce = void 0, we = void 0, Ee = !0;
3406
+ if (ae) {
3405
3407
  try {
3406
- ce = $(ie);
3408
+ ce = $(re);
3407
3409
  } catch (Oe) {
3408
3410
  Ee = !1, we = Oe;
3409
3411
  }
3410
- if (j === ce) return void h(j, new TypeError("A promises callback cannot return that same promise."));
3411
- } else ce = ie;
3412
- j._state !== void 0 || (re && Ee ? ve(j, ce) : Ee === !1 ? h(j, we) : M === 1 ? d(j, ce) : M === 2 && h(j, ce));
3412
+ if (F === ce) return void c(F, new TypeError("A promises callback cannot return that same promise."));
3413
+ } else ce = re;
3414
+ F._state !== void 0 || (ae && Ee ? ve(F, ce) : Ee === !1 ? c(F, we) : x === 1 ? d(F, ce) : x === 2 && c(F, ce));
3413
3415
  }
3414
3416
  var me = 0;
3415
- function Se(M) {
3416
- M[F] = me++, M._state = void 0, M._result = void 0, M._subscribers = [];
3417
+ function Se(x) {
3418
+ x[V] = me++, x._state = void 0, x._result = void 0, x._subscribers = [];
3417
3419
  }
3418
3420
  var De = function() {
3419
- function M(j, $) {
3420
- this._instanceConstructor = j, this.promise = new j(ee), this.promise[F] || Se(this.promise), v($) ? (this.length = $.length, this._remaining = $.length, this._result = new Array(this.length), this.length === 0 ? d(this.promise, this._result) : (this.length = this.length || 0, this._enumerate($), this._remaining === 0 && d(this.promise, this._result))) : h(this.promise, new Error("Array Methods must be provided an Array"));
3421
+ function x(F, $) {
3422
+ this._instanceConstructor = F, this.promise = new F(ee), this.promise[V] || Se(this.promise), v($) ? (this.length = $.length, this._remaining = $.length, this._result = new Array(this.length), this.length === 0 ? d(this.promise, this._result) : (this.length = this.length || 0, this._enumerate($), this._remaining === 0 && d(this.promise, this._result))) : c(this.promise, new Error("Array Methods must be provided an Array"));
3421
3423
  }
3422
- return M.prototype._enumerate = function(j) {
3423
- for (var $ = 0; this._state === void 0 && $ < j.length; $++) this._eachEntry(j[$], $);
3424
- }, M.prototype._eachEntry = function(j, $) {
3425
- var ie = this._instanceConstructor, re = ie.resolve;
3426
- if (re === D) {
3424
+ return x.prototype._enumerate = function(F) {
3425
+ for (var $ = 0; this._state === void 0 && $ < F.length; $++) this._eachEntry(F[$], $);
3426
+ }, x.prototype._eachEntry = function(F, $) {
3427
+ var re = this._instanceConstructor, ae = re.resolve;
3428
+ if (ae === D) {
3427
3429
  var ce = void 0, we = void 0, Ee = !1;
3428
3430
  try {
3429
- ce = j.then;
3431
+ ce = F.then;
3430
3432
  } catch (Be) {
3431
3433
  Ee = !0, we = Be;
3432
3434
  }
3433
- if (ce === P && j._state !== void 0) this._settledAt(j._state, $, j._result);
3434
- else if (typeof ce != "function") this._remaining--, this._result[$] = j;
3435
- else if (ie === Te) {
3436
- var Oe = new ie(ee);
3437
- Ee ? h(Oe, we) : pe(Oe, j, ce), this._willSettleAt(Oe, $);
3438
- } else this._willSettleAt(new ie(function(Be) {
3439
- return Be(j);
3435
+ if (ce === P && F._state !== void 0) this._settledAt(F._state, $, F._result);
3436
+ else if (typeof ce != "function") this._remaining--, this._result[$] = F;
3437
+ else if (re === Te) {
3438
+ var Oe = new re(ee);
3439
+ Ee ? c(Oe, we) : pe(Oe, F, ce), this._willSettleAt(Oe, $);
3440
+ } else this._willSettleAt(new re(function(Be) {
3441
+ return Be(F);
3440
3442
  }), $);
3441
- } else this._willSettleAt(re(j), $);
3442
- }, M.prototype._settledAt = function(j, $, ie) {
3443
- var re = this.promise;
3444
- re._state === void 0 && (this._remaining--, j === 2 ? h(re, ie) : this._result[$] = ie), this._remaining === 0 && d(re, this._result);
3445
- }, M.prototype._willSettleAt = function(j, $) {
3446
- var ie = this;
3447
- R(j, void 0, function(re) {
3448
- return ie._settledAt(1, $, re);
3449
- }, function(re) {
3450
- return ie._settledAt(2, $, re);
3443
+ } else this._willSettleAt(ae(F), $);
3444
+ }, x.prototype._settledAt = function(F, $, re) {
3445
+ var ae = this.promise;
3446
+ ae._state === void 0 && (this._remaining--, F === 2 ? c(ae, re) : this._result[$] = re), this._remaining === 0 && d(ae, this._result);
3447
+ }, x.prototype._willSettleAt = function(F, $) {
3448
+ var re = this;
3449
+ R(F, void 0, function(ae) {
3450
+ return re._settledAt(1, $, ae);
3451
+ }, function(ae) {
3452
+ return re._settledAt(2, $, ae);
3451
3453
  });
3452
- }, M;
3454
+ }, x;
3453
3455
  }(), Te = function() {
3454
- function M(j) {
3455
- this[F] = me++, this._result = this._state = void 0, this._subscribers = [], ee !== j && (typeof j != "function" && function() {
3456
+ function x(F) {
3457
+ this[V] = me++, this._result = this._state = void 0, this._subscribers = [], ee !== F && (typeof F != "function" && function() {
3456
3458
  throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
3457
- }(), this instanceof M ? function($, ie) {
3459
+ }(), this instanceof x ? function($, re) {
3458
3460
  try {
3459
- ie(function(re) {
3460
- ve($, re);
3461
- }, function(re) {
3462
- h($, re);
3461
+ re(function(ae) {
3462
+ ve($, ae);
3463
+ }, function(ae) {
3464
+ c($, ae);
3463
3465
  });
3464
- } catch (re) {
3465
- h($, re);
3466
+ } catch (ae) {
3467
+ c($, ae);
3466
3468
  }
3467
- }(this, j) : function() {
3469
+ }(this, F) : function() {
3468
3470
  throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
3469
3471
  }());
3470
3472
  }
3471
- return M.prototype.catch = function(j) {
3472
- return this.then(null, j);
3473
- }, M.prototype.finally = function(j) {
3473
+ return x.prototype.catch = function(F) {
3474
+ return this.then(null, F);
3475
+ }, x.prototype.finally = function(F) {
3474
3476
  var $ = this.constructor;
3475
- return b(j) ? this.then(function(ie) {
3476
- return $.resolve(j()).then(function() {
3477
- return ie;
3477
+ return b(F) ? this.then(function(re) {
3478
+ return $.resolve(F()).then(function() {
3479
+ return re;
3478
3480
  });
3479
- }, function(ie) {
3480
- return $.resolve(j()).then(function() {
3481
- throw ie;
3481
+ }, function(re) {
3482
+ return $.resolve(F()).then(function() {
3483
+ throw re;
3482
3484
  });
3483
- }) : this.then(j, j);
3484
- }, M;
3485
+ }) : this.then(F, F);
3486
+ }, x;
3485
3487
  }();
3486
- return Te.prototype.then = P, Te.all = function(M) {
3487
- return new De(this, M).promise;
3488
- }, Te.race = function(M) {
3489
- var j = this;
3490
- return v(M) ? new j(function($, ie) {
3491
- for (var re = M.length, ce = 0; ce < re; ce++) j.resolve(M[ce]).then($, ie);
3492
- }) : new j(function($, ie) {
3493
- return ie(new TypeError("You must pass an array to race."));
3488
+ return Te.prototype.then = P, Te.all = function(x) {
3489
+ return new De(this, x).promise;
3490
+ }, Te.race = function(x) {
3491
+ var F = this;
3492
+ return v(x) ? new F(function($, re) {
3493
+ for (var ae = x.length, ce = 0; ce < ae; ce++) F.resolve(x[ce]).then($, re);
3494
+ }) : new F(function($, re) {
3495
+ return re(new TypeError("You must pass an array to race."));
3494
3496
  });
3495
- }, Te.resolve = D, Te.reject = function(M) {
3496
- var j = new this(ee);
3497
- return h(j, M), j;
3498
- }, Te._setScheduler = function(M) {
3499
- x = M;
3500
- }, Te._setAsap = function(M) {
3501
- C = M;
3497
+ }, Te.resolve = D, Te.reject = function(x) {
3498
+ var F = new this(ee);
3499
+ return c(F, x), F;
3500
+ }, Te._setScheduler = function(x) {
3501
+ M = x;
3502
+ }, Te._setAsap = function(x) {
3503
+ C = x;
3502
3504
  }, Te._asap = C, Te.polyfill = function() {
3503
- var M = void 0;
3504
- if (B !== void 0) M = B;
3505
- else if (typeof self < "u") M = self;
3505
+ var x = void 0;
3506
+ if (B !== void 0) x = B;
3507
+ else if (typeof self < "u") x = self;
3506
3508
  else try {
3507
- M = Function("return this")();
3509
+ x = Function("return this")();
3508
3510
  } catch {
3509
3511
  throw new Error("polyfill failed because global object is unavailable in this environment");
3510
3512
  }
3511
- var j = M.Promise;
3512
- if (j) {
3513
+ var F = x.Promise;
3514
+ if (F) {
3513
3515
  var $ = null;
3514
3516
  try {
3515
- $ = Object.prototype.toString.call(j.resolve());
3517
+ $ = Object.prototype.toString.call(F.resolve());
3516
3518
  } catch {
3517
3519
  }
3518
- if ($ === "[object Promise]" && !j.cast) return;
3520
+ if ($ === "[object Promise]" && !F.cast) return;
3519
3521
  }
3520
- M.Promise = Te;
3522
+ x.Promise = Te;
3521
3523
  }, Te.Promise = Te, Te;
3522
3524
  }, fe.exports = m();
3523
3525
  }).call(this, O(16), O(17));
@@ -3529,16 +3531,16 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3529
3531
  function b() {
3530
3532
  throw new Error("clearTimeout has not been defined");
3531
3533
  }
3532
- function v(Y) {
3533
- if (O === setTimeout) return setTimeout(Y, 0);
3534
- if ((O === m || !O) && setTimeout) return O = setTimeout, setTimeout(Y, 0);
3534
+ function v(X) {
3535
+ if (O === setTimeout) return setTimeout(X, 0);
3536
+ if ((O === m || !O) && setTimeout) return O = setTimeout, setTimeout(X, 0);
3535
3537
  try {
3536
- return O(Y, 0);
3538
+ return O(X, 0);
3537
3539
  } catch {
3538
3540
  try {
3539
- return O.call(null, Y, 0);
3541
+ return O.call(null, X, 0);
3540
3542
  } catch {
3541
- return O.call(this, Y, 0);
3543
+ return O.call(this, X, 0);
3542
3544
  }
3543
3545
  }
3544
3546
  }
@@ -3554,19 +3556,19 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3554
3556
  U = b;
3555
3557
  }
3556
3558
  })();
3557
- var f, L = [], x = !1, C = -1;
3558
- function V() {
3559
- x && f && (x = !1, f.length ? L = f.concat(L) : C = -1, L.length && H());
3559
+ var f, k = [], M = !1, C = -1;
3560
+ function j() {
3561
+ M && f && (M = !1, f.length ? k = f.concat(k) : C = -1, k.length && H());
3560
3562
  }
3561
3563
  function H() {
3562
- if (!x) {
3563
- var Y = v(V);
3564
- x = !0;
3565
- for (var ae = L.length; ae; ) {
3566
- for (f = L, L = []; ++C < ae; ) f && f[C].run();
3567
- C = -1, ae = L.length;
3568
- }
3569
- f = null, x = !1, function(y) {
3564
+ if (!M) {
3565
+ var X = v(j);
3566
+ M = !0;
3567
+ for (var ie = k.length; ie; ) {
3568
+ for (f = k, k = []; ++C < ie; ) f && f[C].run();
3569
+ C = -1, ie = k.length;
3570
+ }
3571
+ f = null, M = !1, function(y) {
3570
3572
  if (U === clearTimeout) return clearTimeout(y);
3571
3573
  if ((U === b || !U) && clearTimeout) return U = clearTimeout, clearTimeout(y);
3572
3574
  try {
@@ -3578,27 +3580,27 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3578
3580
  return U.call(this, y);
3579
3581
  }
3580
3582
  }
3581
- }(Y);
3583
+ }(X);
3582
3584
  }
3583
3585
  }
3584
- function ue(Y, ae) {
3585
- this.fun = Y, this.array = ae;
3586
+ function le(X, ie) {
3587
+ this.fun = X, this.array = ie;
3586
3588
  }
3587
- function se() {
3589
+ function ne() {
3588
3590
  }
3589
- B.nextTick = function(Y) {
3590
- var ae = new Array(arguments.length - 1);
3591
- if (arguments.length > 1) for (var y = 1; y < arguments.length; y++) ae[y - 1] = arguments[y];
3592
- L.push(new ue(Y, ae)), L.length !== 1 || x || v(H);
3593
- }, ue.prototype.run = function() {
3591
+ B.nextTick = function(X) {
3592
+ var ie = new Array(arguments.length - 1);
3593
+ if (arguments.length > 1) for (var y = 1; y < arguments.length; y++) ie[y - 1] = arguments[y];
3594
+ k.push(new le(X, ie)), k.length !== 1 || M || v(H);
3595
+ }, le.prototype.run = function() {
3594
3596
  this.fun.apply(null, this.array);
3595
- }, B.title = "browser", B.browser = !0, B.env = {}, B.argv = [], B.version = "", B.versions = {}, B.on = se, B.addListener = se, B.once = se, B.off = se, B.removeListener = se, B.removeAllListeners = se, B.emit = se, B.prependListener = se, B.prependOnceListener = se, B.listeners = function(Y) {
3597
+ }, B.title = "browser", B.browser = !0, B.env = {}, B.argv = [], B.version = "", B.versions = {}, B.on = ne, B.addListener = ne, B.once = ne, B.off = ne, B.removeListener = ne, B.removeAllListeners = ne, B.emit = ne, B.prependListener = ne, B.prependOnceListener = ne, B.listeners = function(X) {
3596
3598
  return [];
3597
- }, B.binding = function(Y) {
3599
+ }, B.binding = function(X) {
3598
3600
  throw new Error("process.binding is not supported");
3599
3601
  }, B.cwd = function() {
3600
3602
  return "/";
3601
- }, B.chdir = function(Y) {
3603
+ }, B.chdir = function(X) {
3602
3604
  throw new Error("process.chdir is not supported");
3603
3605
  }, B.umask = function() {
3604
3606
  return 0;
@@ -3618,18 +3620,18 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3618
3620
  O.r(Z);
3619
3621
  var U = O(9), B = O(12), m = O(10), b = O(1);
3620
3622
  Z.default = function(v) {
3621
- var f = null, L = (function(D, F) {
3622
- v.postMessage({ msg: "logcat_callback", data: { type: D, logcat: F } });
3623
+ var f = null, k = (function(D, V) {
3624
+ v.postMessage({ msg: "logcat_callback", data: { type: D, logcat: V } });
3623
3625
  }).bind(this);
3624
- function x(D, F) {
3625
- var ee = { msg: b.a.INIT_SEGMENT, data: { type: D, data: F } };
3626
- v.postMessage(ee, [F.data]);
3626
+ function M(D, V) {
3627
+ var ee = { msg: b.a.INIT_SEGMENT, data: { type: D, data: V } };
3628
+ v.postMessage(ee, [V.data]);
3627
3629
  }
3628
- function C(D, F) {
3629
- var ee = { msg: b.a.MEDIA_SEGMENT, data: { type: D, data: F } };
3630
- v.postMessage(ee, [F.data]);
3630
+ function C(D, V) {
3631
+ var ee = { msg: b.a.MEDIA_SEGMENT, data: { type: D, data: V } };
3632
+ v.postMessage(ee, [V.data]);
3631
3633
  }
3632
- function V() {
3634
+ function j() {
3633
3635
  var D = { msg: b.a.LOADING_COMPLETE };
3634
3636
  v.postMessage(D);
3635
3637
  }
@@ -3637,47 +3639,47 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3637
3639
  var D = { msg: b.a.RECOVERED_EARLY_EOF };
3638
3640
  v.postMessage(D);
3639
3641
  }
3640
- function ue(D) {
3641
- var F = { msg: b.a.MEDIA_INFO, data: D };
3642
- v.postMessage(F);
3642
+ function le(D) {
3643
+ var V = { msg: b.a.MEDIA_INFO, data: D };
3644
+ v.postMessage(V);
3643
3645
  }
3644
- function se(D) {
3645
- var F = { msg: b.a.METADATA_ARRIVED, data: D };
3646
- v.postMessage(F);
3646
+ function ne(D) {
3647
+ var V = { msg: b.a.METADATA_ARRIVED, data: D };
3648
+ v.postMessage(V);
3647
3649
  }
3648
- function Y(D) {
3649
- var F = { msg: b.a.SCRIPTDATA_ARRIVED, data: D };
3650
- v.postMessage(F);
3650
+ function X(D) {
3651
+ var V = { msg: b.a.SCRIPTDATA_ARRIVED, data: D };
3652
+ v.postMessage(V);
3651
3653
  }
3652
- function ae(D) {
3653
- var F = { msg: b.a.TIMED_ID3_METADATA_ARRIVED, data: D };
3654
- v.postMessage(F);
3654
+ function ie(D) {
3655
+ var V = { msg: b.a.TIMED_ID3_METADATA_ARRIVED, data: D };
3656
+ v.postMessage(V);
3655
3657
  }
3656
3658
  function y(D) {
3657
- var F = { msg: b.a.SMPTE2038_METADATA_ARRIVED, data: D };
3658
- v.postMessage(F);
3659
+ var V = { msg: b.a.SMPTE2038_METADATA_ARRIVED, data: D };
3660
+ v.postMessage(V);
3659
3661
  }
3660
3662
  function G(D) {
3661
- var F = { msg: b.a.SCTE35_METADATA_ARRIVED, data: D };
3662
- v.postMessage(F);
3663
+ var V = { msg: b.a.SCTE35_METADATA_ARRIVED, data: D };
3664
+ v.postMessage(V);
3663
3665
  }
3664
3666
  function T(D) {
3665
- var F = { msg: b.a.PES_PRIVATE_DATA_DESCRIPTOR, data: D };
3666
- v.postMessage(F);
3667
+ var V = { msg: b.a.PES_PRIVATE_DATA_DESCRIPTOR, data: D };
3668
+ v.postMessage(V);
3667
3669
  }
3668
3670
  function l(D) {
3669
- var F = { msg: b.a.PES_PRIVATE_DATA_ARRIVED, data: D };
3670
- v.postMessage(F);
3671
+ var V = { msg: b.a.PES_PRIVATE_DATA_ARRIVED, data: D };
3672
+ v.postMessage(V);
3671
3673
  }
3672
3674
  function u(D) {
3673
- var F = { msg: b.a.STATISTICS_INFO, data: D };
3674
- v.postMessage(F);
3675
+ var V = { msg: b.a.STATISTICS_INFO, data: D };
3676
+ v.postMessage(V);
3675
3677
  }
3676
- function _(D, F) {
3677
- v.postMessage({ msg: b.a.IO_ERROR, data: { type: D, info: F } });
3678
+ function _(D, V) {
3679
+ v.postMessage({ msg: b.a.IO_ERROR, data: { type: D, info: V } });
3678
3680
  }
3679
- function c(D, F) {
3680
- v.postMessage({ msg: b.a.DEMUX_ERROR, data: { type: D, info: F } });
3681
+ function h(D, V) {
3682
+ v.postMessage({ msg: b.a.DEMUX_ERROR, data: { type: D, info: V } });
3681
3683
  }
3682
3684
  function P(D) {
3683
3685
  v.postMessage({ msg: b.a.RECOMMEND_SEEKPOINT, data: D });
@@ -3685,7 +3687,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3685
3687
  B.a.install(), v.addEventListener("message", function(D) {
3686
3688
  switch (D.data.cmd) {
3687
3689
  case "init":
3688
- (f = new m.a(D.data.param[0], D.data.param[1])).on(b.a.IO_ERROR, _.bind(this)), f.on(b.a.DEMUX_ERROR, c.bind(this)), f.on(b.a.INIT_SEGMENT, x.bind(this)), f.on(b.a.MEDIA_SEGMENT, C.bind(this)), f.on(b.a.LOADING_COMPLETE, V.bind(this)), f.on(b.a.RECOVERED_EARLY_EOF, H.bind(this)), f.on(b.a.MEDIA_INFO, ue.bind(this)), f.on(b.a.METADATA_ARRIVED, se.bind(this)), f.on(b.a.SCRIPTDATA_ARRIVED, Y.bind(this)), f.on(b.a.TIMED_ID3_METADATA_ARRIVED, ae.bind(this)), f.on(b.a.SMPTE2038_METADATA_ARRIVED, y.bind(this)), f.on(b.a.SCTE35_METADATA_ARRIVED, G.bind(this)), f.on(b.a.PES_PRIVATE_DATA_DESCRIPTOR, T.bind(this)), f.on(b.a.PES_PRIVATE_DATA_ARRIVED, l.bind(this)), f.on(b.a.STATISTICS_INFO, u.bind(this)), f.on(b.a.RECOMMEND_SEEKPOINT, P.bind(this));
3690
+ (f = new m.a(D.data.param[0], D.data.param[1])).on(b.a.IO_ERROR, _.bind(this)), f.on(b.a.DEMUX_ERROR, h.bind(this)), f.on(b.a.INIT_SEGMENT, M.bind(this)), f.on(b.a.MEDIA_SEGMENT, C.bind(this)), f.on(b.a.LOADING_COMPLETE, j.bind(this)), f.on(b.a.RECOVERED_EARLY_EOF, H.bind(this)), f.on(b.a.MEDIA_INFO, le.bind(this)), f.on(b.a.METADATA_ARRIVED, ne.bind(this)), f.on(b.a.SCRIPTDATA_ARRIVED, X.bind(this)), f.on(b.a.TIMED_ID3_METADATA_ARRIVED, ie.bind(this)), f.on(b.a.SMPTE2038_METADATA_ARRIVED, y.bind(this)), f.on(b.a.SCTE35_METADATA_ARRIVED, G.bind(this)), f.on(b.a.PES_PRIVATE_DATA_DESCRIPTOR, T.bind(this)), f.on(b.a.PES_PRIVATE_DATA_ARRIVED, l.bind(this)), f.on(b.a.STATISTICS_INFO, u.bind(this)), f.on(b.a.RECOMMEND_SEEKPOINT, P.bind(this));
3689
3691
  break;
3690
3692
  case "destroy":
3691
3693
  f && (f.destroy(), f = null), v.postMessage({ msg: "destroyed" });
@@ -3706,8 +3708,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3706
3708
  f.resume();
3707
3709
  break;
3708
3710
  case "logging_config":
3709
- var F = D.data.param;
3710
- U.a.applyConfig(F), F.enableCallback === !0 ? U.a.addLogListener(L) : U.a.removeLogListener(L);
3711
+ var V = D.data.param;
3712
+ U.a.applyConfig(V), V.enableCallback === !0 ? U.a.addLogListener(k) : U.a.removeLogListener(k);
3711
3713
  }
3712
3714
  });
3713
3715
  };
@@ -3718,153 +3720,153 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3718
3720
  return Object.assign({}, m);
3719
3721
  }
3720
3722
  var v = function() {
3721
- function k() {
3723
+ function L() {
3722
3724
  }
3723
- return k.supportMSEH264Playback = function() {
3725
+ return L.supportMSEH264Playback = function() {
3724
3726
  return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"');
3725
- }, k.supportMSEH265Playback = function() {
3727
+ }, L.supportMSEH265Playback = function() {
3726
3728
  return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="hvc1.1.6.L93.B0"');
3727
- }, k.supportNetworkStreamIO = function() {
3728
- var d = new B.a({}, b()), h = d.loaderType;
3729
- return d.destroy(), h == "fetch-stream-loader" || h == "xhr-moz-chunked-loader";
3730
- }, k.getNetworkLoaderTypeName = function() {
3731
- var d = new B.a({}, b()), h = d.loaderType;
3732
- return d.destroy(), h;
3733
- }, k.supportNativeMediaPlayback = function(d) {
3734
- k.videoElement == null && (k.videoElement = window.document.createElement("video"));
3735
- var h = k.videoElement.canPlayType(d);
3736
- return h === "probably" || h == "maybe";
3737
- }, k.getFeatureList = function() {
3729
+ }, L.supportNetworkStreamIO = function() {
3730
+ var d = new B.a({}, b()), c = d.loaderType;
3731
+ return d.destroy(), c == "fetch-stream-loader" || c == "xhr-moz-chunked-loader";
3732
+ }, L.getNetworkLoaderTypeName = function() {
3733
+ var d = new B.a({}, b()), c = d.loaderType;
3734
+ return d.destroy(), c;
3735
+ }, L.supportNativeMediaPlayback = function(d) {
3736
+ L.videoElement == null && (L.videoElement = window.document.createElement("video"));
3737
+ var c = L.videoElement.canPlayType(d);
3738
+ return c === "probably" || c == "maybe";
3739
+ }, L.getFeatureList = function() {
3738
3740
  var d = { msePlayback: !1, mseLivePlayback: !1, mseH265Playback: !1, networkStreamIO: !1, networkLoaderName: "", nativeMP4H264Playback: !1, nativeMP4H265Playback: !1, nativeWebmVP8Playback: !1, nativeWebmVP9Playback: !1 };
3739
- return d.msePlayback = k.supportMSEH264Playback(), d.networkStreamIO = k.supportNetworkStreamIO(), d.networkLoaderName = k.getNetworkLoaderTypeName(), d.mseLivePlayback = d.msePlayback && d.networkStreamIO, d.mseH265Playback = k.supportMSEH265Playback(), d.nativeMP4H264Playback = k.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'), d.nativeMP4H265Playback = k.supportNativeMediaPlayback('video/mp4; codecs="hvc1.1.6.L93.B0"'), d.nativeWebmVP8Playback = k.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'), d.nativeWebmVP9Playback = k.supportNativeMediaPlayback('video/webm; codecs="vp9"'), d;
3740
- }, k;
3741
- }(), f = O(2), L = O(6), x = O.n(L), C = O(0), V = O(4), H = { ERROR: "error", LOADING_COMPLETE: "loading_complete", RECOVERED_EARLY_EOF: "recovered_early_eof", MEDIA_INFO: "media_info", METADATA_ARRIVED: "metadata_arrived", SCRIPTDATA_ARRIVED: "scriptdata_arrived", TIMED_ID3_METADATA_ARRIVED: "timed_id3_metadata_arrived", SMPTE2038_METADATA_ARRIVED: "smpte2038_metadata_arrived", SCTE35_METADATA_ARRIVED: "scte35_metadata_arrived", PES_PRIVATE_DATA_DESCRIPTOR: "pes_private_data_descriptor", PES_PRIVATE_DATA_ARRIVED: "pes_private_data_arrived", STATISTICS_INFO: "statistics_info" }, ue = O(13), se = O.n(ue), Y = O(9), ae = O(10), y = O(1), G = O(8), T = function() {
3742
- function k(d, h) {
3743
- if (this.TAG = "Transmuxer", this._emitter = new x.a(), h.enableWorker && typeof Worker < "u") try {
3744
- this._worker = se()(18), this._workerDestroying = !1, this._worker.addEventListener("message", this._onWorkerMessage.bind(this)), this._worker.postMessage({ cmd: "init", param: [d, h] }), this.e = { onLoggingConfigChanged: this._onLoggingConfigChanged.bind(this) }, Y.a.registerListener(this.e.onLoggingConfigChanged), this._worker.postMessage({ cmd: "logging_config", param: Y.a.getConfig() });
3741
+ return d.msePlayback = L.supportMSEH264Playback(), d.networkStreamIO = L.supportNetworkStreamIO(), d.networkLoaderName = L.getNetworkLoaderTypeName(), d.mseLivePlayback = d.msePlayback && d.networkStreamIO, d.mseH265Playback = L.supportMSEH265Playback(), d.nativeMP4H264Playback = L.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'), d.nativeMP4H265Playback = L.supportNativeMediaPlayback('video/mp4; codecs="hvc1.1.6.L93.B0"'), d.nativeWebmVP8Playback = L.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'), d.nativeWebmVP9Playback = L.supportNativeMediaPlayback('video/webm; codecs="vp9"'), d;
3742
+ }, L;
3743
+ }(), f = O(2), k = O(6), M = O.n(k), C = O(0), j = O(4), H = { ERROR: "error", LOADING_COMPLETE: "loading_complete", RECOVERED_EARLY_EOF: "recovered_early_eof", MEDIA_INFO: "media_info", METADATA_ARRIVED: "metadata_arrived", SCRIPTDATA_ARRIVED: "scriptdata_arrived", TIMED_ID3_METADATA_ARRIVED: "timed_id3_metadata_arrived", SMPTE2038_METADATA_ARRIVED: "smpte2038_metadata_arrived", SCTE35_METADATA_ARRIVED: "scte35_metadata_arrived", PES_PRIVATE_DATA_DESCRIPTOR: "pes_private_data_descriptor", PES_PRIVATE_DATA_ARRIVED: "pes_private_data_arrived", STATISTICS_INFO: "statistics_info" }, le = O(13), ne = O.n(le), X = O(9), ie = O(10), y = O(1), G = O(8), T = function() {
3744
+ function L(d, c) {
3745
+ if (this.TAG = "Transmuxer", this._emitter = new M.a(), c.enableWorker && typeof Worker < "u") try {
3746
+ this._worker = ne()(18), this._workerDestroying = !1, this._worker.addEventListener("message", this._onWorkerMessage.bind(this)), this._worker.postMessage({ cmd: "init", param: [d, c] }), this.e = { onLoggingConfigChanged: this._onLoggingConfigChanged.bind(this) }, X.a.registerListener(this.e.onLoggingConfigChanged), this._worker.postMessage({ cmd: "logging_config", param: X.a.getConfig() });
3745
3747
  } catch {
3746
- C.a.e(this.TAG, "Error while initialize transmuxing worker, fallback to inline transmuxing"), this._worker = null, this._controller = new ae.a(d, h);
3748
+ C.a.e(this.TAG, "Error while initialize transmuxing worker, fallback to inline transmuxing"), this._worker = null, this._controller = new ie.a(d, c);
3747
3749
  }
3748
- else this._controller = new ae.a(d, h);
3750
+ else this._controller = new ie.a(d, c);
3749
3751
  if (this._controller) {
3750
3752
  var R = this._controller;
3751
3753
  R.on(y.a.IO_ERROR, this._onIOError.bind(this)), R.on(y.a.DEMUX_ERROR, this._onDemuxError.bind(this)), R.on(y.a.INIT_SEGMENT, this._onInitSegment.bind(this)), R.on(y.a.MEDIA_SEGMENT, this._onMediaSegment.bind(this)), R.on(y.a.LOADING_COMPLETE, this._onLoadingComplete.bind(this)), R.on(y.a.RECOVERED_EARLY_EOF, this._onRecoveredEarlyEof.bind(this)), R.on(y.a.MEDIA_INFO, this._onMediaInfo.bind(this)), R.on(y.a.METADATA_ARRIVED, this._onMetaDataArrived.bind(this)), R.on(y.a.SCRIPTDATA_ARRIVED, this._onScriptDataArrived.bind(this)), R.on(y.a.TIMED_ID3_METADATA_ARRIVED, this._onTimedID3MetadataArrived.bind(this)), R.on(y.a.SMPTE2038_METADATA_ARRIVED, this._onSMPTE2038MetadataArrived.bind(this)), R.on(y.a.SCTE35_METADATA_ARRIVED, this._onSCTE35MetadataArrived.bind(this)), R.on(y.a.PES_PRIVATE_DATA_DESCRIPTOR, this._onPESPrivateDataDescriptor.bind(this)), R.on(y.a.PES_PRIVATE_DATA_ARRIVED, this._onPESPrivateDataArrived.bind(this)), R.on(y.a.STATISTICS_INFO, this._onStatisticsInfo.bind(this)), R.on(y.a.RECOMMEND_SEEKPOINT, this._onRecommendSeekpoint.bind(this));
3752
3754
  }
3753
3755
  }
3754
- return k.prototype.destroy = function() {
3755
- this._worker ? this._workerDestroying || (this._workerDestroying = !0, this._worker.postMessage({ cmd: "destroy" }), Y.a.removeListener(this.e.onLoggingConfigChanged), this.e = null) : (this._controller.destroy(), this._controller = null), this._emitter.removeAllListeners(), this._emitter = null;
3756
- }, k.prototype.on = function(d, h) {
3757
- this._emitter.addListener(d, h);
3758
- }, k.prototype.off = function(d, h) {
3759
- this._emitter.removeListener(d, h);
3760
- }, k.prototype.hasWorker = function() {
3756
+ return L.prototype.destroy = function() {
3757
+ this._worker ? this._workerDestroying || (this._workerDestroying = !0, this._worker.postMessage({ cmd: "destroy" }), X.a.removeListener(this.e.onLoggingConfigChanged), this.e = null) : (this._controller.destroy(), this._controller = null), this._emitter.removeAllListeners(), this._emitter = null;
3758
+ }, L.prototype.on = function(d, c) {
3759
+ this._emitter.addListener(d, c);
3760
+ }, L.prototype.off = function(d, c) {
3761
+ this._emitter.removeListener(d, c);
3762
+ }, L.prototype.hasWorker = function() {
3761
3763
  return this._worker != null;
3762
- }, k.prototype.open = function() {
3764
+ }, L.prototype.open = function() {
3763
3765
  this._worker ? this._worker.postMessage({ cmd: "start" }) : this._controller.start();
3764
- }, k.prototype.close = function() {
3766
+ }, L.prototype.close = function() {
3765
3767
  this._worker ? this._worker.postMessage({ cmd: "stop" }) : this._controller.stop();
3766
- }, k.prototype.seek = function(d) {
3768
+ }, L.prototype.seek = function(d) {
3767
3769
  this._worker ? this._worker.postMessage({ cmd: "seek", param: d }) : this._controller.seek(d);
3768
- }, k.prototype.pause = function() {
3770
+ }, L.prototype.pause = function() {
3769
3771
  this._worker ? this._worker.postMessage({ cmd: "pause" }) : this._controller.pause();
3770
- }, k.prototype.resume = function() {
3772
+ }, L.prototype.resume = function() {
3771
3773
  this._worker ? this._worker.postMessage({ cmd: "resume" }) : this._controller.resume();
3772
- }, k.prototype._onInitSegment = function(d, h) {
3774
+ }, L.prototype._onInitSegment = function(d, c) {
3773
3775
  var R = this;
3774
3776
  Promise.resolve().then(function() {
3775
- R._emitter.emit(y.a.INIT_SEGMENT, d, h);
3777
+ R._emitter.emit(y.a.INIT_SEGMENT, d, c);
3776
3778
  });
3777
- }, k.prototype._onMediaSegment = function(d, h) {
3779
+ }, L.prototype._onMediaSegment = function(d, c) {
3778
3780
  var R = this;
3779
3781
  Promise.resolve().then(function() {
3780
- R._emitter.emit(y.a.MEDIA_SEGMENT, d, h);
3782
+ R._emitter.emit(y.a.MEDIA_SEGMENT, d, c);
3781
3783
  });
3782
- }, k.prototype._onLoadingComplete = function() {
3784
+ }, L.prototype._onLoadingComplete = function() {
3783
3785
  var d = this;
3784
3786
  Promise.resolve().then(function() {
3785
3787
  d._emitter.emit(y.a.LOADING_COMPLETE);
3786
3788
  });
3787
- }, k.prototype._onRecoveredEarlyEof = function() {
3789
+ }, L.prototype._onRecoveredEarlyEof = function() {
3788
3790
  var d = this;
3789
3791
  Promise.resolve().then(function() {
3790
3792
  d._emitter.emit(y.a.RECOVERED_EARLY_EOF);
3791
3793
  });
3792
- }, k.prototype._onMediaInfo = function(d) {
3793
- var h = this;
3794
+ }, L.prototype._onMediaInfo = function(d) {
3795
+ var c = this;
3794
3796
  Promise.resolve().then(function() {
3795
- h._emitter.emit(y.a.MEDIA_INFO, d);
3797
+ c._emitter.emit(y.a.MEDIA_INFO, d);
3796
3798
  });
3797
- }, k.prototype._onMetaDataArrived = function(d) {
3798
- var h = this;
3799
+ }, L.prototype._onMetaDataArrived = function(d) {
3800
+ var c = this;
3799
3801
  Promise.resolve().then(function() {
3800
- h._emitter.emit(y.a.METADATA_ARRIVED, d);
3802
+ c._emitter.emit(y.a.METADATA_ARRIVED, d);
3801
3803
  });
3802
- }, k.prototype._onScriptDataArrived = function(d) {
3803
- var h = this;
3804
+ }, L.prototype._onScriptDataArrived = function(d) {
3805
+ var c = this;
3804
3806
  Promise.resolve().then(function() {
3805
- h._emitter.emit(y.a.SCRIPTDATA_ARRIVED, d);
3807
+ c._emitter.emit(y.a.SCRIPTDATA_ARRIVED, d);
3806
3808
  });
3807
- }, k.prototype._onTimedID3MetadataArrived = function(d) {
3808
- var h = this;
3809
+ }, L.prototype._onTimedID3MetadataArrived = function(d) {
3810
+ var c = this;
3809
3811
  Promise.resolve().then(function() {
3810
- h._emitter.emit(y.a.TIMED_ID3_METADATA_ARRIVED, d);
3812
+ c._emitter.emit(y.a.TIMED_ID3_METADATA_ARRIVED, d);
3811
3813
  });
3812
- }, k.prototype._onSMPTE2038MetadataArrived = function(d) {
3813
- var h = this;
3814
+ }, L.prototype._onSMPTE2038MetadataArrived = function(d) {
3815
+ var c = this;
3814
3816
  Promise.resolve().then(function() {
3815
- h._emitter.emit(y.a.SMPTE2038_METADATA_ARRIVED, d);
3817
+ c._emitter.emit(y.a.SMPTE2038_METADATA_ARRIVED, d);
3816
3818
  });
3817
- }, k.prototype._onSCTE35MetadataArrived = function(d) {
3818
- var h = this;
3819
+ }, L.prototype._onSCTE35MetadataArrived = function(d) {
3820
+ var c = this;
3819
3821
  Promise.resolve().then(function() {
3820
- h._emitter.emit(y.a.SCTE35_METADATA_ARRIVED, d);
3822
+ c._emitter.emit(y.a.SCTE35_METADATA_ARRIVED, d);
3821
3823
  });
3822
- }, k.prototype._onPESPrivateDataDescriptor = function(d) {
3823
- var h = this;
3824
+ }, L.prototype._onPESPrivateDataDescriptor = function(d) {
3825
+ var c = this;
3824
3826
  Promise.resolve().then(function() {
3825
- h._emitter.emit(y.a.PES_PRIVATE_DATA_DESCRIPTOR, d);
3827
+ c._emitter.emit(y.a.PES_PRIVATE_DATA_DESCRIPTOR, d);
3826
3828
  });
3827
- }, k.prototype._onPESPrivateDataArrived = function(d) {
3828
- var h = this;
3829
+ }, L.prototype._onPESPrivateDataArrived = function(d) {
3830
+ var c = this;
3829
3831
  Promise.resolve().then(function() {
3830
- h._emitter.emit(y.a.PES_PRIVATE_DATA_ARRIVED, d);
3832
+ c._emitter.emit(y.a.PES_PRIVATE_DATA_ARRIVED, d);
3831
3833
  });
3832
- }, k.prototype._onStatisticsInfo = function(d) {
3833
- var h = this;
3834
+ }, L.prototype._onStatisticsInfo = function(d) {
3835
+ var c = this;
3834
3836
  Promise.resolve().then(function() {
3835
- h._emitter.emit(y.a.STATISTICS_INFO, d);
3837
+ c._emitter.emit(y.a.STATISTICS_INFO, d);
3836
3838
  });
3837
- }, k.prototype._onIOError = function(d, h) {
3839
+ }, L.prototype._onIOError = function(d, c) {
3838
3840
  var R = this;
3839
3841
  Promise.resolve().then(function() {
3840
- R._emitter.emit(y.a.IO_ERROR, d, h);
3842
+ R._emitter.emit(y.a.IO_ERROR, d, c);
3841
3843
  });
3842
- }, k.prototype._onDemuxError = function(d, h) {
3844
+ }, L.prototype._onDemuxError = function(d, c) {
3843
3845
  var R = this;
3844
3846
  Promise.resolve().then(function() {
3845
- R._emitter.emit(y.a.DEMUX_ERROR, d, h);
3847
+ R._emitter.emit(y.a.DEMUX_ERROR, d, c);
3846
3848
  });
3847
- }, k.prototype._onRecommendSeekpoint = function(d) {
3848
- var h = this;
3849
+ }, L.prototype._onRecommendSeekpoint = function(d) {
3850
+ var c = this;
3849
3851
  Promise.resolve().then(function() {
3850
- h._emitter.emit(y.a.RECOMMEND_SEEKPOINT, d);
3852
+ c._emitter.emit(y.a.RECOMMEND_SEEKPOINT, d);
3851
3853
  });
3852
- }, k.prototype._onLoggingConfigChanged = function(d) {
3854
+ }, L.prototype._onLoggingConfigChanged = function(d) {
3853
3855
  this._worker && this._worker.postMessage({ cmd: "logging_config", param: d });
3854
- }, k.prototype._onWorkerMessage = function(d) {
3855
- var h = d.data, R = h.data;
3856
- if (h.msg === "destroyed" || this._workerDestroying) return this._workerDestroying = !1, this._worker.terminate(), void (this._worker = null);
3857
- switch (h.msg) {
3856
+ }, L.prototype._onWorkerMessage = function(d) {
3857
+ var c = d.data, R = c.data;
3858
+ if (c.msg === "destroyed" || this._workerDestroying) return this._workerDestroying = !1, this._worker.terminate(), void (this._worker = null);
3859
+ switch (c.msg) {
3858
3860
  case y.a.INIT_SEGMENT:
3859
3861
  case y.a.MEDIA_SEGMENT:
3860
- this._emitter.emit(h.msg, R.type, R.data);
3862
+ this._emitter.emit(c.msg, R.type, R.data);
3861
3863
  break;
3862
3864
  case y.a.LOADING_COMPLETE:
3863
3865
  case y.a.RECOVERED_EARLY_EOF:
3864
- this._emitter.emit(h.msg);
3866
+ this._emitter.emit(c.msg);
3865
3867
  break;
3866
3868
  case y.a.MEDIA_INFO:
3867
- Object.setPrototypeOf(R, G.a.prototype), this._emitter.emit(h.msg, R);
3869
+ Object.setPrototypeOf(R, G.a.prototype), this._emitter.emit(c.msg, R);
3868
3870
  break;
3869
3871
  case y.a.METADATA_ARRIVED:
3870
3872
  case y.a.SCRIPTDATA_ARRIVED:
@@ -3874,50 +3876,50 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3874
3876
  case y.a.PES_PRIVATE_DATA_DESCRIPTOR:
3875
3877
  case y.a.PES_PRIVATE_DATA_ARRIVED:
3876
3878
  case y.a.STATISTICS_INFO:
3877
- this._emitter.emit(h.msg, R);
3879
+ this._emitter.emit(c.msg, R);
3878
3880
  break;
3879
3881
  case y.a.IO_ERROR:
3880
3882
  case y.a.DEMUX_ERROR:
3881
- this._emitter.emit(h.msg, R.type, R.info);
3883
+ this._emitter.emit(c.msg, R.type, R.info);
3882
3884
  break;
3883
3885
  case y.a.RECOMMEND_SEEKPOINT:
3884
- this._emitter.emit(h.msg, R);
3886
+ this._emitter.emit(c.msg, R);
3885
3887
  break;
3886
3888
  case "logcat_callback":
3887
3889
  C.a.emitter.emit("log", R.type, R.logcat);
3888
3890
  }
3889
- }, k;
3890
- }(), l = { ERROR: "error", SOURCE_OPEN: "source_open", UPDATE_END: "update_end", BUFFER_FULL: "buffer_full" }, u = O(7), _ = O(3), c = function() {
3891
- function k(d) {
3892
- this.TAG = "MSEController", this._config = d, this._emitter = new x.a(), this._config.isLive && this._config.autoCleanupSourceBuffer == null && (this._config.autoCleanupSourceBuffer = !0), this.e = { onSourceOpen: this._onSourceOpen.bind(this), onSourceEnded: this._onSourceEnded.bind(this), onSourceClose: this._onSourceClose.bind(this), onSourceBufferError: this._onSourceBufferError.bind(this), onSourceBufferUpdateEnd: this._onSourceBufferUpdateEnd.bind(this) }, this._mediaSource = null, this._mediaSourceObjectURL = null, this._mediaElement = null, this._isBufferFull = !1, this._hasPendingEos = !1, this._requireSetMediaDuration = !1, this._pendingMediaDuration = 0, this._pendingSourceBufferInit = [], this._mimeTypes = { video: null, audio: null }, this._sourceBuffers = { video: null, audio: null }, this._lastInitSegments = { video: null, audio: null }, this._pendingSegments = { video: [], audio: [] }, this._pendingRemoveRanges = { video: [], audio: [] }, this._idrList = new u.a();
3891
+ }, L;
3892
+ }(), l = { ERROR: "error", SOURCE_OPEN: "source_open", UPDATE_END: "update_end", BUFFER_FULL: "buffer_full" }, u = O(7), _ = O(3), h = function() {
3893
+ function L(d) {
3894
+ this.TAG = "MSEController", this._config = d, this._emitter = new M.a(), this._config.isLive && this._config.autoCleanupSourceBuffer == null && (this._config.autoCleanupSourceBuffer = !0), this.e = { onSourceOpen: this._onSourceOpen.bind(this), onSourceEnded: this._onSourceEnded.bind(this), onSourceClose: this._onSourceClose.bind(this), onSourceBufferError: this._onSourceBufferError.bind(this), onSourceBufferUpdateEnd: this._onSourceBufferUpdateEnd.bind(this) }, this._mediaSource = null, this._mediaSourceObjectURL = null, this._mediaElement = null, this._isBufferFull = !1, this._hasPendingEos = !1, this._requireSetMediaDuration = !1, this._pendingMediaDuration = 0, this._pendingSourceBufferInit = [], this._mimeTypes = { video: null, audio: null }, this._sourceBuffers = { video: null, audio: null }, this._lastInitSegments = { video: null, audio: null }, this._pendingSegments = { video: [], audio: [] }, this._pendingRemoveRanges = { video: [], audio: [] }, this._idrList = new u.a();
3893
3895
  }
3894
- return k.prototype.destroy = function() {
3896
+ return L.prototype.destroy = function() {
3895
3897
  (this._mediaElement || this._mediaSource) && this.detachMediaElement(), this.e = null, this._emitter.removeAllListeners(), this._emitter = null;
3896
- }, k.prototype.on = function(d, h) {
3897
- this._emitter.addListener(d, h);
3898
- }, k.prototype.off = function(d, h) {
3899
- this._emitter.removeListener(d, h);
3900
- }, k.prototype.attachMediaElement = function(d) {
3898
+ }, L.prototype.on = function(d, c) {
3899
+ this._emitter.addListener(d, c);
3900
+ }, L.prototype.off = function(d, c) {
3901
+ this._emitter.removeListener(d, c);
3902
+ }, L.prototype.attachMediaElement = function(d) {
3901
3903
  if (this._mediaSource) throw new _.a("MediaSource has been attached to an HTMLMediaElement!");
3902
- var h = this._mediaSource = new window.MediaSource();
3903
- h.addEventListener("sourceopen", this.e.onSourceOpen), h.addEventListener("sourceended", this.e.onSourceEnded), h.addEventListener("sourceclose", this.e.onSourceClose), this._mediaElement = d, this._mediaSourceObjectURL = window.URL.createObjectURL(this._mediaSource), d.src = this._mediaSourceObjectURL;
3904
- }, k.prototype.detachMediaElement = function() {
3904
+ var c = this._mediaSource = new window.MediaSource();
3905
+ c.addEventListener("sourceopen", this.e.onSourceOpen), c.addEventListener("sourceended", this.e.onSourceEnded), c.addEventListener("sourceclose", this.e.onSourceClose), this._mediaElement = d, this._mediaSourceObjectURL = window.URL.createObjectURL(this._mediaSource), d.src = this._mediaSourceObjectURL;
3906
+ }, L.prototype.detachMediaElement = function() {
3905
3907
  if (this._mediaSource) {
3906
3908
  var d = this._mediaSource;
3907
- for (var h in this._sourceBuffers) {
3908
- var R = this._pendingSegments[h];
3909
- R.splice(0, R.length), this._pendingSegments[h] = null, this._pendingRemoveRanges[h] = null, this._lastInitSegments[h] = null;
3910
- var X = this._sourceBuffers[h];
3911
- if (X) {
3909
+ for (var c in this._sourceBuffers) {
3910
+ var R = this._pendingSegments[c];
3911
+ R.splice(0, R.length), this._pendingSegments[c] = null, this._pendingRemoveRanges[c] = null, this._lastInitSegments[c] = null;
3912
+ var Y = this._sourceBuffers[c];
3913
+ if (Y) {
3912
3914
  if (d.readyState !== "closed") {
3913
3915
  try {
3914
- d.removeSourceBuffer(X);
3916
+ d.removeSourceBuffer(Y);
3915
3917
  } catch (oe) {
3916
3918
  C.a.e(this.TAG, oe.message);
3917
3919
  }
3918
- X.removeEventListener("error", this.e.onSourceBufferError), X.removeEventListener("updateend", this.e.onSourceBufferUpdateEnd);
3920
+ Y.removeEventListener("error", this.e.onSourceBufferError), Y.removeEventListener("updateend", this.e.onSourceBufferUpdateEnd);
3919
3921
  }
3920
- this._mimeTypes[h] = null, this._sourceBuffers[h] = null;
3922
+ this._mimeTypes[c] = null, this._sourceBuffers[c] = null;
3921
3923
  }
3922
3924
  }
3923
3925
  if (d.readyState === "open") try {
@@ -3928,419 +3930,419 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
3928
3930
  d.removeEventListener("sourceopen", this.e.onSourceOpen), d.removeEventListener("sourceended", this.e.onSourceEnded), d.removeEventListener("sourceclose", this.e.onSourceClose), this._pendingSourceBufferInit = [], this._isBufferFull = !1, this._idrList.clear(), this._mediaSource = null;
3929
3931
  }
3930
3932
  this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src"), this._mediaElement = null), this._mediaSourceObjectURL && (window.URL.revokeObjectURL(this._mediaSourceObjectURL), this._mediaSourceObjectURL = null);
3931
- }, k.prototype.appendInitSegment = function(d, h) {
3933
+ }, L.prototype.appendInitSegment = function(d, c) {
3932
3934
  if (!this._mediaSource || this._mediaSource.readyState !== "open") return this._pendingSourceBufferInit.push(d), void this._pendingSegments[d.type].push(d);
3933
- var R = d, X = "" + R.container;
3934
- R.codec && R.codec.length > 0 && (X += ";codecs=" + R.codec);
3935
+ var R = d, Y = "" + R.container;
3936
+ R.codec && R.codec.length > 0 && (Y += ";codecs=" + R.codec);
3935
3937
  var oe = !1;
3936
- if (C.a.v(this.TAG, "Received Initialization Segment, mimeType: " + X), this._lastInitSegments[R.type] = R, X !== this._mimeTypes[R.type]) {
3937
- if (this._mimeTypes[R.type]) C.a.v(this.TAG, "Notice: " + R.type + " mimeType changed, origin: " + this._mimeTypes[R.type] + ", target: " + X);
3938
+ if (C.a.v(this.TAG, "Received Initialization Segment, mimeType: " + Y), this._lastInitSegments[R.type] = R, Y !== this._mimeTypes[R.type]) {
3939
+ if (this._mimeTypes[R.type]) C.a.v(this.TAG, "Notice: " + R.type + " mimeType changed, origin: " + this._mimeTypes[R.type] + ", target: " + Y);
3938
3940
  else {
3939
3941
  oe = !0;
3940
3942
  try {
3941
- var me = this._sourceBuffers[R.type] = this._mediaSource.addSourceBuffer(X);
3943
+ var me = this._sourceBuffers[R.type] = this._mediaSource.addSourceBuffer(Y);
3942
3944
  me.addEventListener("error", this.e.onSourceBufferError), me.addEventListener("updateend", this.e.onSourceBufferUpdateEnd);
3943
3945
  } catch (Se) {
3944
3946
  return C.a.e(this.TAG, Se.message), void this._emitter.emit(l.ERROR, { code: Se.code, msg: Se.message });
3945
3947
  }
3946
3948
  }
3947
- this._mimeTypes[R.type] = X;
3949
+ this._mimeTypes[R.type] = Y;
3948
3950
  }
3949
- h || this._pendingSegments[R.type].push(R), oe || this._sourceBuffers[R.type] && !this._sourceBuffers[R.type].updating && this._doAppendSegments(), V.a.safari && R.container === "audio/mpeg" && R.mediaDuration > 0 && (this._requireSetMediaDuration = !0, this._pendingMediaDuration = R.mediaDuration / 1e3, this._updateMediaSourceDuration());
3950
- }, k.prototype.appendMediaSegment = function(d) {
3951
- var h = d;
3952
- this._pendingSegments[h.type].push(h), this._config.autoCleanupSourceBuffer && this._needCleanupSourceBuffer() && this._doCleanupSourceBuffer();
3953
- var R = this._sourceBuffers[h.type];
3951
+ c || this._pendingSegments[R.type].push(R), oe || this._sourceBuffers[R.type] && !this._sourceBuffers[R.type].updating && this._doAppendSegments(), j.a.safari && R.container === "audio/mpeg" && R.mediaDuration > 0 && (this._requireSetMediaDuration = !0, this._pendingMediaDuration = R.mediaDuration / 1e3, this._updateMediaSourceDuration());
3952
+ }, L.prototype.appendMediaSegment = function(d) {
3953
+ var c = d;
3954
+ this._pendingSegments[c.type].push(c), this._config.autoCleanupSourceBuffer && this._needCleanupSourceBuffer() && this._doCleanupSourceBuffer();
3955
+ var R = this._sourceBuffers[c.type];
3954
3956
  !R || R.updating || this._hasPendingRemoveRanges() || this._doAppendSegments();
3955
- }, k.prototype.seek = function(d) {
3956
- for (var h in this._sourceBuffers) if (this._sourceBuffers[h]) {
3957
- var R = this._sourceBuffers[h];
3957
+ }, L.prototype.seek = function(d) {
3958
+ for (var c in this._sourceBuffers) if (this._sourceBuffers[c]) {
3959
+ var R = this._sourceBuffers[c];
3958
3960
  if (this._mediaSource.readyState === "open") try {
3959
3961
  R.abort();
3960
3962
  } catch (Te) {
3961
3963
  C.a.e(this.TAG, Te.message);
3962
3964
  }
3963
3965
  this._idrList.clear();
3964
- var X = this._pendingSegments[h];
3965
- if (X.splice(0, X.length), this._mediaSource.readyState !== "closed") {
3966
+ var Y = this._pendingSegments[c];
3967
+ if (Y.splice(0, Y.length), this._mediaSource.readyState !== "closed") {
3966
3968
  for (var oe = 0; oe < R.buffered.length; oe++) {
3967
3969
  var me = R.buffered.start(oe), Se = R.buffered.end(oe);
3968
- this._pendingRemoveRanges[h].push({ start: me, end: Se });
3970
+ this._pendingRemoveRanges[c].push({ start: me, end: Se });
3969
3971
  }
3970
- if (R.updating || this._doRemoveRanges(), V.a.safari) {
3971
- var De = this._lastInitSegments[h];
3972
- De && (this._pendingSegments[h].push(De), R.updating || this._doAppendSegments());
3972
+ if (R.updating || this._doRemoveRanges(), j.a.safari) {
3973
+ var De = this._lastInitSegments[c];
3974
+ De && (this._pendingSegments[c].push(De), R.updating || this._doAppendSegments());
3973
3975
  }
3974
3976
  }
3975
3977
  }
3976
- }, k.prototype.endOfStream = function() {
3977
- var d = this._mediaSource, h = this._sourceBuffers;
3978
- d && d.readyState === "open" ? h.video && h.video.updating || h.audio && h.audio.updating ? this._hasPendingEos = !0 : (this._hasPendingEos = !1, d.endOfStream()) : d && d.readyState === "closed" && this._hasPendingSegments() && (this._hasPendingEos = !0);
3979
- }, k.prototype.getNearestKeyframe = function(d) {
3978
+ }, L.prototype.endOfStream = function() {
3979
+ var d = this._mediaSource, c = this._sourceBuffers;
3980
+ d && d.readyState === "open" ? c.video && c.video.updating || c.audio && c.audio.updating ? this._hasPendingEos = !0 : (this._hasPendingEos = !1, d.endOfStream()) : d && d.readyState === "closed" && this._hasPendingSegments() && (this._hasPendingEos = !0);
3981
+ }, L.prototype.getNearestKeyframe = function(d) {
3980
3982
  return this._idrList.getLastSyncPointBeforeDts(d);
3981
- }, k.prototype._needCleanupSourceBuffer = function() {
3983
+ }, L.prototype._needCleanupSourceBuffer = function() {
3982
3984
  if (!this._config.autoCleanupSourceBuffer) return !1;
3983
3985
  var d = this._mediaElement.currentTime;
3984
- for (var h in this._sourceBuffers) {
3985
- var R = this._sourceBuffers[h];
3986
+ for (var c in this._sourceBuffers) {
3987
+ var R = this._sourceBuffers[c];
3986
3988
  if (R) {
3987
- var X = R.buffered;
3988
- if (X.length >= 1 && d - X.start(0) >= this._config.autoCleanupMaxBackwardDuration) return !0;
3989
+ var Y = R.buffered;
3990
+ if (Y.length >= 1 && d - Y.start(0) >= this._config.autoCleanupMaxBackwardDuration) return !0;
3989
3991
  }
3990
3992
  }
3991
3993
  return !1;
3992
- }, k.prototype._doCleanupSourceBuffer = function() {
3994
+ }, L.prototype._doCleanupSourceBuffer = function() {
3993
3995
  var d = this._mediaElement.currentTime;
3994
- for (var h in this._sourceBuffers) {
3995
- var R = this._sourceBuffers[h];
3996
+ for (var c in this._sourceBuffers) {
3997
+ var R = this._sourceBuffers[c];
3996
3998
  if (R) {
3997
- for (var X = R.buffered, oe = !1, me = 0; me < X.length; me++) {
3998
- var Se = X.start(me), De = X.end(me);
3999
+ for (var Y = R.buffered, oe = !1, me = 0; me < Y.length; me++) {
4000
+ var Se = Y.start(me), De = Y.end(me);
3999
4001
  if (Se <= d && d < De + 3) {
4000
4002
  if (d - Se >= this._config.autoCleanupMaxBackwardDuration) {
4001
4003
  oe = !0;
4002
4004
  var Te = d - this._config.autoCleanupMinBackwardDuration;
4003
- this._pendingRemoveRanges[h].push({ start: Se, end: Te });
4005
+ this._pendingRemoveRanges[c].push({ start: Se, end: Te });
4004
4006
  }
4005
- } else De < d && (oe = !0, this._pendingRemoveRanges[h].push({ start: Se, end: De }));
4007
+ } else De < d && (oe = !0, this._pendingRemoveRanges[c].push({ start: Se, end: De }));
4006
4008
  }
4007
4009
  oe && !R.updating && this._doRemoveRanges();
4008
4010
  }
4009
4011
  }
4010
- }, k.prototype._updateMediaSourceDuration = function() {
4012
+ }, L.prototype._updateMediaSourceDuration = function() {
4011
4013
  var d = this._sourceBuffers;
4012
4014
  if (this._mediaElement.readyState !== 0 && this._mediaSource.readyState === "open" && !(d.video && d.video.updating || d.audio && d.audio.updating)) {
4013
- var h = this._mediaSource.duration, R = this._pendingMediaDuration;
4014
- R > 0 && (isNaN(h) || R > h) && (C.a.v(this.TAG, "Update MediaSource duration from " + h + " to " + R), this._mediaSource.duration = R), this._requireSetMediaDuration = !1, this._pendingMediaDuration = 0;
4015
+ var c = this._mediaSource.duration, R = this._pendingMediaDuration;
4016
+ R > 0 && (isNaN(c) || R > c) && (C.a.v(this.TAG, "Update MediaSource duration from " + c + " to " + R), this._mediaSource.duration = R), this._requireSetMediaDuration = !1, this._pendingMediaDuration = 0;
4015
4017
  }
4016
- }, k.prototype._doRemoveRanges = function() {
4017
- for (var d in this._pendingRemoveRanges) if (this._sourceBuffers[d] && !this._sourceBuffers[d].updating) for (var h = this._sourceBuffers[d], R = this._pendingRemoveRanges[d]; R.length && !h.updating; ) {
4018
- var X = R.shift();
4019
- h.remove(X.start, X.end);
4018
+ }, L.prototype._doRemoveRanges = function() {
4019
+ for (var d in this._pendingRemoveRanges) if (this._sourceBuffers[d] && !this._sourceBuffers[d].updating) for (var c = this._sourceBuffers[d], R = this._pendingRemoveRanges[d]; R.length && !c.updating; ) {
4020
+ var Y = R.shift();
4021
+ c.remove(Y.start, Y.end);
4020
4022
  }
4021
- }, k.prototype._doAppendSegments = function() {
4023
+ }, L.prototype._doAppendSegments = function() {
4022
4024
  var d = this._pendingSegments;
4023
- for (var h in d) if (this._sourceBuffers[h] && !this._sourceBuffers[h].updating && d[h].length > 0) {
4024
- var R = d[h].shift();
4025
+ for (var c in d) if (this._sourceBuffers[c] && !this._sourceBuffers[c].updating && d[c].length > 0) {
4026
+ var R = d[c].shift();
4025
4027
  if (R.timestampOffset) {
4026
- var X = this._sourceBuffers[h].timestampOffset, oe = R.timestampOffset / 1e3;
4027
- Math.abs(X - oe) > 0.1 && (C.a.v(this.TAG, "Update MPEG audio timestampOffset from " + X + " to " + oe), this._sourceBuffers[h].timestampOffset = oe), delete R.timestampOffset;
4028
+ var Y = this._sourceBuffers[c].timestampOffset, oe = R.timestampOffset / 1e3;
4029
+ Math.abs(Y - oe) > 0.1 && (C.a.v(this.TAG, "Update MPEG audio timestampOffset from " + Y + " to " + oe), this._sourceBuffers[c].timestampOffset = oe), delete R.timestampOffset;
4028
4030
  }
4029
4031
  if (!R.data || R.data.byteLength === 0) continue;
4030
4032
  try {
4031
- this._sourceBuffers[h].appendBuffer(R.data), this._isBufferFull = !1, h === "video" && R.hasOwnProperty("info") && this._idrList.appendArray(R.info.syncPoints);
4033
+ this._sourceBuffers[c].appendBuffer(R.data), this._isBufferFull = !1, c === "video" && R.hasOwnProperty("info") && this._idrList.appendArray(R.info.syncPoints);
4032
4034
  } catch (me) {
4033
- this._pendingSegments[h].unshift(R), me.code === 22 ? (this._isBufferFull || this._emitter.emit(l.BUFFER_FULL), this._isBufferFull = !0) : (C.a.e(this.TAG, me.message), this._emitter.emit(l.ERROR, { code: me.code, msg: me.message }));
4035
+ this._pendingSegments[c].unshift(R), me.code === 22 ? (this._isBufferFull || this._emitter.emit(l.BUFFER_FULL), this._isBufferFull = !0) : (C.a.e(this.TAG, me.message), this._emitter.emit(l.ERROR, { code: me.code, msg: me.message }));
4034
4036
  }
4035
4037
  }
4036
- }, k.prototype._onSourceOpen = function() {
4038
+ }, L.prototype._onSourceOpen = function() {
4037
4039
  if (C.a.v(this.TAG, "MediaSource onSourceOpen"), this._mediaSource.removeEventListener("sourceopen", this.e.onSourceOpen), this._pendingSourceBufferInit.length > 0) for (var d = this._pendingSourceBufferInit; d.length; ) {
4038
- var h = d.shift();
4039
- this.appendInitSegment(h, !0);
4040
+ var c = d.shift();
4041
+ this.appendInitSegment(c, !0);
4040
4042
  }
4041
4043
  this._hasPendingSegments() && this._doAppendSegments(), this._emitter.emit(l.SOURCE_OPEN);
4042
- }, k.prototype._onSourceEnded = function() {
4044
+ }, L.prototype._onSourceEnded = function() {
4043
4045
  C.a.v(this.TAG, "MediaSource onSourceEnded");
4044
- }, k.prototype._onSourceClose = function() {
4046
+ }, L.prototype._onSourceClose = function() {
4045
4047
  C.a.v(this.TAG, "MediaSource onSourceClose"), this._mediaSource && this.e != null && (this._mediaSource.removeEventListener("sourceopen", this.e.onSourceOpen), this._mediaSource.removeEventListener("sourceended", this.e.onSourceEnded), this._mediaSource.removeEventListener("sourceclose", this.e.onSourceClose));
4046
- }, k.prototype._hasPendingSegments = function() {
4048
+ }, L.prototype._hasPendingSegments = function() {
4047
4049
  var d = this._pendingSegments;
4048
4050
  return d.video.length > 0 || d.audio.length > 0;
4049
- }, k.prototype._hasPendingRemoveRanges = function() {
4051
+ }, L.prototype._hasPendingRemoveRanges = function() {
4050
4052
  var d = this._pendingRemoveRanges;
4051
4053
  return d.video.length > 0 || d.audio.length > 0;
4052
- }, k.prototype._onSourceBufferUpdateEnd = function() {
4054
+ }, L.prototype._onSourceBufferUpdateEnd = function() {
4053
4055
  this._requireSetMediaDuration ? this._updateMediaSourceDuration() : this._hasPendingRemoveRanges() ? this._doRemoveRanges() : this._hasPendingSegments() ? this._doAppendSegments() : this._hasPendingEos && this.endOfStream(), this._emitter.emit(l.UPDATE_END);
4054
- }, k.prototype._onSourceBufferError = function(d) {
4056
+ }, L.prototype._onSourceBufferError = function(d) {
4055
4057
  C.a.e(this.TAG, "SourceBuffer Error: " + d);
4056
- }, k;
4057
- }(), P = O(5), D = { NETWORK_ERROR: "NetworkError", MEDIA_ERROR: "MediaError", OTHER_ERROR: "OtherError" }, F = { NETWORK_EXCEPTION: f.b.EXCEPTION, NETWORK_STATUS_CODE_INVALID: f.b.HTTP_STATUS_CODE_INVALID, NETWORK_TIMEOUT: f.b.CONNECTING_TIMEOUT, NETWORK_UNRECOVERABLE_EARLY_EOF: f.b.UNRECOVERABLE_EARLY_EOF, MEDIA_MSE_ERROR: "MediaMSEError", MEDIA_FORMAT_ERROR: P.a.FORMAT_ERROR, MEDIA_FORMAT_UNSUPPORTED: P.a.FORMAT_UNSUPPORTED, MEDIA_CODEC_UNSUPPORTED: P.a.CODEC_UNSUPPORTED }, ee = function() {
4058
- function k(d, h) {
4059
- this.TAG = "MSEPlayer", this._type = "MSEPlayer", this._emitter = new x.a(), this._config = b(), typeof h == "object" && Object.assign(this._config, h);
4058
+ }, L;
4059
+ }(), P = O(5), D = { NETWORK_ERROR: "NetworkError", MEDIA_ERROR: "MediaError", OTHER_ERROR: "OtherError" }, V = { NETWORK_EXCEPTION: f.b.EXCEPTION, NETWORK_STATUS_CODE_INVALID: f.b.HTTP_STATUS_CODE_INVALID, NETWORK_TIMEOUT: f.b.CONNECTING_TIMEOUT, NETWORK_UNRECOVERABLE_EARLY_EOF: f.b.UNRECOVERABLE_EARLY_EOF, MEDIA_MSE_ERROR: "MediaMSEError", MEDIA_FORMAT_ERROR: P.a.FORMAT_ERROR, MEDIA_FORMAT_UNSUPPORTED: P.a.FORMAT_UNSUPPORTED, MEDIA_CODEC_UNSUPPORTED: P.a.CODEC_UNSUPPORTED }, ee = function() {
4060
+ function L(d, c) {
4061
+ this.TAG = "MSEPlayer", this._type = "MSEPlayer", this._emitter = new M.a(), this._config = b(), typeof c == "object" && Object.assign(this._config, c);
4060
4062
  var R = d.type.toLowerCase();
4061
4063
  if (R !== "mse" && R !== "mpegts" && R !== "m2ts" && R !== "flv") throw new _.b("MSEPlayer requires an mpegts/m2ts/flv MediaDataSource input!");
4062
4064
  d.isLive === !0 && (this._config.isLive = !0), this.e = { onvLoadedMetadata: this._onvLoadedMetadata.bind(this), onvSeeking: this._onvSeeking.bind(this), onvCanPlay: this._onvCanPlay.bind(this), onvStalled: this._onvStalled.bind(this), onvProgress: this._onvProgress.bind(this) }, self.performance && self.performance.now ? this._now = self.performance.now.bind(self.performance) : this._now = Date.now, this._pendingSeekTime = null, this._requestSetTime = !1, this._seekpointRecord = null, this._progressChecker = null, this._mediaDataSource = d, this._mediaElement = null, this._msectl = null, this._transmuxer = null, this._mseSourceOpened = !1, this._hasPendingLoad = !1, this._receivedCanPlay = !1, this._mediaInfo = null, this._statisticsInfo = null;
4063
- var X = V.a.chrome && (V.a.version.major < 50 || V.a.version.major === 50 && V.a.version.build < 2661);
4064
- this._alwaysSeekKeyframe = !!(X || V.a.msedge || V.a.msie), this._alwaysSeekKeyframe && (this._config.accurateSeek = !1);
4065
+ var Y = j.a.chrome && (j.a.version.major < 50 || j.a.version.major === 50 && j.a.version.build < 2661);
4066
+ this._alwaysSeekKeyframe = !!(Y || j.a.msedge || j.a.msie), this._alwaysSeekKeyframe && (this._config.accurateSeek = !1);
4065
4067
  }
4066
- return k.prototype.destroy = function() {
4068
+ return L.prototype.destroy = function() {
4067
4069
  this._progressChecker != null && (window.clearInterval(this._progressChecker), this._progressChecker = null), this._transmuxer && this.unload(), this._mediaElement && this.detachMediaElement(), this.e = null, this._mediaDataSource = null, this._emitter.removeAllListeners(), this._emitter = null;
4068
- }, k.prototype.on = function(d, h) {
4070
+ }, L.prototype.on = function(d, c) {
4069
4071
  var R = this;
4070
4072
  d === H.MEDIA_INFO ? this._mediaInfo != null && Promise.resolve().then(function() {
4071
4073
  R._emitter.emit(H.MEDIA_INFO, R.mediaInfo);
4072
4074
  }) : d === H.STATISTICS_INFO && this._statisticsInfo != null && Promise.resolve().then(function() {
4073
4075
  R._emitter.emit(H.STATISTICS_INFO, R.statisticsInfo);
4074
- }), this._emitter.addListener(d, h);
4075
- }, k.prototype.off = function(d, h) {
4076
- this._emitter.removeListener(d, h);
4077
- }, k.prototype.attachMediaElement = function(d) {
4078
- var h = this;
4079
- if (this._mediaElement = d, d.addEventListener("loadedmetadata", this.e.onvLoadedMetadata), d.addEventListener("seeking", this.e.onvSeeking), d.addEventListener("canplay", this.e.onvCanPlay), d.addEventListener("stalled", this.e.onvStalled), d.addEventListener("progress", this.e.onvProgress), this._msectl = new c(this._config), this._msectl.on(l.UPDATE_END, this._onmseUpdateEnd.bind(this)), this._msectl.on(l.BUFFER_FULL, this._onmseBufferFull.bind(this)), this._msectl.on(l.SOURCE_OPEN, function() {
4080
- h._mseSourceOpened = !0, h._hasPendingLoad && (h._hasPendingLoad = !1, h.load());
4076
+ }), this._emitter.addListener(d, c);
4077
+ }, L.prototype.off = function(d, c) {
4078
+ this._emitter.removeListener(d, c);
4079
+ }, L.prototype.attachMediaElement = function(d) {
4080
+ var c = this;
4081
+ if (this._mediaElement = d, d.addEventListener("loadedmetadata", this.e.onvLoadedMetadata), d.addEventListener("seeking", this.e.onvSeeking), d.addEventListener("canplay", this.e.onvCanPlay), d.addEventListener("stalled", this.e.onvStalled), d.addEventListener("progress", this.e.onvProgress), this._msectl = new h(this._config), this._msectl.on(l.UPDATE_END, this._onmseUpdateEnd.bind(this)), this._msectl.on(l.BUFFER_FULL, this._onmseBufferFull.bind(this)), this._msectl.on(l.SOURCE_OPEN, function() {
4082
+ c._mseSourceOpened = !0, c._hasPendingLoad && (c._hasPendingLoad = !1, c.load());
4081
4083
  }), this._msectl.on(l.ERROR, function(R) {
4082
- h._emitter.emit(H.ERROR, D.MEDIA_ERROR, F.MEDIA_MSE_ERROR, R);
4084
+ c._emitter.emit(H.ERROR, D.MEDIA_ERROR, V.MEDIA_MSE_ERROR, R);
4083
4085
  }), this._msectl.attachMediaElement(d), this._pendingSeekTime != null) try {
4084
4086
  d.currentTime = this._pendingSeekTime, this._pendingSeekTime = null;
4085
4087
  } catch {
4086
4088
  }
4087
- }, k.prototype.detachMediaElement = function() {
4089
+ }, L.prototype.detachMediaElement = function() {
4088
4090
  this._mediaElement && (this._msectl.detachMediaElement(), this._mediaElement.removeEventListener("loadedmetadata", this.e.onvLoadedMetadata), this._mediaElement.removeEventListener("seeking", this.e.onvSeeking), this._mediaElement.removeEventListener("canplay", this.e.onvCanPlay), this._mediaElement.removeEventListener("stalled", this.e.onvStalled), this._mediaElement.removeEventListener("progress", this.e.onvProgress), this._mediaElement = null), this._msectl && (this._msectl.destroy(), this._msectl = null);
4089
- }, k.prototype.load = function() {
4091
+ }, L.prototype.load = function() {
4090
4092
  var d = this;
4091
4093
  if (!this._mediaElement) throw new _.a("HTMLMediaElement must be attached before load()!");
4092
4094
  if (this._transmuxer) throw new _.a("MSEPlayer.load() has been called, please call unload() first!");
4093
- this._hasPendingLoad || (this._config.deferLoadAfterSourceOpen && this._mseSourceOpened === !1 ? this._hasPendingLoad = !0 : (this._mediaElement.readyState > 0 && (this._requestSetTime = !0, this._mediaElement.currentTime = 0), this._transmuxer = new T(this._mediaDataSource, this._config), this._transmuxer.on(y.a.INIT_SEGMENT, function(h, R) {
4095
+ this._hasPendingLoad || (this._config.deferLoadAfterSourceOpen && this._mseSourceOpened === !1 ? this._hasPendingLoad = !0 : (this._mediaElement.readyState > 0 && (this._requestSetTime = !0, this._mediaElement.currentTime = 0), this._transmuxer = new T(this._mediaDataSource, this._config), this._transmuxer.on(y.a.INIT_SEGMENT, function(c, R) {
4094
4096
  d._msectl.appendInitSegment(R);
4095
- }), this._transmuxer.on(y.a.MEDIA_SEGMENT, function(h, R) {
4097
+ }), this._transmuxer.on(y.a.MEDIA_SEGMENT, function(c, R) {
4096
4098
  if (d._msectl.appendMediaSegment(R), d._config.lazyLoad && !d._config.isLive) {
4097
- var X = d._mediaElement.currentTime;
4098
- R.info.endDts >= 1e3 * (X + d._config.lazyLoadMaxDuration) && d._progressChecker == null && (C.a.v(d.TAG, "Maximum buffering duration exceeded, suspend transmuxing task"), d._suspendTransmuxer());
4099
+ var Y = d._mediaElement.currentTime;
4100
+ R.info.endDts >= 1e3 * (Y + d._config.lazyLoadMaxDuration) && d._progressChecker == null && (C.a.v(d.TAG, "Maximum buffering duration exceeded, suspend transmuxing task"), d._suspendTransmuxer());
4099
4101
  }
4100
4102
  }), this._transmuxer.on(y.a.LOADING_COMPLETE, function() {
4101
4103
  d._msectl.endOfStream(), d._emitter.emit(H.LOADING_COMPLETE);
4102
4104
  }), this._transmuxer.on(y.a.RECOVERED_EARLY_EOF, function() {
4103
4105
  d._emitter.emit(H.RECOVERED_EARLY_EOF);
4104
- }), this._transmuxer.on(y.a.IO_ERROR, function(h, R) {
4105
- d._emitter.emit(H.ERROR, D.NETWORK_ERROR, h, R);
4106
- }), this._transmuxer.on(y.a.DEMUX_ERROR, function(h, R) {
4107
- d._emitter.emit(H.ERROR, D.MEDIA_ERROR, h, { code: -1, msg: R });
4108
- }), this._transmuxer.on(y.a.MEDIA_INFO, function(h) {
4109
- d._mediaInfo = h, d._emitter.emit(H.MEDIA_INFO, Object.assign({}, h));
4110
- }), this._transmuxer.on(y.a.METADATA_ARRIVED, function(h) {
4111
- d._emitter.emit(H.METADATA_ARRIVED, h);
4112
- }), this._transmuxer.on(y.a.SCRIPTDATA_ARRIVED, function(h) {
4113
- d._emitter.emit(H.SCRIPTDATA_ARRIVED, h);
4114
- }), this._transmuxer.on(y.a.TIMED_ID3_METADATA_ARRIVED, function(h) {
4115
- d._emitter.emit(H.TIMED_ID3_METADATA_ARRIVED, h);
4116
- }), this._transmuxer.on(y.a.SMPTE2038_METADATA_ARRIVED, function(h) {
4117
- d._emitter.emit(H.SMPTE2038_METADATA_ARRIVED, h);
4118
- }), this._transmuxer.on(y.a.SCTE35_METADATA_ARRIVED, function(h) {
4119
- d._emitter.emit(H.SCTE35_METADATA_ARRIVED, h);
4120
- }), this._transmuxer.on(y.a.PES_PRIVATE_DATA_DESCRIPTOR, function(h) {
4121
- d._emitter.emit(H.PES_PRIVATE_DATA_DESCRIPTOR, h);
4122
- }), this._transmuxer.on(y.a.PES_PRIVATE_DATA_ARRIVED, function(h) {
4123
- d._emitter.emit(H.PES_PRIVATE_DATA_ARRIVED, h);
4124
- }), this._transmuxer.on(y.a.STATISTICS_INFO, function(h) {
4125
- d._statisticsInfo = d._fillStatisticsInfo(h), d._emitter.emit(H.STATISTICS_INFO, Object.assign({}, d._statisticsInfo));
4126
- }), this._transmuxer.on(y.a.RECOMMEND_SEEKPOINT, function(h) {
4127
- d._mediaElement && !d._config.accurateSeek && (d._requestSetTime = !0, d._mediaElement.currentTime = h / 1e3);
4106
+ }), this._transmuxer.on(y.a.IO_ERROR, function(c, R) {
4107
+ d._emitter.emit(H.ERROR, D.NETWORK_ERROR, c, R);
4108
+ }), this._transmuxer.on(y.a.DEMUX_ERROR, function(c, R) {
4109
+ d._emitter.emit(H.ERROR, D.MEDIA_ERROR, c, { code: -1, msg: R });
4110
+ }), this._transmuxer.on(y.a.MEDIA_INFO, function(c) {
4111
+ d._mediaInfo = c, d._emitter.emit(H.MEDIA_INFO, Object.assign({}, c));
4112
+ }), this._transmuxer.on(y.a.METADATA_ARRIVED, function(c) {
4113
+ d._emitter.emit(H.METADATA_ARRIVED, c);
4114
+ }), this._transmuxer.on(y.a.SCRIPTDATA_ARRIVED, function(c) {
4115
+ d._emitter.emit(H.SCRIPTDATA_ARRIVED, c);
4116
+ }), this._transmuxer.on(y.a.TIMED_ID3_METADATA_ARRIVED, function(c) {
4117
+ d._emitter.emit(H.TIMED_ID3_METADATA_ARRIVED, c);
4118
+ }), this._transmuxer.on(y.a.SMPTE2038_METADATA_ARRIVED, function(c) {
4119
+ d._emitter.emit(H.SMPTE2038_METADATA_ARRIVED, c);
4120
+ }), this._transmuxer.on(y.a.SCTE35_METADATA_ARRIVED, function(c) {
4121
+ d._emitter.emit(H.SCTE35_METADATA_ARRIVED, c);
4122
+ }), this._transmuxer.on(y.a.PES_PRIVATE_DATA_DESCRIPTOR, function(c) {
4123
+ d._emitter.emit(H.PES_PRIVATE_DATA_DESCRIPTOR, c);
4124
+ }), this._transmuxer.on(y.a.PES_PRIVATE_DATA_ARRIVED, function(c) {
4125
+ d._emitter.emit(H.PES_PRIVATE_DATA_ARRIVED, c);
4126
+ }), this._transmuxer.on(y.a.STATISTICS_INFO, function(c) {
4127
+ d._statisticsInfo = d._fillStatisticsInfo(c), d._emitter.emit(H.STATISTICS_INFO, Object.assign({}, d._statisticsInfo));
4128
+ }), this._transmuxer.on(y.a.RECOMMEND_SEEKPOINT, function(c) {
4129
+ d._mediaElement && !d._config.accurateSeek && (d._requestSetTime = !0, d._mediaElement.currentTime = c / 1e3);
4128
4130
  }), this._transmuxer.open()));
4129
- }, k.prototype.unload = function() {
4131
+ }, L.prototype.unload = function() {
4130
4132
  this._mediaElement && this._mediaElement.pause(), this._msectl && this._msectl.seek(0), this._transmuxer && (this._transmuxer.close(), this._transmuxer.destroy(), this._transmuxer = null);
4131
- }, k.prototype.play = function() {
4133
+ }, L.prototype.play = function() {
4132
4134
  return this._mediaElement.play();
4133
- }, k.prototype.pause = function() {
4135
+ }, L.prototype.pause = function() {
4134
4136
  this._mediaElement.pause();
4135
- }, Object.defineProperty(k.prototype, "type", { get: function() {
4137
+ }, Object.defineProperty(L.prototype, "type", { get: function() {
4136
4138
  return this._type;
4137
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "buffered", { get: function() {
4139
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "buffered", { get: function() {
4138
4140
  return this._mediaElement.buffered;
4139
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "duration", { get: function() {
4141
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "duration", { get: function() {
4140
4142
  return this._mediaElement.duration;
4141
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "volume", { get: function() {
4143
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "volume", { get: function() {
4142
4144
  return this._mediaElement.volume;
4143
4145
  }, set: function(d) {
4144
4146
  this._mediaElement.volume = d;
4145
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "muted", { get: function() {
4147
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "muted", { get: function() {
4146
4148
  return this._mediaElement.muted;
4147
4149
  }, set: function(d) {
4148
4150
  this._mediaElement.muted = d;
4149
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "currentTime", { get: function() {
4151
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "currentTime", { get: function() {
4150
4152
  return this._mediaElement ? this._mediaElement.currentTime : 0;
4151
4153
  }, set: function(d) {
4152
4154
  this._mediaElement ? this._internalSeek(d) : this._pendingSeekTime = d;
4153
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "mediaInfo", { get: function() {
4155
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "mediaInfo", { get: function() {
4154
4156
  return Object.assign({}, this._mediaInfo);
4155
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "statisticsInfo", { get: function() {
4157
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "statisticsInfo", { get: function() {
4156
4158
  return this._statisticsInfo == null && (this._statisticsInfo = {}), this._statisticsInfo = this._fillStatisticsInfo(this._statisticsInfo), Object.assign({}, this._statisticsInfo);
4157
- }, enumerable: !1, configurable: !0 }), k.prototype._fillStatisticsInfo = function(d) {
4159
+ }, enumerable: !1, configurable: !0 }), L.prototype._fillStatisticsInfo = function(d) {
4158
4160
  if (d.playerType = this._type, !(this._mediaElement instanceof HTMLVideoElement)) return d;
4159
- var h = !0, R = 0, X = 0;
4161
+ var c = !0, R = 0, Y = 0;
4160
4162
  if (this._mediaElement.getVideoPlaybackQuality) {
4161
4163
  var oe = this._mediaElement.getVideoPlaybackQuality();
4162
- R = oe.totalVideoFrames, X = oe.droppedVideoFrames;
4163
- } else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, X = this._mediaElement.webkitDroppedFrameCount) : h = !1;
4164
- return h && (d.decodedFrames = R, d.droppedFrames = X), d;
4165
- }, k.prototype._onmseUpdateEnd = function() {
4166
- var d = this._mediaElement.buffered, h = this._mediaElement.currentTime;
4164
+ R = oe.totalVideoFrames, Y = oe.droppedVideoFrames;
4165
+ } else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, Y = this._mediaElement.webkitDroppedFrameCount) : c = !1;
4166
+ return c && (d.decodedFrames = R, d.droppedFrames = Y), d;
4167
+ }, L.prototype._onmseUpdateEnd = function() {
4168
+ var d = this._mediaElement.buffered, c = this._mediaElement.currentTime;
4167
4169
  if (this._config.isLive && this._config.liveBufferLatencyChasing && d.length > 0 && !this._mediaElement.paused) {
4168
4170
  var R = d.end(d.length - 1);
4169
- if (R > this._config.liveBufferLatencyMaxLatency && R - h > this._config.liveBufferLatencyMaxLatency) {
4170
- var X = R - this._config.liveBufferLatencyMinRemain;
4171
- this.currentTime = X;
4171
+ if (R > this._config.liveBufferLatencyMaxLatency && R - c > this._config.liveBufferLatencyMaxLatency) {
4172
+ var Y = R - this._config.liveBufferLatencyMinRemain;
4173
+ this.currentTime = Y;
4172
4174
  }
4173
4175
  }
4174
4176
  if (this._config.lazyLoad && !this._config.isLive) {
4175
4177
  for (var oe = 0, me = 0; me < d.length; me++) {
4176
4178
  var Se = d.start(me), De = d.end(me);
4177
- if (Se <= h && h < De) {
4179
+ if (Se <= c && c < De) {
4178
4180
  oe = De;
4179
4181
  break;
4180
4182
  }
4181
4183
  }
4182
- oe >= h + this._config.lazyLoadMaxDuration && this._progressChecker == null && (C.a.v(this.TAG, "Maximum buffering duration exceeded, suspend transmuxing task"), this._suspendTransmuxer());
4184
+ oe >= c + this._config.lazyLoadMaxDuration && this._progressChecker == null && (C.a.v(this.TAG, "Maximum buffering duration exceeded, suspend transmuxing task"), this._suspendTransmuxer());
4183
4185
  }
4184
- }, k.prototype._onmseBufferFull = function() {
4186
+ }, L.prototype._onmseBufferFull = function() {
4185
4187
  C.a.v(this.TAG, "MSE SourceBuffer is full, suspend transmuxing task"), this._progressChecker == null && this._suspendTransmuxer();
4186
- }, k.prototype._suspendTransmuxer = function() {
4188
+ }, L.prototype._suspendTransmuxer = function() {
4187
4189
  this._transmuxer && (this._transmuxer.pause(), this._progressChecker == null && (this._progressChecker = window.setInterval(this._checkProgressAndResume.bind(this), 1e3)));
4188
- }, k.prototype._checkProgressAndResume = function() {
4189
- for (var d = this._mediaElement.currentTime, h = this._mediaElement.buffered, R = !1, X = 0; X < h.length; X++) {
4190
- var oe = h.start(X), me = h.end(X);
4190
+ }, L.prototype._checkProgressAndResume = function() {
4191
+ for (var d = this._mediaElement.currentTime, c = this._mediaElement.buffered, R = !1, Y = 0; Y < c.length; Y++) {
4192
+ var oe = c.start(Y), me = c.end(Y);
4191
4193
  if (d >= oe && d < me) {
4192
4194
  d >= me - this._config.lazyLoadRecoverDuration && (R = !0);
4193
4195
  break;
4194
4196
  }
4195
4197
  }
4196
4198
  R && (window.clearInterval(this._progressChecker), this._progressChecker = null, R && (C.a.v(this.TAG, "Continue loading from paused position"), this._transmuxer.resume()));
4197
- }, k.prototype._isTimepointBuffered = function(d) {
4198
- for (var h = this._mediaElement.buffered, R = 0; R < h.length; R++) {
4199
- var X = h.start(R), oe = h.end(R);
4200
- if (d >= X && d < oe) return !0;
4199
+ }, L.prototype._isTimepointBuffered = function(d) {
4200
+ for (var c = this._mediaElement.buffered, R = 0; R < c.length; R++) {
4201
+ var Y = c.start(R), oe = c.end(R);
4202
+ if (d >= Y && d < oe) return !0;
4201
4203
  }
4202
4204
  return !1;
4203
- }, k.prototype._internalSeek = function(d) {
4204
- var h = this._isTimepointBuffered(d), R = !1, X = 0;
4205
+ }, L.prototype._internalSeek = function(d) {
4206
+ var c = this._isTimepointBuffered(d), R = !1, Y = 0;
4205
4207
  if (d < 1 && this._mediaElement.buffered.length > 0) {
4206
4208
  var oe = this._mediaElement.buffered.start(0);
4207
- (oe < 1 && d < oe || V.a.safari) && (R = !0, X = V.a.safari ? 0.1 : oe);
4209
+ (oe < 1 && d < oe || j.a.safari) && (R = !0, Y = j.a.safari ? 0.1 : oe);
4208
4210
  }
4209
- if (R) this._requestSetTime = !0, this._mediaElement.currentTime = X;
4210
- else if (h) {
4211
+ if (R) this._requestSetTime = !0, this._mediaElement.currentTime = Y;
4212
+ else if (c) {
4211
4213
  if (this._alwaysSeekKeyframe) {
4212
4214
  var me = this._msectl.getNearestKeyframe(Math.floor(1e3 * d));
4213
4215
  this._requestSetTime = !0, this._mediaElement.currentTime = me != null ? me.dts / 1e3 : d;
4214
4216
  } else this._requestSetTime = !0, this._mediaElement.currentTime = d;
4215
4217
  this._progressChecker != null && this._checkProgressAndResume();
4216
4218
  } else this._progressChecker != null && (window.clearInterval(this._progressChecker), this._progressChecker = null), this._msectl.seek(d), this._transmuxer.seek(Math.floor(1e3 * d)), this._config.accurateSeek && (this._requestSetTime = !0, this._mediaElement.currentTime = d);
4217
- }, k.prototype._checkAndApplyUnbufferedSeekpoint = function() {
4219
+ }, L.prototype._checkAndApplyUnbufferedSeekpoint = function() {
4218
4220
  if (this._seekpointRecord) if (this._seekpointRecord.recordTime <= this._now() - 100) {
4219
4221
  var d = this._mediaElement.currentTime;
4220
4222
  this._seekpointRecord = null, this._isTimepointBuffered(d) || (this._progressChecker != null && (window.clearTimeout(this._progressChecker), this._progressChecker = null), this._msectl.seek(d), this._transmuxer.seek(Math.floor(1e3 * d)), this._config.accurateSeek && (this._requestSetTime = !0, this._mediaElement.currentTime = d));
4221
4223
  } else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50);
4222
- }, k.prototype._checkAndResumeStuckPlayback = function(d) {
4223
- var h = this._mediaElement;
4224
- if (d || !this._receivedCanPlay || h.readyState < 2) {
4225
- var R = h.buffered;
4226
- R.length > 0 && h.currentTime < R.start(0) && (C.a.w(this.TAG, "Playback seems stuck at " + h.currentTime + ", seek to " + R.start(0)), this._requestSetTime = !0, this._mediaElement.currentTime = R.start(0), this._mediaElement.removeEventListener("progress", this.e.onvProgress));
4224
+ }, L.prototype._checkAndResumeStuckPlayback = function(d) {
4225
+ var c = this._mediaElement;
4226
+ if (d || !this._receivedCanPlay || c.readyState < 2) {
4227
+ var R = c.buffered;
4228
+ R.length > 0 && c.currentTime < R.start(0) && (C.a.w(this.TAG, "Playback seems stuck at " + c.currentTime + ", seek to " + R.start(0)), this._requestSetTime = !0, this._mediaElement.currentTime = R.start(0), this._mediaElement.removeEventListener("progress", this.e.onvProgress));
4227
4229
  } else this._mediaElement.removeEventListener("progress", this.e.onvProgress);
4228
- }, k.prototype._onvLoadedMetadata = function(d) {
4230
+ }, L.prototype._onvLoadedMetadata = function(d) {
4229
4231
  this._pendingSeekTime != null && (this._mediaElement.currentTime = this._pendingSeekTime, this._pendingSeekTime = null);
4230
- }, k.prototype._onvSeeking = function(d) {
4231
- var h = this._mediaElement.currentTime, R = this._mediaElement.buffered;
4232
+ }, L.prototype._onvSeeking = function(d) {
4233
+ var c = this._mediaElement.currentTime, R = this._mediaElement.buffered;
4232
4234
  if (this._requestSetTime) this._requestSetTime = !1;
4233
4235
  else {
4234
- if (h < 1 && R.length > 0) {
4235
- var X = R.start(0);
4236
- if (X < 1 && h < X || V.a.safari) return this._requestSetTime = !0, void (this._mediaElement.currentTime = V.a.safari ? 0.1 : X);
4236
+ if (c < 1 && R.length > 0) {
4237
+ var Y = R.start(0);
4238
+ if (Y < 1 && c < Y || j.a.safari) return this._requestSetTime = !0, void (this._mediaElement.currentTime = j.a.safari ? 0.1 : Y);
4237
4239
  }
4238
- if (this._isTimepointBuffered(h)) {
4240
+ if (this._isTimepointBuffered(c)) {
4239
4241
  if (this._alwaysSeekKeyframe) {
4240
- var oe = this._msectl.getNearestKeyframe(Math.floor(1e3 * h));
4242
+ var oe = this._msectl.getNearestKeyframe(Math.floor(1e3 * c));
4241
4243
  oe != null && (this._requestSetTime = !0, this._mediaElement.currentTime = oe.dts / 1e3);
4242
4244
  }
4243
4245
  this._progressChecker != null && this._checkProgressAndResume();
4244
- } else this._seekpointRecord = { seekPoint: h, recordTime: this._now() }, window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50);
4246
+ } else this._seekpointRecord = { seekPoint: c, recordTime: this._now() }, window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50);
4245
4247
  }
4246
- }, k.prototype._onvCanPlay = function(d) {
4248
+ }, L.prototype._onvCanPlay = function(d) {
4247
4249
  this._receivedCanPlay = !0, this._mediaElement.removeEventListener("canplay", this.e.onvCanPlay);
4248
- }, k.prototype._onvStalled = function(d) {
4250
+ }, L.prototype._onvStalled = function(d) {
4249
4251
  this._checkAndResumeStuckPlayback(!0);
4250
- }, k.prototype._onvProgress = function(d) {
4252
+ }, L.prototype._onvProgress = function(d) {
4251
4253
  this._checkAndResumeStuckPlayback();
4252
- }, k;
4254
+ }, L;
4253
4255
  }(), pe = function() {
4254
- function k(d, h) {
4255
- this.TAG = "NativePlayer", this._type = "NativePlayer", this._emitter = new x.a(), this._config = b(), typeof h == "object" && Object.assign(this._config, h);
4256
+ function L(d, c) {
4257
+ this.TAG = "NativePlayer", this._type = "NativePlayer", this._emitter = new M.a(), this._config = b(), typeof c == "object" && Object.assign(this._config, c);
4256
4258
  var R = d.type.toLowerCase();
4257
4259
  if (R === "mse" || R === "mpegts" || R === "m2ts" || R === "flv") throw new _.b("NativePlayer does't support mse/mpegts/m2ts/flv MediaDataSource input!");
4258
4260
  if (d.hasOwnProperty("segments")) throw new _.b("NativePlayer(" + d.type + ") doesn't support multipart playback!");
4259
4261
  this.e = { onvLoadedMetadata: this._onvLoadedMetadata.bind(this) }, this._pendingSeekTime = null, this._statisticsReporter = null, this._mediaDataSource = d, this._mediaElement = null;
4260
4262
  }
4261
- return k.prototype.destroy = function() {
4263
+ return L.prototype.destroy = function() {
4262
4264
  this._mediaElement && (this.unload(), this.detachMediaElement()), this.e = null, this._mediaDataSource = null, this._emitter.removeAllListeners(), this._emitter = null;
4263
- }, k.prototype.on = function(d, h) {
4265
+ }, L.prototype.on = function(d, c) {
4264
4266
  var R = this;
4265
4267
  d === H.MEDIA_INFO ? this._mediaElement != null && this._mediaElement.readyState !== 0 && Promise.resolve().then(function() {
4266
4268
  R._emitter.emit(H.MEDIA_INFO, R.mediaInfo);
4267
4269
  }) : d === H.STATISTICS_INFO && this._mediaElement != null && this._mediaElement.readyState !== 0 && Promise.resolve().then(function() {
4268
4270
  R._emitter.emit(H.STATISTICS_INFO, R.statisticsInfo);
4269
- }), this._emitter.addListener(d, h);
4270
- }, k.prototype.off = function(d, h) {
4271
- this._emitter.removeListener(d, h);
4272
- }, k.prototype.attachMediaElement = function(d) {
4271
+ }), this._emitter.addListener(d, c);
4272
+ }, L.prototype.off = function(d, c) {
4273
+ this._emitter.removeListener(d, c);
4274
+ }, L.prototype.attachMediaElement = function(d) {
4273
4275
  if (this._mediaElement = d, d.addEventListener("loadedmetadata", this.e.onvLoadedMetadata), this._pendingSeekTime != null) try {
4274
4276
  d.currentTime = this._pendingSeekTime, this._pendingSeekTime = null;
4275
4277
  } catch {
4276
4278
  }
4277
- }, k.prototype.detachMediaElement = function() {
4279
+ }, L.prototype.detachMediaElement = function() {
4278
4280
  this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src"), this._mediaElement.removeEventListener("loadedmetadata", this.e.onvLoadedMetadata), this._mediaElement = null), this._statisticsReporter != null && (window.clearInterval(this._statisticsReporter), this._statisticsReporter = null);
4279
- }, k.prototype.load = function() {
4281
+ }, L.prototype.load = function() {
4280
4282
  if (!this._mediaElement) throw new _.a("HTMLMediaElement must be attached before load()!");
4281
4283
  this._mediaElement.src = this._mediaDataSource.url, this._mediaElement.readyState > 0 && (this._mediaElement.currentTime = 0), this._mediaElement.preload = "auto", this._mediaElement.load(), this._statisticsReporter = window.setInterval(this._reportStatisticsInfo.bind(this), this._config.statisticsInfoReportInterval);
4282
- }, k.prototype.unload = function() {
4284
+ }, L.prototype.unload = function() {
4283
4285
  this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src")), this._statisticsReporter != null && (window.clearInterval(this._statisticsReporter), this._statisticsReporter = null);
4284
- }, k.prototype.play = function() {
4286
+ }, L.prototype.play = function() {
4285
4287
  return this._mediaElement.play();
4286
- }, k.prototype.pause = function() {
4288
+ }, L.prototype.pause = function() {
4287
4289
  this._mediaElement.pause();
4288
- }, Object.defineProperty(k.prototype, "type", { get: function() {
4290
+ }, Object.defineProperty(L.prototype, "type", { get: function() {
4289
4291
  return this._type;
4290
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "buffered", { get: function() {
4292
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "buffered", { get: function() {
4291
4293
  return this._mediaElement.buffered;
4292
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "duration", { get: function() {
4294
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "duration", { get: function() {
4293
4295
  return this._mediaElement.duration;
4294
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "volume", { get: function() {
4296
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "volume", { get: function() {
4295
4297
  return this._mediaElement.volume;
4296
4298
  }, set: function(d) {
4297
4299
  this._mediaElement.volume = d;
4298
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "muted", { get: function() {
4300
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "muted", { get: function() {
4299
4301
  return this._mediaElement.muted;
4300
4302
  }, set: function(d) {
4301
4303
  this._mediaElement.muted = d;
4302
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "currentTime", { get: function() {
4304
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "currentTime", { get: function() {
4303
4305
  return this._mediaElement ? this._mediaElement.currentTime : 0;
4304
4306
  }, set: function(d) {
4305
4307
  this._mediaElement ? this._mediaElement.currentTime = d : this._pendingSeekTime = d;
4306
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "mediaInfo", { get: function() {
4308
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "mediaInfo", { get: function() {
4307
4309
  var d = { mimeType: (this._mediaElement instanceof HTMLAudioElement ? "audio/" : "video/") + this._mediaDataSource.type };
4308
4310
  return this._mediaElement && (d.duration = Math.floor(1e3 * this._mediaElement.duration), this._mediaElement instanceof HTMLVideoElement && (d.width = this._mediaElement.videoWidth, d.height = this._mediaElement.videoHeight)), d;
4309
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "statisticsInfo", { get: function() {
4311
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "statisticsInfo", { get: function() {
4310
4312
  var d = { playerType: this._type, url: this._mediaDataSource.url };
4311
4313
  if (!(this._mediaElement instanceof HTMLVideoElement)) return d;
4312
- var h = !0, R = 0, X = 0;
4314
+ var c = !0, R = 0, Y = 0;
4313
4315
  if (this._mediaElement.getVideoPlaybackQuality) {
4314
4316
  var oe = this._mediaElement.getVideoPlaybackQuality();
4315
- R = oe.totalVideoFrames, X = oe.droppedVideoFrames;
4316
- } else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, X = this._mediaElement.webkitDroppedFrameCount) : h = !1;
4317
- return h && (d.decodedFrames = R, d.droppedFrames = X), d;
4318
- }, enumerable: !1, configurable: !0 }), k.prototype._onvLoadedMetadata = function(d) {
4317
+ R = oe.totalVideoFrames, Y = oe.droppedVideoFrames;
4318
+ } else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, Y = this._mediaElement.webkitDroppedFrameCount) : c = !1;
4319
+ return c && (d.decodedFrames = R, d.droppedFrames = Y), d;
4320
+ }, enumerable: !1, configurable: !0 }), L.prototype._onvLoadedMetadata = function(d) {
4319
4321
  this._pendingSeekTime != null && (this._mediaElement.currentTime = this._pendingSeekTime, this._pendingSeekTime = null), this._emitter.emit(H.MEDIA_INFO, this.mediaInfo);
4320
- }, k.prototype._reportStatisticsInfo = function() {
4322
+ }, L.prototype._reportStatisticsInfo = function() {
4321
4323
  this._emitter.emit(H.STATISTICS_INFO, this.statisticsInfo);
4322
- }, k;
4324
+ }, L;
4323
4325
  }();
4324
4326
  U.a.install();
4325
- var ve = { createPlayer: function(k, d) {
4326
- var h = k;
4327
- if (h == null || typeof h != "object") throw new _.b("MediaDataSource must be an javascript object!");
4328
- if (!h.hasOwnProperty("type")) throw new _.b("MediaDataSource must has type field to indicate video file type!");
4329
- switch (h.type) {
4327
+ var ve = { createPlayer: function(L, d) {
4328
+ var c = L;
4329
+ if (c == null || typeof c != "object") throw new _.b("MediaDataSource must be an javascript object!");
4330
+ if (!c.hasOwnProperty("type")) throw new _.b("MediaDataSource must has type field to indicate video file type!");
4331
+ switch (c.type) {
4330
4332
  case "mse":
4331
4333
  case "mpegts":
4332
4334
  case "m2ts":
4333
4335
  case "flv":
4334
- return new ee(h, d);
4336
+ return new ee(c, d);
4335
4337
  default:
4336
- return new pe(h, d);
4338
+ return new pe(c, d);
4337
4339
  }
4338
4340
  }, isSupported: function() {
4339
4341
  return v.supportMSEH264Playback();
4340
4342
  }, getFeatureList: function() {
4341
4343
  return v.getFeatureList();
4342
4344
  } };
4343
- ve.BaseLoader = f.a, ve.LoaderStatus = f.c, ve.LoaderErrors = f.b, ve.Events = H, ve.ErrorTypes = D, ve.ErrorDetails = F, ve.MSEPlayer = ee, ve.NativePlayer = pe, ve.LoggingControl = Y.a, Object.defineProperty(ve, "version", { enumerable: !0, get: function() {
4345
+ ve.BaseLoader = f.a, ve.LoaderStatus = f.c, ve.LoaderErrors = f.b, ve.Events = H, ve.ErrorTypes = D, ve.ErrorDetails = V, ve.MSEPlayer = ee, ve.NativePlayer = pe, ve.LoggingControl = X.a, Object.defineProperty(ve, "version", { enumerable: !0, get: function() {
4344
4346
  return "1.7.3";
4345
4347
  } }), Z.default = ve;
4346
4348
  }]);
@@ -4358,12 +4360,13 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
4358
4360
  loadingText: {},
4359
4361
  error: { type: Boolean },
4360
4362
  errorText: {},
4361
- retryTime: {}
4363
+ retryTime: {},
4364
+ errorTime: {}
4362
4365
  },
4363
4366
  emits: ["loaded", "errorClick"],
4364
4367
  setup(Ie, { expose: Ye, emit: fe }) {
4365
- Jt((l) => ({
4366
- "600c0879": G.value
4368
+ Jt((h) => ({
4369
+ "0ea53312": u.value
4367
4370
  }));
4368
4371
  const Z = Ie, O = fe;
4369
4372
  let U;
@@ -4373,50 +4376,57 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
4373
4376
  loading: b = !1,
4374
4377
  error: v = !1,
4375
4378
  errorText: f = At("das-ui-live-player-videoLoadFailedRetry")
4376
- } = Zt(Z), L = ot(() => Z.src || ""), x = ot(() => {
4377
- const l = L.value.split(".").pop() || void 0;
4378
- return Z.type ?? l ?? "flv";
4379
- }), C = ot(() => Z.config || {}), V = Xe(Z.retryTime || 0), H = Xe(null), ue = async () => {
4380
- if (!H.value) return;
4381
- const l = {
4382
- type: x.value,
4379
+ } = Zt(Z), k = (h) => {
4380
+ const P = h.target;
4381
+ console.log("Video error:", P.error), setTimeout(() => {
4382
+ C();
4383
+ }, 1e3);
4384
+ }, M = He(Z.errorTime || 10), C = () => {
4385
+ M.value !== 0 && (M.value = M.value - 1, T(), ie());
4386
+ }, j = ot(() => Z.src || ""), H = ot(() => {
4387
+ const h = j.value.split(".").pop() || void 0;
4388
+ return Z.type ?? h ?? "flv";
4389
+ }), le = ot(() => Z.config || {}), ne = He(Z.retryTime || 0), X = He(null), ie = async () => {
4390
+ if (!X.value) return;
4391
+ const h = {
4392
+ type: H.value,
4383
4393
  isLive: !0,
4384
- url: L.value
4394
+ url: j.value
4385
4395
  };
4386
- U = Rt.createPlayer(l, C.value), U.attachMediaElement(H.value), U.load(), U.play(), U.on(Rt.Events.ERROR, se), O("loaded", U);
4387
- }, se = (l, u) => {
4388
- Y();
4389
- }, Y = () => {
4390
- V.value !== 0 && (V.value = V.value - 1, ae(), ue());
4391
- }, ae = () => {
4392
- U && (U.pause(), U.unload(), U.detachMediaElement(), U.destroy(), U = null);
4396
+ U = Rt.createPlayer(h, le.value), U.attachMediaElement(X.value), U.load(), U.play(), U.on(Rt.Events.ERROR, y), O("loaded", U);
4397
+ }, y = (h, P) => {
4398
+ console.error("mpegts error:", h, P), G();
4399
+ }, G = () => {
4400
+ ne.value !== 0 && (ne.value = ne.value - 1, T(), ie());
4401
+ }, T = () => {
4402
+ U && (console.log("destroy", U), U.pause(), U.unload(), U.detachMediaElement(), U.destroy(), U = null);
4393
4403
  };
4394
4404
  $t(() => {
4395
- ue();
4405
+ ie();
4396
4406
  }), Qt(() => {
4397
- ae();
4407
+ T();
4398
4408
  }), Ye({
4399
- video: H
4409
+ video: X
4400
4410
  });
4401
- const y = Xe("el-icon-loading"), G = Xe("rgba(0, 0, 0, 0.8)"), T = () => {
4402
- ue(), O("errorClick");
4411
+ const l = He("el-icon-loading"), u = He("rgba(0, 0, 0, 0.8)"), _ = () => {
4412
+ ie(), O("errorClick");
4403
4413
  };
4404
- return (l, u) => {
4405
- const _ = si;
4414
+ return (h, P) => {
4415
+ const D = si;
4406
4416
  return ei((ut(), dt("div", {
4407
4417
  class: "das-live-player",
4408
- "element-loading-text": We(m),
4409
- "element-loading-spinner": y.value,
4410
- "element-loading-background": G.value
4418
+ "element-loading-text": Xe(m),
4419
+ "element-loading-spinner": l.value,
4420
+ "element-loading-background": u.value
4411
4421
  }, [
4412
- We(v) ? (ut(), dt("div", {
4422
+ Xe(v) ? (ut(), dt("div", {
4413
4423
  key: 1,
4414
4424
  class: "error",
4415
- onClick: T
4425
+ onClick: _
4416
4426
  }, [
4417
- ii(l.$slots, "error", {}, () => [
4427
+ ii(h.$slots, "error", {}, () => [
4418
4428
  ri(
4419
- ai(We(f)),
4429
+ ai(Xe(f)),
4420
4430
  1
4421
4431
  /* TEXT */
4422
4432
  )
@@ -4426,17 +4436,18 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
4426
4436
  {
4427
4437
  key: 0,
4428
4438
  ref_key: "video",
4429
- ref: H,
4439
+ ref: X,
4430
4440
  class: "video",
4431
- style: ti({ "object-fit": We(B) }),
4432
- muted: ""
4441
+ style: ti({ "object-fit": Xe(B) }),
4442
+ muted: "",
4443
+ onError: k
4433
4444
  },
4434
4445
  null,
4435
- 4
4436
- /* STYLE */
4446
+ 36
4447
+ /* STYLE, NEED_HYDRATION */
4437
4448
  ))
4438
4449
  ], 8, li)), [
4439
- [_, We(b)]
4450
+ [D, Xe(b)]
4440
4451
  ]);
4441
4452
  };
4442
4453
  }
@@ -4445,7 +4456,7 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
4445
4456
  for (const [Z, O] of Ye)
4446
4457
  fe[Z] = O;
4447
4458
  return fe;
4448
- }, ci = /* @__PURE__ */ hi(_i, [["__scopeId", "data-v-70d5eba5"]]), fi = {
4459
+ }, ci = /* @__PURE__ */ hi(_i, [["__scopeId", "data-v-6002a51c"]]), fi = {
4449
4460
  加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
4450
4461
  "das-ui-live-player-videoLoadFailedRetry": {
4451
4462
  "zh-CN": "视频加载失败,请点击重试",
@@ -4454,7 +4465,7 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
4454
4465
  }
4455
4466
  };
4456
4467
  oi(fi);
4457
- const Si = ni(ci), Ei = () => Xe(null);
4468
+ const Si = ni(ci), Ei = () => He(null);
4458
4469
  export {
4459
4470
  Si as DasLivePlayer,
4460
4471
  Ei as getDasLivePlayerRef