@arcgis/core 4.34.0-next.73 → 4.34.0-next.74

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 (4511) hide show
  1. package/applications/Components/QuantityFormatter.js +1 -1
  2. package/applications/Components/viewUtils.js +1 -1
  3. package/arcade/Dictionary.js +1 -1
  4. package/arcade/functions/featuresetstats.js +1 -1
  5. package/arcade/functions/geomasync.js +1 -1
  6. package/arcade/functions/geomsync.js +1 -1
  7. package/arcade/functions/stats.js +1 -1
  8. package/arcade/geometry/offset.js +5 -0
  9. package/arcade/geometry/operators.js +1 -1
  10. package/arcade/geometry/operatorsWorker.js +1 -1
  11. package/assets/components/assets/accordion-item/t9n/messages.ar.json +1 -0
  12. package/assets/components/assets/accordion-item/t9n/messages.bg.json +1 -0
  13. package/assets/components/assets/accordion-item/t9n/messages.bs.json +1 -0
  14. package/assets/components/assets/accordion-item/t9n/messages.ca.json +1 -0
  15. package/assets/components/assets/accordion-item/t9n/messages.cs.json +1 -0
  16. package/assets/components/assets/accordion-item/t9n/messages.da.json +1 -0
  17. package/assets/components/assets/accordion-item/t9n/messages.de.json +1 -0
  18. package/assets/components/assets/accordion-item/t9n/messages.el.json +1 -0
  19. package/assets/components/assets/accordion-item/t9n/messages.en.json +1 -0
  20. package/assets/components/assets/accordion-item/t9n/messages.es.json +1 -0
  21. package/assets/components/assets/accordion-item/t9n/messages.et.json +1 -0
  22. package/assets/components/assets/accordion-item/t9n/messages.fi.json +1 -0
  23. package/assets/components/assets/accordion-item/t9n/messages.fr.json +1 -0
  24. package/assets/components/assets/accordion-item/t9n/messages.he.json +1 -0
  25. package/assets/components/assets/accordion-item/t9n/messages.hr.json +1 -0
  26. package/assets/components/assets/accordion-item/t9n/messages.hu.json +1 -0
  27. package/assets/components/assets/accordion-item/t9n/messages.id.json +1 -0
  28. package/assets/components/assets/accordion-item/t9n/messages.it.json +1 -0
  29. package/assets/components/assets/accordion-item/t9n/messages.ja.json +1 -0
  30. package/assets/components/assets/accordion-item/t9n/messages.json +1 -0
  31. package/assets/components/assets/accordion-item/t9n/messages.ko.json +1 -0
  32. package/assets/components/assets/accordion-item/t9n/messages.lt.json +1 -0
  33. package/assets/components/assets/accordion-item/t9n/messages.lv.json +1 -0
  34. package/assets/components/assets/accordion-item/t9n/messages.nl.json +1 -0
  35. package/assets/components/assets/accordion-item/t9n/messages.no.json +1 -0
  36. package/assets/components/assets/accordion-item/t9n/messages.pl.json +1 -0
  37. package/assets/components/assets/accordion-item/t9n/messages.pt-BR.json +1 -0
  38. package/assets/components/assets/accordion-item/t9n/messages.pt-PT.json +1 -0
  39. package/assets/components/assets/accordion-item/t9n/messages.ro.json +1 -0
  40. package/assets/components/assets/accordion-item/t9n/messages.ru.json +1 -0
  41. package/assets/components/assets/accordion-item/t9n/messages.sk.json +1 -0
  42. package/assets/components/assets/accordion-item/t9n/messages.sl.json +1 -0
  43. package/assets/components/assets/accordion-item/t9n/messages.sr.json +1 -0
  44. package/assets/components/assets/accordion-item/t9n/messages.sv.json +1 -0
  45. package/assets/components/assets/accordion-item/t9n/messages.th.json +1 -0
  46. package/assets/components/assets/accordion-item/t9n/messages.tr.json +1 -0
  47. package/assets/components/assets/accordion-item/t9n/messages.uk.json +1 -0
  48. package/assets/components/assets/accordion-item/t9n/messages.vi.json +1 -0
  49. package/assets/components/assets/accordion-item/t9n/messages.zh-CN.json +1 -0
  50. package/assets/components/assets/accordion-item/t9n/messages.zh-HK.json +1 -0
  51. package/assets/components/assets/accordion-item/t9n/messages.zh-TW.json +1 -0
  52. package/assets/components/assets/action-bar/t9n/messages.ar.json +1 -1
  53. package/assets/components/assets/action-bar/t9n/messages.bg.json +1 -1
  54. package/assets/components/assets/action-bar/t9n/messages.bs.json +1 -1
  55. package/assets/components/assets/action-bar/t9n/messages.ca.json +1 -1
  56. package/assets/components/assets/action-bar/t9n/messages.cs.json +1 -1
  57. package/assets/components/assets/action-bar/t9n/messages.da.json +1 -1
  58. package/assets/components/assets/action-bar/t9n/messages.de.json +1 -1
  59. package/assets/components/assets/action-bar/t9n/messages.el.json +1 -1
  60. package/assets/components/assets/action-bar/t9n/messages.en.json +1 -1
  61. package/assets/components/assets/action-bar/t9n/messages.es.json +1 -1
  62. package/assets/components/assets/action-bar/t9n/messages.et.json +1 -1
  63. package/assets/components/assets/action-bar/t9n/messages.fi.json +1 -1
  64. package/assets/components/assets/action-bar/t9n/messages.fr.json +1 -1
  65. package/assets/components/assets/action-bar/t9n/messages.he.json +1 -1
  66. package/assets/components/assets/action-bar/t9n/messages.hr.json +1 -1
  67. package/assets/components/assets/action-bar/t9n/messages.hu.json +1 -1
  68. package/assets/components/assets/action-bar/t9n/messages.id.json +1 -1
  69. package/assets/components/assets/action-bar/t9n/messages.it.json +1 -1
  70. package/assets/components/assets/action-bar/t9n/messages.ja.json +1 -1
  71. package/assets/components/assets/action-bar/t9n/messages.json +1 -1
  72. package/assets/components/assets/action-bar/t9n/messages.ko.json +1 -1
  73. package/assets/components/assets/action-bar/t9n/messages.lt.json +1 -1
  74. package/assets/components/assets/action-bar/t9n/messages.lv.json +1 -1
  75. package/assets/components/assets/action-bar/t9n/messages.nl.json +1 -1
  76. package/assets/components/assets/action-bar/t9n/messages.no.json +1 -1
  77. package/assets/components/assets/action-bar/t9n/messages.pl.json +1 -1
  78. package/assets/components/assets/action-bar/t9n/messages.pt-BR.json +1 -1
  79. package/assets/components/assets/action-bar/t9n/messages.pt-PT.json +1 -1
  80. package/assets/components/assets/action-bar/t9n/messages.ro.json +1 -1
  81. package/assets/components/assets/action-bar/t9n/messages.ru.json +1 -1
  82. package/assets/components/assets/action-bar/t9n/messages.sk.json +1 -1
  83. package/assets/components/assets/action-bar/t9n/messages.sl.json +1 -1
  84. package/assets/components/assets/action-bar/t9n/messages.sr.json +1 -1
  85. package/assets/components/assets/action-bar/t9n/messages.sv.json +1 -1
  86. package/assets/components/assets/action-bar/t9n/messages.th.json +1 -1
  87. package/assets/components/assets/action-bar/t9n/messages.tr.json +1 -1
  88. package/assets/components/assets/action-bar/t9n/messages.uk.json +1 -1
  89. package/assets/components/assets/action-bar/t9n/messages.vi.json +1 -1
  90. package/assets/components/assets/action-bar/t9n/messages.zh-CN.json +1 -1
  91. package/assets/components/assets/action-bar/t9n/messages.zh-HK.json +1 -1
  92. package/assets/components/assets/action-bar/t9n/messages.zh-TW.json +1 -1
  93. package/assets/components/assets/action-pad/t9n/messages.ar.json +1 -1
  94. package/assets/components/assets/action-pad/t9n/messages.bg.json +1 -1
  95. package/assets/components/assets/action-pad/t9n/messages.bs.json +1 -1
  96. package/assets/components/assets/action-pad/t9n/messages.ca.json +1 -1
  97. package/assets/components/assets/action-pad/t9n/messages.cs.json +1 -1
  98. package/assets/components/assets/action-pad/t9n/messages.da.json +1 -1
  99. package/assets/components/assets/action-pad/t9n/messages.de.json +1 -1
  100. package/assets/components/assets/action-pad/t9n/messages.el.json +1 -1
  101. package/assets/components/assets/action-pad/t9n/messages.en.json +1 -1
  102. package/assets/components/assets/action-pad/t9n/messages.es.json +1 -1
  103. package/assets/components/assets/action-pad/t9n/messages.et.json +1 -1
  104. package/assets/components/assets/action-pad/t9n/messages.fi.json +1 -1
  105. package/assets/components/assets/action-pad/t9n/messages.fr.json +1 -1
  106. package/assets/components/assets/action-pad/t9n/messages.he.json +1 -1
  107. package/assets/components/assets/action-pad/t9n/messages.hr.json +1 -1
  108. package/assets/components/assets/action-pad/t9n/messages.hu.json +1 -1
  109. package/assets/components/assets/action-pad/t9n/messages.id.json +1 -1
  110. package/assets/components/assets/action-pad/t9n/messages.it.json +1 -1
  111. package/assets/components/assets/action-pad/t9n/messages.ja.json +1 -1
  112. package/assets/components/assets/action-pad/t9n/messages.json +1 -1
  113. package/assets/components/assets/action-pad/t9n/messages.ko.json +1 -1
  114. package/assets/components/assets/action-pad/t9n/messages.lt.json +1 -1
  115. package/assets/components/assets/action-pad/t9n/messages.lv.json +1 -1
  116. package/assets/components/assets/action-pad/t9n/messages.nl.json +1 -1
  117. package/assets/components/assets/action-pad/t9n/messages.no.json +1 -1
  118. package/assets/components/assets/action-pad/t9n/messages.pl.json +1 -1
  119. package/assets/components/assets/action-pad/t9n/messages.pt-BR.json +1 -1
  120. package/assets/components/assets/action-pad/t9n/messages.pt-PT.json +1 -1
  121. package/assets/components/assets/action-pad/t9n/messages.ro.json +1 -1
  122. package/assets/components/assets/action-pad/t9n/messages.ru.json +1 -1
  123. package/assets/components/assets/action-pad/t9n/messages.sk.json +1 -1
  124. package/assets/components/assets/action-pad/t9n/messages.sl.json +1 -1
  125. package/assets/components/assets/action-pad/t9n/messages.sr.json +1 -1
  126. package/assets/components/assets/action-pad/t9n/messages.sv.json +1 -1
  127. package/assets/components/assets/action-pad/t9n/messages.th.json +1 -1
  128. package/assets/components/assets/action-pad/t9n/messages.tr.json +1 -1
  129. package/assets/components/assets/action-pad/t9n/messages.uk.json +1 -1
  130. package/assets/components/assets/action-pad/t9n/messages.vi.json +1 -1
  131. package/assets/components/assets/action-pad/t9n/messages.zh-CN.json +1 -1
  132. package/assets/components/assets/action-pad/t9n/messages.zh-HK.json +1 -1
  133. package/assets/components/assets/action-pad/t9n/messages.zh-TW.json +1 -1
  134. package/assets/components/assets/autocomplete/t9n/messages.ar.json +1 -1
  135. package/assets/components/assets/autocomplete/t9n/messages.bg.json +1 -1
  136. package/assets/components/assets/autocomplete/t9n/messages.bs.json +1 -1
  137. package/assets/components/assets/autocomplete/t9n/messages.ca.json +1 -1
  138. package/assets/components/assets/autocomplete/t9n/messages.cs.json +1 -1
  139. package/assets/components/assets/autocomplete/t9n/messages.da.json +1 -1
  140. package/assets/components/assets/autocomplete/t9n/messages.de.json +1 -1
  141. package/assets/components/assets/autocomplete/t9n/messages.el.json +1 -1
  142. package/assets/components/assets/autocomplete/t9n/messages.en.json +1 -1
  143. package/assets/components/assets/autocomplete/t9n/messages.es.json +1 -1
  144. package/assets/components/assets/autocomplete/t9n/messages.et.json +1 -1
  145. package/assets/components/assets/autocomplete/t9n/messages.fi.json +1 -1
  146. package/assets/components/assets/autocomplete/t9n/messages.fr.json +1 -1
  147. package/assets/components/assets/autocomplete/t9n/messages.he.json +1 -1
  148. package/assets/components/assets/autocomplete/t9n/messages.hr.json +1 -1
  149. package/assets/components/assets/autocomplete/t9n/messages.hu.json +1 -1
  150. package/assets/components/assets/autocomplete/t9n/messages.id.json +1 -1
  151. package/assets/components/assets/autocomplete/t9n/messages.it.json +1 -1
  152. package/assets/components/assets/autocomplete/t9n/messages.ja.json +1 -1
  153. package/assets/components/assets/autocomplete/t9n/messages.json +1 -1
  154. package/assets/components/assets/autocomplete/t9n/messages.ko.json +1 -1
  155. package/assets/components/assets/autocomplete/t9n/messages.lt.json +1 -1
  156. package/assets/components/assets/autocomplete/t9n/messages.lv.json +1 -1
  157. package/assets/components/assets/autocomplete/t9n/messages.nl.json +1 -1
  158. package/assets/components/assets/autocomplete/t9n/messages.no.json +1 -1
  159. package/assets/components/assets/autocomplete/t9n/messages.pl.json +1 -1
  160. package/assets/components/assets/autocomplete/t9n/messages.pt-BR.json +1 -1
  161. package/assets/components/assets/autocomplete/t9n/messages.pt-PT.json +1 -1
  162. package/assets/components/assets/autocomplete/t9n/messages.ro.json +1 -1
  163. package/assets/components/assets/autocomplete/t9n/messages.ru.json +1 -1
  164. package/assets/components/assets/autocomplete/t9n/messages.sk.json +1 -1
  165. package/assets/components/assets/autocomplete/t9n/messages.sl.json +1 -1
  166. package/assets/components/assets/autocomplete/t9n/messages.sr.json +1 -1
  167. package/assets/components/assets/autocomplete/t9n/messages.sv.json +1 -1
  168. package/assets/components/assets/autocomplete/t9n/messages.th.json +1 -1
  169. package/assets/components/assets/autocomplete/t9n/messages.tr.json +1 -1
  170. package/assets/components/assets/autocomplete/t9n/messages.uk.json +1 -1
  171. package/assets/components/assets/autocomplete/t9n/messages.vi.json +1 -1
  172. package/assets/components/assets/autocomplete/t9n/messages.zh-CN.json +1 -1
  173. package/assets/components/assets/autocomplete/t9n/messages.zh-HK.json +1 -1
  174. package/assets/components/assets/autocomplete/t9n/messages.zh-TW.json +1 -1
  175. package/assets/components/assets/checkbox/t9n/messages.ar.json +1 -0
  176. package/assets/components/assets/checkbox/t9n/messages.bg.json +1 -0
  177. package/assets/components/assets/checkbox/t9n/messages.bs.json +1 -0
  178. package/assets/components/assets/checkbox/t9n/messages.ca.json +1 -0
  179. package/assets/components/assets/checkbox/t9n/messages.cs.json +1 -0
  180. package/assets/components/assets/checkbox/t9n/messages.da.json +1 -0
  181. package/assets/components/assets/checkbox/t9n/messages.de.json +1 -0
  182. package/assets/components/assets/checkbox/t9n/messages.el.json +1 -0
  183. package/assets/components/assets/checkbox/t9n/messages.en.json +1 -0
  184. package/assets/components/assets/checkbox/t9n/messages.es.json +1 -0
  185. package/assets/components/assets/checkbox/t9n/messages.et.json +1 -0
  186. package/assets/components/assets/checkbox/t9n/messages.fi.json +1 -0
  187. package/assets/components/assets/checkbox/t9n/messages.fr.json +1 -0
  188. package/assets/components/assets/checkbox/t9n/messages.he.json +1 -0
  189. package/assets/components/assets/checkbox/t9n/messages.hr.json +1 -0
  190. package/assets/components/assets/checkbox/t9n/messages.hu.json +1 -0
  191. package/assets/components/assets/checkbox/t9n/messages.id.json +1 -0
  192. package/assets/components/assets/checkbox/t9n/messages.it.json +1 -0
  193. package/assets/components/assets/checkbox/t9n/messages.ja.json +1 -0
  194. package/assets/components/assets/checkbox/t9n/messages.json +1 -0
  195. package/assets/components/assets/checkbox/t9n/messages.ko.json +1 -0
  196. package/assets/components/assets/checkbox/t9n/messages.lt.json +1 -0
  197. package/assets/components/assets/checkbox/t9n/messages.lv.json +1 -0
  198. package/assets/components/assets/checkbox/t9n/messages.nl.json +1 -0
  199. package/assets/components/assets/checkbox/t9n/messages.no.json +1 -0
  200. package/assets/components/assets/checkbox/t9n/messages.pl.json +1 -0
  201. package/assets/components/assets/checkbox/t9n/messages.pt-BR.json +1 -0
  202. package/assets/components/assets/checkbox/t9n/messages.pt-PT.json +1 -0
  203. package/assets/components/assets/checkbox/t9n/messages.ro.json +1 -0
  204. package/assets/components/assets/checkbox/t9n/messages.ru.json +1 -0
  205. package/assets/components/assets/checkbox/t9n/messages.sk.json +1 -0
  206. package/assets/components/assets/checkbox/t9n/messages.sl.json +1 -0
  207. package/assets/components/assets/checkbox/t9n/messages.sr.json +1 -0
  208. package/assets/components/assets/checkbox/t9n/messages.sv.json +1 -0
  209. package/assets/components/assets/checkbox/t9n/messages.th.json +1 -0
  210. package/assets/components/assets/checkbox/t9n/messages.tr.json +1 -0
  211. package/assets/components/assets/checkbox/t9n/messages.uk.json +1 -0
  212. package/assets/components/assets/checkbox/t9n/messages.vi.json +1 -0
  213. package/assets/components/assets/checkbox/t9n/messages.zh-CN.json +1 -0
  214. package/assets/components/assets/checkbox/t9n/messages.zh-HK.json +1 -0
  215. package/assets/components/assets/checkbox/t9n/messages.zh-TW.json +1 -0
  216. package/assets/components/assets/combobox/t9n/messages.ar.json +1 -1
  217. package/assets/components/assets/combobox/t9n/messages.bg.json +1 -1
  218. package/assets/components/assets/combobox/t9n/messages.bs.json +1 -1
  219. package/assets/components/assets/combobox/t9n/messages.ca.json +1 -1
  220. package/assets/components/assets/combobox/t9n/messages.cs.json +1 -1
  221. package/assets/components/assets/combobox/t9n/messages.da.json +1 -1
  222. package/assets/components/assets/combobox/t9n/messages.de.json +1 -1
  223. package/assets/components/assets/combobox/t9n/messages.el.json +1 -1
  224. package/assets/components/assets/combobox/t9n/messages.en.json +1 -1
  225. package/assets/components/assets/combobox/t9n/messages.es.json +1 -1
  226. package/assets/components/assets/combobox/t9n/messages.et.json +1 -1
  227. package/assets/components/assets/combobox/t9n/messages.fi.json +1 -1
  228. package/assets/components/assets/combobox/t9n/messages.fr.json +1 -1
  229. package/assets/components/assets/combobox/t9n/messages.he.json +1 -1
  230. package/assets/components/assets/combobox/t9n/messages.hr.json +1 -1
  231. package/assets/components/assets/combobox/t9n/messages.hu.json +1 -1
  232. package/assets/components/assets/combobox/t9n/messages.id.json +1 -1
  233. package/assets/components/assets/combobox/t9n/messages.it.json +1 -1
  234. package/assets/components/assets/combobox/t9n/messages.ja.json +1 -1
  235. package/assets/components/assets/combobox/t9n/messages.json +1 -1
  236. package/assets/components/assets/combobox/t9n/messages.ko.json +1 -1
  237. package/assets/components/assets/combobox/t9n/messages.lt.json +1 -1
  238. package/assets/components/assets/combobox/t9n/messages.lv.json +1 -1
  239. package/assets/components/assets/combobox/t9n/messages.nl.json +1 -1
  240. package/assets/components/assets/combobox/t9n/messages.no.json +1 -1
  241. package/assets/components/assets/combobox/t9n/messages.pl.json +1 -1
  242. package/assets/components/assets/combobox/t9n/messages.pt-BR.json +1 -1
  243. package/assets/components/assets/combobox/t9n/messages.pt-PT.json +1 -1
  244. package/assets/components/assets/combobox/t9n/messages.ro.json +1 -1
  245. package/assets/components/assets/combobox/t9n/messages.ru.json +1 -1
  246. package/assets/components/assets/combobox/t9n/messages.sk.json +1 -1
  247. package/assets/components/assets/combobox/t9n/messages.sl.json +1 -1
  248. package/assets/components/assets/combobox/t9n/messages.sr.json +1 -1
  249. package/assets/components/assets/combobox/t9n/messages.sv.json +1 -1
  250. package/assets/components/assets/combobox/t9n/messages.th.json +1 -1
  251. package/assets/components/assets/combobox/t9n/messages.tr.json +1 -1
  252. package/assets/components/assets/combobox/t9n/messages.uk.json +1 -1
  253. package/assets/components/assets/combobox/t9n/messages.vi.json +1 -1
  254. package/assets/components/assets/combobox/t9n/messages.zh-CN.json +1 -1
  255. package/assets/components/assets/combobox/t9n/messages.zh-HK.json +1 -1
  256. package/assets/components/assets/combobox/t9n/messages.zh-TW.json +1 -1
  257. package/assets/components/assets/icon/a3Landscape16.json +1 -1
  258. package/assets/components/assets/icon/a3Landscape24.json +1 -1
  259. package/assets/components/assets/icon/a3Landscape32.json +1 -1
  260. package/assets/components/assets/icon/a3Portrait16.json +1 -1
  261. package/assets/components/assets/icon/a3Portrait24.json +1 -1
  262. package/assets/components/assets/icon/a3Portrait32.json +1 -1
  263. package/assets/components/assets/icon/a4Landscape16.json +1 -1
  264. package/assets/components/assets/icon/a4Landscape24.json +1 -1
  265. package/assets/components/assets/icon/a4Landscape32.json +1 -1
  266. package/assets/components/assets/icon/a4Portrait16.json +1 -1
  267. package/assets/components/assets/icon/a4Portrait24.json +1 -1
  268. package/assets/components/assets/icon/a4Portrait32.json +1 -1
  269. package/assets/components/assets/icon/aZ16.json +1 -1
  270. package/assets/components/assets/icon/aZ32.json +1 -1
  271. package/assets/components/assets/icon/aZDown16.json +1 -1
  272. package/assets/components/assets/icon/aZDown24.json +1 -1
  273. package/assets/components/assets/icon/aZDown32.json +1 -1
  274. package/assets/components/assets/icon/aZUp16.json +1 -1
  275. package/assets/components/assets/icon/aZUp24.json +1 -1
  276. package/assets/components/assets/icon/aZUp32.json +1 -1
  277. package/assets/components/assets/icon/absoluteDirection16.json +1 -1
  278. package/assets/components/assets/icon/absoluteDirection24.json +1 -1
  279. package/assets/components/assets/icon/absoluteDirection32.json +1 -1
  280. package/assets/components/assets/icon/absoluteElevation16.json +1 -1
  281. package/assets/components/assets/icon/absoluteElevation24.json +1 -1
  282. package/assets/components/assets/icon/absoluteElevation32.json +1 -1
  283. package/assets/components/assets/icon/accessStringResults24.json +1 -1
  284. package/assets/components/assets/icon/accessStringResults32.json +1 -1
  285. package/assets/components/assets/icon/accessibility16.json +1 -1
  286. package/assets/components/assets/icon/accessibility24.json +1 -1
  287. package/assets/components/assets/icon/accessibility32.json +1 -1
  288. package/assets/components/assets/icon/activityMonitor16.json +1 -1
  289. package/assets/components/assets/icon/activityMonitor24.json +1 -1
  290. package/assets/components/assets/icon/activityMonitor32.json +1 -1
  291. package/assets/components/assets/icon/actualSize16.json +1 -1
  292. package/assets/components/assets/icon/actualSize24.json +1 -1
  293. package/assets/components/assets/icon/actualSize32.json +1 -1
  294. package/assets/components/assets/icon/addAndUpdateFeatures16.json +1 -1
  295. package/assets/components/assets/icon/addAndUpdateFeatures24.json +1 -1
  296. package/assets/components/assets/icon/addAndUpdateFeatures32.json +1 -1
  297. package/assets/components/assets/icon/addConstant16.json +1 -1
  298. package/assets/components/assets/icon/addConstant24.json +1 -1
  299. package/assets/components/assets/icon/addConstant32.json +1 -1
  300. package/assets/components/assets/icon/addFeatures16.json +1 -1
  301. package/assets/components/assets/icon/addFeatures24.json +1 -1
  302. package/assets/components/assets/icon/addFeatures32.json +1 -1
  303. package/assets/components/assets/icon/addInEdit24.json +1 -1
  304. package/assets/components/assets/icon/addInEdit32.json +1 -1
  305. package/assets/components/assets/icon/addLayer16.json +1 -1
  306. package/assets/components/assets/icon/addLayer24.json +1 -1
  307. package/assets/components/assets/icon/addLayer32.json +1 -1
  308. package/assets/components/assets/icon/addLayerService16.json +1 -1
  309. package/assets/components/assets/icon/addLayerService24.json +1 -1
  310. package/assets/components/assets/icon/addLayerService32.json +1 -1
  311. package/assets/components/assets/icon/addLinkChartRootNodes16.json +1 -1
  312. package/assets/components/assets/icon/addLinkChartRootNodes24.json +1 -1
  313. package/assets/components/assets/icon/addLinkChartRootNodes32.json +1 -1
  314. package/assets/components/assets/icon/addRasters24.json +1 -1
  315. package/assets/components/assets/icon/addReaction16.json +1 -1
  316. package/assets/components/assets/icon/addReaction24.json +1 -1
  317. package/assets/components/assets/icon/addReaction32.json +1 -1
  318. package/assets/components/assets/icon/addText32.json +1 -1
  319. package/assets/components/assets/icon/addToModel16.json +1 -1
  320. package/assets/components/assets/icon/addToModel24.json +1 -1
  321. package/assets/components/assets/icon/addToModel32.json +1 -1
  322. package/assets/components/assets/icon/addressBook16.json +1 -1
  323. package/assets/components/assets/icon/addressBook24.json +1 -1
  324. package/assets/components/assets/icon/addressBook32.json +1 -1
  325. package/assets/components/assets/icon/alertOffCircle16F.json +1 -1
  326. package/assets/components/assets/icon/alertOffCircle24F.json +1 -1
  327. package/assets/components/assets/icon/alertOffCircle32F.json +1 -1
  328. package/assets/components/assets/icon/allServers16.json +1 -1
  329. package/assets/components/assets/icon/allServers24.json +1 -1
  330. package/assets/components/assets/icon/allServers32.json +1 -1
  331. package/assets/components/assets/icon/altitude32.json +1 -1
  332. package/assets/components/assets/icon/analysis16.json +1 -1
  333. package/assets/components/assets/icon/analysis24.json +1 -1
  334. package/assets/components/assets/icon/analysis32.json +1 -1
  335. package/assets/components/assets/icon/analysisOverlay16.json +1 -1
  336. package/assets/components/assets/icon/analysisOverlay24.json +1 -1
  337. package/assets/components/assets/icon/analysisOverlay32.json +1 -1
  338. package/assets/components/assets/icon/annotateTool16.json +1 -1
  339. package/assets/components/assets/icon/annotateTool24.json +1 -1
  340. package/assets/components/assets/icon/annotateTool32.json +1 -1
  341. package/assets/components/assets/icon/ansiALandscape16.json +1 -1
  342. package/assets/components/assets/icon/ansiALandscape24.json +1 -1
  343. package/assets/components/assets/icon/ansiALandscape32.json +1 -1
  344. package/assets/components/assets/icon/ansiAPortrait16.json +1 -1
  345. package/assets/components/assets/icon/ansiAPortrait24.json +1 -1
  346. package/assets/components/assets/icon/ansiAPortrait32.json +1 -1
  347. package/assets/components/assets/icon/ansiBLandscape16.json +1 -1
  348. package/assets/components/assets/icon/ansiBLandscape24.json +1 -1
  349. package/assets/components/assets/icon/ansiBLandscape32.json +1 -1
  350. package/assets/components/assets/icon/ansiBPortrait16.json +1 -1
  351. package/assets/components/assets/icon/ansiBPortrait24.json +1 -1
  352. package/assets/components/assets/icon/ansiBPortrait32.json +1 -1
  353. package/assets/components/assets/icon/antennaHeight32.json +1 -1
  354. package/assets/components/assets/icon/appGear16.json +1 -1
  355. package/assets/components/assets/icon/appGear24.json +1 -1
  356. package/assets/components/assets/icon/appGear32.json +1 -1
  357. package/assets/components/assets/icon/appLauncher16.json +1 -1
  358. package/assets/components/assets/icon/appLauncher24.json +1 -1
  359. package/assets/components/assets/icon/appLauncher32.json +1 -1
  360. package/assets/components/assets/icon/appRun16.json +1 -1
  361. package/assets/components/assets/icon/appRun24.json +1 -1
  362. package/assets/components/assets/icon/appRun32.json +1 -1
  363. package/assets/components/assets/icon/appUpdate16.json +1 -1
  364. package/assets/components/assets/icon/appUpdate24.json +1 -1
  365. package/assets/components/assets/icon/appUpdate32.json +1 -1
  366. package/assets/components/assets/icon/applications16.json +1 -1
  367. package/assets/components/assets/icon/applications24.json +1 -1
  368. package/assets/components/assets/icon/applications32.json +1 -1
  369. package/assets/components/assets/icon/applyChanges16.json +1 -1
  370. package/assets/components/assets/icon/applyChanges24.json +1 -1
  371. package/assets/components/assets/icon/applyChanges32.json +1 -1
  372. package/assets/components/assets/icon/applySelectionToExistingView16.json +1 -1
  373. package/assets/components/assets/icon/applySelectionToExistingView24.json +1 -1
  374. package/assets/components/assets/icon/applySelectionToExistingView32.json +1 -1
  375. package/assets/components/assets/icon/apps16.json +1 -1
  376. package/assets/components/assets/icon/apps24.json +1 -1
  377. package/assets/components/assets/icon/apps32.json +1 -1
  378. package/assets/components/assets/icon/arcSegment16.json +1 -0
  379. package/assets/components/assets/icon/arcSegment24.json +1 -0
  380. package/assets/components/assets/icon/arcSegment32.json +1 -0
  381. package/assets/components/assets/icon/arcgisDataStore16.json +1 -1
  382. package/assets/components/assets/icon/arcgisDataStore24.json +1 -1
  383. package/assets/components/assets/icon/arcgisDataStore32.json +1 -1
  384. package/assets/components/assets/icon/arcgisOnline16.json +1 -1
  385. package/assets/components/assets/icon/arcgisOnline24.json +1 -1
  386. package/assets/components/assets/icon/arcgisOnline32.json +1 -1
  387. package/assets/components/assets/icon/areaHashFilled16.json +1 -1
  388. package/assets/components/assets/icon/areaHashFilled24.json +1 -1
  389. package/assets/components/assets/icon/areaHashFilled32.json +1 -1
  390. package/assets/components/assets/icon/areaHashFilledPlus16.json +1 -1
  391. package/assets/components/assets/icon/areaHashFilledPlus24.json +1 -1
  392. package/assets/components/assets/icon/areaHashFilledPlus32.json +1 -1
  393. package/assets/components/assets/icon/arrowBoldLeft16.json +1 -1
  394. package/assets/components/assets/icon/arrowBoldLeft24.json +1 -1
  395. package/assets/components/assets/icon/arrowBoldLeft32.json +1 -1
  396. package/assets/components/assets/icon/arrowBoldRight16.json +1 -1
  397. package/assets/components/assets/icon/arrowBoldUp16.json +1 -1
  398. package/assets/components/assets/icon/arrowCircleDown16.json +1 -1
  399. package/assets/components/assets/icon/arrowCircleDown16F.json +1 -1
  400. package/assets/components/assets/icon/arrowCircleDown24.json +1 -1
  401. package/assets/components/assets/icon/arrowCircleDown24F.json +1 -1
  402. package/assets/components/assets/icon/arrowCircleDown32.json +1 -1
  403. package/assets/components/assets/icon/arrowCircleDown32F.json +1 -1
  404. package/assets/components/assets/icon/arrowCurveTool16.json +1 -0
  405. package/assets/components/assets/icon/arrowCurveTool24.json +1 -0
  406. package/assets/components/assets/icon/arrowCurveTool32.json +1 -0
  407. package/assets/components/assets/icon/arrowDoubleDiagonal116.json +1 -1
  408. package/assets/components/assets/icon/arrowDoubleDiagonal124.json +1 -1
  409. package/assets/components/assets/icon/arrowDoubleDiagonal132.json +1 -1
  410. package/assets/components/assets/icon/arrowDoubleDiagonal216.json +1 -1
  411. package/assets/components/assets/icon/arrowDoubleDiagonal224.json +1 -1
  412. package/assets/components/assets/icon/arrowDoubleDiagonal232.json +1 -1
  413. package/assets/components/assets/icon/arrowDoubleHorizontal16.json +1 -1
  414. package/assets/components/assets/icon/arrowDoubleHorizontal24.json +1 -1
  415. package/assets/components/assets/icon/arrowDoubleHorizontal32.json +1 -1
  416. package/assets/components/assets/icon/arrowDoubleVertical16.json +1 -1
  417. package/assets/components/assets/icon/arrowDoubleVertical24.json +1 -1
  418. package/assets/components/assets/icon/arrowDoubleVertical32.json +1 -1
  419. package/assets/components/assets/icon/arrowDown24.json +1 -1
  420. package/assets/components/assets/icon/arrowDown32.json +1 -1
  421. package/assets/components/assets/icon/arrowDownLeft16.json +1 -1
  422. package/assets/components/assets/icon/arrowDownLeft24.json +1 -1
  423. package/assets/components/assets/icon/arrowLeft1016.json +1 -0
  424. package/assets/components/assets/icon/arrowLeft1024.json +1 -0
  425. package/assets/components/assets/icon/arrowLeft1032.json +1 -0
  426. package/assets/components/assets/icon/arrowLeft16.json +1 -1
  427. package/assets/components/assets/icon/arrowLeft32.json +1 -1
  428. package/assets/components/assets/icon/arrowRight1016.json +1 -0
  429. package/assets/components/assets/icon/arrowRight1024.json +1 -0
  430. package/assets/components/assets/icon/arrowRight1032.json +1 -0
  431. package/assets/components/assets/icon/arrowRight24.json +1 -1
  432. package/assets/components/assets/icon/arrowRightLeft16.json +1 -1
  433. package/assets/components/assets/icon/arrowUp32.json +1 -1
  434. package/assets/components/assets/icon/arrowUpDown16.json +1 -1
  435. package/assets/components/assets/icon/arrowUpDown32.json +1 -1
  436. package/assets/components/assets/icon/arrowUpLeft24.json +1 -1
  437. package/assets/components/assets/icon/arrowUpLeft32.json +1 -1
  438. package/assets/components/assets/icon/arrowUpRight16.json +1 -1
  439. package/assets/components/assets/icon/assignClassification16.json +1 -0
  440. package/assets/components/assets/icon/assignClassification24.json +1 -0
  441. package/assets/components/assets/icon/assignClassification32.json +1 -0
  442. package/assets/components/assets/icon/asteriskLarge16.json +1 -1
  443. package/assets/components/assets/icon/asteriskLarge24.json +1 -1
  444. package/assets/components/assets/icon/asteriskLarge32.json +1 -1
  445. package/assets/components/assets/icon/asteriskSmall16.json +1 -1
  446. package/assets/components/assets/icon/asteriskSmall24.json +1 -1
  447. package/assets/components/assets/icon/asteriskSmall32.json +1 -1
  448. package/assets/components/assets/icon/attachment16.json +1 -1
  449. package/assets/components/assets/icon/attachment32.json +1 -1
  450. package/assets/components/assets/icon/attachmentPlus16.json +1 -1
  451. package/assets/components/assets/icon/attachmentPlus24.json +1 -1
  452. package/assets/components/assets/icon/attachmentPlus32.json +1 -1
  453. package/assets/components/assets/icon/autoLayout16.json +1 -1
  454. package/assets/components/assets/icon/autoLayout24.json +1 -1
  455. package/assets/components/assets/icon/autoLayout32.json +1 -1
  456. package/assets/components/assets/icon/autocompletePolygon16.json +1 -0
  457. package/assets/components/assets/icon/autocompletePolygon24.json +1 -0
  458. package/assets/components/assets/icon/autocompletePolygon32.json +1 -0
  459. package/assets/components/assets/icon/automation16.json +1 -1
  460. package/assets/components/assets/icon/banana16.json +1 -1
  461. package/assets/components/assets/icon/banana24.json +1 -1
  462. package/assets/components/assets/icon/banana32.json +1 -1
  463. package/assets/components/assets/icon/basemap16.json +1 -1
  464. package/assets/components/assets/icon/basemap24.json +1 -1
  465. package/assets/components/assets/icon/basemap32.json +1 -1
  466. package/assets/components/assets/icon/battery124.json +1 -1
  467. package/assets/components/assets/icon/battery132.json +1 -1
  468. package/assets/components/assets/icon/battery224.json +1 -1
  469. package/assets/components/assets/icon/battery232.json +1 -1
  470. package/assets/components/assets/icon/battery324.json +1 -1
  471. package/assets/components/assets/icon/battery332.json +1 -1
  472. package/assets/components/assets/icon/battery424.json +1 -1
  473. package/assets/components/assets/icon/battery432.json +1 -1
  474. package/assets/components/assets/icon/batteryCharging16.json +1 -1
  475. package/assets/components/assets/icon/batteryCharging24.json +1 -1
  476. package/assets/components/assets/icon/batteryCharging32.json +1 -1
  477. package/assets/components/assets/icon/beacon16.json +1 -1
  478. package/assets/components/assets/icon/beacon24.json +1 -1
  479. package/assets/components/assets/icon/beacon32.json +1 -1
  480. package/assets/components/assets/icon/beaker16.json +1 -1
  481. package/assets/components/assets/icon/beaker24.json +1 -1
  482. package/assets/components/assets/icon/beaker32.json +1 -1
  483. package/assets/components/assets/icon/bearLeft16.json +1 -1
  484. package/assets/components/assets/icon/bearLeft24.json +1 -1
  485. package/assets/components/assets/icon/bearLeft32.json +1 -1
  486. package/assets/components/assets/icon/bearRight16.json +1 -1
  487. package/assets/components/assets/icon/bearRight24.json +1 -1
  488. package/assets/components/assets/icon/bearRight32.json +1 -1
  489. package/assets/components/assets/icon/beginning16.json +1 -1
  490. package/assets/components/assets/icon/beginning24.json +1 -1
  491. package/assets/components/assets/icon/beginning32.json +1 -1
  492. package/assets/components/assets/icon/bell16.json +1 -1
  493. package/assets/components/assets/icon/bell16F.json +1 -1
  494. package/assets/components/assets/icon/bell24.json +1 -1
  495. package/assets/components/assets/icon/bell24F.json +1 -1
  496. package/assets/components/assets/icon/bell32.json +1 -1
  497. package/assets/components/assets/icon/bell32F.json +1 -1
  498. package/assets/components/assets/icon/bellOff16.json +1 -1
  499. package/assets/components/assets/icon/bellOff24.json +1 -1
  500. package/assets/components/assets/icon/bellOff32.json +1 -1
  501. package/assets/components/assets/icon/beta16.json +1 -1
  502. package/assets/components/assets/icon/beta24.json +1 -1
  503. package/assets/components/assets/icon/beta32.json +1 -1
  504. package/assets/components/assets/icon/bezierCurve16.json +1 -0
  505. package/assets/components/assets/icon/bezierCurve24.json +1 -0
  506. package/assets/components/assets/icon/bezierCurve32.json +1 -0
  507. package/assets/components/assets/icon/biking16.json +1 -1
  508. package/assets/components/assets/icon/biking24.json +1 -1
  509. package/assets/components/assets/icon/biking32.json +1 -1
  510. package/assets/components/assets/icon/binary16.json +1 -1
  511. package/assets/components/assets/icon/binary24.json +1 -1
  512. package/assets/components/assets/icon/binary32.json +1 -1
  513. package/assets/components/assets/icon/blog16.json +1 -1
  514. package/assets/components/assets/icon/blog24.json +1 -1
  515. package/assets/components/assets/icon/blog32.json +1 -1
  516. package/assets/components/assets/icon/bluetooth16.json +1 -1
  517. package/assets/components/assets/icon/bluetooth24.json +1 -1
  518. package/assets/components/assets/icon/bluetooth32.json +1 -1
  519. package/assets/components/assets/icon/bold16.json +1 -1
  520. package/assets/components/assets/icon/bold24.json +1 -1
  521. package/assets/components/assets/icon/bold32.json +1 -1
  522. package/assets/components/assets/icon/book16.json +1 -1
  523. package/assets/components/assets/icon/book24.json +1 -1
  524. package/assets/components/assets/icon/book32.json +1 -1
  525. package/assets/components/assets/icon/bookmark16.json +1 -1
  526. package/assets/components/assets/icon/bookmark24.json +1 -1
  527. package/assets/components/assets/icon/bookmark32.json +1 -1
  528. package/assets/components/assets/icon/boolean16.json +1 -1
  529. package/assets/components/assets/icon/boolean24.json +1 -1
  530. package/assets/components/assets/icon/boolean32.json +1 -1
  531. package/assets/components/assets/icon/borderRadiusFullyRounded16.json +1 -1
  532. package/assets/components/assets/icon/borderRadiusFullyRounded24.json +1 -1
  533. package/assets/components/assets/icon/borderRadiusFullyRounded32.json +1 -1
  534. package/assets/components/assets/icon/borderRadiusRounded16.json +1 -1
  535. package/assets/components/assets/icon/borderRadiusRounded24.json +1 -1
  536. package/assets/components/assets/icon/borderRadiusRounded32.json +1 -1
  537. package/assets/components/assets/icon/borderRadiusSharp16.json +1 -1
  538. package/assets/components/assets/icon/borderRadiusSharp24.json +1 -1
  539. package/assets/components/assets/icon/borderRadiusSharp32.json +1 -1
  540. package/assets/components/assets/icon/boxChartSeries32.json +1 -1
  541. package/assets/components/assets/icon/brackets16.json +1 -1
  542. package/assets/components/assets/icon/brackets24.json +1 -1
  543. package/assets/components/assets/icon/brackets32.json +1 -1
  544. package/assets/components/assets/icon/bracketsCurly16.json +1 -1
  545. package/assets/components/assets/icon/bracketsCurly24.json +1 -1
  546. package/assets/components/assets/icon/bracketsCurly32.json +1 -1
  547. package/assets/components/assets/icon/breakRecurrence16.json +1 -1
  548. package/assets/components/assets/icon/breakRecurrence24.json +1 -1
  549. package/assets/components/assets/icon/breakRecurrence32.json +1 -1
  550. package/assets/components/assets/icon/brightness16.json +1 -1
  551. package/assets/components/assets/icon/brightness24.json +1 -1
  552. package/assets/components/assets/icon/brightness32.json +1 -1
  553. package/assets/components/assets/icon/browserJoin16.json +1 -1
  554. package/assets/components/assets/icon/browserJoin24.json +1 -1
  555. package/assets/components/assets/icon/browserJoin32.json +1 -1
  556. package/assets/components/assets/icon/browserMap16.json +1 -1
  557. package/assets/components/assets/icon/browserMap24.json +1 -1
  558. package/assets/components/assets/icon/browserMap32.json +1 -1
  559. package/assets/components/assets/icon/browserPlus16.json +1 -1
  560. package/assets/components/assets/icon/browserPlus24.json +1 -1
  561. package/assets/components/assets/icon/browserPlus32.json +1 -1
  562. package/assets/components/assets/icon/brushMark16.json +1 -1
  563. package/assets/components/assets/icon/brushMark24.json +1 -1
  564. package/assets/components/assets/icon/brushMark32.json +1 -1
  565. package/assets/components/assets/icon/brushMarkPlus16.json +1 -1
  566. package/assets/components/assets/icon/brushMarkPlus24.json +1 -1
  567. package/assets/components/assets/icon/brushMarkPlus32.json +1 -1
  568. package/assets/components/assets/icon/brushTip16.json +1 -1
  569. package/assets/components/assets/icon/brushTip24.json +1 -1
  570. package/assets/components/assets/icon/brushTip32.json +1 -1
  571. package/assets/components/assets/icon/bufferPoint16.json +1 -1
  572. package/assets/components/assets/icon/bufferPoint24.json +1 -1
  573. package/assets/components/assets/icon/bufferPoint32.json +1 -1
  574. package/assets/components/assets/icon/bufferPolygon16.json +1 -1
  575. package/assets/components/assets/icon/bufferPolygon24.json +1 -1
  576. package/assets/components/assets/icon/bufferPolygon32.json +1 -1
  577. package/assets/components/assets/icon/bufferPolyline16.json +1 -1
  578. package/assets/components/assets/icon/bufferPolyline24.json +1 -1
  579. package/assets/components/assets/icon/bufferPolyline32.json +1 -1
  580. package/assets/components/assets/icon/bulldozer16.json +1 -1
  581. package/assets/components/assets/icon/bulldozer24.json +1 -1
  582. package/assets/components/assets/icon/bulldozer32.json +1 -1
  583. package/assets/components/assets/icon/bulldozerArea16.json +1 -1
  584. package/assets/components/assets/icon/bulldozerArea24.json +1 -1
  585. package/assets/components/assets/icon/bulldozerArea32.json +1 -1
  586. package/assets/components/assets/icon/bulletPoint16.json +1 -1
  587. package/assets/components/assets/icon/bulletPoint24.json +1 -1
  588. package/assets/components/assets/icon/bulletPoint32.json +1 -1
  589. package/assets/components/assets/icon/bulletPointLarge16.json +1 -1
  590. package/assets/components/assets/icon/bulletPointLarge24.json +1 -1
  591. package/assets/components/assets/icon/bulletPointLarge32.json +1 -1
  592. package/assets/components/assets/icon/bus16.json +1 -1
  593. package/assets/components/assets/icon/bus24.json +1 -1
  594. package/assets/components/assets/icon/bus32.json +1 -1
  595. package/assets/components/assets/icon/button16.json +1 -1
  596. package/assets/components/assets/icon/button24.json +1 -1
  597. package/assets/components/assets/icon/button32.json +1 -1
  598. package/assets/components/assets/icon/calculator16.json +1 -1
  599. package/assets/components/assets/icon/calculator24.json +1 -1
  600. package/assets/components/assets/icon/calculator32.json +1 -1
  601. package/assets/components/assets/icon/calendarHeatChart16.json +1 -1
  602. package/assets/components/assets/icon/calendarHeatChart24.json +1 -1
  603. package/assets/components/assets/icon/calendarHeatChart32.json +1 -1
  604. package/assets/components/assets/icon/camera16.json +1 -1
  605. package/assets/components/assets/icon/camera24.json +1 -1
  606. package/assets/components/assets/icon/camera32.json +1 -1
  607. package/assets/components/assets/icon/cameraFlashOff16.json +1 -1
  608. package/assets/components/assets/icon/cameraFlashOff24.json +1 -1
  609. package/assets/components/assets/icon/cameraFlashOff32.json +1 -1
  610. package/assets/components/assets/icon/cameraFlashOn16.json +1 -1
  611. package/assets/components/assets/icon/cameraFlashOn24.json +1 -1
  612. package/assets/components/assets/icon/cameraFlashOn32.json +1 -1
  613. package/assets/components/assets/icon/cameraPlus16.json +1 -1
  614. package/assets/components/assets/icon/cameraPlus24.json +1 -1
  615. package/assets/components/assets/icon/cameraPlus32.json +1 -1
  616. package/assets/components/assets/icon/cameraSensor16.json +1 -0
  617. package/assets/components/assets/icon/cameraSensor24.json +1 -0
  618. package/assets/components/assets/icon/cameraSensor32.json +1 -0
  619. package/assets/components/assets/icon/cameraSensorLayer16.json +1 -0
  620. package/assets/components/assets/icon/cameraSensorLayer24.json +1 -0
  621. package/assets/components/assets/icon/cameraSensorLayer32.json +1 -0
  622. package/assets/components/assets/icon/cameraSensorMap16.json +1 -0
  623. package/assets/components/assets/icon/cameraSensorMap24.json +1 -0
  624. package/assets/components/assets/icon/cameraSensorMap32.json +1 -0
  625. package/assets/components/assets/icon/cameraSwitchFrontBack16.json +1 -1
  626. package/assets/components/assets/icon/cameraSwitchFrontBack24.json +1 -1
  627. package/assets/components/assets/icon/cameraSwitchFrontBack32.json +1 -1
  628. package/assets/components/assets/icon/cameraUnlock16.json +1 -1
  629. package/assets/components/assets/icon/cameraUnlock24.json +1 -1
  630. package/assets/components/assets/icon/cameraUnlock32.json +1 -1
  631. package/assets/components/assets/icon/car16.json +1 -1
  632. package/assets/components/assets/icon/car24.json +1 -1
  633. package/assets/components/assets/icon/car32.json +1 -1
  634. package/assets/components/assets/icon/caretDoubleHorizontal16.json +1 -1
  635. package/assets/components/assets/icon/caretDoubleHorizontal24.json +1 -1
  636. package/assets/components/assets/icon/caretDoubleHorizontal32.json +1 -1
  637. package/assets/components/assets/icon/caretDoubleVertical16.json +1 -1
  638. package/assets/components/assets/icon/caretDoubleVertical24.json +1 -1
  639. package/assets/components/assets/icon/caretDoubleVertical32.json +1 -1
  640. package/assets/components/assets/icon/caretDown16.json +1 -1
  641. package/assets/components/assets/icon/caretDown24.json +1 -1
  642. package/assets/components/assets/icon/caretDown32.json +1 -1
  643. package/assets/components/assets/icon/caretLeft16.json +1 -1
  644. package/assets/components/assets/icon/caretLeft24.json +1 -1
  645. package/assets/components/assets/icon/caretLeft32.json +1 -1
  646. package/assets/components/assets/icon/caretRight16.json +1 -1
  647. package/assets/components/assets/icon/caretRight24.json +1 -1
  648. package/assets/components/assets/icon/caretRight32.json +1 -1
  649. package/assets/components/assets/icon/caretSquareDown16.json +1 -1
  650. package/assets/components/assets/icon/caretSquareDown24.json +1 -1
  651. package/assets/components/assets/icon/caretSquareDown32.json +1 -1
  652. package/assets/components/assets/icon/caretSquareLeft16.json +1 -1
  653. package/assets/components/assets/icon/caretSquareLeft24.json +1 -1
  654. package/assets/components/assets/icon/caretSquareLeft32.json +1 -1
  655. package/assets/components/assets/icon/caretSquareRight16.json +1 -1
  656. package/assets/components/assets/icon/caretSquareRight24.json +1 -1
  657. package/assets/components/assets/icon/caretSquareRight32.json +1 -1
  658. package/assets/components/assets/icon/caretSquareUp16.json +1 -1
  659. package/assets/components/assets/icon/caretSquareUp24.json +1 -1
  660. package/assets/components/assets/icon/caretSquareUp32.json +1 -1
  661. package/assets/components/assets/icon/caretUp16.json +1 -1
  662. package/assets/components/assets/icon/caretUp24.json +1 -1
  663. package/assets/components/assets/icon/caretUp32.json +1 -1
  664. package/assets/components/assets/icon/carouselFrames16.json +1 -0
  665. package/assets/components/assets/icon/carouselFrames24.json +1 -0
  666. package/assets/components/assets/icon/carouselFrames32.json +1 -0
  667. package/assets/components/assets/icon/catalog16.json +1 -0
  668. package/assets/components/assets/icon/catalog24.json +1 -0
  669. package/assets/components/assets/icon/catalog32.json +1 -0
  670. package/assets/components/assets/icon/catalogDataset16.json +1 -1
  671. package/assets/components/assets/icon/catalogDataset24.json +1 -1
  672. package/assets/components/assets/icon/catalogDataset32.json +1 -1
  673. package/assets/components/assets/icon/centerHorizontal16.json +1 -1
  674. package/assets/components/assets/icon/centerHorizontal24.json +1 -1
  675. package/assets/components/assets/icon/centerHorizontal32.json +1 -1
  676. package/assets/components/assets/icon/centerVertical24.json +1 -1
  677. package/assets/components/assets/icon/centerVertical32.json +1 -1
  678. package/assets/components/assets/icon/certificate16.json +1 -1
  679. package/assets/components/assets/icon/certificate24.json +1 -1
  680. package/assets/components/assets/icon/certificate32.json +1 -1
  681. package/assets/components/assets/icon/changeDetection16.json +1 -1
  682. package/assets/components/assets/icon/changeDetection24.json +1 -1
  683. package/assets/components/assets/icon/changeDetection32.json +1 -1
  684. package/assets/components/assets/icon/changeFontSize16.json +1 -1
  685. package/assets/components/assets/icon/changeFontSize24.json +1 -1
  686. package/assets/components/assets/icon/changeFontSize32.json +1 -1
  687. package/assets/components/assets/icon/channels16.json +1 -1
  688. package/assets/components/assets/icon/channels24.json +1 -1
  689. package/assets/components/assets/icon/channels32.json +1 -1
  690. package/assets/components/assets/icon/chartGear16.json +1 -1
  691. package/assets/components/assets/icon/chartGear24.json +1 -1
  692. package/assets/components/assets/icon/chartGear32.json +1 -1
  693. package/assets/components/assets/icon/chartMagnifyingGlass16.json +1 -1
  694. package/assets/components/assets/icon/chartMagnifyingGlass24.json +1 -1
  695. package/assets/components/assets/icon/chartMagnifyingGlass32.json +1 -1
  696. package/assets/components/assets/icon/check16.json +1 -1
  697. package/assets/components/assets/icon/check24.json +1 -1
  698. package/assets/components/assets/icon/check32.json +1 -1
  699. package/assets/components/assets/icon/checkCircle16.json +1 -1
  700. package/assets/components/assets/icon/checkCircle16F.json +1 -1
  701. package/assets/components/assets/icon/checkCircle24.json +1 -1
  702. package/assets/components/assets/icon/checkCircle24F.json +1 -1
  703. package/assets/components/assets/icon/checkCircle32.json +1 -1
  704. package/assets/components/assets/icon/checkCircle32F.json +1 -1
  705. package/assets/components/assets/icon/checkExtent16.json +1 -1
  706. package/assets/components/assets/icon/checkExtent24.json +1 -1
  707. package/assets/components/assets/icon/checkExtent32.json +1 -1
  708. package/assets/components/assets/icon/checkLayer16.json +1 -1
  709. package/assets/components/assets/icon/checkLayer24.json +1 -1
  710. package/assets/components/assets/icon/checkLayer32.json +1 -1
  711. package/assets/components/assets/icon/checkShield16.json +1 -1
  712. package/assets/components/assets/icon/checkShield24.json +1 -1
  713. package/assets/components/assets/icon/checkShield32.json +1 -1
  714. package/assets/components/assets/icon/checkSquare16.json +1 -1
  715. package/assets/components/assets/icon/checkSquare16F.json +1 -1
  716. package/assets/components/assets/icon/checkSquare24.json +1 -1
  717. package/assets/components/assets/icon/checkSquare24F.json +1 -1
  718. package/assets/components/assets/icon/checkSquare32.json +1 -1
  719. package/assets/components/assets/icon/checkSquare32F.json +1 -1
  720. package/assets/components/assets/icon/chevronDown16.json +1 -1
  721. package/assets/components/assets/icon/chevronDown24.json +1 -1
  722. package/assets/components/assets/icon/chevronDown32.json +1 -1
  723. package/assets/components/assets/icon/chevronDownLeft16.json +1 -1
  724. package/assets/components/assets/icon/chevronDownLeft24.json +1 -1
  725. package/assets/components/assets/icon/chevronDownLeft32.json +1 -1
  726. package/assets/components/assets/icon/chevronDownRight16.json +1 -1
  727. package/assets/components/assets/icon/chevronDownRight24.json +1 -1
  728. package/assets/components/assets/icon/chevronDownRight32.json +1 -1
  729. package/assets/components/assets/icon/chevronEnd16.json +1 -1
  730. package/assets/components/assets/icon/chevronEnd24.json +1 -1
  731. package/assets/components/assets/icon/chevronEnd32.json +1 -1
  732. package/assets/components/assets/icon/chevronLeft16.json +1 -1
  733. package/assets/components/assets/icon/chevronLeft24.json +1 -1
  734. package/assets/components/assets/icon/chevronLeft32.json +1 -1
  735. package/assets/components/assets/icon/chevronRight16.json +1 -1
  736. package/assets/components/assets/icon/chevronRight32.json +1 -1
  737. package/assets/components/assets/icon/chevronStart16.json +1 -1
  738. package/assets/components/assets/icon/chevronStart24.json +1 -1
  739. package/assets/components/assets/icon/chevronStart32.json +1 -1
  740. package/assets/components/assets/icon/chevronUp16.json +1 -1
  741. package/assets/components/assets/icon/chevronUp24.json +1 -1
  742. package/assets/components/assets/icon/chevronUp32.json +1 -1
  743. package/assets/components/assets/icon/chevronUpLeft16.json +1 -1
  744. package/assets/components/assets/icon/chevronUpLeft24.json +1 -1
  745. package/assets/components/assets/icon/chevronUpLeft32.json +1 -1
  746. package/assets/components/assets/icon/chevronUpRight16.json +1 -1
  747. package/assets/components/assets/icon/chevronUpRight24.json +1 -1
  748. package/assets/components/assets/icon/chevronUpRight32.json +1 -1
  749. package/assets/components/assets/icon/chevronsDown16.json +1 -1
  750. package/assets/components/assets/icon/chevronsDown24.json +1 -1
  751. package/assets/components/assets/icon/chevronsDown32.json +1 -1
  752. package/assets/components/assets/icon/chevronsLeft16.json +1 -1
  753. package/assets/components/assets/icon/chevronsLeft24.json +1 -1
  754. package/assets/components/assets/icon/chevronsLeft32.json +1 -1
  755. package/assets/components/assets/icon/chevronsRight16.json +1 -1
  756. package/assets/components/assets/icon/chevronsRight24.json +1 -1
  757. package/assets/components/assets/icon/chevronsRight32.json +1 -1
  758. package/assets/components/assets/icon/chevronsUp16.json +1 -1
  759. package/assets/components/assets/icon/chevronsUp24.json +1 -1
  760. package/assets/components/assets/icon/chevronsUp32.json +1 -1
  761. package/assets/components/assets/icon/chordDiagram16.json +1 -1
  762. package/assets/components/assets/icon/chordDiagram24.json +1 -1
  763. package/assets/components/assets/icon/chordDiagram32.json +1 -1
  764. package/assets/components/assets/icon/circle16.json +1 -1
  765. package/assets/components/assets/icon/circle16F.json +1 -1
  766. package/assets/components/assets/icon/circle24.json +1 -1
  767. package/assets/components/assets/icon/circle24F.json +1 -1
  768. package/assets/components/assets/icon/circle32.json +1 -1
  769. package/assets/components/assets/icon/circle32F.json +1 -1
  770. package/assets/components/assets/icon/circleArea16.json +1 -1
  771. package/assets/components/assets/icon/circleArea24.json +1 -1
  772. package/assets/components/assets/icon/circleArea32.json +1 -1
  773. package/assets/components/assets/icon/circleAreaHashFilled16.json +1 -1
  774. package/assets/components/assets/icon/circleAreaHashFilled24.json +1 -1
  775. package/assets/components/assets/icon/circleAreaHashFilled32.json +1 -1
  776. package/assets/components/assets/icon/circleDisallowed16.json +1 -1
  777. package/assets/components/assets/icon/circleDisallowed24.json +1 -1
  778. package/assets/components/assets/icon/circleDisallowed32.json +1 -1
  779. package/assets/components/assets/icon/circleInsetLarge16.json +1 -1
  780. package/assets/components/assets/icon/circleInsetLarge24.json +1 -1
  781. package/assets/components/assets/icon/circleInsetLarge32.json +1 -1
  782. package/assets/components/assets/icon/circleInsetMedium16.json +1 -1
  783. package/assets/components/assets/icon/circleInsetMedium24.json +1 -1
  784. package/assets/components/assets/icon/circleInsetMedium32.json +1 -1
  785. package/assets/components/assets/icon/circleInsetSmall16.json +1 -1
  786. package/assets/components/assets/icon/circleInsetSmall24.json +1 -1
  787. package/assets/components/assets/icon/circleInsetSmall32.json +1 -1
  788. package/assets/components/assets/icon/circleIntersection16.json +1 -0
  789. package/assets/components/assets/icon/circleIntersection24.json +1 -0
  790. package/assets/components/assets/icon/circleIntersection32.json +1 -0
  791. package/assets/components/assets/icon/circlePause16.json +1 -1
  792. package/assets/components/assets/icon/circlePause16F.json +1 -1
  793. package/assets/components/assets/icon/circlePause24.json +1 -1
  794. package/assets/components/assets/icon/circlePause24F.json +1 -1
  795. package/assets/components/assets/icon/circlePause32.json +1 -1
  796. package/assets/components/assets/icon/circlePause32F.json +1 -1
  797. package/assets/components/assets/icon/circleStop16.json +1 -1
  798. package/assets/components/assets/icon/circleStop16F.json +1 -1
  799. package/assets/components/assets/icon/circleStop24.json +1 -1
  800. package/assets/components/assets/icon/circleStop24F.json +1 -1
  801. package/assets/components/assets/icon/circleStop32.json +1 -1
  802. package/assets/components/assets/icon/circleStop32F.json +1 -1
  803. package/assets/components/assets/icon/classifyObjects16.json +1 -1
  804. package/assets/components/assets/icon/classifyObjects24.json +1 -1
  805. package/assets/components/assets/icon/classifyObjects32.json +1 -1
  806. package/assets/components/assets/icon/classifyPixels16.json +1 -1
  807. package/assets/components/assets/icon/classifyPixels24.json +1 -1
  808. package/assets/components/assets/icon/classifyPixels32.json +1 -1
  809. package/assets/components/assets/icon/classroomGis16.json +1 -1
  810. package/assets/components/assets/icon/classroomGis24.json +1 -1
  811. package/assets/components/assets/icon/classroomGis32.json +1 -1
  812. package/assets/components/assets/icon/clearSelection16.json +1 -1
  813. package/assets/components/assets/icon/clearSelection24.json +1 -1
  814. package/assets/components/assets/icon/clearSelection32.json +1 -1
  815. package/assets/components/assets/icon/clipboard16.json +1 -1
  816. package/assets/components/assets/icon/clipboard32.json +1 -1
  817. package/assets/components/assets/icon/clipboardBrackets16.json +1 -1
  818. package/assets/components/assets/icon/clipboardBrackets24.json +1 -1
  819. package/assets/components/assets/icon/clipboardBrackets32.json +1 -1
  820. package/assets/components/assets/icon/clock16.json +1 -1
  821. package/assets/components/assets/icon/clock24.json +1 -1
  822. package/assets/components/assets/icon/clock32.json +1 -1
  823. package/assets/components/assets/icon/clockDown16.json +1 -1
  824. package/assets/components/assets/icon/clockDown24.json +1 -1
  825. package/assets/components/assets/icon/clockDown32.json +1 -1
  826. package/assets/components/assets/icon/clockForward24.json +1 -1
  827. package/assets/components/assets/icon/clockForward32.json +1 -1
  828. package/assets/components/assets/icon/clockUp16.json +1 -1
  829. package/assets/components/assets/icon/clockUp24.json +1 -1
  830. package/assets/components/assets/icon/clockUp32.json +1 -1
  831. package/assets/components/assets/icon/closedCaption16.json +1 -1
  832. package/assets/components/assets/icon/closedCaption16F.json +1 -1
  833. package/assets/components/assets/icon/closedCaption24.json +1 -1
  834. package/assets/components/assets/icon/closedCaption24F.json +1 -1
  835. package/assets/components/assets/icon/closedCaption32.json +1 -1
  836. package/assets/components/assets/icon/closedCaption32F.json +1 -1
  837. package/assets/components/assets/icon/cloud16.json +1 -1
  838. package/assets/components/assets/icon/cloud24.json +1 -1
  839. package/assets/components/assets/icon/cloud32.json +1 -1
  840. package/assets/components/assets/icon/cloudData16.json +1 -1
  841. package/assets/components/assets/icon/cloudData24.json +1 -1
  842. package/assets/components/assets/icon/cloudData32.json +1 -1
  843. package/assets/components/assets/icon/cloudServer16.json +1 -1
  844. package/assets/components/assets/icon/cloudServer24.json +1 -1
  845. package/assets/components/assets/icon/cloudServer32.json +1 -1
  846. package/assets/components/assets/icon/cloudy16.json +1 -1
  847. package/assets/components/assets/icon/cloudy24.json +1 -1
  848. package/assets/components/assets/icon/cloudy32.json +1 -1
  849. package/assets/components/assets/icon/clusterRadius16.json +1 -1
  850. package/assets/components/assets/icon/clusterRadius24.json +1 -1
  851. package/assets/components/assets/icon/clusterRadius32.json +1 -1
  852. package/assets/components/assets/icon/clustering16.json +1 -1
  853. package/assets/components/assets/icon/clustering24.json +1 -1
  854. package/assets/components/assets/icon/clustering32.json +1 -1
  855. package/assets/components/assets/icon/code16.json +1 -1
  856. package/assets/components/assets/icon/code24.json +1 -1
  857. package/assets/components/assets/icon/code32.json +1 -1
  858. package/assets/components/assets/icon/codeBranch16.json +1 -1
  859. package/assets/components/assets/icon/codeBranch24.json +1 -1
  860. package/assets/components/assets/icon/codeBranch32.json +1 -1
  861. package/assets/components/assets/icon/codeBranchEdit16.json +1 -1
  862. package/assets/components/assets/icon/codeBranchEdit24.json +1 -1
  863. package/assets/components/assets/icon/codeBranchEdit32.json +1 -1
  864. package/assets/components/assets/icon/codedValueDomain16.json +1 -0
  865. package/assets/components/assets/icon/codedValueDomain24.json +1 -0
  866. package/assets/components/assets/icon/codedValueDomain32.json +1 -0
  867. package/assets/components/assets/icon/collaboration16.json +1 -1
  868. package/assets/components/assets/icon/collaboration24.json +1 -1
  869. package/assets/components/assets/icon/collaboration32.json +1 -1
  870. package/assets/components/assets/icon/collaborationDistributed16.json +1 -1
  871. package/assets/components/assets/icon/collaborationDistributed24.json +1 -1
  872. package/assets/components/assets/icon/collaborationDistributed32.json +1 -1
  873. package/assets/components/assets/icon/collaborationUser16.json +1 -1
  874. package/assets/components/assets/icon/collaborationUser24.json +1 -1
  875. package/assets/components/assets/icon/collaborationUser32.json +1 -1
  876. package/assets/components/assets/icon/collapseEntities16.json +1 -1
  877. package/assets/components/assets/icon/collapseEntities24.json +1 -1
  878. package/assets/components/assets/icon/collapseEntities32.json +1 -1
  879. package/assets/components/assets/icon/collapseRelationships16.json +1 -1
  880. package/assets/components/assets/icon/collapseRelationships24.json +1 -1
  881. package/assets/components/assets/icon/collapseRelationships32.json +1 -1
  882. package/assets/components/assets/icon/collection16.json +1 -1
  883. package/assets/components/assets/icon/collection24.json +1 -1
  884. package/assets/components/assets/icon/collection32.json +1 -1
  885. package/assets/components/assets/icon/colorCodedMap16.json +1 -1
  886. package/assets/components/assets/icon/colorCodedMap24.json +1 -1
  887. package/assets/components/assets/icon/colorCodedMap32.json +1 -1
  888. package/assets/components/assets/icon/colorCorrection16.json +1 -1
  889. package/assets/components/assets/icon/colorCorrection24.json +1 -1
  890. package/assets/components/assets/icon/colorCorrection32.json +1 -1
  891. package/assets/components/assets/icon/columnSettings16.json +1 -1
  892. package/assets/components/assets/icon/columnSettings24.json +1 -1
  893. package/assets/components/assets/icon/columnSettings32.json +1 -1
  894. package/assets/components/assets/icon/communityDetection16.json +1 -1
  895. package/assets/components/assets/icon/communityDetection24.json +1 -1
  896. package/assets/components/assets/icon/communityDetection32.json +1 -1
  897. package/assets/components/assets/icon/communityLinkChartLayout16.json +1 -1
  898. package/assets/components/assets/icon/communityLinkChartLayout24.json +1 -1
  899. package/assets/components/assets/icon/communityLinkChartLayout32.json +1 -1
  900. package/assets/components/assets/icon/compactness16.json +1 -1
  901. package/assets/components/assets/icon/compactness24.json +1 -1
  902. package/assets/components/assets/icon/compactness32.json +1 -1
  903. package/assets/components/assets/icon/compass16.json +1 -1
  904. package/assets/components/assets/icon/compass24.json +1 -1
  905. package/assets/components/assets/icon/compass32.json +1 -1
  906. package/assets/components/assets/icon/compassNeedle16.json +1 -1
  907. package/assets/components/assets/icon/compassNeedle24.json +1 -1
  908. package/assets/components/assets/icon/compassNeedle32.json +1 -1
  909. package/assets/components/assets/icon/compassNorthCircle16.json +1 -1
  910. package/assets/components/assets/icon/compassNorthCircle24.json +1 -1
  911. package/assets/components/assets/icon/compassNorthCircle32.json +1 -1
  912. package/assets/components/assets/icon/conditionalRules16.json +1 -1
  913. package/assets/components/assets/icon/conditionalRules24.json +1 -1
  914. package/assets/components/assets/icon/conditionalRules32.json +1 -1
  915. package/assets/components/assets/icon/conditionalRulesPath16.json +1 -1
  916. package/assets/components/assets/icon/conditionalRulesPath24.json +1 -1
  917. package/assets/components/assets/icon/conditionalRulesPath32.json +1 -1
  918. package/assets/components/assets/icon/conferenceRoom16.json +1 -1
  919. package/assets/components/assets/icon/conferenceRoom24.json +1 -1
  920. package/assets/components/assets/icon/conferenceRoom32.json +1 -1
  921. package/assets/components/assets/icon/configure16.json +1 -1
  922. package/assets/components/assets/icon/configure24.json +1 -1
  923. package/assets/components/assets/icon/configure32.json +1 -1
  924. package/assets/components/assets/icon/configureEditing16.json +1 -1
  925. package/assets/components/assets/icon/configureEditing24.json +1 -1
  926. package/assets/components/assets/icon/configureEditing32.json +1 -1
  927. package/assets/components/assets/icon/configureGridUnit16.json +1 -1
  928. package/assets/components/assets/icon/configureGridUnit24.json +1 -1
  929. package/assets/components/assets/icon/configureGridUnit32.json +1 -1
  930. package/assets/components/assets/icon/configurePopup16.json +1 -1
  931. package/assets/components/assets/icon/configurePopup24.json +1 -1
  932. package/assets/components/assets/icon/configurePopup32.json +1 -1
  933. package/assets/components/assets/icon/connectionEndLeft16.json +1 -1
  934. package/assets/components/assets/icon/connectionEndLeft24.json +1 -1
  935. package/assets/components/assets/icon/connectionEndLeft32.json +1 -1
  936. package/assets/components/assets/icon/connectionEndRight16.json +1 -1
  937. package/assets/components/assets/icon/connectionEndRight24.json +1 -1
  938. package/assets/components/assets/icon/connectionEndRight32.json +1 -1
  939. package/assets/components/assets/icon/connectionMiddle16.json +1 -1
  940. package/assets/components/assets/icon/connectionMiddle24.json +1 -1
  941. package/assets/components/assets/icon/connectionMiddle32.json +1 -1
  942. package/assets/components/assets/icon/connectionToConnection16.json +1 -1
  943. package/assets/components/assets/icon/connectionToConnection24.json +1 -1
  944. package/assets/components/assets/icon/connectionToConnection32.json +1 -1
  945. package/assets/components/assets/icon/console16.json +1 -1
  946. package/assets/components/assets/icon/console24.json +1 -1
  947. package/assets/components/assets/icon/console32.json +1 -1
  948. package/assets/components/assets/icon/contentInlineRight16.json +1 -1
  949. package/assets/components/assets/icon/contentInlineRight24.json +1 -1
  950. package/assets/components/assets/icon/contentInlineRight32.json +1 -1
  951. package/assets/components/assets/icon/contentNone16.json +1 -1
  952. package/assets/components/assets/icon/contentNone24.json +1 -1
  953. package/assets/components/assets/icon/contentNone32.json +1 -1
  954. package/assets/components/assets/icon/contentSideBySideRight16.json +1 -0
  955. package/assets/components/assets/icon/contentSideBySideRight24.json +1 -0
  956. package/assets/components/assets/icon/contentSideBySideRight32.json +1 -0
  957. package/assets/components/assets/icon/contingentValues16.json +1 -1
  958. package/assets/components/assets/icon/contingentValues24.json +1 -1
  959. package/assets/components/assets/icon/contingentValues32.json +1 -1
  960. package/assets/components/assets/icon/contour16.json +1 -1
  961. package/assets/components/assets/icon/contour24.json +1 -1
  962. package/assets/components/assets/icon/contour32.json +1 -1
  963. package/assets/components/assets/icon/contract24.json +1 -1
  964. package/assets/components/assets/icon/contract32.json +1 -1
  965. package/assets/components/assets/icon/contrast16.json +1 -1
  966. package/assets/components/assets/icon/contrast24.json +1 -1
  967. package/assets/components/assets/icon/contrast32.json +1 -1
  968. package/assets/components/assets/icon/convert16.json +1 -1
  969. package/assets/components/assets/icon/convert24.json +1 -1
  970. package/assets/components/assets/icon/convert32.json +1 -1
  971. package/assets/components/assets/icon/coordinateSystem16.json +1 -1
  972. package/assets/components/assets/icon/coordinateSystem24.json +1 -1
  973. package/assets/components/assets/icon/coordinateSystem32.json +1 -1
  974. package/assets/components/assets/icon/copyToClipboard16.json +1 -1
  975. package/assets/components/assets/icon/copyToClipboard32.json +1 -1
  976. package/assets/components/assets/icon/creditCard16.json +1 -1
  977. package/assets/components/assets/icon/creditCard24.json +1 -1
  978. package/assets/components/assets/icon/creditCard32.json +1 -1
  979. package/assets/components/assets/icon/credits16.json +1 -1
  980. package/assets/components/assets/icon/credits24.json +1 -1
  981. package/assets/components/assets/icon/credits32.json +1 -1
  982. package/assets/components/assets/icon/crop32.json +1 -1
  983. package/assets/components/assets/icon/crosshair16.json +1 -1
  984. package/assets/components/assets/icon/crosshair24.json +1 -1
  985. package/assets/components/assets/icon/crosshair32.json +1 -1
  986. package/assets/components/assets/icon/cube16.json +1 -1
  987. package/assets/components/assets/icon/cube24.json +1 -1
  988. package/assets/components/assets/icon/cube32.json +1 -1
  989. package/assets/components/assets/icon/cubePlus16.json +1 -1
  990. package/assets/components/assets/icon/cubePlus24.json +1 -1
  991. package/assets/components/assets/icon/cubePlus32.json +1 -1
  992. package/assets/components/assets/icon/cursor16.json +1 -1
  993. package/assets/components/assets/icon/cursor24.json +1 -1
  994. package/assets/components/assets/icon/cursor32.json +1 -1
  995. package/assets/components/assets/icon/cursorClick16.json +1 -1
  996. package/assets/components/assets/icon/cursorClick24.json +1 -1
  997. package/assets/components/assets/icon/cursorClick32.json +1 -1
  998. package/assets/components/assets/icon/cursorLock16.json +1 -1
  999. package/assets/components/assets/icon/cursorLock24.json +1 -1
  1000. package/assets/components/assets/icon/cursorLock32.json +1 -1
  1001. package/assets/components/assets/icon/cursorMarquee16.json +1 -1
  1002. package/assets/components/assets/icon/cursorMarquee24.json +1 -1
  1003. package/assets/components/assets/icon/cursorMarquee32.json +1 -1
  1004. package/assets/components/assets/icon/cursorMinus16.json +1 -1
  1005. package/assets/components/assets/icon/cursorMinus24.json +1 -1
  1006. package/assets/components/assets/icon/cursorMinus32.json +1 -1
  1007. package/assets/components/assets/icon/cursorPlus16.json +1 -1
  1008. package/assets/components/assets/icon/cursorPlus24.json +1 -1
  1009. package/assets/components/assets/icon/cursorSelection16.json +1 -1
  1010. package/assets/components/assets/icon/cursorSelection24.json +1 -1
  1011. package/assets/components/assets/icon/cursorSelection32.json +1 -1
  1012. package/assets/components/assets/icon/curve16.json +1 -1
  1013. package/assets/components/assets/icon/curve24.json +1 -1
  1014. package/assets/components/assets/icon/curve32.json +1 -1
  1015. package/assets/components/assets/icon/customPrint16.json +1 -1
  1016. package/assets/components/assets/icon/customPrint24.json +1 -1
  1017. package/assets/components/assets/icon/customPrint32.json +1 -1
  1018. package/assets/components/assets/icon/cutAndFillVolumeCalculation16.json +1 -1
  1019. package/assets/components/assets/icon/cutAndFillVolumeCalculation24.json +1 -1
  1020. package/assets/components/assets/icon/cutAndFillVolumeCalculation32.json +1 -1
  1021. package/assets/components/assets/icon/dashboard16.json +1 -1
  1022. package/assets/components/assets/icon/dashboard24.json +1 -1
  1023. package/assets/components/assets/icon/dashboard32.json +1 -1
  1024. package/assets/components/assets/icon/dashboardGraph16.json +1 -1
  1025. package/assets/components/assets/icon/dashboardGraph24.json +1 -1
  1026. package/assets/components/assets/icon/dashboardGraph32.json +1 -1
  1027. package/assets/components/assets/icon/data16.json +1 -1
  1028. package/assets/components/assets/icon/data24.json +1 -1
  1029. package/assets/components/assets/icon/data32.json +1 -1
  1030. package/assets/components/assets/icon/dataCard16.json +1 -1
  1031. package/assets/components/assets/icon/dataCard24.json +1 -1
  1032. package/assets/components/assets/icon/dataCard32.json +1 -1
  1033. package/assets/components/assets/icon/dataCheck16.json +1 -1
  1034. package/assets/components/assets/icon/dataCheck24.json +1 -1
  1035. package/assets/components/assets/icon/dataCheck32.json +1 -1
  1036. package/assets/components/assets/icon/dataClockChart16.json +1 -1
  1037. package/assets/components/assets/icon/dataClockChart24.json +1 -1
  1038. package/assets/components/assets/icon/dataClockChart32.json +1 -1
  1039. package/assets/components/assets/icon/dataCloud16.json +1 -1
  1040. package/assets/components/assets/icon/dataCloud24.json +1 -1
  1041. package/assets/components/assets/icon/dataCloud32.json +1 -1
  1042. package/assets/components/assets/icon/dataFolder16.json +1 -1
  1043. package/assets/components/assets/icon/dataFolder24.json +1 -1
  1044. package/assets/components/assets/icon/dataFolder32.json +1 -1
  1045. package/assets/components/assets/icon/dataMagnifyingGlass16.json +1 -1
  1046. package/assets/components/assets/icon/dataMagnifyingGlass24.json +1 -1
  1047. package/assets/components/assets/icon/dataMagnifyingGlass32.json +1 -1
  1048. package/assets/components/assets/icon/dataRaster16.json +1 -1
  1049. package/assets/components/assets/icon/dataRaster24.json +1 -1
  1050. package/assets/components/assets/icon/dataRaster32.json +1 -1
  1051. package/assets/components/assets/icon/dateTime16.json +1 -1
  1052. package/assets/components/assets/icon/dateTime24.json +1 -1
  1053. package/assets/components/assets/icon/dateTime32.json +1 -1
  1054. package/assets/components/assets/icon/debug16.json +1 -1
  1055. package/assets/components/assets/icon/debug24.json +1 -1
  1056. package/assets/components/assets/icon/debug32.json +1 -1
  1057. package/assets/components/assets/icon/debugScript16.json +1 -1
  1058. package/assets/components/assets/icon/debugScript24.json +1 -1
  1059. package/assets/components/assets/icon/debugScript32.json +1 -1
  1060. package/assets/components/assets/icon/decreaseLinkChartSymbolSize16.json +1 -1
  1061. package/assets/components/assets/icon/decreaseLinkChartSymbolSize24.json +1 -1
  1062. package/assets/components/assets/icon/decreaseLinkChartSymbolSize32.json +1 -1
  1063. package/assets/components/assets/icon/deepLearning16.json +1 -1
  1064. package/assets/components/assets/icon/deepLearning24.json +1 -1
  1065. package/assets/components/assets/icon/deepLearning32.json +1 -1
  1066. package/assets/components/assets/icon/deepLearningProject16.json +1 -1
  1067. package/assets/components/assets/icon/deepLearningProject24.json +1 -1
  1068. package/assets/components/assets/icon/deepLearningProject32.json +1 -1
  1069. package/assets/components/assets/icon/derivedValue16.json +1 -1
  1070. package/assets/components/assets/icon/derivedValue24.json +1 -1
  1071. package/assets/components/assets/icon/derivedValue32.json +1 -1
  1072. package/assets/components/assets/icon/description16.json +1 -1
  1073. package/assets/components/assets/icon/description24.json +1 -1
  1074. package/assets/components/assets/icon/description32.json +1 -1
  1075. package/assets/components/assets/icon/desktop16.json +1 -1
  1076. package/assets/components/assets/icon/desktop24.json +1 -1
  1077. package/assets/components/assets/icon/desktop32.json +1 -1
  1078. package/assets/components/assets/icon/developerCredentials16.json +1 -1
  1079. package/assets/components/assets/icon/developerCredentials24.json +1 -1
  1080. package/assets/components/assets/icon/developerCredentials32.json +1 -1
  1081. package/assets/components/assets/icon/diamond16.json +1 -1
  1082. package/assets/components/assets/icon/diamond24.json +1 -1
  1083. package/assets/components/assets/icon/diamondInsetLarge16.json +1 -1
  1084. package/assets/components/assets/icon/diamondInsetLarge24.json +1 -1
  1085. package/assets/components/assets/icon/diamondInsetLarge32.json +1 -1
  1086. package/assets/components/assets/icon/diamondInsetMedium16.json +1 -1
  1087. package/assets/components/assets/icon/diamondInsetMedium24.json +1 -1
  1088. package/assets/components/assets/icon/diamondInsetMedium32.json +1 -1
  1089. package/assets/components/assets/icon/diamondInsetSmall16.json +1 -1
  1090. package/assets/components/assets/icon/diamondInsetSmall24.json +1 -1
  1091. package/assets/components/assets/icon/diamondInsetSmall32.json +1 -1
  1092. package/assets/components/assets/icon/dimensions16.json +1 -1
  1093. package/assets/components/assets/icon/dimensions24.json +1 -1
  1094. package/assets/components/assets/icon/dimensionsCentered16.json +1 -0
  1095. package/assets/components/assets/icon/dimensionsCentered24.json +1 -0
  1096. package/assets/components/assets/icon/dimensionsCentered32.json +1 -0
  1097. package/assets/components/assets/icon/dimensionsUnit16.json +1 -1
  1098. package/assets/components/assets/icon/dimensionsUnit24.json +1 -1
  1099. package/assets/components/assets/icon/directionalNavigation16.json +1 -0
  1100. package/assets/components/assets/icon/directionalNavigation24.json +1 -0
  1101. package/assets/components/assets/icon/directionalNavigation32.json +1 -0
  1102. package/assets/components/assets/icon/disembark16.json +1 -1
  1103. package/assets/components/assets/icon/disembark24.json +1 -1
  1104. package/assets/components/assets/icon/disembark32.json +1 -1
  1105. package/assets/components/assets/icon/displaySelectionLock16.json +1 -1
  1106. package/assets/components/assets/icon/displaySelectionLock24.json +1 -1
  1107. package/assets/components/assets/icon/displaySelectionLock32.json +1 -1
  1108. package/assets/components/assets/icon/displaySelectionUnlock16.json +1 -1
  1109. package/assets/components/assets/icon/displaySelectionUnlock24.json +1 -1
  1110. package/assets/components/assets/icon/displaySelectionUnlock32.json +1 -1
  1111. package/assets/components/assets/icon/dissolveFeatures16.json +1 -1
  1112. package/assets/components/assets/icon/dissolveFeatures24.json +1 -1
  1113. package/assets/components/assets/icon/dissolveFeatures32.json +1 -1
  1114. package/assets/components/assets/icon/distanceType32.json +1 -1
  1115. package/assets/components/assets/icon/distributeHeightEvenly24.json +1 -1
  1116. package/assets/components/assets/icon/distributeHeightEvenly32.json +1 -1
  1117. package/assets/components/assets/icon/distributeWidthEvenly24.json +1 -1
  1118. package/assets/components/assets/icon/divide16.json +1 -1
  1119. package/assets/components/assets/icon/divide24.json +1 -1
  1120. package/assets/components/assets/icon/divide32.json +1 -1
  1121. package/assets/components/assets/icon/documentLearning16.json +1 -1
  1122. package/assets/components/assets/icon/documentLearning24.json +1 -1
  1123. package/assets/components/assets/icon/documentLearning32.json +1 -1
  1124. package/assets/components/assets/icon/domain16.json +1 -0
  1125. package/assets/components/assets/icon/domain24.json +1 -0
  1126. package/assets/components/assets/icon/domain32.json +1 -0
  1127. package/assets/components/assets/icon/doubleFloat16.json +1 -1
  1128. package/assets/components/assets/icon/doubleFloat24.json +1 -1
  1129. package/assets/components/assets/icon/doubleFloat32.json +1 -1
  1130. package/assets/components/assets/icon/doubleFloatSet16.json +1 -1
  1131. package/assets/components/assets/icon/doubleFloatSet24.json +1 -1
  1132. package/assets/components/assets/icon/doubleFloatSet32.json +1 -1
  1133. package/assets/components/assets/icon/download16.json +1 -1
  1134. package/assets/components/assets/icon/download24.json +1 -1
  1135. package/assets/components/assets/icon/download32.json +1 -1
  1136. package/assets/components/assets/icon/downloadTo32.json +1 -1
  1137. package/assets/components/assets/icon/drag16.json +1 -1
  1138. package/assets/components/assets/icon/drag24.json +1 -1
  1139. package/assets/components/assets/icon/drag32.json +1 -1
  1140. package/assets/components/assets/icon/dragResizeHorizontal16.json +1 -1
  1141. package/assets/components/assets/icon/dragResizeHorizontal24.json +1 -1
  1142. package/assets/components/assets/icon/dragResizeHorizontal32.json +1 -1
  1143. package/assets/components/assets/icon/dragResizeVertical16.json +1 -1
  1144. package/assets/components/assets/icon/dragResizeVertical24.json +1 -1
  1145. package/assets/components/assets/icon/dragResizeVertical32.json +1 -1
  1146. package/assets/components/assets/icon/driveTime24.json +1 -1
  1147. package/assets/components/assets/icon/driveTime32.json +1 -1
  1148. package/assets/components/assets/icon/driveTimeLargest16.json +1 -1
  1149. package/assets/components/assets/icon/driveTimeLargest24.json +1 -1
  1150. package/assets/components/assets/icon/driveTimeLargest32.json +1 -1
  1151. package/assets/components/assets/icon/driveTimeSmallest16.json +1 -1
  1152. package/assets/components/assets/icon/driveTimeSmallest24.json +1 -1
  1153. package/assets/components/assets/icon/driveTimeSmallest32.json +1 -1
  1154. package/assets/components/assets/icon/driveTimeThreshold32.json +1 -1
  1155. package/assets/components/assets/icon/driveTimeXBar16.json +1 -1
  1156. package/assets/components/assets/icon/driveTimeXBar24.json +1 -1
  1157. package/assets/components/assets/icon/driveTimeXBar32.json +1 -1
  1158. package/assets/components/assets/icon/drivingDistance16.json +1 -1
  1159. package/assets/components/assets/icon/drivingDistance24.json +1 -1
  1160. package/assets/components/assets/icon/drivingDistance32.json +1 -1
  1161. package/assets/components/assets/icon/drivingTime16.json +1 -1
  1162. package/assets/components/assets/icon/drivingTime24.json +1 -1
  1163. package/assets/components/assets/icon/drivingTime32.json +1 -1
  1164. package/assets/components/assets/icon/droneFixedWing16.json +1 -1
  1165. package/assets/components/assets/icon/droneFixedWing24.json +1 -1
  1166. package/assets/components/assets/icon/droneFixedWing32.json +1 -1
  1167. package/assets/components/assets/icon/droneFlyingWing16.json +1 -1
  1168. package/assets/components/assets/icon/droneFlyingWing24.json +1 -1
  1169. package/assets/components/assets/icon/droneFlyingWing32.json +1 -1
  1170. package/assets/components/assets/icon/droneQuadcopter16.json +1 -1
  1171. package/assets/components/assets/icon/droneQuadcopter24.json +1 -1
  1172. package/assets/components/assets/icon/droneQuadcopter32.json +1 -1
  1173. package/assets/components/assets/icon/droneQuadcopterTop16.json +1 -1
  1174. package/assets/components/assets/icon/droneQuadcopterTop24.json +1 -1
  1175. package/assets/components/assets/icon/droneQuadcopterTop32.json +1 -1
  1176. package/assets/components/assets/icon/dualImageArea16.json +1 -1
  1177. package/assets/components/assets/icon/dualImageArea24.json +1 -1
  1178. package/assets/components/assets/icon/dualImageArea32.json +1 -1
  1179. package/assets/components/assets/icon/dualImageDistance16.json +1 -1
  1180. package/assets/components/assets/icon/dualImageDistance24.json +1 -1
  1181. package/assets/components/assets/icon/dualImageDistance32.json +1 -1
  1182. package/assets/components/assets/icon/dualImageLocation16.json +1 -1
  1183. package/assets/components/assets/icon/dualImageLocation24.json +1 -1
  1184. package/assets/components/assets/icon/dualImageLocation32.json +1 -1
  1185. package/assets/components/assets/icon/eLearningGis16.json +1 -1
  1186. package/assets/components/assets/icon/eLearningGis24.json +1 -1
  1187. package/assets/components/assets/icon/eLearningGis32.json +1 -1
  1188. package/assets/components/assets/icon/editAttributes16.json +1 -1
  1189. package/assets/components/assets/icon/editAttributes24.json +1 -1
  1190. package/assets/components/assets/icon/editAttributes32.json +1 -1
  1191. package/assets/components/assets/icon/editGeometry16.json +1 -1
  1192. package/assets/components/assets/icon/editGeometry24.json +1 -1
  1193. package/assets/components/assets/icon/editGeometry32.json +1 -1
  1194. package/assets/components/assets/icon/editingTrimToLength16.json +1 -1
  1195. package/assets/components/assets/icon/editingTrimToLength24.json +1 -1
  1196. package/assets/components/assets/icon/editingTrimToLength32.json +1 -1
  1197. package/assets/components/assets/icon/education16.json +1 -1
  1198. package/assets/components/assets/icon/education24.json +1 -1
  1199. package/assets/components/assets/icon/education32.json +1 -1
  1200. package/assets/components/assets/icon/effects16.json +1 -1
  1201. package/assets/components/assets/icon/effects24.json +1 -1
  1202. package/assets/components/assets/icon/effects32.json +1 -1
  1203. package/assets/components/assets/icon/elevatorUp16.json +1 -1
  1204. package/assets/components/assets/icon/elevatorUp24.json +1 -1
  1205. package/assets/components/assets/icon/elevatorUp32.json +1 -1
  1206. package/assets/components/assets/icon/ellipse16.json +1 -1
  1207. package/assets/components/assets/icon/ellipse24.json +1 -1
  1208. package/assets/components/assets/icon/ellipse32.json +1 -1
  1209. package/assets/components/assets/icon/ellipsis16.json +1 -1
  1210. package/assets/components/assets/icon/ellipsis24.json +1 -1
  1211. package/assets/components/assets/icon/ellipsis32.json +1 -1
  1212. package/assets/components/assets/icon/ellipsisCircle16.json +1 -1
  1213. package/assets/components/assets/icon/ellipsisCircle24.json +1 -1
  1214. package/assets/components/assets/icon/ellipsisCircle32.json +1 -1
  1215. package/assets/components/assets/icon/emailAddress16.json +1 -1
  1216. package/assets/components/assets/icon/emailAddress24.json +1 -1
  1217. package/assets/components/assets/icon/emailAddress32.json +1 -1
  1218. package/assets/components/assets/icon/embark16.json +1 -1
  1219. package/assets/components/assets/icon/embark24.json +1 -1
  1220. package/assets/components/assets/icon/embark32.json +1 -1
  1221. package/assets/components/assets/icon/embeddedContent16.json +1 -1
  1222. package/assets/components/assets/icon/embeddedContent24.json +1 -1
  1223. package/assets/components/assets/icon/embeddedContent32.json +1 -1
  1224. package/assets/components/assets/icon/employeeId16.json +1 -1
  1225. package/assets/components/assets/icon/employeeId24.json +1 -1
  1226. package/assets/components/assets/icon/employeeId32.json +1 -1
  1227. package/assets/components/assets/icon/enableDisableFeatureSelection16.json +1 -1
  1228. package/assets/components/assets/icon/enableDisableFeatureSelection24.json +1 -1
  1229. package/assets/components/assets/icon/enableDisableFeatureSelection32.json +1 -1
  1230. package/assets/components/assets/icon/end16.json +1 -1
  1231. package/assets/components/assets/icon/end24.json +1 -1
  1232. package/assets/components/assets/icon/end24F.json +1 -1
  1233. package/assets/components/assets/icon/end32.json +1 -1
  1234. package/assets/components/assets/icon/end32F.json +1 -1
  1235. package/assets/components/assets/icon/endPointArcSegment16.json +1 -0
  1236. package/assets/components/assets/icon/endPointArcSegment24.json +1 -0
  1237. package/assets/components/assets/icon/endPointArcSegment32.json +1 -0
  1238. package/assets/components/assets/icon/envelope16.json +1 -1
  1239. package/assets/components/assets/icon/envelope16F.json +1 -0
  1240. package/assets/components/assets/icon/envelope24.json +1 -1
  1241. package/assets/components/assets/icon/envelope24F.json +1 -0
  1242. package/assets/components/assets/icon/envelope32.json +1 -1
  1243. package/assets/components/assets/icon/envelope32F.json +1 -0
  1244. package/assets/components/assets/icon/erase16.json +1 -1
  1245. package/assets/components/assets/icon/erase24.json +1 -1
  1246. package/assets/components/assets/icon/erase32.json +1 -1
  1247. package/assets/components/assets/icon/escalator16.json +1 -1
  1248. package/assets/components/assets/icon/escalator24.json +1 -1
  1249. package/assets/components/assets/icon/escalator32.json +1 -1
  1250. package/assets/components/assets/icon/escalatorDown16.json +1 -1
  1251. package/assets/components/assets/icon/escalatorDown24.json +1 -1
  1252. package/assets/components/assets/icon/escalatorDown32.json +1 -1
  1253. package/assets/components/assets/icon/escalatorUp16.json +1 -1
  1254. package/assets/components/assets/icon/escalatorUp24.json +1 -1
  1255. package/assets/components/assets/icon/escalatorUp32.json +1 -1
  1256. package/assets/components/assets/icon/event16.json +1 -1
  1257. package/assets/components/assets/icon/event24.json +1 -1
  1258. package/assets/components/assets/icon/event32.json +1 -1
  1259. package/assets/components/assets/icon/exclamationMarkCircle16.json +1 -1
  1260. package/assets/components/assets/icon/exclamationMarkCircle16F.json +1 -1
  1261. package/assets/components/assets/icon/exclamationMarkCircle24.json +1 -1
  1262. package/assets/components/assets/icon/exclamationMarkCircle24F.json +1 -1
  1263. package/assets/components/assets/icon/exclamationMarkCircle32.json +1 -1
  1264. package/assets/components/assets/icon/exclamationMarkCircle32F.json +1 -1
  1265. package/assets/components/assets/icon/exclamationMarkTriangle16.json +1 -1
  1266. package/assets/components/assets/icon/exclamationMarkTriangle16F.json +1 -1
  1267. package/assets/components/assets/icon/exclamationMarkTriangle24.json +1 -1
  1268. package/assets/components/assets/icon/exclamationMarkTriangle24F.json +1 -1
  1269. package/assets/components/assets/icon/exclamationMarkTriangle32.json +1 -1
  1270. package/assets/components/assets/icon/exclamationMarkTriangle32F.json +1 -1
  1271. package/assets/components/assets/icon/exclamationPoint16.json +1 -1
  1272. package/assets/components/assets/icon/exclamationPoint16F.json +1 -1
  1273. package/assets/components/assets/icon/exclamationPoint24.json +1 -1
  1274. package/assets/components/assets/icon/exclamationPoint24F.json +1 -1
  1275. package/assets/components/assets/icon/exclamationPoint32.json +1 -1
  1276. package/assets/components/assets/icon/exclamationPoint32F.json +1 -1
  1277. package/assets/components/assets/icon/exitHighwayLeft16.json +1 -1
  1278. package/assets/components/assets/icon/exitHighwayLeft24.json +1 -1
  1279. package/assets/components/assets/icon/exitHighwayLeft32.json +1 -1
  1280. package/assets/components/assets/icon/exitHighwayRight16.json +1 -1
  1281. package/assets/components/assets/icon/exitHighwayRight24.json +1 -1
  1282. package/assets/components/assets/icon/exitHighwayRight32.json +1 -1
  1283. package/assets/components/assets/icon/expand24.json +1 -1
  1284. package/assets/components/assets/icon/expand32.json +1 -1
  1285. package/assets/components/assets/icon/explore16.json +1 -1
  1286. package/assets/components/assets/icon/explore24.json +1 -1
  1287. package/assets/components/assets/icon/explore32.json +1 -1
  1288. package/assets/components/assets/icon/expressionDefinedColor16.json +1 -1
  1289. package/assets/components/assets/icon/expressionDefinedColor24.json +1 -1
  1290. package/assets/components/assets/icon/expressionDefinedColor32.json +1 -1
  1291. package/assets/components/assets/icon/eyedropper16.json +1 -1
  1292. package/assets/components/assets/icon/eyedropper24.json +1 -1
  1293. package/assets/components/assets/icon/eyedropper32.json +1 -1
  1294. package/assets/components/assets/icon/faceId16.json +1 -1
  1295. package/assets/components/assets/icon/faceId24.json +1 -1
  1296. package/assets/components/assets/icon/faceId32.json +1 -1
  1297. package/assets/components/assets/icon/featureDataset16.json +1 -0
  1298. package/assets/components/assets/icon/featureDataset24.json +1 -0
  1299. package/assets/components/assets/icon/featureDataset32.json +1 -0
  1300. package/assets/components/assets/icon/featureLayer16.json +1 -1
  1301. package/assets/components/assets/icon/featureLayer24.json +1 -1
  1302. package/assets/components/assets/icon/featureLayer32.json +1 -1
  1303. package/assets/components/assets/icon/file16.json +1 -1
  1304. package/assets/components/assets/icon/file32.json +1 -1
  1305. package/assets/components/assets/icon/fileArchive32.json +1 -1
  1306. package/assets/components/assets/icon/fileCad16.json +1 -1
  1307. package/assets/components/assets/icon/fileCad24.json +1 -1
  1308. package/assets/components/assets/icon/fileCad32.json +1 -1
  1309. package/assets/components/assets/icon/fileCode16.json +1 -1
  1310. package/assets/components/assets/icon/fileCode24.json +1 -1
  1311. package/assets/components/assets/icon/fileCode32.json +1 -1
  1312. package/assets/components/assets/icon/fileCsv24.json +1 -1
  1313. package/assets/components/assets/icon/fileCsv32.json +1 -1
  1314. package/assets/components/assets/icon/fileData16.json +1 -1
  1315. package/assets/components/assets/icon/fileData24.json +1 -1
  1316. package/assets/components/assets/icon/fileData32.json +1 -1
  1317. package/assets/components/assets/icon/fileEcd24.json +1 -1
  1318. package/assets/components/assets/icon/fileEcd32.json +1 -1
  1319. package/assets/components/assets/icon/fileExcel16.json +1 -1
  1320. package/assets/components/assets/icon/fileExcel24.json +1 -1
  1321. package/assets/components/assets/icon/fileExcel32.json +1 -1
  1322. package/assets/components/assets/icon/fileGpx16.json +1 -1
  1323. package/assets/components/assets/icon/fileGpx24.json +1 -1
  1324. package/assets/components/assets/icon/fileGpx32.json +1 -1
  1325. package/assets/components/assets/icon/fileImage16.json +1 -1
  1326. package/assets/components/assets/icon/fileImage24.json +1 -1
  1327. package/assets/components/assets/icon/fileImage32.json +1 -1
  1328. package/assets/components/assets/icon/fileKml16.json +1 -1
  1329. package/assets/components/assets/icon/fileKml24.json +1 -1
  1330. package/assets/components/assets/icon/fileKml32.json +1 -1
  1331. package/assets/components/assets/icon/fileMagnifyingGlass16.json +1 -1
  1332. package/assets/components/assets/icon/fileMagnifyingGlass24.json +1 -1
  1333. package/assets/components/assets/icon/fileMagnifyingGlass32.json +1 -1
  1334. package/assets/components/assets/icon/filePdf16.json +1 -1
  1335. package/assets/components/assets/icon/filePdf24.json +1 -1
  1336. package/assets/components/assets/icon/filePdf32.json +1 -1
  1337. package/assets/components/assets/icon/filePdfPlus16.json +1 -1
  1338. package/assets/components/assets/icon/filePdfPlus24.json +1 -1
  1339. package/assets/components/assets/icon/filePdfPlus32.json +1 -1
  1340. package/assets/components/assets/icon/filePitemx16.json +1 -1
  1341. package/assets/components/assets/icon/filePitemx24.json +1 -1
  1342. package/assets/components/assets/icon/filePitemx32.json +1 -1
  1343. package/assets/components/assets/icon/filePpt16.json +1 -1
  1344. package/assets/components/assets/icon/filePpt24.json +1 -1
  1345. package/assets/components/assets/icon/filePpt32.json +1 -1
  1346. package/assets/components/assets/icon/fileReport16.json +1 -1
  1347. package/assets/components/assets/icon/fileReportGeneric16.json +1 -1
  1348. package/assets/components/assets/icon/fileReportGeneric24.json +1 -1
  1349. package/assets/components/assets/icon/fileReportGeneric32.json +1 -1
  1350. package/assets/components/assets/icon/fileSound16.json +1 -1
  1351. package/assets/components/assets/icon/fileSound24.json +1 -1
  1352. package/assets/components/assets/icon/fileSound32.json +1 -1
  1353. package/assets/components/assets/icon/fileSqlite16.json +1 -1
  1354. package/assets/components/assets/icon/fileSqlite24.json +1 -1
  1355. package/assets/components/assets/icon/fileSqlite32.json +1 -1
  1356. package/assets/components/assets/icon/fileText32.json +1 -1
  1357. package/assets/components/assets/icon/fileUser16.json +1 -1
  1358. package/assets/components/assets/icon/fileUser24.json +1 -1
  1359. package/assets/components/assets/icon/fileUser32.json +1 -1
  1360. package/assets/components/assets/icon/fileVideo16.json +1 -1
  1361. package/assets/components/assets/icon/fileVideo24.json +1 -1
  1362. package/assets/components/assets/icon/fileVideo32.json +1 -1
  1363. package/assets/components/assets/icon/fileWord16.json +1 -1
  1364. package/assets/components/assets/icon/fileWord32.json +1 -1
  1365. package/assets/components/assets/icon/fileXml16.json +1 -1
  1366. package/assets/components/assets/icon/fileXml24.json +1 -1
  1367. package/assets/components/assets/icon/fileXml32.json +1 -1
  1368. package/assets/components/assets/icon/fileZip16.json +1 -1
  1369. package/assets/components/assets/icon/fileZip32.json +1 -1
  1370. package/assets/components/assets/icon/files32.json +1 -1
  1371. package/assets/components/assets/icon/filesCsvCollection16.json +1 -1
  1372. package/assets/components/assets/icon/filesCsvCollection24.json +1 -1
  1373. package/assets/components/assets/icon/filesCsvCollection32.json +1 -1
  1374. package/assets/components/assets/icon/filter16.json +1 -1
  1375. package/assets/components/assets/icon/filter24.json +1 -1
  1376. package/assets/components/assets/icon/filter32.json +1 -1
  1377. package/assets/components/assets/icon/filterExpand16.json +1 -1
  1378. package/assets/components/assets/icon/filterExpand24.json +1 -1
  1379. package/assets/components/assets/icon/filterExpand32.json +1 -1
  1380. package/assets/components/assets/icon/filteredFindAddPath16.json +1 -1
  1381. package/assets/components/assets/icon/filteredFindAddPath24.json +1 -1
  1382. package/assets/components/assets/icon/filteredFindAddPath32.json +1 -1
  1383. package/assets/components/assets/icon/findAddPath16.json +1 -1
  1384. package/assets/components/assets/icon/findAddPath24.json +1 -1
  1385. package/assets/components/assets/icon/findAddPath32.json +1 -1
  1386. package/assets/components/assets/icon/findPath16.json +1 -1
  1387. package/assets/components/assets/icon/findPath24.json +1 -1
  1388. package/assets/components/assets/icon/findPath32.json +1 -1
  1389. package/assets/components/assets/icon/fingerprint16.json +1 -1
  1390. package/assets/components/assets/icon/fingerprint24.json +1 -1
  1391. package/assets/components/assets/icon/fingerprint32.json +1 -1
  1392. package/assets/components/assets/icon/flag16.json +1 -1
  1393. package/assets/components/assets/icon/flag16F.json +1 -1
  1394. package/assets/components/assets/icon/flag24.json +1 -1
  1395. package/assets/components/assets/icon/flag24F.json +1 -1
  1396. package/assets/components/assets/icon/flag32.json +1 -1
  1397. package/assets/components/assets/icon/flag32F.json +1 -1
  1398. package/assets/components/assets/icon/flagSlash16.json +1 -1
  1399. package/assets/components/assets/icon/flagSlash24.json +1 -1
  1400. package/assets/components/assets/icon/flagSlash32.json +1 -1
  1401. package/assets/components/assets/icon/flash16.json +1 -1
  1402. package/assets/components/assets/icon/flash24.json +1 -1
  1403. package/assets/components/assets/icon/flash32.json +1 -1
  1404. package/assets/components/assets/icon/flip16.json +1 -1
  1405. package/assets/components/assets/icon/flip32.json +1 -1
  1406. package/assets/components/assets/icon/flipVertical24.json +1 -1
  1407. package/assets/components/assets/icon/flipVertical32.json +1 -1
  1408. package/assets/components/assets/icon/fog16.json +1 -1
  1409. package/assets/components/assets/icon/fog24.json +1 -1
  1410. package/assets/components/assets/icon/fog32.json +1 -1
  1411. package/assets/components/assets/icon/folder16.json +1 -1
  1412. package/assets/components/assets/icon/folder16F.json +1 -1
  1413. package/assets/components/assets/icon/folder24F.json +1 -1
  1414. package/assets/components/assets/icon/folder32F.json +1 -1
  1415. package/assets/components/assets/icon/folderArchive16.json +1 -1
  1416. package/assets/components/assets/icon/folderArchive24.json +1 -1
  1417. package/assets/components/assets/icon/folderMagnifyingGlass16.json +1 -1
  1418. package/assets/components/assets/icon/folderMagnifyingGlass24.json +1 -1
  1419. package/assets/components/assets/icon/folderMagnifyingGlass32.json +1 -1
  1420. package/assets/components/assets/icon/folderMove16.json +1 -1
  1421. package/assets/components/assets/icon/folderMove24.json +1 -1
  1422. package/assets/components/assets/icon/folderMove32.json +1 -1
  1423. package/assets/components/assets/icon/folderNew16.json +1 -1
  1424. package/assets/components/assets/icon/folderNew24.json +1 -1
  1425. package/assets/components/assets/icon/folderNew32.json +1 -1
  1426. package/assets/components/assets/icon/folderOpen16.json +1 -1
  1427. package/assets/components/assets/icon/folderOpen16F.json +1 -1
  1428. package/assets/components/assets/icon/folderOpen24.json +1 -1
  1429. package/assets/components/assets/icon/folderOpen24F.json +1 -1
  1430. package/assets/components/assets/icon/folderOpen32.json +1 -1
  1431. package/assets/components/assets/icon/folderOpen32F.json +1 -1
  1432. package/assets/components/assets/icon/folderPlus16.json +1 -1
  1433. package/assets/components/assets/icon/folderStar16.json +1 -1
  1434. package/assets/components/assets/icon/folderStar24.json +1 -1
  1435. package/assets/components/assets/icon/folderStar32.json +1 -1
  1436. package/assets/components/assets/icon/folderVideo16.json +1 -1
  1437. package/assets/components/assets/icon/folderVideo24.json +1 -1
  1438. package/assets/components/assets/icon/folderVideo32.json +1 -1
  1439. package/assets/components/assets/icon/folders24.json +1 -1
  1440. package/assets/components/assets/icon/folders32.json +1 -1
  1441. package/assets/components/assets/icon/follow24.json +1 -1
  1442. package/assets/components/assets/icon/followPause24.json +1 -1
  1443. package/assets/components/assets/icon/followPlay24.json +1 -1
  1444. package/assets/components/assets/icon/followPlay32.json +1 -1
  1445. package/assets/components/assets/icon/footprint16.json +1 -1
  1446. package/assets/components/assets/icon/footprint24.json +1 -1
  1447. package/assets/components/assets/icon/footprint32.json +1 -1
  1448. package/assets/components/assets/icon/forceDirectedLinkChartLayout16.json +1 -1
  1449. package/assets/components/assets/icon/forceDirectedLinkChartLayout24.json +1 -1
  1450. package/assets/components/assets/icon/forceDirectedLinkChartLayout32.json +1 -1
  1451. package/assets/components/assets/icon/forkLeft16.json +1 -1
  1452. package/assets/components/assets/icon/forkLeft24.json +1 -1
  1453. package/assets/components/assets/icon/forkLeft32.json +1 -1
  1454. package/assets/components/assets/icon/forkRight16.json +1 -1
  1455. package/assets/components/assets/icon/forkRight24.json +1 -1
  1456. package/assets/components/assets/icon/forkRight32.json +1 -1
  1457. package/assets/components/assets/icon/formDropdown16.json +1 -1
  1458. package/assets/components/assets/icon/formDropdown24.json +1 -1
  1459. package/assets/components/assets/icon/formDropdown32.json +1 -1
  1460. package/assets/components/assets/icon/formElements16.json +1 -1
  1461. package/assets/components/assets/icon/formElements24.json +1 -1
  1462. package/assets/components/assets/icon/formElements32.json +1 -1
  1463. package/assets/components/assets/icon/formField16.json +1 -1
  1464. package/assets/components/assets/icon/formField24.json +1 -1
  1465. package/assets/components/assets/icon/formField32.json +1 -1
  1466. package/assets/components/assets/icon/formFieldMultiline16.json +1 -1
  1467. package/assets/components/assets/icon/formFieldMultiline24.json +1 -1
  1468. package/assets/components/assets/icon/formFieldMultiline32.json +1 -1
  1469. package/assets/components/assets/icon/formFieldOff16.json +1 -1
  1470. package/assets/components/assets/icon/formFieldOff24.json +1 -1
  1471. package/assets/components/assets/icon/formFieldOff32.json +1 -1
  1472. package/assets/components/assets/icon/forward16.json +1 -1
  1473. package/assets/components/assets/icon/forward24.json +1 -1
  1474. package/assets/components/assets/icon/forward24F.json +1 -1
  1475. package/assets/components/assets/icon/forward32.json +1 -1
  1476. package/assets/components/assets/icon/forward32F.json +1 -1
  1477. package/assets/components/assets/icon/fourByOneGrid16.json +1 -1
  1478. package/assets/components/assets/icon/fourByOneGrid24.json +1 -1
  1479. package/assets/components/assets/icon/fourByOneGrid32.json +1 -1
  1480. package/assets/components/assets/icon/fourByThreeGrid16.json +1 -1
  1481. package/assets/components/assets/icon/fourByThreeGrid24.json +1 -1
  1482. package/assets/components/assets/icon/fourByThreeGrid32.json +1 -1
  1483. package/assets/components/assets/icon/fourByTwoGrid16.json +1 -1
  1484. package/assets/components/assets/icon/fourByTwoGrid24.json +1 -1
  1485. package/assets/components/assets/icon/fourByTwoGrid32.json +1 -1
  1486. package/assets/components/assets/icon/frameExport16.json +1 -1
  1487. package/assets/components/assets/icon/frameExport24.json +1 -1
  1488. package/assets/components/assets/icon/frameExport32.json +1 -1
  1489. package/assets/components/assets/icon/freehand16.json +1 -1
  1490. package/assets/components/assets/icon/freehand24.json +1 -1
  1491. package/assets/components/assets/icon/freehand32.json +1 -1
  1492. package/assets/components/assets/icon/freehandArea16.json +1 -1
  1493. package/assets/components/assets/icon/freehandArea24.json +1 -1
  1494. package/assets/components/assets/icon/freehandArea32.json +1 -1
  1495. package/assets/components/assets/icon/frown16.json +1 -1
  1496. package/assets/components/assets/icon/frown24.json +1 -1
  1497. package/assets/components/assets/icon/frown32.json +1 -1
  1498. package/assets/components/assets/icon/fullScreen16.json +1 -1
  1499. package/assets/components/assets/icon/fullScreen24.json +1 -1
  1500. package/assets/components/assets/icon/fullScreen32.json +1 -1
  1501. package/assets/components/assets/icon/function16.json +1 -1
  1502. package/assets/components/assets/icon/function24.json +1 -1
  1503. package/assets/components/assets/icon/function32.json +1 -1
  1504. package/assets/components/assets/icon/functionEditor16.json +1 -1
  1505. package/assets/components/assets/icon/functionEditor24.json +1 -1
  1506. package/assets/components/assets/icon/functionEditor32.json +1 -1
  1507. package/assets/components/assets/icon/gamma16.json +1 -1
  1508. package/assets/components/assets/icon/gamma24.json +1 -1
  1509. package/assets/components/assets/icon/gamma32.json +1 -1
  1510. package/assets/components/assets/icon/gauge16.json +1 -1
  1511. package/assets/components/assets/icon/gauge24.json +1 -1
  1512. package/assets/components/assets/icon/gauge32.json +1 -1
  1513. package/assets/components/assets/icon/gaugeSummary16.json +1 -1
  1514. package/assets/components/assets/icon/gaugeSummary24.json +1 -1
  1515. package/assets/components/assets/icon/gaugeSummary32.json +1 -1
  1516. package/assets/components/assets/icon/gear16.json +1 -1
  1517. package/assets/components/assets/icon/gear24.json +1 -1
  1518. package/assets/components/assets/icon/gear32.json +1 -1
  1519. package/assets/components/assets/icon/geoanalyticsServer16.json +1 -1
  1520. package/assets/components/assets/icon/geoanalyticsServer24.json +1 -1
  1521. package/assets/components/assets/icon/geoanalyticsServer32.json +1 -1
  1522. package/assets/components/assets/icon/geoeventServer16.json +1 -1
  1523. package/assets/components/assets/icon/geoeventServer24.json +1 -1
  1524. package/assets/components/assets/icon/geoeventServer32.json +1 -1
  1525. package/assets/components/assets/icon/geographicLinkChartLayout16.json +1 -1
  1526. package/assets/components/assets/icon/geographicLinkChartLayout24.json +1 -1
  1527. package/assets/components/assets/icon/geographicLinkChartLayout32.json +1 -1
  1528. package/assets/components/assets/icon/geometricNetwork16.json +1 -0
  1529. package/assets/components/assets/icon/geometricNetwork24.json +1 -0
  1530. package/assets/components/assets/icon/geometricNetwork32.json +1 -0
  1531. package/assets/components/assets/icon/geonet16.json +1 -1
  1532. package/assets/components/assets/icon/geonet24.json +1 -1
  1533. package/assets/components/assets/icon/geonet32.json +1 -1
  1534. package/assets/components/assets/icon/geonetQuestion16.json +1 -1
  1535. package/assets/components/assets/icon/geonetQuestion24.json +1 -1
  1536. package/assets/components/assets/icon/geonetQuestion32.json +1 -1
  1537. package/assets/components/assets/icon/gisServer16.json +1 -1
  1538. package/assets/components/assets/icon/gisServer24.json +1 -1
  1539. package/assets/components/assets/icon/gisServer32.json +1 -1
  1540. package/assets/components/assets/icon/globe16.json +1 -1
  1541. package/assets/components/assets/icon/globe24.json +1 -1
  1542. package/assets/components/assets/icon/globe32.json +1 -1
  1543. package/assets/components/assets/icon/governmentBuilding16.json +1 -1
  1544. package/assets/components/assets/icon/governmentBuilding24.json +1 -1
  1545. package/assets/components/assets/icon/governmentBuilding32.json +1 -1
  1546. package/assets/components/assets/icon/gpsOff16.json +1 -1
  1547. package/assets/components/assets/icon/gpsOff24.json +1 -1
  1548. package/assets/components/assets/icon/gpsOff32.json +1 -1
  1549. package/assets/components/assets/icon/gpsOn16.json +1 -1
  1550. package/assets/components/assets/icon/gpsOn16F.json +1 -1
  1551. package/assets/components/assets/icon/gpsOn24.json +1 -1
  1552. package/assets/components/assets/icon/gpsOn24F.json +1 -1
  1553. package/assets/components/assets/icon/gpsOn32.json +1 -1
  1554. package/assets/components/assets/icon/gpsOn32F.json +1 -1
  1555. package/assets/components/assets/icon/graphAxis16.json +1 -1
  1556. package/assets/components/assets/icon/graphAxis24.json +1 -1
  1557. package/assets/components/assets/icon/graphAxis32.json +1 -1
  1558. package/assets/components/assets/icon/graphBoxMeanLines16.json +1 -1
  1559. package/assets/components/assets/icon/graphBoxMeanLines24.json +1 -1
  1560. package/assets/components/assets/icon/graphBoxMeanLines32.json +1 -1
  1561. package/assets/components/assets/icon/graphBoxSideBySide16.json +1 -1
  1562. package/assets/components/assets/icon/graphBoxSideBySide24.json +1 -1
  1563. package/assets/components/assets/icon/graphBoxSideBySide32.json +1 -1
  1564. package/assets/components/assets/icon/graphGuides16.json +1 -1
  1565. package/assets/components/assets/icon/graphGuides24.json +1 -1
  1566. package/assets/components/assets/icon/graphGuides32.json +1 -1
  1567. package/assets/components/assets/icon/graphLineSeries16.json +1 -1
  1568. package/assets/components/assets/icon/graphLineSeries24.json +1 -1
  1569. package/assets/components/assets/icon/graphLineSeries32.json +1 -1
  1570. package/assets/components/assets/icon/graphMovingAverage16.json +1 -1
  1571. package/assets/components/assets/icon/graphMovingAverage24.json +1 -1
  1572. package/assets/components/assets/icon/graphPieSlice16.json +1 -1
  1573. package/assets/components/assets/icon/graphPieSlice24.json +1 -1
  1574. package/assets/components/assets/icon/graphPieSlice32.json +1 -1
  1575. package/assets/components/assets/icon/graphScatterPlot16.json +1 -1
  1576. package/assets/components/assets/icon/graphScatterPlot24.json +1 -1
  1577. package/assets/components/assets/icon/graphScatterPlot32.json +1 -1
  1578. package/assets/components/assets/icon/graphTimeSeries16.json +1 -1
  1579. package/assets/components/assets/icon/graphTimeSeries32.json +1 -1
  1580. package/assets/components/assets/icon/gridDiamond16.json +1 -1
  1581. package/assets/components/assets/icon/gridDiamond24.json +1 -1
  1582. package/assets/components/assets/icon/gridDiamond32.json +1 -1
  1583. package/assets/components/assets/icon/gridHexagon16.json +1 -1
  1584. package/assets/components/assets/icon/gridHexagon24.json +1 -1
  1585. package/assets/components/assets/icon/gridHexagon32.json +1 -1
  1586. package/assets/components/assets/icon/gridTriangle16.json +1 -1
  1587. package/assets/components/assets/icon/gridTriangle24.json +1 -1
  1588. package/assets/components/assets/icon/gridTriangle32.json +1 -1
  1589. package/assets/components/assets/icon/groundControlPoint16.json +1 -1
  1590. package/assets/components/assets/icon/groundControlPoint24.json +1 -1
  1591. package/assets/components/assets/icon/groundControlPoint32.json +1 -1
  1592. package/assets/components/assets/icon/group16.json +1 -1
  1593. package/assets/components/assets/icon/group24.json +1 -1
  1594. package/assets/components/assets/icon/group32.json +1 -1
  1595. package/assets/components/assets/icon/groupForm16.json +1 -1
  1596. package/assets/components/assets/icon/groupForm24.json +1 -1
  1597. package/assets/components/assets/icon/groupForm32.json +1 -1
  1598. package/assets/components/assets/icon/groupFormPlus16.json +1 -1
  1599. package/assets/components/assets/icon/groupFormPlus24.json +1 -1
  1600. package/assets/components/assets/icon/groupFormPlus32.json +1 -1
  1601. package/assets/components/assets/icon/groupLayers16.json +1 -1
  1602. package/assets/components/assets/icon/groupLayers24.json +1 -1
  1603. package/assets/components/assets/icon/groupLayers32.json +1 -1
  1604. package/assets/components/assets/icon/groupX16.json +1 -1
  1605. package/assets/components/assets/icon/groupX24.json +1 -1
  1606. package/assets/components/assets/icon/groupX32.json +1 -1
  1607. package/assets/components/assets/icon/h3Hexagon16.json +1 -1
  1608. package/assets/components/assets/icon/h3Hexagon24.json +1 -1
  1609. package/assets/components/assets/icon/h3Hexagon32.json +1 -1
  1610. package/assets/components/assets/icon/halo16.json +1 -1
  1611. package/assets/components/assets/icon/halo24.json +1 -1
  1612. package/assets/components/assets/icon/halo32.json +1 -1
  1613. package/assets/components/assets/icon/hammer16.json +1 -1
  1614. package/assets/components/assets/icon/hammer24.json +1 -1
  1615. package/assets/components/assets/icon/hammer32.json +1 -1
  1616. package/assets/components/assets/icon/hammerCoin16.json +1 -1
  1617. package/assets/components/assets/icon/hammerCoin24.json +1 -1
  1618. package/assets/components/assets/icon/hammerCoin32.json +1 -1
  1619. package/assets/components/assets/icon/hammerLock16.json +1 -1
  1620. package/assets/components/assets/icon/hammerLock24.json +1 -1
  1621. package/assets/components/assets/icon/hammerLock32.json +1 -1
  1622. package/assets/components/assets/icon/handleVertical16.json +1 -1
  1623. package/assets/components/assets/icon/handleVertical24.json +1 -1
  1624. package/assets/components/assets/icon/handleVertical32.json +1 -1
  1625. package/assets/components/assets/icon/heading24.json +1 -1
  1626. package/assets/components/assets/icon/heading32.json +1 -1
  1627. package/assets/components/assets/icon/headingRtl24.json +1 -1
  1628. package/assets/components/assets/icon/headset16.json +1 -1
  1629. package/assets/components/assets/icon/headset24.json +1 -1
  1630. package/assets/components/assets/icon/headset32.json +1 -1
  1631. package/assets/components/assets/icon/heart16.json +1 -1
  1632. package/assets/components/assets/icon/heart16F.json +1 -1
  1633. package/assets/components/assets/icon/heart24.json +1 -1
  1634. package/assets/components/assets/icon/heart24F.json +1 -1
  1635. package/assets/components/assets/icon/heart32.json +1 -1
  1636. package/assets/components/assets/icon/heart32F.json +1 -1
  1637. package/assets/components/assets/icon/heavyRain16.json +1 -1
  1638. package/assets/components/assets/icon/heavyRain24.json +1 -1
  1639. package/assets/components/assets/icon/heavyRain32.json +1 -1
  1640. package/assets/components/assets/icon/heavySnow16.json +1 -1
  1641. package/assets/components/assets/icon/heavySnow24.json +1 -1
  1642. package/assets/components/assets/icon/heavySnow32.json +1 -1
  1643. package/assets/components/assets/icon/hexagon16.json +1 -1
  1644. package/assets/components/assets/icon/hexagon216.json +1 -1
  1645. package/assets/components/assets/icon/hexagon224.json +1 -1
  1646. package/assets/components/assets/icon/hexagon232.json +1 -1
  1647. package/assets/components/assets/icon/hexagon24.json +1 -1
  1648. package/assets/components/assets/icon/hexagon2InsetLarge16.json +1 -1
  1649. package/assets/components/assets/icon/hexagon2InsetLarge24.json +1 -1
  1650. package/assets/components/assets/icon/hexagon2InsetLarge32.json +1 -1
  1651. package/assets/components/assets/icon/hexagon2InsetMedium16.json +1 -1
  1652. package/assets/components/assets/icon/hexagon2InsetMedium24.json +1 -1
  1653. package/assets/components/assets/icon/hexagon2InsetMedium32.json +1 -1
  1654. package/assets/components/assets/icon/hexagon2InsetSmall16.json +1 -1
  1655. package/assets/components/assets/icon/hexagon2InsetSmall24.json +1 -1
  1656. package/assets/components/assets/icon/hexagon2InsetSmall32.json +1 -1
  1657. package/assets/components/assets/icon/hexagon32.json +1 -1
  1658. package/assets/components/assets/icon/hexagonInsetLarge16.json +1 -1
  1659. package/assets/components/assets/icon/hexagonInsetLarge24.json +1 -1
  1660. package/assets/components/assets/icon/hexagonInsetLarge32.json +1 -1
  1661. package/assets/components/assets/icon/hexagonInsetMedium16.json +1 -1
  1662. package/assets/components/assets/icon/hexagonInsetMedium24.json +1 -1
  1663. package/assets/components/assets/icon/hexagonInsetMedium32.json +1 -1
  1664. package/assets/components/assets/icon/hexagonInsetSmall16.json +1 -1
  1665. package/assets/components/assets/icon/hexagonInsetSmall24.json +1 -1
  1666. package/assets/components/assets/icon/hexagonInsetSmall32.json +1 -1
  1667. package/assets/components/assets/icon/hideData16.json +1 -1
  1668. package/assets/components/assets/icon/hideData24.json +1 -1
  1669. package/assets/components/assets/icon/hideData32.json +1 -1
  1670. package/assets/components/assets/icon/hideDerivedValue16.json +1 -1
  1671. package/assets/components/assets/icon/hideDerivedValue24.json +1 -1
  1672. package/assets/components/assets/icon/hideDerivedValue32.json +1 -1
  1673. package/assets/components/assets/icon/hideEmpty16.json +1 -1
  1674. package/assets/components/assets/icon/hideEmpty24.json +1 -1
  1675. package/assets/components/assets/icon/hideEmpty32.json +1 -1
  1676. package/assets/components/assets/icon/hideLayers16.json +1 -1
  1677. package/assets/components/assets/icon/hideLayers24.json +1 -1
  1678. package/assets/components/assets/icon/hideLayers32.json +1 -1
  1679. package/assets/components/assets/icon/hideLinkChartNonspatialData16.json +1 -1
  1680. package/assets/components/assets/icon/hideLinkChartNonspatialData24.json +1 -1
  1681. package/assets/components/assets/icon/hideLinkChartNonspatialData32.json +1 -1
  1682. package/assets/components/assets/icon/hideLinkChartRootNodes16.json +1 -1
  1683. package/assets/components/assets/icon/hideLinkChartRootNodes24.json +1 -1
  1684. package/assets/components/assets/icon/hideLinkChartRootNodes32.json +1 -1
  1685. package/assets/components/assets/icon/hideParameters16.json +1 -1
  1686. package/assets/components/assets/icon/hideParameters24.json +1 -1
  1687. package/assets/components/assets/icon/hideParameters32.json +1 -1
  1688. package/assets/components/assets/icon/hierarchicalLinkChartLayout16.json +1 -1
  1689. package/assets/components/assets/icon/hierarchicalLinkChartLayout24.json +1 -1
  1690. package/assets/components/assets/icon/hierarchicalLinkChartLayout32.json +1 -1
  1691. package/assets/components/assets/icon/highlighter16.json +1 -1
  1692. package/assets/components/assets/icon/highlighter24.json +1 -1
  1693. package/assets/components/assets/icon/highlighter32.json +1 -1
  1694. package/assets/components/assets/icon/highlighterTip24.json +1 -1
  1695. package/assets/components/assets/icon/highwayChange16.json +1 -1
  1696. package/assets/components/assets/icon/highwayChange24.json +1 -1
  1697. package/assets/components/assets/icon/highwayChange32.json +1 -1
  1698. package/assets/components/assets/icon/highwayChangeRight16.json +1 -1
  1699. package/assets/components/assets/icon/highwayChangeRight24.json +1 -1
  1700. package/assets/components/assets/icon/highwayChangeRight32.json +1 -1
  1701. package/assets/components/assets/icon/hillshadeEffect16.json +1 -1
  1702. package/assets/components/assets/icon/hillshadeEffect24.json +1 -1
  1703. package/assets/components/assets/icon/hillshadeEffect32.json +1 -1
  1704. package/assets/components/assets/icon/home16.json +1 -1
  1705. package/assets/components/assets/icon/home24.json +1 -1
  1706. package/assets/components/assets/icon/hourglassActive16.json +1 -1
  1707. package/assets/components/assets/icon/hourglassActive24.json +1 -1
  1708. package/assets/components/assets/icon/hourglassActive32.json +1 -1
  1709. package/assets/components/assets/icon/hourglassExpired16.json +1 -1
  1710. package/assets/components/assets/icon/hourglassExpired24.json +1 -1
  1711. package/assets/components/assets/icon/hourglassExpired32.json +1 -1
  1712. package/assets/components/assets/icon/i12X16.json +1 -1
  1713. package/assets/components/assets/icon/i12X24.json +1 -1
  1714. package/assets/components/assets/icon/i12X32.json +1 -1
  1715. package/assets/components/assets/icon/i14X24.json +1 -1
  1716. package/assets/components/assets/icon/i14X32.json +1 -1
  1717. package/assets/components/assets/icon/i18X16.json +1 -1
  1718. package/assets/components/assets/icon/i18X24.json +1 -1
  1719. package/assets/components/assets/icon/i18X32.json +1 -1
  1720. package/assets/components/assets/icon/i1X16.json +1 -1
  1721. package/assets/components/assets/icon/i1X32.json +1 -1
  1722. package/assets/components/assets/icon/i2D16.json +1 -1
  1723. package/assets/components/assets/icon/i2D24.json +1 -1
  1724. package/assets/components/assets/icon/i2D32.json +1 -1
  1725. package/assets/components/assets/icon/i2DExplore16.json +1 -1
  1726. package/assets/components/assets/icon/i2DExplore24.json +1 -1
  1727. package/assets/components/assets/icon/i2DExplore32.json +1 -1
  1728. package/assets/components/assets/icon/i2X16.json +1 -1
  1729. package/assets/components/assets/icon/i2X24.json +1 -1
  1730. package/assets/components/assets/icon/i2X32.json +1 -1
  1731. package/assets/components/assets/icon/i360View16.json +1 -1
  1732. package/assets/components/assets/icon/i360View24.json +1 -1
  1733. package/assets/components/assets/icon/i360View32.json +1 -1
  1734. package/assets/components/assets/icon/i3D16.json +1 -1
  1735. package/assets/components/assets/icon/i3D24.json +1 -1
  1736. package/assets/components/assets/icon/i3D32.json +1 -1
  1737. package/assets/components/assets/icon/i3DBuilding16.json +1 -1
  1738. package/assets/components/assets/icon/i3DBuilding24.json +1 -1
  1739. package/assets/components/assets/icon/i3DBuilding32.json +1 -1
  1740. package/assets/components/assets/icon/i3DBuildingParameter16.json +1 -1
  1741. package/assets/components/assets/icon/i3DBuildingParameter24.json +1 -1
  1742. package/assets/components/assets/icon/i3DBuildingParameter32.json +1 -1
  1743. package/assets/components/assets/icon/i3DGlasses16.json +1 -1
  1744. package/assets/components/assets/icon/i3DGlasses24.json +1 -1
  1745. package/assets/components/assets/icon/i3DGlasses32.json +1 -1
  1746. package/assets/components/assets/icon/i4X32.json +1 -1
  1747. package/assets/components/assets/icon/i8X16.json +1 -1
  1748. package/assets/components/assets/icon/i8X24.json +1 -1
  1749. package/assets/components/assets/icon/i8X32.json +1 -1
  1750. package/assets/components/assets/icon/image16.json +1 -1
  1751. package/assets/components/assets/icon/image24.json +1 -1
  1752. package/assets/components/assets/icon/image32.json +1 -1
  1753. package/assets/components/assets/icon/imageCollectionExplorer16.json +1 -1
  1754. package/assets/components/assets/icon/imageCollectionExplorer24.json +1 -1
  1755. package/assets/components/assets/icon/imageCollectionExplorer32.json +1 -1
  1756. package/assets/components/assets/icon/imageDisplayOrder32.json +1 -1
  1757. package/assets/components/assets/icon/imageLayer16.json +1 -1
  1758. package/assets/components/assets/icon/imageLayer24.json +1 -1
  1759. package/assets/components/assets/icon/imageLayer32.json +1 -1
  1760. package/assets/components/assets/icon/imageMagnifyingGlass16.json +1 -1
  1761. package/assets/components/assets/icon/imageMagnifyingGlass24.json +1 -1
  1762. package/assets/components/assets/icon/imageMagnifyingGlass32.json +1 -1
  1763. package/assets/components/assets/icon/imageMensuration16.json +1 -1
  1764. package/assets/components/assets/icon/imageMensuration24.json +1 -1
  1765. package/assets/components/assets/icon/imageMensuration32.json +1 -1
  1766. package/assets/components/assets/icon/imageNavigation16.json +1 -0
  1767. package/assets/components/assets/icon/imageNavigation24.json +1 -0
  1768. package/assets/components/assets/icon/imageNavigation32.json +1 -0
  1769. package/assets/components/assets/icon/imagePin16.json +1 -1
  1770. package/assets/components/assets/icon/imagePin24.json +1 -1
  1771. package/assets/components/assets/icon/imagePin32.json +1 -1
  1772. package/assets/components/assets/icon/imagePlus16.json +1 -1
  1773. package/assets/components/assets/icon/imagePlus24.json +1 -1
  1774. package/assets/components/assets/icon/imagePlus32.json +1 -1
  1775. package/assets/components/assets/icon/imageSegmentation16.json +1 -1
  1776. package/assets/components/assets/icon/imageSegmentation24.json +1 -1
  1777. package/assets/components/assets/icon/imageSegmentation32.json +1 -1
  1778. package/assets/components/assets/icon/imageServer16.json +1 -1
  1779. package/assets/components/assets/icon/imageServer24.json +1 -1
  1780. package/assets/components/assets/icon/imageServer32.json +1 -1
  1781. package/assets/components/assets/icon/imageSpace16.json +1 -1
  1782. package/assets/components/assets/icon/imageSpace24.json +1 -1
  1783. package/assets/components/assets/icon/imageSpace32.json +1 -1
  1784. package/assets/components/assets/icon/imageUnit16.json +1 -1
  1785. package/assets/components/assets/icon/imageUnit24.json +1 -1
  1786. package/assets/components/assets/icon/imageUnit32.json +1 -1
  1787. package/assets/components/assets/icon/images16.json +1 -1
  1788. package/assets/components/assets/icon/images24.json +1 -1
  1789. package/assets/components/assets/icon/images32.json +1 -1
  1790. package/assets/components/assets/icon/import32.json +1 -1
  1791. package/assets/components/assets/icon/inbox16.json +1 -1
  1792. package/assets/components/assets/icon/increaseLinkChartSymbolSize16.json +1 -1
  1793. package/assets/components/assets/icon/increaseLinkChartSymbolSize24.json +1 -1
  1794. package/assets/components/assets/icon/increaseLinkChartSymbolSize32.json +1 -1
  1795. package/assets/components/assets/icon/indicator16.json +1 -1
  1796. package/assets/components/assets/icon/indicator24.json +1 -1
  1797. package/assets/components/assets/icon/indicator32.json +1 -1
  1798. package/assets/components/assets/icon/infographic16.json +1 -1
  1799. package/assets/components/assets/icon/infographic24.json +1 -1
  1800. package/assets/components/assets/icon/infographic32.json +1 -1
  1801. package/assets/components/assets/icon/information16.json +1 -1
  1802. package/assets/components/assets/icon/information16F.json +1 -1
  1803. package/assets/components/assets/icon/information24.json +1 -1
  1804. package/assets/components/assets/icon/information24F.json +1 -1
  1805. package/assets/components/assets/icon/information32.json +1 -1
  1806. package/assets/components/assets/icon/information32F.json +1 -1
  1807. package/assets/components/assets/icon/informationLetter16.json +1 -1
  1808. package/assets/components/assets/icon/informationLetter24.json +1 -1
  1809. package/assets/components/assets/icon/informationLetter32.json +1 -1
  1810. package/assets/components/assets/icon/initiative16.json +1 -1
  1811. package/assets/components/assets/icon/initiative24.json +1 -1
  1812. package/assets/components/assets/icon/initiative32.json +1 -1
  1813. package/assets/components/assets/icon/initiativeTemplate16.json +1 -1
  1814. package/assets/components/assets/icon/initiativeTemplate24.json +1 -1
  1815. package/assets/components/assets/icon/initiativeTemplate32.json +1 -1
  1816. package/assets/components/assets/icon/insets16.json +1 -1
  1817. package/assets/components/assets/icon/insets24.json +1 -1
  1818. package/assets/components/assets/icon/insets32.json +1 -1
  1819. package/assets/components/assets/icon/inspection16.json +1 -1
  1820. package/assets/components/assets/icon/inspection24.json +1 -1
  1821. package/assets/components/assets/icon/inspection32.json +1 -1
  1822. package/assets/components/assets/icon/integer16.json +1 -1
  1823. package/assets/components/assets/icon/integer24.json +1 -1
  1824. package/assets/components/assets/icon/integer32.json +1 -1
  1825. package/assets/components/assets/icon/intersection16.json +1 -0
  1826. package/assets/components/assets/icon/intersection24.json +1 -0
  1827. package/assets/components/assets/icon/intersection32.json +1 -0
  1828. package/assets/components/assets/icon/investigation16.json +1 -1
  1829. package/assets/components/assets/icon/investigation24.json +1 -1
  1830. package/assets/components/assets/icon/investigation32.json +1 -1
  1831. package/assets/components/assets/icon/italicize16.json +1 -1
  1832. package/assets/components/assets/icon/italicize24.json +1 -1
  1833. package/assets/components/assets/icon/italicize32.json +1 -1
  1834. package/assets/components/assets/icon/joinedViewLayer16.json +1 -1
  1835. package/assets/components/assets/icon/joinedViewLayer24.json +1 -1
  1836. package/assets/components/assets/icon/joinedViewLayer32.json +1 -1
  1837. package/assets/components/assets/icon/justify16.json +1 -1
  1838. package/assets/components/assets/icon/justify24.json +1 -1
  1839. package/assets/components/assets/icon/justify32.json +1 -1
  1840. package/assets/components/assets/icon/key16.json +1 -1
  1841. package/assets/components/assets/icon/key24.json +1 -1
  1842. package/assets/components/assets/icon/key32.json +1 -1
  1843. package/assets/components/assets/icon/keyboard16.json +1 -1
  1844. package/assets/components/assets/icon/keyboard24.json +1 -1
  1845. package/assets/components/assets/icon/keyboard32.json +1 -1
  1846. package/assets/components/assets/icon/keypad16.json +1 -1
  1847. package/assets/components/assets/icon/keypad24.json +1 -1
  1848. package/assets/components/assets/icon/keypad32.json +1 -1
  1849. package/assets/components/assets/icon/knowledgeGraph16.json +1 -1
  1850. package/assets/components/assets/icon/knowledgeGraph24.json +1 -1
  1851. package/assets/components/assets/icon/knowledgeGraph32.json +1 -1
  1852. package/assets/components/assets/icon/knowledgeGraphDashboard16.json +1 -1
  1853. package/assets/components/assets/icon/knowledgeGraphDashboard24.json +1 -1
  1854. package/assets/components/assets/icon/knowledgeGraphDashboard32.json +1 -1
  1855. package/assets/components/assets/icon/knowledgeGraphDataModel16.json +1 -1
  1856. package/assets/components/assets/icon/knowledgeGraphDataModel24.json +1 -1
  1857. package/assets/components/assets/icon/knowledgeGraphDataModel32.json +1 -1
  1858. package/assets/components/assets/icon/knowledgeGraphDataStore16.json +1 -1
  1859. package/assets/components/assets/icon/knowledgeGraphDataStore24.json +1 -1
  1860. package/assets/components/assets/icon/knowledgeGraphDataStore32.json +1 -1
  1861. package/assets/components/assets/icon/knowledgeGraphExport16.json +1 -1
  1862. package/assets/components/assets/icon/knowledgeGraphExport24.json +1 -1
  1863. package/assets/components/assets/icon/knowledgeGraphExport32.json +1 -1
  1864. package/assets/components/assets/icon/knowledgeGraphImport16.json +1 -1
  1865. package/assets/components/assets/icon/knowledgeGraphImport24.json +1 -1
  1866. package/assets/components/assets/icon/knowledgeGraphImport32.json +1 -1
  1867. package/assets/components/assets/icon/knowledgeGraphNew16.json +1 -1
  1868. package/assets/components/assets/icon/knowledgeGraphNew24.json +1 -1
  1869. package/assets/components/assets/icon/knowledgeGraphNew32.json +1 -1
  1870. package/assets/components/assets/icon/knowledgeGraphRelationship16.json +1 -1
  1871. package/assets/components/assets/icon/knowledgeGraphRelationship24.json +1 -1
  1872. package/assets/components/assets/icon/knowledgeGraphRelationship32.json +1 -1
  1873. package/assets/components/assets/icon/knowledgeLayer16.json +1 -1
  1874. package/assets/components/assets/icon/knowledgeLayer24.json +1 -1
  1875. package/assets/components/assets/icon/knowledgeLayer32.json +1 -1
  1876. package/assets/components/assets/icon/knowledgeServer16.json +1 -1
  1877. package/assets/components/assets/icon/knowledgeServer24.json +1 -1
  1878. package/assets/components/assets/icon/knowledgeServer32.json +1 -1
  1879. package/assets/components/assets/icon/knowledgeStudio16.json +1 -1
  1880. package/assets/components/assets/icon/knowledgeStudio24.json +1 -1
  1881. package/assets/components/assets/icon/knowledgeStudio32.json +1 -1
  1882. package/assets/components/assets/icon/label16.json +1 -1
  1883. package/assets/components/assets/icon/label24.json +1 -1
  1884. package/assets/components/assets/icon/label32.json +1 -1
  1885. package/assets/components/assets/icon/labelOff16.json +1 -1
  1886. package/assets/components/assets/icon/labelOff24.json +1 -1
  1887. package/assets/components/assets/icon/labelOff32.json +1 -1
  1888. package/assets/components/assets/icon/language16.json +1 -1
  1889. package/assets/components/assets/icon/language216.json +1 -1
  1890. package/assets/components/assets/icon/language224.json +1 -1
  1891. package/assets/components/assets/icon/language232.json +1 -1
  1892. package/assets/components/assets/icon/language24.json +1 -1
  1893. package/assets/components/assets/icon/language32.json +1 -1
  1894. package/assets/components/assets/icon/languageTranslate16.json +1 -1
  1895. package/assets/components/assets/icon/languageTranslate24.json +1 -1
  1896. package/assets/components/assets/icon/languageTranslate32.json +1 -1
  1897. package/assets/components/assets/icon/lasso16.json +1 -1
  1898. package/assets/components/assets/icon/lasso24.json +1 -1
  1899. package/assets/components/assets/icon/lasso32.json +1 -1
  1900. package/assets/components/assets/icon/lassoSelect16.json +1 -1
  1901. package/assets/components/assets/icon/lassoSelect24.json +1 -1
  1902. package/assets/components/assets/icon/lassoSelect32.json +1 -1
  1903. package/assets/components/assets/icon/layer16.json +1 -1
  1904. package/assets/components/assets/icon/layer24.json +1 -1
  1905. package/assets/components/assets/icon/layer32.json +1 -1
  1906. package/assets/components/assets/icon/layerAnnotation16.json +1 -0
  1907. package/assets/components/assets/icon/layerAnnotation24.json +1 -0
  1908. package/assets/components/assets/icon/layerAnnotation32.json +1 -0
  1909. package/assets/components/assets/icon/layerBasemap16.json +1 -1
  1910. package/assets/components/assets/icon/layerBasemap24.json +1 -1
  1911. package/assets/components/assets/icon/layerBasemap32.json +1 -1
  1912. package/assets/components/assets/icon/layerBroken16.json +1 -1
  1913. package/assets/components/assets/icon/layerBroken24.json +1 -1
  1914. package/assets/components/assets/icon/layerBroken32.json +1 -1
  1915. package/assets/components/assets/icon/layerConnection16.json +1 -1
  1916. package/assets/components/assets/icon/layerConnection24.json +1 -1
  1917. package/assets/components/assets/icon/layerConnection32.json +1 -1
  1918. package/assets/components/assets/icon/layerDimension16.json +1 -0
  1919. package/assets/components/assets/icon/layerDimension24.json +1 -0
  1920. package/assets/components/assets/icon/layerDimension32.json +1 -0
  1921. package/assets/components/assets/icon/layerFilter16.json +1 -1
  1922. package/assets/components/assets/icon/layerFilter24.json +1 -1
  1923. package/assets/components/assets/icon/layerFilter32.json +1 -1
  1924. package/assets/components/assets/icon/layerGraphics16.json +1 -1
  1925. package/assets/components/assets/icon/layerGraphics24.json +1 -1
  1926. package/assets/components/assets/icon/layerGraphics32.json +1 -1
  1927. package/assets/components/assets/icon/layerHide16.json +1 -1
  1928. package/assets/components/assets/icon/layerHide24.json +1 -1
  1929. package/assets/components/assets/icon/layerHide32.json +1 -1
  1930. package/assets/components/assets/icon/layerKml16.json +1 -1
  1931. package/assets/components/assets/icon/layerKml24.json +1 -1
  1932. package/assets/components/assets/icon/layerKml32.json +1 -1
  1933. package/assets/components/assets/icon/layerLine16.json +1 -1
  1934. package/assets/components/assets/icon/layerLine24.json +1 -1
  1935. package/assets/components/assets/icon/layerLine32.json +1 -1
  1936. package/assets/components/assets/icon/layerLineService16.json +1 -1
  1937. package/assets/components/assets/icon/layerLineService24.json +1 -1
  1938. package/assets/components/assets/icon/layerLineService32.json +1 -1
  1939. package/assets/components/assets/icon/layerMap16.json +1 -1
  1940. package/assets/components/assets/icon/layerMap24.json +1 -1
  1941. package/assets/components/assets/icon/layerMap32.json +1 -1
  1942. package/assets/components/assets/icon/layerMapService16.json +1 -1
  1943. package/assets/components/assets/icon/layerMapService24.json +1 -1
  1944. package/assets/components/assets/icon/layerMapService32.json +1 -1
  1945. package/assets/components/assets/icon/layerMultipatch16.json +1 -0
  1946. package/assets/components/assets/icon/layerMultipatch24.json +1 -0
  1947. package/assets/components/assets/icon/layerMultipatch32.json +1 -0
  1948. package/assets/components/assets/icon/layerMultipoint16.json +1 -0
  1949. package/assets/components/assets/icon/layerMultipoint24.json +1 -0
  1950. package/assets/components/assets/icon/layerMultipoint32.json +1 -0
  1951. package/assets/components/assets/icon/layerPoints16.json +1 -1
  1952. package/assets/components/assets/icon/layerPoints24.json +1 -1
  1953. package/assets/components/assets/icon/layerPoints32.json +1 -1
  1954. package/assets/components/assets/icon/layerPolygon16.json +1 -1
  1955. package/assets/components/assets/icon/layerPolygon24.json +1 -1
  1956. package/assets/components/assets/icon/layerPolygon32.json +1 -1
  1957. package/assets/components/assets/icon/layerPolygonService16.json +1 -1
  1958. package/assets/components/assets/icon/layerPolygonService24.json +1 -1
  1959. package/assets/components/assets/icon/layerPolygonService32.json +1 -1
  1960. package/assets/components/assets/icon/layerService16.json +1 -1
  1961. package/assets/components/assets/icon/layerService24.json +1 -1
  1962. package/assets/components/assets/icon/layerService32.json +1 -1
  1963. package/assets/components/assets/icon/layerSet16.json +1 -1
  1964. package/assets/components/assets/icon/layerSet24.json +1 -1
  1965. package/assets/components/assets/icon/layerSet32.json +1 -1
  1966. package/assets/components/assets/icon/layerSettings16.json +1 -1
  1967. package/assets/components/assets/icon/layerSettings24.json +1 -1
  1968. package/assets/components/assets/icon/layerSettings32.json +1 -1
  1969. package/assets/components/assets/icon/layerZoomTo16.json +1 -1
  1970. package/assets/components/assets/icon/layerZoomTo24.json +1 -1
  1971. package/assets/components/assets/icon/layerZoomTo32.json +1 -1
  1972. package/assets/components/assets/icon/layers16.json +1 -1
  1973. package/assets/components/assets/icon/layers16F.json +1 -1
  1974. package/assets/components/assets/icon/layers24.json +1 -1
  1975. package/assets/components/assets/icon/layers24F.json +1 -1
  1976. package/assets/components/assets/icon/layers32.json +1 -1
  1977. package/assets/components/assets/icon/layers32F.json +1 -1
  1978. package/assets/components/assets/icon/layersEditable16.json +1 -1
  1979. package/assets/components/assets/icon/layersEditable24.json +1 -1
  1980. package/assets/components/assets/icon/layersEditable32.json +1 -1
  1981. package/assets/components/assets/icon/layersF16.json +1 -1
  1982. package/assets/components/assets/icon/layersF24.json +1 -1
  1983. package/assets/components/assets/icon/layersF32.json +1 -1
  1984. package/assets/components/assets/icon/layersReference16.json +1 -1
  1985. package/assets/components/assets/icon/layersReference24.json +1 -1
  1986. package/assets/components/assets/icon/layersReference32.json +1 -1
  1987. package/assets/components/assets/icon/layoutCompact16.json +1 -1
  1988. package/assets/components/assets/icon/layoutCompact24.json +1 -1
  1989. package/assets/components/assets/icon/layoutCompact32.json +1 -1
  1990. package/assets/components/assets/icon/layoutDuplicate16.json +1 -1
  1991. package/assets/components/assets/icon/layoutDuplicate24.json +1 -1
  1992. package/assets/components/assets/icon/layoutDuplicate32.json +1 -1
  1993. package/assets/components/assets/icon/layoutSpacious16.json +1 -1
  1994. package/assets/components/assets/icon/layoutSpacious24.json +1 -1
  1995. package/assets/components/assets/icon/layoutSpacious32.json +1 -1
  1996. package/assets/components/assets/icon/learningGisWorkflow16.json +1 -1
  1997. package/assets/components/assets/icon/learningGisWorkflow24.json +1 -1
  1998. package/assets/components/assets/icon/learningGisWorkflow32.json +1 -1
  1999. package/assets/components/assets/icon/learningSteps16.json +1 -1
  2000. package/assets/components/assets/icon/learningSteps24.json +1 -1
  2001. package/assets/components/assets/icon/learningSteps32.json +1 -1
  2002. package/assets/components/assets/icon/learningWebCourse16.json +1 -1
  2003. package/assets/components/assets/icon/learningWebCourse24.json +1 -1
  2004. package/assets/components/assets/icon/learningWebCourse32.json +1 -1
  2005. package/assets/components/assets/icon/left16.json +1 -1
  2006. package/assets/components/assets/icon/left24.json +1 -1
  2007. package/assets/components/assets/icon/left32.json +1 -1
  2008. package/assets/components/assets/icon/leftEdge16.json +1 -1
  2009. package/assets/components/assets/icon/leftEdge32.json +1 -1
  2010. package/assets/components/assets/icon/leftLeft16.json +1 -1
  2011. package/assets/components/assets/icon/leftLeft24.json +1 -1
  2012. package/assets/components/assets/icon/leftLeft32.json +1 -1
  2013. package/assets/components/assets/icon/leftRight16.json +1 -1
  2014. package/assets/components/assets/icon/leftRight24.json +1 -1
  2015. package/assets/components/assets/icon/leftRight32.json +1 -1
  2016. package/assets/components/assets/icon/legend16.json +1 -1
  2017. package/assets/components/assets/icon/legend24.json +1 -1
  2018. package/assets/components/assets/icon/legend32.json +1 -1
  2019. package/assets/components/assets/icon/legendLeft16.json +1 -1
  2020. package/assets/components/assets/icon/legendLeft24.json +1 -1
  2021. package/assets/components/assets/icon/legendLeft32.json +1 -1
  2022. package/assets/components/assets/icon/legendPlus16.json +1 -1
  2023. package/assets/components/assets/icon/legendPlus24.json +1 -1
  2024. package/assets/components/assets/icon/legendPlus32.json +1 -1
  2025. package/assets/components/assets/icon/legendRight16.json +1 -1
  2026. package/assets/components/assets/icon/legendRight24.json +1 -1
  2027. package/assets/components/assets/icon/legendRight32.json +1 -1
  2028. package/assets/components/assets/icon/license16.json +1 -1
  2029. package/assets/components/assets/icon/license24.json +1 -1
  2030. package/assets/components/assets/icon/license32.json +1 -1
  2031. package/assets/components/assets/icon/lightRain16.json +1 -1
  2032. package/assets/components/assets/icon/lightRain24.json +1 -1
  2033. package/assets/components/assets/icon/lightRain32.json +1 -1
  2034. package/assets/components/assets/icon/lightSnow16.json +1 -1
  2035. package/assets/components/assets/icon/lightSnow24.json +1 -1
  2036. package/assets/components/assets/icon/lightSnow32.json +1 -1
  2037. package/assets/components/assets/icon/lightbulb16.json +1 -1
  2038. package/assets/components/assets/icon/lightbulb24.json +1 -1
  2039. package/assets/components/assets/icon/lightbulb32.json +1 -1
  2040. package/assets/components/assets/icon/lineAndCircleIntersection16.json +1 -0
  2041. package/assets/components/assets/icon/lineAndCircleIntersection24.json +1 -0
  2042. package/assets/components/assets/icon/lineAndCircleIntersection32.json +1 -0
  2043. package/assets/components/assets/icon/lineCheck16.json +1 -1
  2044. package/assets/components/assets/icon/lineCheck24.json +1 -1
  2045. package/assets/components/assets/icon/lineCheck32.json +1 -1
  2046. package/assets/components/assets/icon/lineIntersection16.json +1 -0
  2047. package/assets/components/assets/icon/lineIntersection24.json +1 -0
  2048. package/assets/components/assets/icon/lineIntersection32.json +1 -0
  2049. package/assets/components/assets/icon/lineOfSight16.json +1 -1
  2050. package/assets/components/assets/icon/lineOfSight24.json +1 -1
  2051. package/assets/components/assets/icon/lineOfSight32.json +1 -1
  2052. package/assets/components/assets/icon/lineStraight32.json +1 -1
  2053. package/assets/components/assets/icon/link16.json +1 -1
  2054. package/assets/components/assets/icon/link24.json +1 -1
  2055. package/assets/components/assets/icon/link32.json +1 -1
  2056. package/assets/components/assets/icon/linkChart16.json +1 -1
  2057. package/assets/components/assets/icon/linkChart24.json +1 -1
  2058. package/assets/components/assets/icon/linkChart32.json +1 -1
  2059. package/assets/components/assets/icon/linkChartApplyTo16.json +1 -1
  2060. package/assets/components/assets/icon/linkChartApplyTo24.json +1 -1
  2061. package/assets/components/assets/icon/linkChartApplyTo32.json +1 -1
  2062. package/assets/components/assets/icon/linkChartCentrality16.json +1 -1
  2063. package/assets/components/assets/icon/linkChartCentrality24.json +1 -1
  2064. package/assets/components/assets/icon/linkChartCentrality32.json +1 -1
  2065. package/assets/components/assets/icon/linkChartCollapseEnds16.json +1 -1
  2066. package/assets/components/assets/icon/linkChartCollapseEnds24.json +1 -1
  2067. package/assets/components/assets/icon/linkChartCollapseEnds32.json +1 -1
  2068. package/assets/components/assets/icon/linkChartConnect16.json +1 -1
  2069. package/assets/components/assets/icon/linkChartConnect24.json +1 -1
  2070. package/assets/components/assets/icon/linkChartConnect32.json +1 -1
  2071. package/assets/components/assets/icon/linkChartConnectBetween16.json +1 -1
  2072. package/assets/components/assets/icon/linkChartConnectBetween24.json +1 -1
  2073. package/assets/components/assets/icon/linkChartConnectBetween32.json +1 -1
  2074. package/assets/components/assets/icon/linkChartConnectFrom16.json +1 -1
  2075. package/assets/components/assets/icon/linkChartConnectFrom24.json +1 -1
  2076. package/assets/components/assets/icon/linkChartConnectFrom32.json +1 -1
  2077. package/assets/components/assets/icon/linkChartExpand16.json +1 -1
  2078. package/assets/components/assets/icon/linkChartExpand24.json +1 -1
  2079. package/assets/components/assets/icon/linkChartExpand32.json +1 -1
  2080. package/assets/components/assets/icon/linkChartFindBetween16.json +1 -1
  2081. package/assets/components/assets/icon/linkChartFindBetween24.json +1 -1
  2082. package/assets/components/assets/icon/linkChartFindBetween32.json +1 -1
  2083. package/assets/components/assets/icon/linkChartFromTemplate16.json +1 -1
  2084. package/assets/components/assets/icon/linkChartFromTemplate24.json +1 -1
  2085. package/assets/components/assets/icon/linkChartFromTemplate32.json +1 -1
  2086. package/assets/components/assets/icon/linkChartSelectBetween16.json +1 -1
  2087. package/assets/components/assets/icon/linkChartSelectBetween24.json +1 -1
  2088. package/assets/components/assets/icon/linkChartSelectBetween32.json +1 -1
  2089. package/assets/components/assets/icon/linkChartSyncSelection16.json +1 -1
  2090. package/assets/components/assets/icon/linkChartSyncSelection24.json +1 -1
  2091. package/assets/components/assets/icon/linkChartSyncSelection32.json +1 -1
  2092. package/assets/components/assets/icon/linkChartTools16.json +1 -1
  2093. package/assets/components/assets/icon/linkChartTools24.json +1 -1
  2094. package/assets/components/assets/icon/linkChartTools32.json +1 -1
  2095. package/assets/components/assets/icon/listBullet16.json +1 -1
  2096. package/assets/components/assets/icon/listBullet24.json +1 -1
  2097. package/assets/components/assets/icon/listBullet32.json +1 -1
  2098. package/assets/components/assets/icon/listButton16.json +1 -1
  2099. package/assets/components/assets/icon/listButton24.json +1 -1
  2100. package/assets/components/assets/icon/listButton32.json +1 -1
  2101. package/assets/components/assets/icon/listCheck16.json +1 -1
  2102. package/assets/components/assets/icon/listCheck24.json +1 -1
  2103. package/assets/components/assets/icon/listCheck32.json +1 -1
  2104. package/assets/components/assets/icon/listCheckAll16.json +1 -1
  2105. package/assets/components/assets/icon/listCheckAll24.json +1 -1
  2106. package/assets/components/assets/icon/listCheckAll32.json +1 -1
  2107. package/assets/components/assets/icon/listCheckAllRtl16.json +1 -0
  2108. package/assets/components/assets/icon/listCheckAllRtl24.json +1 -0
  2109. package/assets/components/assets/icon/listCheckAllRtl32.json +1 -0
  2110. package/assets/components/assets/icon/listCheckRtl16.json +1 -0
  2111. package/assets/components/assets/icon/listCheckRtl24.json +1 -0
  2112. package/assets/components/assets/icon/listCheckRtl32.json +1 -0
  2113. package/assets/components/assets/icon/listMerge16.json +1 -1
  2114. package/assets/components/assets/icon/listMerge32.json +1 -1
  2115. package/assets/components/assets/icon/listNumber16.json +1 -1
  2116. package/assets/components/assets/icon/listNumber24.json +1 -1
  2117. package/assets/components/assets/icon/listNumber32.json +1 -1
  2118. package/assets/components/assets/icon/listNumberRtl16.json +1 -1
  2119. package/assets/components/assets/icon/listNumberRtl24.json +1 -1
  2120. package/assets/components/assets/icon/listNumberRtl32.json +1 -1
  2121. package/assets/components/assets/icon/listRadio16.json +1 -1
  2122. package/assets/components/assets/icon/listRadio24.json +1 -1
  2123. package/assets/components/assets/icon/listRadio32.json +1 -1
  2124. package/assets/components/assets/icon/listRectangle16.json +1 -1
  2125. package/assets/components/assets/icon/listRectangle24.json +1 -1
  2126. package/assets/components/assets/icon/listRectangle32.json +1 -1
  2127. package/assets/components/assets/icon/livestreamVideoLayer16.json +1 -1
  2128. package/assets/components/assets/icon/livestreamVideoLayer24.json +1 -1
  2129. package/assets/components/assets/icon/livestreamVideoLayer32.json +1 -1
  2130. package/assets/components/assets/icon/livestreamVideoProtocols16.json +1 -0
  2131. package/assets/components/assets/icon/livestreamVideoProtocols24.json +1 -0
  2132. package/assets/components/assets/icon/livestreamVideoProtocols32.json +1 -0
  2133. package/assets/components/assets/icon/locationLabel16.json +1 -0
  2134. package/assets/components/assets/icon/locationLabel24.json +1 -0
  2135. package/assets/components/assets/icon/locationLabel32.json +1 -0
  2136. package/assets/components/assets/icon/locationReferencingDataset16.json +1 -0
  2137. package/assets/components/assets/icon/locationReferencingDataset24.json +1 -0
  2138. package/assets/components/assets/icon/locationReferencingDataset32.json +1 -0
  2139. package/assets/components/assets/icon/locationSharing16.json +1 -1
  2140. package/assets/components/assets/icon/locationSharing16F.json +1 -1
  2141. package/assets/components/assets/icon/locationSharing24.json +1 -1
  2142. package/assets/components/assets/icon/locationSharing24F.json +1 -1
  2143. package/assets/components/assets/icon/locationSharing32.json +1 -1
  2144. package/assets/components/assets/icon/locationSharing32F.json +1 -1
  2145. package/assets/components/assets/icon/locationSharingOff16.json +1 -1
  2146. package/assets/components/assets/icon/locationSharingOff24.json +1 -1
  2147. package/assets/components/assets/icon/locationSharingOff32.json +1 -1
  2148. package/assets/components/assets/icon/locator16.json +1 -1
  2149. package/assets/components/assets/icon/locator24.json +1 -1
  2150. package/assets/components/assets/icon/lock16.json +1 -1
  2151. package/assets/components/assets/icon/lock16F.json +1 -1
  2152. package/assets/components/assets/icon/lock32.json +1 -1
  2153. package/assets/components/assets/icon/lock32F.json +1 -1
  2154. package/assets/components/assets/icon/ltrParagraphAlign16.json +1 -1
  2155. package/assets/components/assets/icon/ltrParagraphAlign24.json +1 -1
  2156. package/assets/components/assets/icon/ltrParagraphAlign32.json +1 -1
  2157. package/assets/components/assets/icon/magicWand16.json +1 -0
  2158. package/assets/components/assets/icon/magicWand24.json +1 -0
  2159. package/assets/components/assets/icon/magicWand32.json +1 -0
  2160. package/assets/components/assets/icon/magnifyingGlass16.json +1 -1
  2161. package/assets/components/assets/icon/magnifyingGlass24.json +1 -1
  2162. package/assets/components/assets/icon/magnifyingGlass32.json +1 -1
  2163. package/assets/components/assets/icon/magnifyingGlassMinus16.json +1 -1
  2164. package/assets/components/assets/icon/magnifyingGlassMinus24.json +1 -1
  2165. package/assets/components/assets/icon/magnifyingGlassMinus32.json +1 -1
  2166. package/assets/components/assets/icon/magnifyingGlassPlus16.json +1 -1
  2167. package/assets/components/assets/icon/magnifyingGlassPlus24.json +1 -1
  2168. package/assets/components/assets/icon/magnifyingGlassPlus32.json +1 -1
  2169. package/assets/components/assets/icon/map16.json +1 -1
  2170. package/assets/components/assets/icon/map24.json +1 -1
  2171. package/assets/components/assets/icon/map32.json +1 -1
  2172. package/assets/components/assets/icon/mapContents16.json +1 -1
  2173. package/assets/components/assets/icon/mapContents24.json +1 -1
  2174. package/assets/components/assets/icon/mapContents32.json +1 -1
  2175. package/assets/components/assets/icon/mapFromTemplate16.json +1 -1
  2176. package/assets/components/assets/icon/mapFromTemplate24.json +1 -1
  2177. package/assets/components/assets/icon/mapFromTemplate32.json +1 -1
  2178. package/assets/components/assets/icon/mapInformation16.json +1 -1
  2179. package/assets/components/assets/icon/mapInformation24.json +1 -1
  2180. package/assets/components/assets/icon/mapInformation32.json +1 -1
  2181. package/assets/components/assets/icon/mapLevelSettings16.json +1 -1
  2182. package/assets/components/assets/icon/mapLevelSettings24.json +1 -1
  2183. package/assets/components/assets/icon/mapLevelSettings32.json +1 -1
  2184. package/assets/components/assets/icon/mapPin16.json +1 -1
  2185. package/assets/components/assets/icon/mapPin24.json +1 -1
  2186. package/assets/components/assets/icon/mapPin32.json +1 -1
  2187. package/assets/components/assets/icon/mapSpace16.json +1 -1
  2188. package/assets/components/assets/icon/mapSpace24.json +1 -1
  2189. package/assets/components/assets/icon/mapSpace32.json +1 -1
  2190. package/assets/components/assets/icon/marketplace16.json +1 -1
  2191. package/assets/components/assets/icon/marketplace24.json +1 -1
  2192. package/assets/components/assets/icon/marketplace32.json +1 -1
  2193. package/assets/components/assets/icon/maskInside16.json +1 -1
  2194. package/assets/components/assets/icon/maskInside24.json +1 -1
  2195. package/assets/components/assets/icon/maskInside32.json +1 -1
  2196. package/assets/components/assets/icon/maskOutside16.json +1 -1
  2197. package/assets/components/assets/icon/maskOutside24.json +1 -1
  2198. package/assets/components/assets/icon/maskOutside32.json +1 -1
  2199. package/assets/components/assets/icon/matrixHeatChart16.json +1 -1
  2200. package/assets/components/assets/icon/matrixHeatChart24.json +1 -1
  2201. package/assets/components/assets/icon/matrixHeatChart32.json +1 -1
  2202. package/assets/components/assets/icon/maximum16.json +1 -1
  2203. package/assets/components/assets/icon/maximum24.json +1 -1
  2204. package/assets/components/assets/icon/maximum32.json +1 -1
  2205. package/assets/components/assets/icon/maximumGraph16.json +1 -1
  2206. package/assets/components/assets/icon/maximumGraph24.json +1 -1
  2207. package/assets/components/assets/icon/maximumGraph32.json +1 -1
  2208. package/assets/components/assets/icon/maximumTerritoryDistance16.json +1 -1
  2209. package/assets/components/assets/icon/maximumTerritoryDistance24.json +1 -1
  2210. package/assets/components/assets/icon/maximumTerritoryDistance32.json +1 -1
  2211. package/assets/components/assets/icon/measure16.json +1 -1
  2212. package/assets/components/assets/icon/measure24.json +1 -1
  2213. package/assets/components/assets/icon/measureBuildingHeightShadow16.json +1 -1
  2214. package/assets/components/assets/icon/measureBuildingHeightShadow24.json +1 -1
  2215. package/assets/components/assets/icon/measureBuildingHeightShadow32.json +1 -1
  2216. package/assets/components/assets/icon/measureBuildingHeightTopBase16.json +1 -1
  2217. package/assets/components/assets/icon/measureBuildingHeightTopBase24.json +1 -1
  2218. package/assets/components/assets/icon/measureBuildingHeightTopShadow16.json +1 -1
  2219. package/assets/components/assets/icon/measureBuildingHeightTopShadow24.json +1 -1
  2220. package/assets/components/assets/icon/mediaLayer16.json +1 -1
  2221. package/assets/components/assets/icon/mediaLayer24.json +1 -1
  2222. package/assets/components/assets/icon/mediaLayer32.json +1 -1
  2223. package/assets/components/assets/icon/medical16.json +1 -1
  2224. package/assets/components/assets/icon/medical24.json +1 -1
  2225. package/assets/components/assets/icon/medical32.json +1 -1
  2226. package/assets/components/assets/icon/megaPhone16.json +1 -1
  2227. package/assets/components/assets/icon/megaPhone24.json +1 -1
  2228. package/assets/components/assets/icon/megaPhone32.json +1 -1
  2229. package/assets/components/assets/icon/membersBrackets16.json +1 -1
  2230. package/assets/components/assets/icon/membersBrackets24.json +1 -1
  2231. package/assets/components/assets/icon/membersBrackets32.json +1 -1
  2232. package/assets/components/assets/icon/merge16.json +1 -1
  2233. package/assets/components/assets/icon/merge216.json +1 -1
  2234. package/assets/components/assets/icon/merge224.json +1 -1
  2235. package/assets/components/assets/icon/merge232.json +1 -1
  2236. package/assets/components/assets/icon/merge24.json +1 -1
  2237. package/assets/components/assets/icon/merge32.json +1 -1
  2238. package/assets/components/assets/icon/mergeDetails16.json +1 -1
  2239. package/assets/components/assets/icon/mergeDetails24.json +1 -1
  2240. package/assets/components/assets/icon/mergeDetails32.json +1 -1
  2241. package/assets/components/assets/icon/mergeOnHighway16.json +1 -1
  2242. package/assets/components/assets/icon/mergeOnHighway24.json +1 -1
  2243. package/assets/components/assets/icon/mergeOnHighway32.json +1 -1
  2244. package/assets/components/assets/icon/mergeOnHighwayRight16.json +1 -1
  2245. package/assets/components/assets/icon/mergeOnHighwayRight24.json +1 -1
  2246. package/assets/components/assets/icon/mergeOnHighwayRight32.json +1 -1
  2247. package/assets/components/assets/icon/mergeUnits24.json +1 -1
  2248. package/assets/components/assets/icon/mergeUnits32.json +1 -1
  2249. package/assets/components/assets/icon/microphone16.json +1 -1
  2250. package/assets/components/assets/icon/microphone24.json +1 -1
  2251. package/assets/components/assets/icon/microphone32.json +1 -1
  2252. package/assets/components/assets/icon/microphonePlus16.json +1 -1
  2253. package/assets/components/assets/icon/microphonePlus24.json +1 -1
  2254. package/assets/components/assets/icon/microphonePlus32.json +1 -1
  2255. package/assets/components/assets/icon/midpoint16.json +1 -0
  2256. package/assets/components/assets/icon/midpoint24.json +1 -0
  2257. package/assets/components/assets/icon/midpoint32.json +1 -0
  2258. package/assets/components/assets/icon/minDistanceBetweenCenters16.json +1 -1
  2259. package/assets/components/assets/icon/minDistanceBetweenCenters24.json +1 -1
  2260. package/assets/components/assets/icon/minDistanceBetweenCenters32.json +1 -1
  2261. package/assets/components/assets/icon/minimum16.json +1 -1
  2262. package/assets/components/assets/icon/minimum24.json +1 -1
  2263. package/assets/components/assets/icon/minimum32.json +1 -1
  2264. package/assets/components/assets/icon/minimumGraph16.json +1 -1
  2265. package/assets/components/assets/icon/minimumGraph24.json +1 -1
  2266. package/assets/components/assets/icon/minimumGraph32.json +1 -1
  2267. package/assets/components/assets/icon/minusCircle16.json +1 -1
  2268. package/assets/components/assets/icon/minusCircle16F.json +1 -1
  2269. package/assets/components/assets/icon/minusCircle24.json +1 -1
  2270. package/assets/components/assets/icon/minusCircle24F.json +1 -1
  2271. package/assets/components/assets/icon/minusCircle32.json +1 -1
  2272. package/assets/components/assets/icon/minusCircle32F.json +1 -1
  2273. package/assets/components/assets/icon/minusSquare16.json +1 -1
  2274. package/assets/components/assets/icon/minusSquare16F.json +1 -1
  2275. package/assets/components/assets/icon/minusSquare24.json +1 -1
  2276. package/assets/components/assets/icon/minusSquare24F.json +1 -1
  2277. package/assets/components/assets/icon/minusSquare32.json +1 -1
  2278. package/assets/components/assets/icon/minusSquare32F.json +1 -1
  2279. package/assets/components/assets/icon/miscellaneousCollection24.json +1 -1
  2280. package/assets/components/assets/icon/missionServer16.json +1 -1
  2281. package/assets/components/assets/icon/missionServer24.json +1 -1
  2282. package/assets/components/assets/icon/missionServer32.json +1 -1
  2283. package/assets/components/assets/icon/mobile24.json +1 -1
  2284. package/assets/components/assets/icon/mobile32.json +1 -1
  2285. package/assets/components/assets/icon/mobileOff16.json +1 -1
  2286. package/assets/components/assets/icon/mobileOff24.json +1 -1
  2287. package/assets/components/assets/icon/mobileOff32.json +1 -1
  2288. package/assets/components/assets/icon/mobileVibrate16.json +1 -1
  2289. package/assets/components/assets/icon/mobileVibrate24.json +1 -1
  2290. package/assets/components/assets/icon/mobileVibrate32.json +1 -1
  2291. package/assets/components/assets/icon/model16.json +1 -1
  2292. package/assets/components/assets/icon/model24.json +1 -1
  2293. package/assets/components/assets/icon/model32.json +1 -1
  2294. package/assets/components/assets/icon/modelEdit16.json +1 -1
  2295. package/assets/components/assets/icon/modelEdit24.json +1 -1
  2296. package/assets/components/assets/icon/modelEdit32.json +1 -1
  2297. package/assets/components/assets/icon/modelHistory16.json +1 -1
  2298. package/assets/components/assets/icon/modelHistory24.json +1 -1
  2299. package/assets/components/assets/icon/modelHistory32.json +1 -1
  2300. package/assets/components/assets/icon/modifyAssociations16.json +1 -1
  2301. package/assets/components/assets/icon/modifyAssociations24.json +1 -1
  2302. package/assets/components/assets/icon/modifyAssociations32.json +1 -1
  2303. package/assets/components/assets/icon/money16.json +1 -1
  2304. package/assets/components/assets/icon/money24.json +1 -1
  2305. package/assets/components/assets/icon/money32.json +1 -1
  2306. package/assets/components/assets/icon/monitor24.json +1 -1
  2307. package/assets/components/assets/icon/monitor32.json +1 -1
  2308. package/assets/components/assets/icon/mooc16.json +1 -1
  2309. package/assets/components/assets/icon/mooc24.json +1 -1
  2310. package/assets/components/assets/icon/mooc32.json +1 -1
  2311. package/assets/components/assets/icon/moon16.json +1 -1
  2312. package/assets/components/assets/icon/moon24.json +1 -1
  2313. package/assets/components/assets/icon/moon32.json +1 -1
  2314. package/assets/components/assets/icon/mosaicMethodBlend16.json +1 -1
  2315. package/assets/components/assets/icon/mosaicMethodBlend24.json +1 -1
  2316. package/assets/components/assets/icon/mosaicMethodBlend32.json +1 -1
  2317. package/assets/components/assets/icon/mosaicMethodByAttribute16.json +1 -1
  2318. package/assets/components/assets/icon/mosaicMethodByAttribute24.json +1 -1
  2319. package/assets/components/assets/icon/mosaicMethodByAttribute32.json +1 -1
  2320. package/assets/components/assets/icon/mosaicMethodClosestToCenter16.json +1 -1
  2321. package/assets/components/assets/icon/mosaicMethodClosestToCenter24.json +1 -1
  2322. package/assets/components/assets/icon/mosaicMethodClosestToCenter32.json +1 -1
  2323. package/assets/components/assets/icon/mosaicMethodClosestToNadir16.json +1 -1
  2324. package/assets/components/assets/icon/mosaicMethodClosestToNadir24.json +1 -1
  2325. package/assets/components/assets/icon/mosaicMethodClosestToNadir32.json +1 -1
  2326. package/assets/components/assets/icon/mosaicMethodFirst16.json +1 -1
  2327. package/assets/components/assets/icon/mosaicMethodFirst24.json +1 -1
  2328. package/assets/components/assets/icon/mosaicMethodFirst32.json +1 -1
  2329. package/assets/components/assets/icon/mosaicMethodLast16.json +1 -1
  2330. package/assets/components/assets/icon/mosaicMethodLast24.json +1 -1
  2331. package/assets/components/assets/icon/mosaicMethodLast32.json +1 -1
  2332. package/assets/components/assets/icon/mosaicMethodLockRaster16.json +1 -1
  2333. package/assets/components/assets/icon/mosaicMethodLockRaster24.json +1 -1
  2334. package/assets/components/assets/icon/mosaicMethodLockRaster32.json +1 -1
  2335. package/assets/components/assets/icon/mosaicMethodMaximum16.json +1 -1
  2336. package/assets/components/assets/icon/mosaicMethodMaximum24.json +1 -1
  2337. package/assets/components/assets/icon/mosaicMethodMaximum32.json +1 -1
  2338. package/assets/components/assets/icon/mosaicMethodMean16.json +1 -1
  2339. package/assets/components/assets/icon/mosaicMethodMean24.json +1 -1
  2340. package/assets/components/assets/icon/mosaicMethodMean32.json +1 -1
  2341. package/assets/components/assets/icon/mosaicMethodMinimum16.json +1 -1
  2342. package/assets/components/assets/icon/mosaicMethodMinimum24.json +1 -1
  2343. package/assets/components/assets/icon/mosaicMethodMinimum32.json +1 -1
  2344. package/assets/components/assets/icon/mosaicMethodNone16.json +1 -1
  2345. package/assets/components/assets/icon/mosaicMethodNone24.json +1 -1
  2346. package/assets/components/assets/icon/mosaicMethodNone32.json +1 -1
  2347. package/assets/components/assets/icon/mosaicMethodNorthWest16.json +1 -1
  2348. package/assets/components/assets/icon/mosaicMethodNorthWest24.json +1 -1
  2349. package/assets/components/assets/icon/mosaicMethodNorthWest32.json +1 -1
  2350. package/assets/components/assets/icon/mosaicMethodSeamline16.json +1 -1
  2351. package/assets/components/assets/icon/mosaicMethodSeamline24.json +1 -1
  2352. package/assets/components/assets/icon/mosaicMethodSeamline32.json +1 -1
  2353. package/assets/components/assets/icon/mosaicMethodSum16.json +1 -1
  2354. package/assets/components/assets/icon/mosaicMethodSum24.json +1 -1
  2355. package/assets/components/assets/icon/mosaicMethodSum32.json +1 -1
  2356. package/assets/components/assets/icon/move16.json +1 -1
  2357. package/assets/components/assets/icon/move24.json +1 -1
  2358. package/assets/components/assets/icon/move32.json +1 -1
  2359. package/assets/components/assets/icon/moveFromBasemap16.json +1 -1
  2360. package/assets/components/assets/icon/moveFromBasemap24.json +1 -1
  2361. package/assets/components/assets/icon/moveFromBasemap32.json +1 -1
  2362. package/assets/components/assets/icon/moveToBasemap16.json +1 -1
  2363. package/assets/components/assets/icon/moveToBasemap24.json +1 -1
  2364. package/assets/components/assets/icon/moveToBasemap32.json +1 -1
  2365. package/assets/components/assets/icon/moveUp16.json +1 -1
  2366. package/assets/components/assets/icon/moveUp24.json +1 -1
  2367. package/assets/components/assets/icon/moveUp32.json +1 -1
  2368. package/assets/components/assets/icon/moveUpAll16.json +1 -1
  2369. package/assets/components/assets/icon/moveUpAll24.json +1 -1
  2370. package/assets/components/assets/icon/moveUpAll32.json +1 -1
  2371. package/assets/components/assets/icon/mu16.json +1 -1
  2372. package/assets/components/assets/icon/mu24.json +1 -1
  2373. package/assets/components/assets/icon/mu32.json +1 -1
  2374. package/assets/components/assets/icon/multiTimeline16.json +1 -1
  2375. package/assets/components/assets/icon/multiTimeline24.json +1 -1
  2376. package/assets/components/assets/icon/multiTimeline32.json +1 -1
  2377. package/assets/components/assets/icon/multidimensionalRaster16.json +1 -1
  2378. package/assets/components/assets/icon/multidimensionalRaster24.json +1 -1
  2379. package/assets/components/assets/icon/multidimensionalRaster32.json +1 -1
  2380. package/assets/components/assets/icon/multipleVariables16.json +1 -1
  2381. package/assets/components/assets/icon/multipleVariables24.json +1 -1
  2382. package/assets/components/assets/icon/multipleVariables32.json +1 -1
  2383. package/assets/components/assets/icon/multipleVariablesSet16.json +1 -1
  2384. package/assets/components/assets/icon/multipleVariablesSet24.json +1 -1
  2385. package/assets/components/assets/icon/multipleVariablesSet32.json +1 -1
  2386. package/assets/components/assets/icon/musicNote16.json +1 -1
  2387. package/assets/components/assets/icon/musicNote24.json +1 -1
  2388. package/assets/components/assets/icon/musicNote32.json +1 -1
  2389. package/assets/components/assets/icon/nVariable16.json +1 -1
  2390. package/assets/components/assets/icon/nVariable24.json +1 -1
  2391. package/assets/components/assets/icon/nVariable32.json +1 -1
  2392. package/assets/components/assets/icon/newCompletePart16.json +1 -0
  2393. package/assets/components/assets/icon/newCompletePart24.json +1 -0
  2394. package/assets/components/assets/icon/newCompletePart32.json +1 -0
  2395. package/assets/components/assets/icon/newLinkChart16.json +1 -1
  2396. package/assets/components/assets/icon/newLinkChart24.json +1 -1
  2397. package/assets/components/assets/icon/newLinkChart32.json +1 -1
  2398. package/assets/components/assets/icon/newModel16.json +1 -1
  2399. package/assets/components/assets/icon/newModel24.json +1 -1
  2400. package/assets/components/assets/icon/newModel32.json +1 -1
  2401. package/assets/components/assets/icon/newRasterFunctionTemplate16.json +1 -1
  2402. package/assets/components/assets/icon/newRasterFunctionTemplate24.json +1 -1
  2403. package/assets/components/assets/icon/newRasterFunctionTemplate32.json +1 -1
  2404. package/assets/components/assets/icon/newTraining16.json +1 -1
  2405. package/assets/components/assets/icon/newTraining24.json +1 -1
  2406. package/assets/components/assets/icon/newTraining32.json +1 -1
  2407. package/assets/components/assets/icon/noAttachment16.json +1 -1
  2408. package/assets/components/assets/icon/noAttachment24.json +1 -1
  2409. package/assets/components/assets/icon/noAttachment32.json +1 -1
  2410. package/assets/components/assets/icon/noImage16.json +1 -1
  2411. package/assets/components/assets/icon/noImage24.json +1 -1
  2412. package/assets/components/assets/icon/noImage32.json +1 -1
  2413. package/assets/components/assets/icon/noMap16.json +1 -1
  2414. package/assets/components/assets/icon/noMap24.json +1 -1
  2415. package/assets/components/assets/icon/noMap32.json +1 -1
  2416. package/assets/components/assets/icon/nodesLink16.json +1 -1
  2417. package/assets/components/assets/icon/nodesLink24.json +1 -1
  2418. package/assets/components/assets/icon/nodesLink32.json +1 -1
  2419. package/assets/components/assets/icon/nodesMerge16.json +1 -1
  2420. package/assets/components/assets/icon/nodesMerge24.json +1 -1
  2421. package/assets/components/assets/icon/nodesMerge32.json +1 -1
  2422. package/assets/components/assets/icon/nodesUnlink16.json +1 -1
  2423. package/assets/components/assets/icon/nodesUnlink24.json +1 -1
  2424. package/assets/components/assets/icon/nodesUnlink32.json +1 -1
  2425. package/assets/components/assets/icon/nodesUnmerge16.json +1 -1
  2426. package/assets/components/assets/icon/nodesUnmerge24.json +1 -1
  2427. package/assets/components/assets/icon/nodesUnmerge32.json +1 -1
  2428. package/assets/components/assets/icon/notebookServer16.json +1 -1
  2429. package/assets/components/assets/icon/notebookServer24.json +1 -1
  2430. package/assets/components/assets/icon/notebookServer32.json +1 -1
  2431. package/assets/components/assets/icon/notepad16.json +1 -1
  2432. package/assets/components/assets/icon/notepad24.json +1 -1
  2433. package/assets/components/assets/icon/notepad32.json +1 -1
  2434. package/assets/components/assets/icon/notepadAdd16.json +1 -1
  2435. package/assets/components/assets/icon/notepadAdd24.json +1 -1
  2436. package/assets/components/assets/icon/notepadAdd32.json +1 -1
  2437. package/assets/components/assets/icon/notepadEdit16.json +1 -1
  2438. package/assets/components/assets/icon/notepadEdit24.json +1 -1
  2439. package/assets/components/assets/icon/notepadEdit32.json +1 -1
  2440. package/assets/components/assets/icon/null16.json +1 -1
  2441. package/assets/components/assets/icon/null24.json +1 -1
  2442. package/assets/components/assets/icon/null32.json +1 -1
  2443. package/assets/components/assets/icon/number16.json +1 -1
  2444. package/assets/components/assets/icon/number24.json +1 -1
  2445. package/assets/components/assets/icon/number32.json +1 -1
  2446. package/assets/components/assets/icon/numberCircle116.json +1 -1
  2447. package/assets/components/assets/icon/numberCircle116F.json +1 -1
  2448. package/assets/components/assets/icon/numberCircle124.json +1 -1
  2449. package/assets/components/assets/icon/numberCircle124F.json +1 -1
  2450. package/assets/components/assets/icon/numberCircle132.json +1 -1
  2451. package/assets/components/assets/icon/numberCircle132F.json +1 -1
  2452. package/assets/components/assets/icon/numberCircle216.json +1 -1
  2453. package/assets/components/assets/icon/numberCircle216F.json +1 -1
  2454. package/assets/components/assets/icon/numberCircle224.json +1 -1
  2455. package/assets/components/assets/icon/numberCircle224F.json +1 -1
  2456. package/assets/components/assets/icon/numberCircle232.json +1 -1
  2457. package/assets/components/assets/icon/numberCircle232F.json +1 -1
  2458. package/assets/components/assets/icon/numberCircle316.json +1 -1
  2459. package/assets/components/assets/icon/numberCircle316F.json +1 -1
  2460. package/assets/components/assets/icon/numberCircle324.json +1 -1
  2461. package/assets/components/assets/icon/numberCircle324F.json +1 -1
  2462. package/assets/components/assets/icon/numberCircle332.json +1 -1
  2463. package/assets/components/assets/icon/numberCircle332F.json +1 -1
  2464. package/assets/components/assets/icon/numberCircle416.json +1 -1
  2465. package/assets/components/assets/icon/numberCircle416F.json +1 -1
  2466. package/assets/components/assets/icon/numberCircle424.json +1 -1
  2467. package/assets/components/assets/icon/numberCircle424F.json +1 -1
  2468. package/assets/components/assets/icon/numberCircle432.json +1 -1
  2469. package/assets/components/assets/icon/numberCircle432F.json +1 -1
  2470. package/assets/components/assets/icon/numberCircle516.json +1 -1
  2471. package/assets/components/assets/icon/numberCircle516F.json +1 -1
  2472. package/assets/components/assets/icon/numberCircle524.json +1 -1
  2473. package/assets/components/assets/icon/numberCircle524F.json +1 -1
  2474. package/assets/components/assets/icon/numberCircle532.json +1 -1
  2475. package/assets/components/assets/icon/numberCircle532F.json +1 -1
  2476. package/assets/components/assets/icon/numberCircle616.json +1 -1
  2477. package/assets/components/assets/icon/numberCircle616F.json +1 -1
  2478. package/assets/components/assets/icon/numberCircle624.json +1 -1
  2479. package/assets/components/assets/icon/numberCircle624F.json +1 -1
  2480. package/assets/components/assets/icon/numberCircle632.json +1 -1
  2481. package/assets/components/assets/icon/numberCircle632F.json +1 -1
  2482. package/assets/components/assets/icon/numberCircle716.json +1 -1
  2483. package/assets/components/assets/icon/numberCircle716F.json +1 -1
  2484. package/assets/components/assets/icon/numberCircle724.json +1 -1
  2485. package/assets/components/assets/icon/numberCircle724F.json +1 -1
  2486. package/assets/components/assets/icon/numberCircle732.json +1 -1
  2487. package/assets/components/assets/icon/numberCircle732F.json +1 -1
  2488. package/assets/components/assets/icon/numberCircle816.json +1 -1
  2489. package/assets/components/assets/icon/numberCircle816F.json +1 -1
  2490. package/assets/components/assets/icon/numberCircle824.json +1 -1
  2491. package/assets/components/assets/icon/numberCircle824F.json +1 -1
  2492. package/assets/components/assets/icon/numberCircle832.json +1 -1
  2493. package/assets/components/assets/icon/numberCircle832F.json +1 -1
  2494. package/assets/components/assets/icon/numberCircle916.json +1 -1
  2495. package/assets/components/assets/icon/numberCircle916F.json +1 -1
  2496. package/assets/components/assets/icon/numberCircle924.json +1 -1
  2497. package/assets/components/assets/icon/numberCircle924F.json +1 -1
  2498. package/assets/components/assets/icon/numberCircle932.json +1 -1
  2499. package/assets/components/assets/icon/numberCircle932F.json +1 -1
  2500. package/assets/components/assets/icon/numberOfTerritories16.json +1 -1
  2501. package/assets/components/assets/icon/numberOfTerritories24.json +1 -1
  2502. package/assets/components/assets/icon/numberOfTerritories32.json +1 -1
  2503. package/assets/components/assets/icon/objectDetection24.json +1 -1
  2504. package/assets/components/assets/icon/objectDetection32.json +1 -1
  2505. package/assets/components/assets/icon/objectstoreDataStore16.json +1 -1
  2506. package/assets/components/assets/icon/objectstoreDataStore24.json +1 -1
  2507. package/assets/components/assets/icon/objectstoreDataStore32.json +1 -1
  2508. package/assets/components/assets/icon/octagon16.json +1 -1
  2509. package/assets/components/assets/icon/octagon24.json +1 -1
  2510. package/assets/components/assets/icon/octagon32.json +1 -1
  2511. package/assets/components/assets/icon/offline16.json +1 -1
  2512. package/assets/components/assets/icon/offline24.json +1 -1
  2513. package/assets/components/assets/icon/offline32.json +1 -1
  2514. package/assets/components/assets/icon/offset16.json +1 -1
  2515. package/assets/components/assets/icon/offset24.json +1 -1
  2516. package/assets/components/assets/icon/offset32.json +1 -1
  2517. package/assets/components/assets/icon/onTheGroundElevation16.json +1 -1
  2518. package/assets/components/assets/icon/onTheGroundElevation24.json +1 -1
  2519. package/assets/components/assets/icon/onTheGroundElevation32.json +1 -1
  2520. package/assets/components/assets/icon/online16.json +1 -1
  2521. package/assets/components/assets/icon/online24.json +1 -1
  2522. package/assets/components/assets/icon/online32.json +1 -1
  2523. package/assets/components/assets/icon/openBook16.json +1 -1
  2524. package/assets/components/assets/icon/openBook24.json +1 -1
  2525. package/assets/components/assets/icon/openBook32.json +1 -1
  2526. package/assets/components/assets/icon/orientedImageryLayer16.json +1 -1
  2527. package/assets/components/assets/icon/orientedImageryLayer24.json +1 -1
  2528. package/assets/components/assets/icon/orientedImageryLayer32.json +1 -1
  2529. package/assets/components/assets/icon/orientedImageryWidget16.json +1 -1
  2530. package/assets/components/assets/icon/orientedImageryWidget24.json +1 -1
  2531. package/assets/components/assets/icon/orientedImageryWidget32.json +1 -1
  2532. package/assets/components/assets/icon/outbox16.json +1 -1
  2533. package/assets/components/assets/icon/overlapFeatures16.json +1 -1
  2534. package/assets/components/assets/icon/overlapFeatures24.json +1 -1
  2535. package/assets/components/assets/icon/overlapFeatures32.json +1 -1
  2536. package/assets/components/assets/icon/overwriteFeatures16.json +1 -1
  2537. package/assets/components/assets/icon/overwriteFeatures24.json +1 -1
  2538. package/assets/components/assets/icon/overwriteFeatures32.json +1 -1
  2539. package/assets/components/assets/icon/overwriteProject16.json +1 -1
  2540. package/assets/components/assets/icon/overwriteProject24.json +1 -1
  2541. package/assets/components/assets/icon/overwriteProject32.json +1 -1
  2542. package/assets/components/assets/icon/package16.json +1 -1
  2543. package/assets/components/assets/icon/package24.json +1 -1
  2544. package/assets/components/assets/icon/package32.json +1 -1
  2545. package/assets/components/assets/icon/paintBucket16.json +1 -1
  2546. package/assets/components/assets/icon/paintBucket24.json +1 -1
  2547. package/assets/components/assets/icon/paintBucket32.json +1 -1
  2548. package/assets/components/assets/icon/palette16.json +1 -1
  2549. package/assets/components/assets/icon/palette24.json +1 -1
  2550. package/assets/components/assets/icon/palette32.json +1 -1
  2551. package/assets/components/assets/icon/paletteCheck16.json +1 -1
  2552. package/assets/components/assets/icon/paletteCheck24.json +1 -1
  2553. package/assets/components/assets/icon/paletteCheck32.json +1 -1
  2554. package/assets/components/assets/icon/pan16.json +1 -1
  2555. package/assets/components/assets/icon/pan24.json +1 -1
  2556. package/assets/components/assets/icon/pan32.json +1 -1
  2557. package/assets/components/assets/icon/panDrag16.json +1 -1
  2558. package/assets/components/assets/icon/panDrag24.json +1 -1
  2559. package/assets/components/assets/icon/panDrag32.json +1 -1
  2560. package/assets/components/assets/icon/parameters16.json +1 -1
  2561. package/assets/components/assets/icon/parameters24.json +1 -1
  2562. package/assets/components/assets/icon/parameters32.json +1 -1
  2563. package/assets/components/assets/icon/parametersGear16.json +1 -1
  2564. package/assets/components/assets/icon/parametersGear24.json +1 -1
  2565. package/assets/components/assets/icon/parametersGear32.json +1 -1
  2566. package/assets/components/assets/icon/parametersPlus16.json +1 -1
  2567. package/assets/components/assets/icon/parametersPlus24.json +1 -1
  2568. package/assets/components/assets/icon/parametersPlus32.json +1 -1
  2569. package/assets/components/assets/icon/parcel16.json +1 -1
  2570. package/assets/components/assets/icon/parcel24.json +1 -1
  2571. package/assets/components/assets/icon/parcel32.json +1 -1
  2572. package/assets/components/assets/icon/parcelDataset16.json +1 -0
  2573. package/assets/components/assets/icon/parcelDataset24.json +1 -0
  2574. package/assets/components/assets/icon/parcelDataset32.json +1 -0
  2575. package/assets/components/assets/icon/parcelLayer16.json +1 -1
  2576. package/assets/components/assets/icon/parcelLayer24.json +1 -1
  2577. package/assets/components/assets/icon/parcelLayer32.json +1 -1
  2578. package/assets/components/assets/icon/parcelParameter16.json +1 -1
  2579. package/assets/components/assets/icon/parcelParameter24.json +1 -1
  2580. package/assets/components/assets/icon/parcelParameter32.json +1 -1
  2581. package/assets/components/assets/icon/partlyCloudy16.json +1 -1
  2582. package/assets/components/assets/icon/partlyCloudy24.json +1 -1
  2583. package/assets/components/assets/icon/partlyCloudy32.json +1 -1
  2584. package/assets/components/assets/icon/partner16.json +1 -1
  2585. package/assets/components/assets/icon/partner24.json +1 -1
  2586. package/assets/components/assets/icon/partner32.json +1 -1
  2587. package/assets/components/assets/icon/paste16.json +1 -1
  2588. package/assets/components/assets/icon/paste24.json +1 -1
  2589. package/assets/components/assets/icon/paste32.json +1 -1
  2590. package/assets/components/assets/icon/pasteWithAttribute16.json +1 -1
  2591. package/assets/components/assets/icon/pasteWithAttribute24.json +1 -1
  2592. package/assets/components/assets/icon/pasteWithAttribute32.json +1 -1
  2593. package/assets/components/assets/icon/pasteWithoutAttribute16.json +1 -1
  2594. package/assets/components/assets/icon/pasteWithoutAttribute24.json +1 -1
  2595. package/assets/components/assets/icon/pasteWithoutAttribute32.json +1 -1
  2596. package/assets/components/assets/icon/pen16.json +1 -1
  2597. package/assets/components/assets/icon/pen24.json +1 -1
  2598. package/assets/components/assets/icon/pen32.json +1 -1
  2599. package/assets/components/assets/icon/penMark16.json +1 -1
  2600. package/assets/components/assets/icon/penMark24.json +1 -1
  2601. package/assets/components/assets/icon/penMark32.json +1 -1
  2602. package/assets/components/assets/icon/penMarkPlus16.json +1 -1
  2603. package/assets/components/assets/icon/penMarkPlus24.json +1 -1
  2604. package/assets/components/assets/icon/penMarkPlus32.json +1 -1
  2605. package/assets/components/assets/icon/penTip16.json +1 -1
  2606. package/assets/components/assets/icon/penTip24.json +1 -1
  2607. package/assets/components/assets/icon/penTip32.json +1 -1
  2608. package/assets/components/assets/icon/pencil16.json +1 -1
  2609. package/assets/components/assets/icon/pencil24.json +1 -1
  2610. package/assets/components/assets/icon/pencil32.json +1 -1
  2611. package/assets/components/assets/icon/pencilMark16.json +1 -1
  2612. package/assets/components/assets/icon/pencilMark24.json +1 -1
  2613. package/assets/components/assets/icon/pencilMark32.json +1 -1
  2614. package/assets/components/assets/icon/pencilMarkPlus16.json +1 -1
  2615. package/assets/components/assets/icon/pencilMarkPlus24.json +1 -1
  2616. package/assets/components/assets/icon/pencilMarkPlus32.json +1 -1
  2617. package/assets/components/assets/icon/pencilSquare16.json +1 -1
  2618. package/assets/components/assets/icon/pencilSquare24.json +1 -1
  2619. package/assets/components/assets/icon/pencilSquare32.json +1 -1
  2620. package/assets/components/assets/icon/pencilTip16.json +1 -1
  2621. package/assets/components/assets/icon/pencilTip24.json +1 -1
  2622. package/assets/components/assets/icon/pencilTip32.json +1 -1
  2623. package/assets/components/assets/icon/percent16.json +1 -1
  2624. package/assets/components/assets/icon/percent24.json +1 -1
  2625. package/assets/components/assets/icon/percent32.json +1 -1
  2626. package/assets/components/assets/icon/person16.json +1 -1
  2627. package/assets/components/assets/icon/person216.json +1 -1
  2628. package/assets/components/assets/icon/person224.json +1 -1
  2629. package/assets/components/assets/icon/person232.json +1 -1
  2630. package/assets/components/assets/icon/person24.json +1 -1
  2631. package/assets/components/assets/icon/person32.json +1 -1
  2632. package/assets/components/assets/icon/personMagnifyingGlass16.json +1 -0
  2633. package/assets/components/assets/icon/personMagnifyingGlass24.json +1 -0
  2634. package/assets/components/assets/icon/personMagnifyingGlass32.json +1 -0
  2635. package/assets/components/assets/icon/personView16.json +1 -1
  2636. package/assets/components/assets/icon/personView24.json +1 -1
  2637. package/assets/components/assets/icon/personView32.json +1 -1
  2638. package/assets/components/assets/icon/personalHomepage16.json +1 -1
  2639. package/assets/components/assets/icon/personalHomepage24.json +1 -1
  2640. package/assets/components/assets/icon/personalHomepage32.json +1 -1
  2641. package/assets/components/assets/icon/phone16.json +1 -1
  2642. package/assets/components/assets/icon/phone24.json +1 -1
  2643. package/assets/components/assets/icon/phone32.json +1 -1
  2644. package/assets/components/assets/icon/pieChart16.json +1 -1
  2645. package/assets/components/assets/icon/pieChart24.json +1 -1
  2646. package/assets/components/assets/icon/pieChart32.json +1 -1
  2647. package/assets/components/assets/icon/pieChartSectionHashFilled16.json +1 -1
  2648. package/assets/components/assets/icon/pieChartSectionHashFilled24.json +1 -1
  2649. package/assets/components/assets/icon/pieChartSectionHashFilled32.json +1 -1
  2650. package/assets/components/assets/icon/pin16.json +1 -1
  2651. package/assets/components/assets/icon/pin24.json +1 -1
  2652. package/assets/components/assets/icon/pin32.json +1 -1
  2653. package/assets/components/assets/icon/pinPlus16.json +1 -1
  2654. package/assets/components/assets/icon/pinPlus24.json +1 -1
  2655. package/assets/components/assets/icon/pinPlus32.json +1 -1
  2656. package/assets/components/assets/icon/pinTear16.json +1 -1
  2657. package/assets/components/assets/icon/pinTear16F.json +1 -1
  2658. package/assets/components/assets/icon/pinTear24.json +1 -1
  2659. package/assets/components/assets/icon/pinTear24F.json +1 -1
  2660. package/assets/components/assets/icon/pinTear32.json +1 -1
  2661. package/assets/components/assets/icon/pinTear32F.json +1 -1
  2662. package/assets/components/assets/icon/pins16.json +1 -1
  2663. package/assets/components/assets/icon/pins24.json +1 -1
  2664. package/assets/components/assets/icon/pins32.json +1 -1
  2665. package/assets/components/assets/icon/plane16.json +1 -1
  2666. package/assets/components/assets/icon/plane24.json +1 -1
  2667. package/assets/components/assets/icon/plane32.json +1 -1
  2668. package/assets/components/assets/icon/play16.json +1 -1
  2669. package/assets/components/assets/icon/play16F.json +1 -1
  2670. package/assets/components/assets/icon/play24.json +1 -1
  2671. package/assets/components/assets/icon/play24F.json +1 -1
  2672. package/assets/components/assets/icon/play32.json +1 -1
  2673. package/assets/components/assets/icon/play32F.json +1 -1
  2674. package/assets/components/assets/icon/plugConnection16.json +1 -1
  2675. package/assets/components/assets/icon/plugConnection24.json +1 -1
  2676. package/assets/components/assets/icon/plugConnection32.json +1 -1
  2677. package/assets/components/assets/icon/plusCircle16.json +1 -1
  2678. package/assets/components/assets/icon/plusCircle24.json +1 -1
  2679. package/assets/components/assets/icon/plusCircle32.json +1 -1
  2680. package/assets/components/assets/icon/plusSquare16.json +1 -1
  2681. package/assets/components/assets/icon/plusSquare24.json +1 -1
  2682. package/assets/components/assets/icon/plusSquare32.json +1 -1
  2683. package/assets/components/assets/icon/pointAlongALine16.json +1 -0
  2684. package/assets/components/assets/icon/pointAlongALine24.json +1 -0
  2685. package/assets/components/assets/icon/pointAlongALine32.json +1 -0
  2686. package/assets/components/assets/icon/polygon16.json +1 -1
  2687. package/assets/components/assets/icon/polygon32.json +1 -1
  2688. package/assets/components/assets/icon/polygonArea16.json +1 -1
  2689. package/assets/components/assets/icon/polygonArea24.json +1 -1
  2690. package/assets/components/assets/icon/polygonArea32.json +1 -1
  2691. package/assets/components/assets/icon/polygonLineCheck16.json +1 -1
  2692. package/assets/components/assets/icon/polygonLineCheck24.json +1 -1
  2693. package/assets/components/assets/icon/polygonLineCheck32.json +1 -1
  2694. package/assets/components/assets/icon/polygonSelect16.json +1 -1
  2695. package/assets/components/assets/icon/polygonSelect24.json +1 -1
  2696. package/assets/components/assets/icon/polygonSelect32.json +1 -1
  2697. package/assets/components/assets/icon/polygonVertices16.json +1 -1
  2698. package/assets/components/assets/icon/polygonVertices24.json +1 -1
  2699. package/assets/components/assets/icon/polygonVertices32.json +1 -1
  2700. package/assets/components/assets/icon/popUp116.json +1 -1
  2701. package/assets/components/assets/icon/popUp124.json +1 -1
  2702. package/assets/components/assets/icon/popUp132.json +1 -1
  2703. package/assets/components/assets/icon/popUpBlank16.json +1 -1
  2704. package/assets/components/assets/icon/popUpBlank16F.json +1 -1
  2705. package/assets/components/assets/icon/popUpBlank24.json +1 -1
  2706. package/assets/components/assets/icon/popUpBlank24F.json +1 -1
  2707. package/assets/components/assets/icon/popUpBlank32.json +1 -1
  2708. package/assets/components/assets/icon/popup16.json +1 -1
  2709. package/assets/components/assets/icon/popup24.json +1 -1
  2710. package/assets/components/assets/icon/popup32.json +1 -1
  2711. package/assets/components/assets/icon/portal16.json +1 -1
  2712. package/assets/components/assets/icon/portal24.json +1 -1
  2713. package/assets/components/assets/icon/portal32.json +1 -1
  2714. package/assets/components/assets/icon/portalOther16.json +1 -1
  2715. package/assets/components/assets/icon/portalOther24.json +1 -1
  2716. package/assets/components/assets/icon/portalOther32.json +1 -1
  2717. package/assets/components/assets/icon/premiumContentUserCredit16.json +1 -1
  2718. package/assets/components/assets/icon/premiumContentUserCredit24.json +1 -1
  2719. package/assets/components/assets/icon/premiumContentUserCredit32.json +1 -1
  2720. package/assets/components/assets/icon/presentationX16.json +1 -1
  2721. package/assets/components/assets/icon/presentationX24.json +1 -1
  2722. package/assets/components/assets/icon/presentationX32.json +1 -1
  2723. package/assets/components/assets/icon/print24.json +1 -1
  2724. package/assets/components/assets/icon/print32.json +1 -1
  2725. package/assets/components/assets/icon/printPreview16.json +1 -1
  2726. package/assets/components/assets/icon/printPreview24.json +1 -1
  2727. package/assets/components/assets/icon/printPreview32.json +1 -1
  2728. package/assets/components/assets/icon/processingTemplates16.json +1 -1
  2729. package/assets/components/assets/icon/processingTemplates24.json +1 -1
  2730. package/assets/components/assets/icon/processingTemplates32.json +1 -1
  2731. package/assets/components/assets/icon/profileVariables16.json +1 -1
  2732. package/assets/components/assets/icon/profileVariables24.json +1 -1
  2733. package/assets/components/assets/icon/profileVariables32.json +1 -1
  2734. package/assets/components/assets/icon/progressBarChart16.json +1 -1
  2735. package/assets/components/assets/icon/progressBarChart24.json +1 -1
  2736. package/assets/components/assets/icon/progressBarChart32.json +1 -1
  2737. package/assets/components/assets/icon/projectMission16.json +1 -1
  2738. package/assets/components/assets/icon/projectMission24.json +1 -1
  2739. package/assets/components/assets/icon/projectMission32.json +1 -1
  2740. package/assets/components/assets/icon/projectTemplate16.json +1 -1
  2741. package/assets/components/assets/icon/projectTemplate24.json +1 -1
  2742. package/assets/components/assets/icon/projectTemplate32.json +1 -1
  2743. package/assets/components/assets/icon/properties16.json +1 -1
  2744. package/assets/components/assets/icon/properties24.json +1 -1
  2745. package/assets/components/assets/icon/pushpin16.json +1 -1
  2746. package/assets/components/assets/icon/pushpin24.json +1 -1
  2747. package/assets/components/assets/icon/pushpin32.json +1 -1
  2748. package/assets/components/assets/icon/puzzlePiece16.json +1 -1
  2749. package/assets/components/assets/icon/puzzlePiece24.json +1 -1
  2750. package/assets/components/assets/icon/puzzlePiece32.json +1 -1
  2751. package/assets/components/assets/icon/qrCode16.json +1 -1
  2752. package/assets/components/assets/icon/qrCode24.json +1 -1
  2753. package/assets/components/assets/icon/qrCode32.json +1 -1
  2754. package/assets/components/assets/icon/qtCode16.json +1 -1
  2755. package/assets/components/assets/icon/qtCode24.json +1 -1
  2756. package/assets/components/assets/icon/qtCode32.json +1 -1
  2757. package/assets/components/assets/icon/query16.json +1 -1
  2758. package/assets/components/assets/icon/query24.json +1 -1
  2759. package/assets/components/assets/icon/query32.json +1 -1
  2760. package/assets/components/assets/icon/question16.json +1 -1
  2761. package/assets/components/assets/icon/question16F.json +1 -1
  2762. package/assets/components/assets/icon/question24.json +1 -1
  2763. package/assets/components/assets/icon/question24F.json +1 -1
  2764. package/assets/components/assets/icon/question32.json +1 -1
  2765. package/assets/components/assets/icon/question32F.json +1 -1
  2766. package/assets/components/assets/icon/questionMark16.json +1 -1
  2767. package/assets/components/assets/icon/questionMark24.json +1 -1
  2768. package/assets/components/assets/icon/questionMark32.json +1 -1
  2769. package/assets/components/assets/icon/quote16.json +1 -1
  2770. package/assets/components/assets/icon/quote24.json +1 -1
  2771. package/assets/components/assets/icon/quote32.json +1 -1
  2772. package/assets/components/assets/icon/radialTreeLinkChartLayout16.json +1 -1
  2773. package/assets/components/assets/icon/radialTreeLinkChartLayout24.json +1 -1
  2774. package/assets/components/assets/icon/radialTreeLinkChartLayout32.json +1 -1
  2775. package/assets/components/assets/icon/rain16.json +1 -1
  2776. package/assets/components/assets/icon/rain24.json +1 -1
  2777. package/assets/components/assets/icon/rain32.json +1 -1
  2778. package/assets/components/assets/icon/rainSnow16.json +1 -1
  2779. package/assets/components/assets/icon/rainSnow24.json +1 -1
  2780. package/assets/components/assets/icon/rainSnow32.json +1 -1
  2781. package/assets/components/assets/icon/rainThunder16.json +1 -1
  2782. package/assets/components/assets/icon/rainThunder24.json +1 -1
  2783. package/assets/components/assets/icon/rainThunder32.json +1 -1
  2784. package/assets/components/assets/icon/rampLeft16.json +1 -1
  2785. package/assets/components/assets/icon/rampLeft24.json +1 -1
  2786. package/assets/components/assets/icon/rampLeft32.json +1 -1
  2787. package/assets/components/assets/icon/rampRight16.json +1 -1
  2788. package/assets/components/assets/icon/rampRight24.json +1 -1
  2789. package/assets/components/assets/icon/rampRight32.json +1 -1
  2790. package/assets/components/assets/icon/rangeDomain16.json +1 -0
  2791. package/assets/components/assets/icon/rangeDomain24.json +1 -0
  2792. package/assets/components/assets/icon/rangeDomain32.json +1 -0
  2793. package/assets/components/assets/icon/rangefinder16.json +1 -1
  2794. package/assets/components/assets/icon/rangefinder24.json +1 -1
  2795. package/assets/components/assets/icon/rangefinder32.json +1 -1
  2796. package/assets/components/assets/icon/rasterAnalysis16.json +1 -1
  2797. package/assets/components/assets/icon/rasterAnalysis24.json +1 -1
  2798. package/assets/components/assets/icon/rasterAnalysis32.json +1 -1
  2799. package/assets/components/assets/icon/rasterFunction16.json +1 -1
  2800. package/assets/components/assets/icon/rasterFunction24.json +1 -1
  2801. package/assets/components/assets/icon/rasterFunction32.json +1 -1
  2802. package/assets/components/assets/icon/rasterFunctionHistory16.json +1 -1
  2803. package/assets/components/assets/icon/rasterFunctionHistory24.json +1 -1
  2804. package/assets/components/assets/icon/rasterFunctionHistory32.json +1 -1
  2805. package/assets/components/assets/icon/rasterFunctionTemplate16.json +1 -1
  2806. package/assets/components/assets/icon/rasterFunctionTemplate24.json +1 -1
  2807. package/assets/components/assets/icon/rasterFunctionTemplate32.json +1 -1
  2808. package/assets/components/assets/icon/rasterFunctionTemplateHistory16.json +1 -1
  2809. package/assets/components/assets/icon/rasterFunctionTemplateHistory24.json +1 -1
  2810. package/assets/components/assets/icon/rasterFunctionTemplateHistory32.json +1 -1
  2811. package/assets/components/assets/icon/rasterFunctionTemplatePlay16.json +1 -1
  2812. package/assets/components/assets/icon/rasterFunctionTemplatePlay24.json +1 -1
  2813. package/assets/components/assets/icon/rasterFunctionTemplatePlay32.json +1 -1
  2814. package/assets/components/assets/icon/rasterToolHistory16.json +1 -1
  2815. package/assets/components/assets/icon/rasterToolHistory24.json +1 -1
  2816. package/assets/components/assets/icon/rasterToolHistory32.json +1 -1
  2817. package/assets/components/assets/icon/readOnlyNonEditable16.json +1 -1
  2818. package/assets/components/assets/icon/readOnlyNonEditable24.json +1 -1
  2819. package/assets/components/assets/icon/readOnlyNonEditable32.json +1 -1
  2820. package/assets/components/assets/icon/recent24.json +1 -1
  2821. package/assets/components/assets/icon/recent32.json +1 -1
  2822. package/assets/components/assets/icon/recurrence16.json +1 -1
  2823. package/assets/components/assets/icon/recurrence24.json +1 -1
  2824. package/assets/components/assets/icon/recurrence32.json +1 -1
  2825. package/assets/components/assets/icon/recycleBin16.json +1 -1
  2826. package/assets/components/assets/icon/recycleBin24.json +1 -1
  2827. package/assets/components/assets/icon/recycleBin32.json +1 -1
  2828. package/assets/components/assets/icon/redo16.json +1 -1
  2829. package/assets/components/assets/icon/redo24.json +1 -1
  2830. package/assets/components/assets/icon/redo32.json +1 -1
  2831. package/assets/components/assets/icon/refresh16F.json +1 -1
  2832. package/assets/components/assets/icon/refresh24.json +1 -1
  2833. package/assets/components/assets/icon/refresh24F.json +1 -1
  2834. package/assets/components/assets/icon/refresh32.json +1 -1
  2835. package/assets/components/assets/icon/refresh32F.json +1 -1
  2836. package/assets/components/assets/icon/refreshF16.json +1 -1
  2837. package/assets/components/assets/icon/refreshF24.json +1 -1
  2838. package/assets/components/assets/icon/refreshF32.json +1 -1
  2839. package/assets/components/assets/icon/register16.json +1 -1
  2840. package/assets/components/assets/icon/register24.json +1 -1
  2841. package/assets/components/assets/icon/register32.json +1 -1
  2842. package/assets/components/assets/icon/relationalDataStore16.json +1 -1
  2843. package/assets/components/assets/icon/relationalDataStore24.json +1 -1
  2844. package/assets/components/assets/icon/relationalDataStore32.json +1 -1
  2845. package/assets/components/assets/icon/relationshipClass16.json +1 -0
  2846. package/assets/components/assets/icon/relationshipClass24.json +1 -0
  2847. package/assets/components/assets/icon/relationshipClass32.json +1 -0
  2848. package/assets/components/assets/icon/relativeDirection16.json +1 -1
  2849. package/assets/components/assets/icon/relativeDirection24.json +1 -1
  2850. package/assets/components/assets/icon/relativeDirection32.json +1 -1
  2851. package/assets/components/assets/icon/relativeToGroundElevation16.json +1 -1
  2852. package/assets/components/assets/icon/relativeToGroundElevation24.json +1 -1
  2853. package/assets/components/assets/icon/relativeToGroundElevation32.json +1 -1
  2854. package/assets/components/assets/icon/relativeToSceneElevation16.json +1 -1
  2855. package/assets/components/assets/icon/relativeToSceneElevation24.json +1 -1
  2856. package/assets/components/assets/icon/relativeToSceneElevation32.json +1 -1
  2857. package/assets/components/assets/icon/removeFromList16.json +1 -1
  2858. package/assets/components/assets/icon/removeFromList24.json +1 -1
  2859. package/assets/components/assets/icon/removeFromList32.json +1 -1
  2860. package/assets/components/assets/icon/removeLinkchart16.json +1 -1
  2861. package/assets/components/assets/icon/removeLinkchart24.json +1 -1
  2862. package/assets/components/assets/icon/removeLinkchart32.json +1 -1
  2863. package/assets/components/assets/icon/reorderCards16.json +1 -1
  2864. package/assets/components/assets/icon/reorderCards24.json +1 -1
  2865. package/assets/components/assets/icon/reorderCards32.json +1 -1
  2866. package/assets/components/assets/icon/reorderStack16.json +1 -1
  2867. package/assets/components/assets/icon/reorderStack24.json +1 -1
  2868. package/assets/components/assets/icon/reorderStack32.json +1 -1
  2869. package/assets/components/assets/icon/replaceImage16.json +1 -1
  2870. package/assets/components/assets/icon/replaceImage24.json +1 -1
  2871. package/assets/components/assets/icon/replaceImage32.json +1 -1
  2872. package/assets/components/assets/icon/replicaSyncEnable16.json +1 -1
  2873. package/assets/components/assets/icon/replicaSyncEnable24.json +1 -1
  2874. package/assets/components/assets/icon/replicaSyncEnable32.json +1 -1
  2875. package/assets/components/assets/icon/reset24.json +1 -1
  2876. package/assets/components/assets/icon/reset32.json +1 -1
  2877. package/assets/components/assets/icon/reshapeAddGeometry16.json +1 -1
  2878. package/assets/components/assets/icon/reshapeAddGeometry24.json +1 -1
  2879. package/assets/components/assets/icon/reshapeAddGeometry32.json +1 -1
  2880. package/assets/components/assets/icon/reshapeSubtractGeometry16.json +1 -1
  2881. package/assets/components/assets/icon/reshapeSubtractGeometry24.json +1 -1
  2882. package/assets/components/assets/icon/reshapeSubtractGeometry32.json +1 -1
  2883. package/assets/components/assets/icon/reshapeTool16.json +1 -1
  2884. package/assets/components/assets/icon/reshapeTool24.json +1 -1
  2885. package/assets/components/assets/icon/reshapeTool32.json +1 -1
  2886. package/assets/components/assets/icon/resizeArea16.json +1 -1
  2887. package/assets/components/assets/icon/resizeArea24.json +1 -1
  2888. package/assets/components/assets/icon/resizeArea32.json +1 -1
  2889. package/assets/components/assets/icon/retrain16.json +1 -1
  2890. package/assets/components/assets/icon/retrain24.json +1 -1
  2891. package/assets/components/assets/icon/retrain32.json +1 -1
  2892. package/assets/components/assets/icon/reverse16.json +1 -1
  2893. package/assets/components/assets/icon/reverse16F.json +1 -1
  2894. package/assets/components/assets/icon/reverse24.json +1 -1
  2895. package/assets/components/assets/icon/reverse24F.json +1 -1
  2896. package/assets/components/assets/icon/reverse32.json +1 -1
  2897. package/assets/components/assets/icon/rfid16.json +1 -1
  2898. package/assets/components/assets/icon/rfid24.json +1 -1
  2899. package/assets/components/assets/icon/rfid32.json +1 -1
  2900. package/assets/components/assets/icon/ribbon16.json +1 -1
  2901. package/assets/components/assets/icon/ribbon24.json +1 -1
  2902. package/assets/components/assets/icon/ribbon32.json +1 -1
  2903. package/assets/components/assets/icon/ribbonRosette16.json +1 -1
  2904. package/assets/components/assets/icon/ribbonRosette24.json +1 -1
  2905. package/assets/components/assets/icon/ribbonRosette32.json +1 -1
  2906. package/assets/components/assets/icon/right16.json +1 -1
  2907. package/assets/components/assets/icon/right24.json +1 -1
  2908. package/assets/components/assets/icon/right32.json +1 -1
  2909. package/assets/components/assets/icon/rightEdge24.json +1 -1
  2910. package/assets/components/assets/icon/rightLeft16.json +1 -1
  2911. package/assets/components/assets/icon/rightLeft24.json +1 -1
  2912. package/assets/components/assets/icon/rightLeft32.json +1 -1
  2913. package/assets/components/assets/icon/rightRight16.json +1 -1
  2914. package/assets/components/assets/icon/rightRight24.json +1 -1
  2915. package/assets/components/assets/icon/rightRight32.json +1 -1
  2916. package/assets/components/assets/icon/rings16.json +1 -1
  2917. package/assets/components/assets/icon/rings24.json +1 -1
  2918. package/assets/components/assets/icon/rings32.json +1 -1
  2919. package/assets/components/assets/icon/ringsLargest16.json +1 -1
  2920. package/assets/components/assets/icon/ringsLargest24.json +1 -1
  2921. package/assets/components/assets/icon/ringsLargest32.json +1 -1
  2922. package/assets/components/assets/icon/ringsSmallest16.json +1 -1
  2923. package/assets/components/assets/icon/ringsSmallest24.json +1 -1
  2924. package/assets/components/assets/icon/ringsSmallest32.json +1 -1
  2925. package/assets/components/assets/icon/ringsThreshold16.json +1 -1
  2926. package/assets/components/assets/icon/ringsThreshold24.json +1 -1
  2927. package/assets/components/assets/icon/ringsThreshold32.json +1 -1
  2928. package/assets/components/assets/icon/ringsXBar16.json +1 -1
  2929. package/assets/components/assets/icon/ringsXBar24.json +1 -1
  2930. package/assets/components/assets/icon/ringsXBar32.json +1 -1
  2931. package/assets/components/assets/icon/roadSign16.json +1 -1
  2932. package/assets/components/assets/icon/roadSign24.json +1 -1
  2933. package/assets/components/assets/icon/roadSign32.json +1 -1
  2934. package/assets/components/assets/icon/rosette16.json +1 -1
  2935. package/assets/components/assets/icon/rosette24.json +1 -1
  2936. package/assets/components/assets/icon/rosette32.json +1 -1
  2937. package/assets/components/assets/icon/rotate16.json +1 -1
  2938. package/assets/components/assets/icon/rotate24.json +1 -1
  2939. package/assets/components/assets/icon/rotate32.json +1 -1
  2940. package/assets/components/assets/icon/rotateDevice16.json +1 -1
  2941. package/assets/components/assets/icon/rotateDevice24.json +1 -1
  2942. package/assets/components/assets/icon/rotateDevice32.json +1 -1
  2943. package/assets/components/assets/icon/roundAbout16.json +1 -1
  2944. package/assets/components/assets/icon/roundAbout24.json +1 -1
  2945. package/assets/components/assets/icon/roundAbout32.json +1 -1
  2946. package/assets/components/assets/icon/roundAboutRight16.json +1 -1
  2947. package/assets/components/assets/icon/roundAboutRight24.json +1 -1
  2948. package/assets/components/assets/icon/roundAboutRight32.json +1 -1
  2949. package/assets/components/assets/icon/roundedRectangle16.json +1 -1
  2950. package/assets/components/assets/icon/roundedRectangle24.json +1 -1
  2951. package/assets/components/assets/icon/roundedRectangle32.json +1 -1
  2952. package/assets/components/assets/icon/routeFrom16.json +1 -1
  2953. package/assets/components/assets/icon/routeFrom24.json +1 -1
  2954. package/assets/components/assets/icon/routeFrom32.json +1 -1
  2955. package/assets/components/assets/icon/routeTo16.json +1 -1
  2956. package/assets/components/assets/icon/routeTo24.json +1 -1
  2957. package/assets/components/assets/icon/routeTo32.json +1 -1
  2958. package/assets/components/assets/icon/rss16.json +1 -1
  2959. package/assets/components/assets/icon/rss16F.json +1 -1
  2960. package/assets/components/assets/icon/rss24.json +1 -1
  2961. package/assets/components/assets/icon/rss24F.json +1 -1
  2962. package/assets/components/assets/icon/rss32.json +1 -1
  2963. package/assets/components/assets/icon/rss32F.json +1 -1
  2964. package/assets/components/assets/icon/rssF16.json +1 -1
  2965. package/assets/components/assets/icon/rssF24.json +1 -1
  2966. package/assets/components/assets/icon/rssF32.json +1 -1
  2967. package/assets/components/assets/icon/rtlParagraphAlign32.json +1 -1
  2968. package/assets/components/assets/icon/running16.json +1 -1
  2969. package/assets/components/assets/icon/running24.json +1 -1
  2970. package/assets/components/assets/icon/running32.json +1 -1
  2971. package/assets/components/assets/icon/runningOutline16.json +1 -1
  2972. package/assets/components/assets/icon/runningOutline24.json +1 -1
  2973. package/assets/components/assets/icon/runningOutline32.json +1 -1
  2974. package/assets/components/assets/icon/ruralDrivingDistance16.json +1 -1
  2975. package/assets/components/assets/icon/ruralDrivingDistance24.json +1 -1
  2976. package/assets/components/assets/icon/ruralDrivingDistance32.json +1 -1
  2977. package/assets/components/assets/icon/ruralDrivingTime16.json +1 -1
  2978. package/assets/components/assets/icon/ruralDrivingTime24.json +1 -1
  2979. package/assets/components/assets/icon/ruralDrivingTime32.json +1 -1
  2980. package/assets/components/assets/icon/satellite016.json +1 -1
  2981. package/assets/components/assets/icon/satellite016F.json +1 -1
  2982. package/assets/components/assets/icon/satellite024.json +1 -1
  2983. package/assets/components/assets/icon/satellite024F.json +1 -1
  2984. package/assets/components/assets/icon/satellite032.json +1 -1
  2985. package/assets/components/assets/icon/satellite032F.json +1 -1
  2986. package/assets/components/assets/icon/satellite116.json +1 -1
  2987. package/assets/components/assets/icon/satellite116F.json +1 -1
  2988. package/assets/components/assets/icon/satellite124.json +1 -1
  2989. package/assets/components/assets/icon/satellite124F.json +1 -1
  2990. package/assets/components/assets/icon/satellite132.json +1 -1
  2991. package/assets/components/assets/icon/satellite132F.json +1 -1
  2992. package/assets/components/assets/icon/satellite216.json +1 -1
  2993. package/assets/components/assets/icon/satellite216F.json +1 -1
  2994. package/assets/components/assets/icon/satellite224.json +1 -1
  2995. package/assets/components/assets/icon/satellite224F.json +1 -1
  2996. package/assets/components/assets/icon/satellite232.json +1 -1
  2997. package/assets/components/assets/icon/satellite232F.json +1 -1
  2998. package/assets/components/assets/icon/satellite316.json +1 -1
  2999. package/assets/components/assets/icon/satellite316F.json +1 -1
  3000. package/assets/components/assets/icon/satellite324.json +1 -1
  3001. package/assets/components/assets/icon/satellite324F.json +1 -1
  3002. package/assets/components/assets/icon/satellite332.json +1 -1
  3003. package/assets/components/assets/icon/satellite332F.json +1 -1
  3004. package/assets/components/assets/icon/save16.json +1 -1
  3005. package/assets/components/assets/icon/save24.json +1 -1
  3006. package/assets/components/assets/icon/save32.json +1 -1
  3007. package/assets/components/assets/icon/saveAs16.json +1 -1
  3008. package/assets/components/assets/icon/saveAs24.json +1 -1
  3009. package/assets/components/assets/icon/saveAs32.json +1 -1
  3010. package/assets/components/assets/icon/scanArea16.json +1 -1
  3011. package/assets/components/assets/icon/scanArea24.json +1 -1
  3012. package/assets/components/assets/icon/scanArea32.json +1 -1
  3013. package/assets/components/assets/icon/scanBarcode16.json +1 -1
  3014. package/assets/components/assets/icon/scanBarcode24.json +1 -1
  3015. package/assets/components/assets/icon/scanBarcode32.json +1 -1
  3016. package/assets/components/assets/icon/scanCorridor16.json +1 -1
  3017. package/assets/components/assets/icon/scanCorridor24.json +1 -1
  3018. package/assets/components/assets/icon/scanCorridor32.json +1 -1
  3019. package/assets/components/assets/icon/scanCrosshatch16.json +1 -1
  3020. package/assets/components/assets/icon/scanCrosshatch24.json +1 -1
  3021. package/assets/components/assets/icon/scanCrosshatch32.json +1 -1
  3022. package/assets/components/assets/icon/scanPerimeter16.json +1 -1
  3023. package/assets/components/assets/icon/scanPerimeter24.json +1 -1
  3024. package/assets/components/assets/icon/scanPerimeter32.json +1 -1
  3025. package/assets/components/assets/icon/scanVertical16.json +1 -1
  3026. package/assets/components/assets/icon/scanVertical24.json +1 -1
  3027. package/assets/components/assets/icon/scanVertical32.json +1 -1
  3028. package/assets/components/assets/icon/schema16.json +1 -1
  3029. package/assets/components/assets/icon/schema24.json +1 -1
  3030. package/assets/components/assets/icon/schema32.json +1 -1
  3031. package/assets/components/assets/icon/scissors16.json +1 -1
  3032. package/assets/components/assets/icon/scissors24.json +1 -1
  3033. package/assets/components/assets/icon/scissors32.json +1 -1
  3034. package/assets/components/assets/icon/screenshotMode16.json +1 -1
  3035. package/assets/components/assets/icon/screenshotMode24.json +1 -1
  3036. package/assets/components/assets/icon/screenshotMode32.json +1 -1
  3037. package/assets/components/assets/icon/script16.json +1 -1
  3038. package/assets/components/assets/icon/script24.json +1 -1
  3039. package/assets/components/assets/icon/script32.json +1 -1
  3040. package/assets/components/assets/icon/seamlines16.json +1 -1
  3041. package/assets/components/assets/icon/seamlines24.json +1 -1
  3042. package/assets/components/assets/icon/seamlines32.json +1 -1
  3043. package/assets/components/assets/icon/search16.json +1 -1
  3044. package/assets/components/assets/icon/search24.json +1 -1
  3045. package/assets/components/assets/icon/search32.json +1 -1
  3046. package/assets/components/assets/icon/security16.json +1 -1
  3047. package/assets/components/assets/icon/security24.json +1 -1
  3048. package/assets/components/assets/icon/security32.json +1 -1
  3049. package/assets/components/assets/icon/securityCamera16.json +1 -0
  3050. package/assets/components/assets/icon/securityCamera24.json +1 -0
  3051. package/assets/components/assets/icon/securityCamera32.json +1 -0
  3052. package/assets/components/assets/icon/select32.json +1 -1
  3053. package/assets/components/assets/icon/selectByAttributes16.json +1 -1
  3054. package/assets/components/assets/icon/selectByAttributes24.json +1 -1
  3055. package/assets/components/assets/icon/selectByAttributes32.json +1 -1
  3056. package/assets/components/assets/icon/selectCategory16.json +1 -1
  3057. package/assets/components/assets/icon/selectCategory24.json +1 -1
  3058. package/assets/components/assets/icon/selectCategory32.json +1 -1
  3059. package/assets/components/assets/icon/selectColumn16.json +1 -1
  3060. package/assets/components/assets/icon/selectColumn24.json +1 -1
  3061. package/assets/components/assets/icon/selectColumn32.json +1 -1
  3062. package/assets/components/assets/icon/selectNonspatialData16.json +1 -1
  3063. package/assets/components/assets/icon/selectNonspatialData24.json +1 -1
  3064. package/assets/components/assets/icon/selectNonspatialData32.json +1 -1
  3065. package/assets/components/assets/icon/selectRange16.json +1 -1
  3066. package/assets/components/assets/icon/selectRange24.json +1 -1
  3067. package/assets/components/assets/icon/selectRange32.json +1 -1
  3068. package/assets/components/assets/icon/selectRootChartNodes16.json +1 -1
  3069. package/assets/components/assets/icon/selectRootChartNodes24.json +1 -1
  3070. package/assets/components/assets/icon/selectRootChartNodes32.json +1 -1
  3071. package/assets/components/assets/icon/selectRow16.json +1 -0
  3072. package/assets/components/assets/icon/selectRow24.json +1 -0
  3073. package/assets/components/assets/icon/selectRow32.json +1 -0
  3074. package/assets/components/assets/icon/selectVisible16.json +1 -1
  3075. package/assets/components/assets/icon/selectVisible24.json +1 -1
  3076. package/assets/components/assets/icon/selectVisible32.json +1 -1
  3077. package/assets/components/assets/icon/selectedItemsFilter16.json +1 -1
  3078. package/assets/components/assets/icon/selectedItemsFilter24.json +1 -1
  3079. package/assets/components/assets/icon/selectedItemsFilter32.json +1 -1
  3080. package/assets/components/assets/icon/selection16.json +1 -1
  3081. package/assets/components/assets/icon/selection24.json +1 -1
  3082. package/assets/components/assets/icon/selection32.json +1 -1
  3083. package/assets/components/assets/icon/selectionFilter16.json +1 -1
  3084. package/assets/components/assets/icon/selectionFilter24.json +1 -1
  3085. package/assets/components/assets/icon/selectionFilter32.json +1 -1
  3086. package/assets/components/assets/icon/selectionManager16.json +1 -1
  3087. package/assets/components/assets/icon/selectionManager24.json +1 -1
  3088. package/assets/components/assets/icon/selectionManager32.json +1 -1
  3089. package/assets/components/assets/icon/selectionSet16.json +1 -1
  3090. package/assets/components/assets/icon/selectionSet24.json +1 -1
  3091. package/assets/components/assets/icon/selectionSet32.json +1 -1
  3092. package/assets/components/assets/icon/selectionX16.json +1 -1
  3093. package/assets/components/assets/icon/selectionX24.json +1 -1
  3094. package/assets/components/assets/icon/selectionX32.json +1 -1
  3095. package/assets/components/assets/icon/send16.json +1 -1
  3096. package/assets/components/assets/icon/send24.json +1 -1
  3097. package/assets/components/assets/icon/send32.json +1 -1
  3098. package/assets/components/assets/icon/sensor16.json +1 -1
  3099. package/assets/components/assets/icon/sensor24.json +1 -1
  3100. package/assets/components/assets/icon/sensor32.json +1 -1
  3101. package/assets/components/assets/icon/sequentialNavigation16.json +1 -0
  3102. package/assets/components/assets/icon/sequentialNavigation24.json +1 -0
  3103. package/assets/components/assets/icon/sequentialNavigation32.json +1 -0
  3104. package/assets/components/assets/icon/serialPort16.json +1 -1
  3105. package/assets/components/assets/icon/serialPort24.json +1 -1
  3106. package/assets/components/assets/icon/serialPort32.json +1 -1
  3107. package/assets/components/assets/icon/serverLock16.json +1 -1
  3108. package/assets/components/assets/icon/serverLock24.json +1 -1
  3109. package/assets/components/assets/icon/serverLock32.json +1 -1
  3110. package/assets/components/assets/icon/services16.json +1 -1
  3111. package/assets/components/assets/icon/services24.json +1 -1
  3112. package/assets/components/assets/icon/services32.json +1 -1
  3113. package/assets/components/assets/icon/shapes16.json +1 -1
  3114. package/assets/components/assets/icon/shapes24.json +1 -1
  3115. package/assets/components/assets/icon/shapes2D3D16.json +1 -1
  3116. package/assets/components/assets/icon/shapes2D3D24.json +1 -1
  3117. package/assets/components/assets/icon/shapes2D3D32.json +1 -1
  3118. package/assets/components/assets/icon/shapes32.json +1 -1
  3119. package/assets/components/assets/icon/share16.json +1 -1
  3120. package/assets/components/assets/icon/share24.json +1 -1
  3121. package/assets/components/assets/icon/share32.json +1 -1
  3122. package/assets/components/assets/icon/shareIos16.json +1 -1
  3123. package/assets/components/assets/icon/sharpLeft16.json +1 -1
  3124. package/assets/components/assets/icon/sharpLeft24.json +1 -1
  3125. package/assets/components/assets/icon/sharpLeft32.json +1 -1
  3126. package/assets/components/assets/icon/sharpRight16.json +1 -1
  3127. package/assets/components/assets/icon/sharpRight24.json +1 -1
  3128. package/assets/components/assets/icon/sharpRight32.json +1 -1
  3129. package/assets/components/assets/icon/shieldCoin16.json +1 -1
  3130. package/assets/components/assets/icon/shieldCoin24.json +1 -1
  3131. package/assets/components/assets/icon/shieldCoin32.json +1 -1
  3132. package/assets/components/assets/icon/shoppingCart16.json +1 -1
  3133. package/assets/components/assets/icon/shoppingCart16F.json +1 -0
  3134. package/assets/components/assets/icon/shoppingCart24.json +1 -1
  3135. package/assets/components/assets/icon/shoppingCart24F.json +1 -0
  3136. package/assets/components/assets/icon/shoppingCart32.json +1 -1
  3137. package/assets/components/assets/icon/shoppingCart32F.json +1 -0
  3138. package/assets/components/assets/icon/shoppingCartPlus16.json +1 -0
  3139. package/assets/components/assets/icon/shoppingCartPlus24.json +1 -0
  3140. package/assets/components/assets/icon/shoppingCartPlus32.json +1 -0
  3141. package/assets/components/assets/icon/showAllParameters16.json +1 -1
  3142. package/assets/components/assets/icon/showAllParameters24.json +1 -1
  3143. package/assets/components/assets/icon/showAllParameters32.json +1 -1
  3144. package/assets/components/assets/icon/showColumn16.json +1 -1
  3145. package/assets/components/assets/icon/showColumn24.json +1 -1
  3146. package/assets/components/assets/icon/showColumn32.json +1 -1
  3147. package/assets/components/assets/icon/showData16.json +1 -1
  3148. package/assets/components/assets/icon/showData24.json +1 -1
  3149. package/assets/components/assets/icon/showData32.json +1 -1
  3150. package/assets/components/assets/icon/showDerivedValue16.json +1 -1
  3151. package/assets/components/assets/icon/showDerivedValue24.json +1 -1
  3152. package/assets/components/assets/icon/showDerivedValue32.json +1 -1
  3153. package/assets/components/assets/icon/showLinkChartNonspatialData16.json +1 -1
  3154. package/assets/components/assets/icon/showLinkChartNonspatialData24.json +1 -1
  3155. package/assets/components/assets/icon/showLinkChartNonspatialData32.json +1 -1
  3156. package/assets/components/assets/icon/showLinkChartRootNodes16.json +1 -1
  3157. package/assets/components/assets/icon/showLinkChartRootNodes24.json +1 -1
  3158. package/assets/components/assets/icon/showLinkChartRootNodes32.json +1 -1
  3159. package/assets/components/assets/icon/showMultipleLayersAtATime16.json +1 -1
  3160. package/assets/components/assets/icon/showMultipleLayersAtATime24.json +1 -1
  3161. package/assets/components/assets/icon/showMultipleLayersAtATime32.json +1 -1
  3162. package/assets/components/assets/icon/showOneLayerAtATime16.json +1 -1
  3163. package/assets/components/assets/icon/showOneLayerAtATime24.json +1 -1
  3164. package/assets/components/assets/icon/showOneLayerAtATime32.json +1 -1
  3165. package/assets/components/assets/icon/showRequiredParameters16.json +1 -1
  3166. package/assets/components/assets/icon/showRequiredParameters24.json +1 -1
  3167. package/assets/components/assets/icon/showRequiredParameters32.json +1 -1
  3168. package/assets/components/assets/icon/sidecar32.json +1 -1
  3169. package/assets/components/assets/icon/signIn16.json +1 -1
  3170. package/assets/components/assets/icon/signIn24.json +1 -1
  3171. package/assets/components/assets/icon/signIn32.json +1 -1
  3172. package/assets/components/assets/icon/simpleLinkChartLayout16.json +1 -1
  3173. package/assets/components/assets/icon/simpleLinkChartLayout24.json +1 -1
  3174. package/assets/components/assets/icon/simpleLinkChartLayout32.json +1 -1
  3175. package/assets/components/assets/icon/singleTimeline16.json +1 -1
  3176. package/assets/components/assets/icon/singleTimeline24.json +1 -1
  3177. package/assets/components/assets/icon/singleTimeline32.json +1 -1
  3178. package/assets/components/assets/icon/skyPlot16.json +1 -1
  3179. package/assets/components/assets/icon/skyPlot24.json +1 -1
  3180. package/assets/components/assets/icon/skyPlot32.json +1 -1
  3181. package/assets/components/assets/icon/slash16.json +1 -1
  3182. package/assets/components/assets/icon/slice16.json +1 -1
  3183. package/assets/components/assets/icon/slice24.json +1 -1
  3184. package/assets/components/assets/icon/slice32.json +1 -1
  3185. package/assets/components/assets/icon/slideshow24.json +1 -1
  3186. package/assets/components/assets/icon/slideshow32.json +1 -1
  3187. package/assets/components/assets/icon/smartCamera16.json +1 -1
  3188. package/assets/components/assets/icon/smartCamera24.json +1 -1
  3189. package/assets/components/assets/icon/smartCamera32.json +1 -1
  3190. package/assets/components/assets/icon/smartForm16.json +1 -1
  3191. package/assets/components/assets/icon/smartForm24.json +1 -1
  3192. package/assets/components/assets/icon/smartForm32.json +1 -1
  3193. package/assets/components/assets/icon/smartTreeLinkChartLayout16.json +1 -1
  3194. package/assets/components/assets/icon/smartTreeLinkChartLayout24.json +1 -1
  3195. package/assets/components/assets/icon/smartTreeLinkChartLayout32.json +1 -1
  3196. package/assets/components/assets/icon/smile16.json +1 -1
  3197. package/assets/components/assets/icon/smile24.json +1 -1
  3198. package/assets/components/assets/icon/smile32.json +1 -1
  3199. package/assets/components/assets/icon/snapToGrid16.json +1 -1
  3200. package/assets/components/assets/icon/snapToGrid24.json +1 -1
  3201. package/assets/components/assets/icon/snapToGrid32.json +1 -1
  3202. package/assets/components/assets/icon/snapToPixel16.json +1 -1
  3203. package/assets/components/assets/icon/snapToPixel24.json +1 -1
  3204. package/assets/components/assets/icon/snapToPixel32.json +1 -1
  3205. package/assets/components/assets/icon/snapToPoint16.json +1 -1
  3206. package/assets/components/assets/icon/snapToPoint24.json +1 -1
  3207. package/assets/components/assets/icon/snapToPoint32.json +1 -1
  3208. package/assets/components/assets/icon/snow16.json +1 -1
  3209. package/assets/components/assets/icon/snow24.json +1 -1
  3210. package/assets/components/assets/icon/snow32.json +1 -1
  3211. package/assets/components/assets/icon/snowThunder16.json +1 -1
  3212. package/assets/components/assets/icon/snowThunder24.json +1 -1
  3213. package/assets/components/assets/icon/snowThunder32.json +1 -1
  3214. package/assets/components/assets/icon/soccer16.json +1 -1
  3215. package/assets/components/assets/icon/soccer24.json +1 -1
  3216. package/assets/components/assets/icon/soccer32.json +1 -1
  3217. package/assets/components/assets/icon/sortAscendingArrow16.json +1 -1
  3218. package/assets/components/assets/icon/sortAscendingArrow24.json +1 -1
  3219. package/assets/components/assets/icon/sortAscendingArrow32.json +1 -1
  3220. package/assets/components/assets/icon/sortDescendingArrow16.json +1 -1
  3221. package/assets/components/assets/icon/sortDescendingArrow24.json +1 -1
  3222. package/assets/components/assets/icon/sortDescendingArrow32.json +1 -1
  3223. package/assets/components/assets/icon/sound16.json +1 -1
  3224. package/assets/components/assets/icon/sound24.json +1 -1
  3225. package/assets/components/assets/icon/sound32.json +1 -1
  3226. package/assets/components/assets/icon/soundLow16.json +1 -1
  3227. package/assets/components/assets/icon/soundLow24.json +1 -1
  3228. package/assets/components/assets/icon/soundLow32.json +1 -1
  3229. package/assets/components/assets/icon/soundOff16.json +1 -1
  3230. package/assets/components/assets/icon/soundOff24.json +1 -1
  3231. package/assets/components/assets/icon/soundOff32.json +1 -1
  3232. package/assets/components/assets/icon/soundUnavailable16.json +1 -1
  3233. package/assets/components/assets/icon/soundUnavailable24.json +1 -1
  3234. package/assets/components/assets/icon/soundUnavailable32.json +1 -1
  3235. package/assets/components/assets/icon/spaces16.json +1 -1
  3236. package/assets/components/assets/icon/spaces24.json +1 -1
  3237. package/assets/components/assets/icon/spaces32.json +1 -1
  3238. package/assets/components/assets/icon/spacesParameter16.json +1 -1
  3239. package/assets/components/assets/icon/spacesParameter24.json +1 -1
  3240. package/assets/components/assets/icon/spacesParameter32.json +1 -1
  3241. package/assets/components/assets/icon/spatiotemporalDataStore16.json +1 -1
  3242. package/assets/components/assets/icon/spatiotemporalDataStore24.json +1 -1
  3243. package/assets/components/assets/icon/spatiotemporalDataStore32.json +1 -1
  3244. package/assets/components/assets/icon/speechBubble16.json +1 -1
  3245. package/assets/components/assets/icon/speechBubble24.json +1 -1
  3246. package/assets/components/assets/icon/speechBubble32.json +1 -1
  3247. package/assets/components/assets/icon/speechBubbleCheck16.json +1 -1
  3248. package/assets/components/assets/icon/speechBubbleCheck24.json +1 -1
  3249. package/assets/components/assets/icon/speechBubbleCheck32.json +1 -1
  3250. package/assets/components/assets/icon/speechBubbleEmpty16.json +1 -1
  3251. package/assets/components/assets/icon/speechBubbleEmpty24.json +1 -1
  3252. package/assets/components/assets/icon/speechBubbleEmpty32.json +1 -1
  3253. package/assets/components/assets/icon/speechBubbleExclamation16.json +1 -1
  3254. package/assets/components/assets/icon/speechBubbleExclamation24.json +1 -1
  3255. package/assets/components/assets/icon/speechBubbleExclamation32.json +1 -1
  3256. package/assets/components/assets/icon/speechBubbleLike16.json +1 -1
  3257. package/assets/components/assets/icon/speechBubbleLike24.json +1 -1
  3258. package/assets/components/assets/icon/speechBubbleLike32.json +1 -1
  3259. package/assets/components/assets/icon/speechBubblePlus16.json +1 -1
  3260. package/assets/components/assets/icon/speechBubblePlus24.json +1 -1
  3261. package/assets/components/assets/icon/speechBubblePlus32.json +1 -1
  3262. package/assets/components/assets/icon/speechBubbleSocial16.json +1 -1
  3263. package/assets/components/assets/icon/speechBubbleSocial24.json +1 -1
  3264. package/assets/components/assets/icon/speechBubbleSocial32.json +1 -1
  3265. package/assets/components/assets/icon/speechBubbles16.json +1 -1
  3266. package/assets/components/assets/icon/speechBubbles24.json +1 -1
  3267. package/assets/components/assets/icon/speechBubbles32.json +1 -1
  3268. package/assets/components/assets/icon/spikeDataVisualization16.json +1 -1
  3269. package/assets/components/assets/icon/spikeDataVisualization24.json +1 -1
  3270. package/assets/components/assets/icon/spikeDataVisualization32.json +1 -1
  3271. package/assets/components/assets/icon/spikeDataVisualizationOpen16.json +1 -1
  3272. package/assets/components/assets/icon/spikeDataVisualizationOpen24.json +1 -1
  3273. package/assets/components/assets/icon/spikeDataVisualizationOpen32.json +1 -1
  3274. package/assets/components/assets/icon/spikeDataVisualizationOutlined16F.json +1 -1
  3275. package/assets/components/assets/icon/spikeDataVisualizationOutlined24F.json +1 -1
  3276. package/assets/components/assets/icon/spikeDataVisualizationOutlined32F.json +1 -1
  3277. package/assets/components/assets/icon/spikeDataVisualizationOutlinedColorLocked16.json +1 -1
  3278. package/assets/components/assets/icon/spikeDataVisualizationOutlinedColorLocked24.json +1 -1
  3279. package/assets/components/assets/icon/spikeDataVisualizationOutlinedColorLocked32.json +1 -1
  3280. package/assets/components/assets/icon/spikeDataVisualizationOutlinedGradient16.json +1 -0
  3281. package/assets/components/assets/icon/spikeDataVisualizationOutlinedGradient24.json +1 -0
  3282. package/assets/components/assets/icon/spikeDataVisualizationOutlinedGradient32.json +1 -0
  3283. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpen16.json +1 -1
  3284. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpen16F.json +1 -0
  3285. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpen24.json +1 -1
  3286. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpen24F.json +1 -0
  3287. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpen32.json +1 -1
  3288. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpen32F.json +1 -0
  3289. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpenColorLocked16.json +1 -1
  3290. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpenColorLocked24.json +1 -1
  3291. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpenColorLocked32.json +1 -1
  3292. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpenGradient16.json +1 -0
  3293. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpenGradient24.json +1 -0
  3294. package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpenGradient32.json +1 -0
  3295. package/assets/components/assets/icon/spinner16.json +1 -1
  3296. package/assets/components/assets/icon/spinner24.json +1 -1
  3297. package/assets/components/assets/icon/spinner32.json +1 -1
  3298. package/assets/components/assets/icon/splitFeatures16.json +1 -1
  3299. package/assets/components/assets/icon/splitFeatures24.json +1 -1
  3300. package/assets/components/assets/icon/splitFeatures32.json +1 -1
  3301. package/assets/components/assets/icon/square16.json +1 -1
  3302. package/assets/components/assets/icon/square16F.json +1 -1
  3303. package/assets/components/assets/icon/square24.json +1 -1
  3304. package/assets/components/assets/icon/square24F.json +1 -1
  3305. package/assets/components/assets/icon/square32.json +1 -1
  3306. package/assets/components/assets/icon/square32F.json +1 -1
  3307. package/assets/components/assets/icon/squareArea16.json +1 -1
  3308. package/assets/components/assets/icon/squareArea24.json +1 -1
  3309. package/assets/components/assets/icon/squareArea32.json +1 -1
  3310. package/assets/components/assets/icon/squareBracketsX16.json +1 -1
  3311. package/assets/components/assets/icon/squareBracketsX24.json +1 -1
  3312. package/assets/components/assets/icon/squareBracketsX32.json +1 -1
  3313. package/assets/components/assets/icon/squareHashFilled16.json +1 -1
  3314. package/assets/components/assets/icon/squareHashFilled24.json +1 -1
  3315. package/assets/components/assets/icon/squareHashFilled32.json +1 -1
  3316. package/assets/components/assets/icon/squareHashFilledArea16.json +1 -1
  3317. package/assets/components/assets/icon/squareHashFilledArea24.json +1 -1
  3318. package/assets/components/assets/icon/squareHashFilledArea32.json +1 -1
  3319. package/assets/components/assets/icon/squareInsetLarge16.json +1 -1
  3320. package/assets/components/assets/icon/squareInsetLarge24.json +1 -1
  3321. package/assets/components/assets/icon/squareInsetLarge32.json +1 -1
  3322. package/assets/components/assets/icon/squareInsetMedium16.json +1 -1
  3323. package/assets/components/assets/icon/squareInsetMedium24.json +1 -1
  3324. package/assets/components/assets/icon/squareInsetMedium32.json +1 -1
  3325. package/assets/components/assets/icon/squareInsetSmall16.json +1 -1
  3326. package/assets/components/assets/icon/squareInsetSmall24.json +1 -1
  3327. package/assets/components/assets/icon/squareInsetSmall32.json +1 -1
  3328. package/assets/components/assets/icon/stairsDown24.json +1 -1
  3329. package/assets/components/assets/icon/stairsDown32.json +1 -1
  3330. package/assets/components/assets/icon/star16.json +1 -1
  3331. package/assets/components/assets/icon/star16F.json +1 -1
  3332. package/assets/components/assets/icon/star24.json +1 -1
  3333. package/assets/components/assets/icon/star24F.json +1 -1
  3334. package/assets/components/assets/icon/star32.json +1 -1
  3335. package/assets/components/assets/icon/star32F.json +1 -1
  3336. package/assets/components/assets/icon/starCircle16.json +1 -1
  3337. package/assets/components/assets/icon/starCircle24.json +1 -1
  3338. package/assets/components/assets/icon/starCircle32.json +1 -1
  3339. package/assets/components/assets/icon/stop16.json +1 -1
  3340. package/assets/components/assets/icon/stop24.json +1 -1
  3341. package/assets/components/assets/icon/stop32.json +1 -1
  3342. package/assets/components/assets/icon/stopSquare16.json +1 -1
  3343. package/assets/components/assets/icon/stopSquare16F.json +1 -1
  3344. package/assets/components/assets/icon/stopSquare24.json +1 -1
  3345. package/assets/components/assets/icon/stopSquare24F.json +1 -1
  3346. package/assets/components/assets/icon/stopSquare32.json +1 -1
  3347. package/assets/components/assets/icon/stopSquare32F.json +1 -1
  3348. package/assets/components/assets/icon/storage16.json +1 -1
  3349. package/assets/components/assets/icon/storage24.json +1 -1
  3350. package/assets/components/assets/icon/storage32.json +1 -1
  3351. package/assets/components/assets/icon/storedAsNewQuery16.json +1 -1
  3352. package/assets/components/assets/icon/storedAsNewQuery24.json +1 -1
  3353. package/assets/components/assets/icon/storedAsNewQuery32.json +1 -1
  3354. package/assets/components/assets/icon/storedQuery16.json +1 -1
  3355. package/assets/components/assets/icon/storedQuery24.json +1 -1
  3356. package/assets/components/assets/icon/storedQuery32.json +1 -1
  3357. package/assets/components/assets/icon/storymapExperience16.json +1 -1
  3358. package/assets/components/assets/icon/storymapExperience24.json +1 -1
  3359. package/assets/components/assets/icon/storymapExperience32.json +1 -1
  3360. package/assets/components/assets/icon/straight32.json +1 -1
  3361. package/assets/components/assets/icon/strikethrough16.json +1 -1
  3362. package/assets/components/assets/icon/strikethrough24.json +1 -1
  3363. package/assets/components/assets/icon/strikethrough32.json +1 -1
  3364. package/assets/components/assets/icon/string16.json +1 -1
  3365. package/assets/components/assets/icon/string24.json +1 -1
  3366. package/assets/components/assets/icon/string32.json +1 -1
  3367. package/assets/components/assets/icon/stringSet16.json +1 -1
  3368. package/assets/components/assets/icon/stringSet24.json +1 -1
  3369. package/assets/components/assets/icon/stringSet32.json +1 -1
  3370. package/assets/components/assets/icon/styling16.json +1 -1
  3371. package/assets/components/assets/icon/styling24.json +1 -1
  3372. package/assets/components/assets/icon/styling32.json +1 -1
  3373. package/assets/components/assets/icon/subFields16.json +1 -1
  3374. package/assets/components/assets/icon/subFields24.json +1 -1
  3375. package/assets/components/assets/icon/subFields32.json +1 -1
  3376. package/assets/components/assets/icon/subheading16.json +1 -1
  3377. package/assets/components/assets/icon/subheading1Rtl16.json +1 -0
  3378. package/assets/components/assets/icon/subheading1Rtl24.json +1 -0
  3379. package/assets/components/assets/icon/subheading1Rtl32.json +1 -0
  3380. package/assets/components/assets/icon/subheading2Rtl16.json +1 -0
  3381. package/assets/components/assets/icon/subheading2Rtl24.json +1 -0
  3382. package/assets/components/assets/icon/subheading2Rtl32.json +1 -0
  3383. package/assets/components/assets/icon/subheading316.json +1 -1
  3384. package/assets/components/assets/icon/subheading32.json +1 -1
  3385. package/assets/components/assets/icon/subheading324.json +1 -1
  3386. package/assets/components/assets/icon/subheading332.json +1 -1
  3387. package/assets/components/assets/icon/subheading3Rtl16.json +1 -0
  3388. package/assets/components/assets/icon/subheading3Rtl24.json +1 -0
  3389. package/assets/components/assets/icon/subheading3Rtl32.json +1 -0
  3390. package/assets/components/assets/icon/subheading4Rtl16.json +1 -0
  3391. package/assets/components/assets/icon/subheading4Rtl24.json +1 -0
  3392. package/assets/components/assets/icon/subheading4Rtl32.json +1 -0
  3393. package/assets/components/assets/icon/subheading516.json +1 -1
  3394. package/assets/components/assets/icon/subheading524.json +1 -1
  3395. package/assets/components/assets/icon/subheading532.json +1 -1
  3396. package/assets/components/assets/icon/subheading5Rtl16.json +1 -0
  3397. package/assets/components/assets/icon/subheading5Rtl24.json +1 -0
  3398. package/assets/components/assets/icon/subheading5Rtl32.json +1 -0
  3399. package/assets/components/assets/icon/subheadingRtl16.json +1 -1
  3400. package/assets/components/assets/icon/subheadingRtl24.json +1 -1
  3401. package/assets/components/assets/icon/submit16.json +1 -1
  3402. package/assets/components/assets/icon/submit24.json +1 -1
  3403. package/assets/components/assets/icon/submit32.json +1 -1
  3404. package/assets/components/assets/icon/subscript16.json +1 -1
  3405. package/assets/components/assets/icon/subscript24.json +1 -1
  3406. package/assets/components/assets/icon/subscript32.json +1 -1
  3407. package/assets/components/assets/icon/subtype16.json +1 -1
  3408. package/assets/components/assets/icon/subtype24.json +1 -1
  3409. package/assets/components/assets/icon/subtype32.json +1 -1
  3410. package/assets/components/assets/icon/suitabilityAnalysisOutput16.json +1 -1
  3411. package/assets/components/assets/icon/suitabilityAnalysisOutput24.json +1 -1
  3412. package/assets/components/assets/icon/suitabilityAnalysisOutput32.json +1 -1
  3413. package/assets/components/assets/icon/summarizeCenterAndDispersion116.json +1 -1
  3414. package/assets/components/assets/icon/summarizeCenterAndDispersion124.json +1 -1
  3415. package/assets/components/assets/icon/summarizeCenterAndDispersion132.json +1 -1
  3416. package/assets/components/assets/icon/summarizeCenterAndDispersion216.json +1 -1
  3417. package/assets/components/assets/icon/summarizeCenterAndDispersion224.json +1 -1
  3418. package/assets/components/assets/icon/summarizeCenterAndDispersion232.json +1 -1
  3419. package/assets/components/assets/icon/summarizeCenterAndDispersion316.json +1 -1
  3420. package/assets/components/assets/icon/summarizeCenterAndDispersion324.json +1 -1
  3421. package/assets/components/assets/icon/summarizeCenterAndDispersion332.json +1 -1
  3422. package/assets/components/assets/icon/summary16.json +1 -1
  3423. package/assets/components/assets/icon/summary24.json +1 -1
  3424. package/assets/components/assets/icon/summary32.json +1 -1
  3425. package/assets/components/assets/icon/superimpose16.json +1 -1
  3426. package/assets/components/assets/icon/superimpose24.json +1 -1
  3427. package/assets/components/assets/icon/superimpose32.json +1 -1
  3428. package/assets/components/assets/icon/superscript16.json +1 -1
  3429. package/assets/components/assets/icon/superscript32.json +1 -1
  3430. package/assets/components/assets/icon/surface16.json +1 -1
  3431. package/assets/components/assets/icon/surface24.json +1 -1
  3432. package/assets/components/assets/icon/surface32.json +1 -1
  3433. package/assets/components/assets/icon/survey16.json +1 -1
  3434. package/assets/components/assets/icon/survey24.json +1 -1
  3435. package/assets/components/assets/icon/survey32.json +1 -1
  3436. package/assets/components/assets/icon/systemManagement16.json +1 -1
  3437. package/assets/components/assets/icon/systemManagement24.json +1 -1
  3438. package/assets/components/assets/icon/systemManagement32.json +1 -1
  3439. package/assets/components/assets/icon/tableSet16.json +1 -1
  3440. package/assets/components/assets/icon/tableSet24.json +1 -1
  3441. package/assets/components/assets/icon/tableSet32.json +1 -1
  3442. package/assets/components/assets/icon/tablet24.json +1 -1
  3443. package/assets/components/assets/icon/tablet32.json +1 -1
  3444. package/assets/components/assets/icon/tag16.json +1 -1
  3445. package/assets/components/assets/icon/tag24.json +1 -1
  3446. package/assets/components/assets/icon/tag32.json +1 -1
  3447. package/assets/components/assets/icon/takePedestrianRamp16.json +1 -1
  3448. package/assets/components/assets/icon/takePedestrianRamp24.json +1 -1
  3449. package/assets/components/assets/icon/takePedestrianRamp32.json +1 -1
  3450. package/assets/components/assets/icon/tangentCurve16.json +1 -0
  3451. package/assets/components/assets/icon/tangentCurve24.json +1 -0
  3452. package/assets/components/assets/icon/tangentCurve32.json +1 -0
  3453. package/assets/components/assets/icon/tapestry16.json +1 -0
  3454. package/assets/components/assets/icon/tapestry24.json +1 -0
  3455. package/assets/components/assets/icon/tapestry32.json +1 -0
  3456. package/assets/components/assets/icon/templates16.json +1 -1
  3457. package/assets/components/assets/icon/templates24.json +1 -1
  3458. package/assets/components/assets/icon/templates32.json +1 -1
  3459. package/assets/components/assets/icon/temporary16.json +1 -1
  3460. package/assets/components/assets/icon/temporary24.json +1 -1
  3461. package/assets/components/assets/icon/temporary32.json +1 -1
  3462. package/assets/components/assets/icon/terminal16.json +1 -1
  3463. package/assets/components/assets/icon/terminal24.json +1 -1
  3464. package/assets/components/assets/icon/terminal32.json +1 -1
  3465. package/assets/components/assets/icon/territoryBufferDistance16.json +1 -1
  3466. package/assets/components/assets/icon/territoryBufferDistance24.json +1 -1
  3467. package/assets/components/assets/icon/territoryBufferDistance32.json +1 -1
  3468. package/assets/components/assets/icon/testData16.json +1 -1
  3469. package/assets/components/assets/icon/testData24.json +1 -1
  3470. package/assets/components/assets/icon/testData32.json +1 -1
  3471. package/assets/components/assets/icon/text32.json +1 -1
  3472. package/assets/components/assets/icon/textBold16.json +1 -1
  3473. package/assets/components/assets/icon/textBold24.json +1 -1
  3474. package/assets/components/assets/icon/textBold32.json +1 -1
  3475. package/assets/components/assets/icon/textButton16.json +1 -1
  3476. package/assets/components/assets/icon/textButton24.json +1 -1
  3477. package/assets/components/assets/icon/textButton32.json +1 -1
  3478. package/assets/components/assets/icon/textDashedUnderline32.json +1 -1
  3479. package/assets/components/assets/icon/textLarge16.json +1 -1
  3480. package/assets/components/assets/icon/textLarge24.json +1 -1
  3481. package/assets/components/assets/icon/textLarge32.json +1 -1
  3482. package/assets/components/assets/icon/textMedium16.json +1 -1
  3483. package/assets/components/assets/icon/textMedium32.json +1 -1
  3484. package/assets/components/assets/icon/textParagraphLarge16.json +1 -1
  3485. package/assets/components/assets/icon/textSmall16.json +1 -1
  3486. package/assets/components/assets/icon/textSmall24.json +1 -1
  3487. package/assets/components/assets/icon/textSmall32.json +1 -1
  3488. package/assets/components/assets/icon/textSolidUnderline32.json +1 -1
  3489. package/assets/components/assets/icon/threeByOneGrid16.json +1 -1
  3490. package/assets/components/assets/icon/threeByOneGrid24.json +1 -1
  3491. package/assets/components/assets/icon/threeByOneGrid32.json +1 -1
  3492. package/assets/components/assets/icon/threeByThreeGrid16.json +1 -1
  3493. package/assets/components/assets/icon/threeByThreeGrid24.json +1 -1
  3494. package/assets/components/assets/icon/threeByThreeGrid32.json +1 -1
  3495. package/assets/components/assets/icon/threeByTwoGrid16.json +1 -1
  3496. package/assets/components/assets/icon/threeByTwoGrid24.json +1 -1
  3497. package/assets/components/assets/icon/threeByTwoGrid32.json +1 -1
  3498. package/assets/components/assets/icon/thumbsDown16.json +1 -1
  3499. package/assets/components/assets/icon/thumbsDown24.json +1 -1
  3500. package/assets/components/assets/icon/thumbsDown32.json +1 -1
  3501. package/assets/components/assets/icon/thumbsUp16.json +1 -1
  3502. package/assets/components/assets/icon/thumbsUp24.json +1 -1
  3503. package/assets/components/assets/icon/thumbsUp32.json +1 -1
  3504. package/assets/components/assets/icon/tileCacheDataStore16.json +1 -1
  3505. package/assets/components/assets/icon/tileCacheDataStore24.json +1 -1
  3506. package/assets/components/assets/icon/tileCacheDataStore32.json +1 -1
  3507. package/assets/components/assets/icon/tileLayer16.json +1 -1
  3508. package/assets/components/assets/icon/tileLayer24.json +1 -1
  3509. package/assets/components/assets/icon/tileLayer32.json +1 -1
  3510. package/assets/components/assets/icon/tiledImageryLayer16.json +1 -1
  3511. package/assets/components/assets/icon/tiledImageryLayer24.json +1 -1
  3512. package/assets/components/assets/icon/tiledImageryLayer32.json +1 -1
  3513. package/assets/components/assets/icon/timeFilter16.json +1 -1
  3514. package/assets/components/assets/icon/timeFilter24.json +1 -1
  3515. package/assets/components/assets/icon/timeFilter32.json +1 -1
  3516. package/assets/components/assets/icon/timeZone16.json +1 -1
  3517. package/assets/components/assets/icon/timeZone24.json +1 -1
  3518. package/assets/components/assets/icon/timeZone32.json +1 -1
  3519. package/assets/components/assets/icon/timer16.json +1 -1
  3520. package/assets/components/assets/icon/timer24.json +1 -1
  3521. package/assets/components/assets/icon/timer32.json +1 -1
  3522. package/assets/components/assets/icon/toggle16.json +1 -1
  3523. package/assets/components/assets/icon/toggle24.json +1 -1
  3524. package/assets/components/assets/icon/toggle32.json +1 -1
  3525. package/assets/components/assets/icon/toggleOff16.json +1 -1
  3526. package/assets/components/assets/icon/toggleOff24.json +1 -1
  3527. package/assets/components/assets/icon/toggleOff32.json +1 -1
  3528. package/assets/components/assets/icon/toggleOn16.json +1 -1
  3529. package/assets/components/assets/icon/toggleOn24.json +1 -1
  3530. package/assets/components/assets/icon/toggleOn32.json +1 -1
  3531. package/assets/components/assets/icon/toolHistory16.json +1 -1
  3532. package/assets/components/assets/icon/toolHistory24.json +1 -1
  3533. package/assets/components/assets/icon/toolHistory32.json +1 -1
  3534. package/assets/components/assets/icon/topology16.json +1 -0
  3535. package/assets/components/assets/icon/topology24.json +1 -0
  3536. package/assets/components/assets/icon/topology32.json +1 -0
  3537. package/assets/components/assets/icon/touch16.json +1 -1
  3538. package/assets/components/assets/icon/touch24.json +1 -1
  3539. package/assets/components/assets/icon/touch32.json +1 -1
  3540. package/assets/components/assets/icon/tour16.json +1 -1
  3541. package/assets/components/assets/icon/tour24.json +1 -1
  3542. package/assets/components/assets/icon/tour32.json +1 -1
  3543. package/assets/components/assets/icon/tourPinTear16.json +1 -1
  3544. package/assets/components/assets/icon/tourPinTear24.json +1 -1
  3545. package/assets/components/assets/icon/tourPinTear32.json +1 -1
  3546. package/assets/components/assets/icon/trace16.json +1 -1
  3547. package/assets/components/assets/icon/trace32.json +1 -1
  3548. package/assets/components/assets/icon/tracePath16.json +1 -1
  3549. package/assets/components/assets/icon/tracePath24.json +1 -1
  3550. package/assets/components/assets/icon/tracePath32.json +1 -1
  3551. package/assets/components/assets/icon/tracePathComplete16.json +1 -1
  3552. package/assets/components/assets/icon/tracePathComplete24.json +1 -1
  3553. package/assets/components/assets/icon/tracePathComplete32.json +1 -1
  3554. package/assets/components/assets/icon/transcript16.json +1 -1
  3555. package/assets/components/assets/icon/transcript16F.json +1 -1
  3556. package/assets/components/assets/icon/transcript24.json +1 -1
  3557. package/assets/components/assets/icon/transcript24F.json +1 -1
  3558. package/assets/components/assets/icon/transcript32.json +1 -1
  3559. package/assets/components/assets/icon/transcript32F.json +1 -1
  3560. package/assets/components/assets/icon/transfer16.json +1 -0
  3561. package/assets/components/assets/icon/transfer24.json +1 -0
  3562. package/assets/components/assets/icon/transfer32.json +1 -0
  3563. package/assets/components/assets/icon/transverseHexagon16.json +1 -1
  3564. package/assets/components/assets/icon/transverseHexagon24.json +1 -1
  3565. package/assets/components/assets/icon/transverseHexagon32.json +1 -1
  3566. package/assets/components/assets/icon/trapezoidArea16.json +1 -1
  3567. package/assets/components/assets/icon/trapezoidArea24.json +1 -1
  3568. package/assets/components/assets/icon/trapezoidArea32.json +1 -1
  3569. package/assets/components/assets/icon/trash16.json +1 -1
  3570. package/assets/components/assets/icon/trash24.json +1 -1
  3571. package/assets/components/assets/icon/trash32.json +1 -1
  3572. package/assets/components/assets/icon/tree16.json +1 -1
  3573. package/assets/components/assets/icon/tree24.json +1 -1
  3574. package/assets/components/assets/icon/tree32.json +1 -1
  3575. package/assets/components/assets/icon/truckingDistance16.json +1 -1
  3576. package/assets/components/assets/icon/truckingDistance24.json +1 -1
  3577. package/assets/components/assets/icon/truckingDistance32.json +1 -1
  3578. package/assets/components/assets/icon/truckingTime16.json +1 -1
  3579. package/assets/components/assets/icon/truckingTime24.json +1 -1
  3580. package/assets/components/assets/icon/truckingTime32.json +1 -1
  3581. package/assets/components/assets/icon/uTurn16.json +1 -1
  3582. package/assets/components/assets/icon/uTurn24.json +1 -1
  3583. package/assets/components/assets/icon/uTurn32.json +1 -1
  3584. package/assets/components/assets/icon/uTurnRight16.json +1 -1
  3585. package/assets/components/assets/icon/uTurnRight24.json +1 -1
  3586. package/assets/components/assets/icon/uTurnRight32.json +1 -1
  3587. package/assets/components/assets/icon/uncollapseEntities16.json +1 -1
  3588. package/assets/components/assets/icon/uncollapseEntities24.json +1 -1
  3589. package/assets/components/assets/icon/uncollapseEntities32.json +1 -1
  3590. package/assets/components/assets/icon/uncollapseRelationships16.json +1 -1
  3591. package/assets/components/assets/icon/uncollapseRelationships24.json +1 -1
  3592. package/assets/components/assets/icon/uncollapseRelationships32.json +1 -1
  3593. package/assets/components/assets/icon/underline16.json +1 -1
  3594. package/assets/components/assets/icon/underline24.json +1 -1
  3595. package/assets/components/assets/icon/underline32.json +1 -1
  3596. package/assets/components/assets/icon/undo16.json +1 -1
  3597. package/assets/components/assets/icon/undo24.json +1 -1
  3598. package/assets/components/assets/icon/undo32.json +1 -1
  3599. package/assets/components/assets/icon/ungroupLayers16.json +1 -1
  3600. package/assets/components/assets/icon/ungroupLayers24.json +1 -1
  3601. package/assets/components/assets/icon/ungroupLayers32.json +1 -1
  3602. package/assets/components/assets/icon/unlink16.json +1 -1
  3603. package/assets/components/assets/icon/unlink24.json +1 -1
  3604. package/assets/components/assets/icon/unlink32.json +1 -1
  3605. package/assets/components/assets/icon/unlock16.json +1 -1
  3606. package/assets/components/assets/icon/unlock24.json +1 -1
  3607. package/assets/components/assets/icon/unlock32.json +1 -1
  3608. package/assets/components/assets/icon/unmerge16.json +1 -1
  3609. package/assets/components/assets/icon/unmerge24.json +1 -1
  3610. package/assets/components/assets/icon/unmerge32.json +1 -1
  3611. package/assets/components/assets/icon/unpin16.json +1 -1
  3612. package/assets/components/assets/icon/unpin24.json +1 -1
  3613. package/assets/components/assets/icon/unpin32.json +1 -1
  3614. package/assets/components/assets/icon/unregister16.json +1 -1
  3615. package/assets/components/assets/icon/unregister24.json +1 -1
  3616. package/assets/components/assets/icon/unregister32.json +1 -1
  3617. package/assets/components/assets/icon/unselected16.json +1 -1
  3618. package/assets/components/assets/icon/unselected24.json +1 -1
  3619. package/assets/components/assets/icon/unselected32.json +1 -1
  3620. package/assets/components/assets/icon/updateFeatures16.json +1 -1
  3621. package/assets/components/assets/icon/updateFeatures24.json +1 -1
  3622. package/assets/components/assets/icon/updateFeatures32.json +1 -1
  3623. package/assets/components/assets/icon/updateProject16.json +1 -1
  3624. package/assets/components/assets/icon/updateProject24.json +1 -1
  3625. package/assets/components/assets/icon/updateProject32.json +1 -1
  3626. package/assets/components/assets/icon/upload16.json +1 -1
  3627. package/assets/components/assets/icon/upload24.json +1 -1
  3628. package/assets/components/assets/icon/upload32.json +1 -1
  3629. package/assets/components/assets/icon/uploadTo32.json +1 -1
  3630. package/assets/components/assets/icon/usbSecurityKey16.json +1 -1
  3631. package/assets/components/assets/icon/usbSecurityKey24.json +1 -1
  3632. package/assets/components/assets/icon/usbSecurityKey32.json +1 -1
  3633. package/assets/components/assets/icon/user16.json +1 -1
  3634. package/assets/components/assets/icon/user24.json +1 -1
  3635. package/assets/components/assets/icon/user32.json +1 -1
  3636. package/assets/components/assets/icon/userCalendar16.json +1 -1
  3637. package/assets/components/assets/icon/userCalendar24.json +1 -1
  3638. package/assets/components/assets/icon/userCalendar32.json +1 -1
  3639. package/assets/components/assets/icon/userDown16.json +1 -1
  3640. package/assets/components/assets/icon/userDown24.json +1 -1
  3641. package/assets/components/assets/icon/userDown32.json +1 -1
  3642. package/assets/components/assets/icon/userKey16.json +1 -1
  3643. package/assets/components/assets/icon/userKey24.json +1 -1
  3644. package/assets/components/assets/icon/userKey32.json +1 -1
  3645. package/assets/components/assets/icon/userMinus16.json +1 -1
  3646. package/assets/components/assets/icon/userMinus24.json +1 -1
  3647. package/assets/components/assets/icon/userMinus32.json +1 -1
  3648. package/assets/components/assets/icon/userPlus16.json +1 -1
  3649. package/assets/components/assets/icon/userPlus24.json +1 -1
  3650. package/assets/components/assets/icon/userPlus32.json +1 -1
  3651. package/assets/components/assets/icon/userRisk16.json +1 -1
  3652. package/assets/components/assets/icon/userRisk24.json +1 -1
  3653. package/assets/components/assets/icon/userRisk32.json +1 -1
  3654. package/assets/components/assets/icon/userToDevice16.json +1 -1
  3655. package/assets/components/assets/icon/userToDevice24.json +1 -1
  3656. package/assets/components/assets/icon/userToDevice32.json +1 -1
  3657. package/assets/components/assets/icon/userUp16.json +1 -1
  3658. package/assets/components/assets/icon/userUp24.json +1 -1
  3659. package/assets/components/assets/icon/userUp32.json +1 -1
  3660. package/assets/components/assets/icon/userX16.json +1 -1
  3661. package/assets/components/assets/icon/userX24.json +1 -1
  3662. package/assets/components/assets/icon/userX32.json +1 -1
  3663. package/assets/components/assets/icon/users16.json +1 -1
  3664. package/assets/components/assets/icon/users24.json +1 -1
  3665. package/assets/components/assets/icon/users32.json +1 -1
  3666. package/assets/components/assets/icon/utilityNetwork16.json +1 -1
  3667. package/assets/components/assets/icon/utilityNetwork24.json +1 -1
  3668. package/assets/components/assets/icon/utilityNetwork32.json +1 -1
  3669. package/assets/components/assets/icon/utilityNetworkLayer16.json +1 -1
  3670. package/assets/components/assets/icon/utilityNetworkLayer24.json +1 -1
  3671. package/assets/components/assets/icon/utilityNetworkLayer32.json +1 -1
  3672. package/assets/components/assets/icon/utilityNetworkTrace16.json +1 -1
  3673. package/assets/components/assets/icon/utilityNetworkTrace24.json +1 -1
  3674. package/assets/components/assets/icon/utilityNetworkTrace32.json +1 -1
  3675. package/assets/components/assets/icon/validate16.json +1 -1
  3676. package/assets/components/assets/icon/validate24.json +1 -1
  3677. package/assets/components/assets/icon/validate32.json +1 -1
  3678. package/assets/components/assets/icon/validateUtilityNetworkTopology16.json +1 -1
  3679. package/assets/components/assets/icon/validateUtilityNetworkTopology24.json +1 -1
  3680. package/assets/components/assets/icon/validateUtilityNetworkTopology32.json +1 -1
  3681. package/assets/components/assets/icon/variablePlus16.json +1 -1
  3682. package/assets/components/assets/icon/variablePlus24.json +1 -1
  3683. package/assets/components/assets/icon/variablePlus32.json +1 -1
  3684. package/assets/components/assets/icon/vertexCheck16.json +1 -1
  3685. package/assets/components/assets/icon/vertexCheck24.json +1 -1
  3686. package/assets/components/assets/icon/vertexCheck32.json +1 -1
  3687. package/assets/components/assets/icon/vertexEdit16.json +1 -1
  3688. package/assets/components/assets/icon/vertexEdit24.json +1 -1
  3689. package/assets/components/assets/icon/vertexEdit32.json +1 -1
  3690. package/assets/components/assets/icon/vertexGps16.json +1 -1
  3691. package/assets/components/assets/icon/vertexGps24.json +1 -1
  3692. package/assets/components/assets/icon/vertexGps32.json +1 -1
  3693. package/assets/components/assets/icon/vertexMove24.json +1 -1
  3694. package/assets/components/assets/icon/vertexMove32.json +1 -1
  3695. package/assets/components/assets/icon/vertexPlus32.json +1 -1
  3696. package/assets/components/assets/icon/vertexX16.json +1 -1
  3697. package/assets/components/assets/icon/vertexX24.json +1 -1
  3698. package/assets/components/assets/icon/vertexX32.json +1 -1
  3699. package/assets/components/assets/icon/video16.json +1 -1
  3700. package/assets/components/assets/icon/video24.json +1 -1
  3701. package/assets/components/assets/icon/video32.json +1 -1
  3702. package/assets/components/assets/icon/videoDataStore16.json +1 -0
  3703. package/assets/components/assets/icon/videoDataStore24.json +1 -0
  3704. package/assets/components/assets/icon/videoDataStore32.json +1 -0
  3705. package/assets/components/assets/icon/videoLayer16.json +1 -1
  3706. package/assets/components/assets/icon/videoLayer24.json +1 -1
  3707. package/assets/components/assets/icon/videoLayer32.json +1 -1
  3708. package/assets/components/assets/icon/videoLearning16.json +1 -1
  3709. package/assets/components/assets/icon/videoLearning24.json +1 -1
  3710. package/assets/components/assets/icon/videoLearning32.json +1 -1
  3711. package/assets/components/assets/icon/videoMetadata16.json +1 -0
  3712. package/assets/components/assets/icon/videoMetadata24.json +1 -0
  3713. package/assets/components/assets/icon/videoMetadata32.json +1 -0
  3714. package/assets/components/assets/icon/videoPlus16.json +1 -1
  3715. package/assets/components/assets/icon/videoPlus24.json +1 -1
  3716. package/assets/components/assets/icon/videoPlus32.json +1 -1
  3717. package/assets/components/assets/icon/videoServer16.json +1 -1
  3718. package/assets/components/assets/icon/videoServer24.json +1 -1
  3719. package/assets/components/assets/icon/videoServer32.json +1 -1
  3720. package/assets/components/assets/icon/videoSingleServer16.json +1 -1
  3721. package/assets/components/assets/icon/videoSingleServer24.json +1 -1
  3722. package/assets/components/assets/icon/videoSingleServer32.json +1 -1
  3723. package/assets/components/assets/icon/videoWeb32.json +1 -1
  3724. package/assets/components/assets/icon/viewAssociations16.json +1 -1
  3725. package/assets/components/assets/icon/viewAssociations24.json +1 -1
  3726. package/assets/components/assets/icon/viewAssociations32.json +1 -1
  3727. package/assets/components/assets/icon/viewHide16.json +1 -1
  3728. package/assets/components/assets/icon/viewHide24.json +1 -1
  3729. package/assets/components/assets/icon/viewHide32.json +1 -1
  3730. package/assets/components/assets/icon/viewMixed16.json +1 -1
  3731. package/assets/components/assets/icon/viewMixed24.json +1 -1
  3732. package/assets/components/assets/icon/viewMixed32.json +1 -1
  3733. package/assets/components/assets/icon/viewVisible16.json +1 -1
  3734. package/assets/components/assets/icon/viewVisible24.json +1 -1
  3735. package/assets/components/assets/icon/viewVisible32.json +1 -1
  3736. package/assets/components/assets/icon/viewshed16.json +1 -1
  3737. package/assets/components/assets/icon/viewshed24.json +1 -1
  3738. package/assets/components/assets/icon/viewshed32.json +1 -1
  3739. package/assets/components/assets/icon/walkThroughDoor16.json +1 -1
  3740. package/assets/components/assets/icon/walkThroughDoor24.json +1 -1
  3741. package/assets/components/assets/icon/walkThroughDoor32.json +1 -1
  3742. package/assets/components/assets/icon/walking16.json +1 -1
  3743. package/assets/components/assets/icon/walking24.json +1 -1
  3744. package/assets/components/assets/icon/walking32.json +1 -1
  3745. package/assets/components/assets/icon/walkingDistance16.json +1 -1
  3746. package/assets/components/assets/icon/walkingDistance24.json +1 -1
  3747. package/assets/components/assets/icon/walkingDistance32.json +1 -1
  3748. package/assets/components/assets/icon/walkingTime16.json +1 -1
  3749. package/assets/components/assets/icon/walkingTime24.json +1 -1
  3750. package/assets/components/assets/icon/walkingTime32.json +1 -1
  3751. package/assets/components/assets/icon/waterDrop16.json +1 -1
  3752. package/assets/components/assets/icon/waterDrop24.json +1 -1
  3753. package/assets/components/assets/icon/waterDrop32.json +1 -1
  3754. package/assets/components/assets/icon/web16.json +1 -1
  3755. package/assets/components/assets/icon/web24.json +1 -1
  3756. package/assets/components/assets/icon/web32.json +1 -1
  3757. package/assets/components/assets/icon/webAdapter16.json +1 -1
  3758. package/assets/components/assets/icon/webAdapter24.json +1 -1
  3759. package/assets/components/assets/icon/webAdapter32.json +1 -1
  3760. package/assets/components/assets/icon/webAdaptor16.json +1 -1
  3761. package/assets/components/assets/icon/webAdaptor24.json +1 -1
  3762. package/assets/components/assets/icon/webAdaptor32.json +1 -1
  3763. package/assets/components/assets/icon/webhook16.json +1 -1
  3764. package/assets/components/assets/icon/webhook24.json +1 -1
  3765. package/assets/components/assets/icon/webhook32.json +1 -1
  3766. package/assets/components/assets/icon/wheelchair16.json +1 -1
  3767. package/assets/components/assets/icon/wheelchair24.json +1 -1
  3768. package/assets/components/assets/icon/wheelchair32.json +1 -1
  3769. package/assets/components/assets/icon/whiteCursorSelection16.json +1 -1
  3770. package/assets/components/assets/icon/whiteCursorSelection24.json +1 -1
  3771. package/assets/components/assets/icon/whiteCursorSelection32.json +1 -1
  3772. package/assets/components/assets/icon/wifi16.json +1 -1
  3773. package/assets/components/assets/icon/wifi24.json +1 -1
  3774. package/assets/components/assets/icon/wifi32.json +1 -1
  3775. package/assets/components/assets/icon/wind16.json +1 -1
  3776. package/assets/components/assets/icon/wind24.json +1 -1
  3777. package/assets/components/assets/icon/wind32.json +1 -1
  3778. package/assets/components/assets/icon/workflowDiagram16.json +1 -1
  3779. package/assets/components/assets/icon/workflowDiagram24.json +1 -1
  3780. package/assets/components/assets/icon/workflowDiagram32.json +1 -1
  3781. package/assets/components/assets/icon/workflowManagerServer16.json +1 -1
  3782. package/assets/components/assets/icon/workflowManagerServer24.json +1 -1
  3783. package/assets/components/assets/icon/workflowManagerServer32.json +1 -1
  3784. package/assets/components/assets/icon/wrench16.json +1 -1
  3785. package/assets/components/assets/icon/wrench24.json +1 -1
  3786. package/assets/components/assets/icon/wrench32.json +1 -1
  3787. package/assets/components/assets/icon/x16.json +1 -1
  3788. package/assets/components/assets/icon/x24.json +1 -1
  3789. package/assets/components/assets/icon/x32.json +1 -1
  3790. package/assets/components/assets/icon/xCircle16.json +1 -1
  3791. package/assets/components/assets/icon/xCircle16F.json +1 -1
  3792. package/assets/components/assets/icon/xCircle24.json +1 -1
  3793. package/assets/components/assets/icon/xCircle24F.json +1 -1
  3794. package/assets/components/assets/icon/xCircle32.json +1 -1
  3795. package/assets/components/assets/icon/xCircle32F.json +1 -1
  3796. package/assets/components/assets/icon/xOctagon16.json +1 -1
  3797. package/assets/components/assets/icon/xOctagon16F.json +1 -1
  3798. package/assets/components/assets/icon/xOctagon24.json +1 -1
  3799. package/assets/components/assets/icon/xOctagon24F.json +1 -1
  3800. package/assets/components/assets/icon/xOctagon32.json +1 -1
  3801. package/assets/components/assets/icon/xOctagon32F.json +1 -1
  3802. package/assets/components/assets/icon/zoningParameter16.json +1 -1
  3803. package/assets/components/assets/icon/zoningParameter24.json +1 -1
  3804. package/assets/components/assets/icon/zoningParameter32.json +1 -1
  3805. package/assets/components/assets/icon/zoomInFixed16.json +1 -1
  3806. package/assets/components/assets/icon/zoomInFixed24.json +1 -1
  3807. package/assets/components/assets/icon/zoomInFixed32.json +1 -1
  3808. package/assets/components/assets/icon/zoomOutFixed16.json +1 -1
  3809. package/assets/components/assets/icon/zoomOutFixed24.json +1 -1
  3810. package/assets/components/assets/icon/zoomOutFixed32.json +1 -1
  3811. package/assets/components/assets/icon/zoomToObject16.json +1 -1
  3812. package/assets/components/assets/icon/zoomToObject24.json +1 -1
  3813. package/assets/components/assets/icon/zoomToObject32.json +1 -1
  3814. package/assets/components/assets/input/t9n/messages.ar.json +1 -1
  3815. package/assets/components/assets/input/t9n/messages.bg.json +1 -1
  3816. package/assets/components/assets/input/t9n/messages.bs.json +1 -1
  3817. package/assets/components/assets/input/t9n/messages.ca.json +1 -1
  3818. package/assets/components/assets/input/t9n/messages.cs.json +1 -1
  3819. package/assets/components/assets/input/t9n/messages.da.json +1 -1
  3820. package/assets/components/assets/input/t9n/messages.de.json +1 -1
  3821. package/assets/components/assets/input/t9n/messages.el.json +1 -1
  3822. package/assets/components/assets/input/t9n/messages.en.json +1 -1
  3823. package/assets/components/assets/input/t9n/messages.es.json +1 -1
  3824. package/assets/components/assets/input/t9n/messages.et.json +1 -1
  3825. package/assets/components/assets/input/t9n/messages.fi.json +1 -1
  3826. package/assets/components/assets/input/t9n/messages.fr.json +1 -1
  3827. package/assets/components/assets/input/t9n/messages.he.json +1 -1
  3828. package/assets/components/assets/input/t9n/messages.hr.json +1 -1
  3829. package/assets/components/assets/input/t9n/messages.hu.json +1 -1
  3830. package/assets/components/assets/input/t9n/messages.id.json +1 -1
  3831. package/assets/components/assets/input/t9n/messages.it.json +1 -1
  3832. package/assets/components/assets/input/t9n/messages.ja.json +1 -1
  3833. package/assets/components/assets/input/t9n/messages.json +1 -1
  3834. package/assets/components/assets/input/t9n/messages.ko.json +1 -1
  3835. package/assets/components/assets/input/t9n/messages.lt.json +1 -1
  3836. package/assets/components/assets/input/t9n/messages.lv.json +1 -1
  3837. package/assets/components/assets/input/t9n/messages.nl.json +1 -1
  3838. package/assets/components/assets/input/t9n/messages.no.json +1 -1
  3839. package/assets/components/assets/input/t9n/messages.pl.json +1 -1
  3840. package/assets/components/assets/input/t9n/messages.pt-BR.json +1 -1
  3841. package/assets/components/assets/input/t9n/messages.pt-PT.json +1 -1
  3842. package/assets/components/assets/input/t9n/messages.ro.json +1 -1
  3843. package/assets/components/assets/input/t9n/messages.ru.json +1 -1
  3844. package/assets/components/assets/input/t9n/messages.sk.json +1 -1
  3845. package/assets/components/assets/input/t9n/messages.sl.json +1 -1
  3846. package/assets/components/assets/input/t9n/messages.sr.json +1 -1
  3847. package/assets/components/assets/input/t9n/messages.sv.json +1 -1
  3848. package/assets/components/assets/input/t9n/messages.th.json +1 -1
  3849. package/assets/components/assets/input/t9n/messages.tr.json +1 -1
  3850. package/assets/components/assets/input/t9n/messages.uk.json +1 -1
  3851. package/assets/components/assets/input/t9n/messages.vi.json +1 -1
  3852. package/assets/components/assets/input/t9n/messages.zh-CN.json +1 -1
  3853. package/assets/components/assets/input/t9n/messages.zh-HK.json +1 -1
  3854. package/assets/components/assets/input/t9n/messages.zh-TW.json +1 -1
  3855. package/assets/components/assets/input-date-picker/t9n/messages.ar.json +1 -1
  3856. package/assets/components/assets/input-date-picker/t9n/messages.bg.json +1 -1
  3857. package/assets/components/assets/input-date-picker/t9n/messages.bs.json +1 -1
  3858. package/assets/components/assets/input-date-picker/t9n/messages.ca.json +1 -1
  3859. package/assets/components/assets/input-date-picker/t9n/messages.cs.json +1 -1
  3860. package/assets/components/assets/input-date-picker/t9n/messages.da.json +1 -1
  3861. package/assets/components/assets/input-date-picker/t9n/messages.de.json +1 -1
  3862. package/assets/components/assets/input-date-picker/t9n/messages.el.json +1 -1
  3863. package/assets/components/assets/input-date-picker/t9n/messages.en.json +1 -1
  3864. package/assets/components/assets/input-date-picker/t9n/messages.es.json +1 -1
  3865. package/assets/components/assets/input-date-picker/t9n/messages.et.json +1 -1
  3866. package/assets/components/assets/input-date-picker/t9n/messages.fi.json +1 -1
  3867. package/assets/components/assets/input-date-picker/t9n/messages.fr.json +1 -1
  3868. package/assets/components/assets/input-date-picker/t9n/messages.he.json +1 -1
  3869. package/assets/components/assets/input-date-picker/t9n/messages.hr.json +1 -1
  3870. package/assets/components/assets/input-date-picker/t9n/messages.hu.json +1 -1
  3871. package/assets/components/assets/input-date-picker/t9n/messages.id.json +1 -1
  3872. package/assets/components/assets/input-date-picker/t9n/messages.it.json +1 -1
  3873. package/assets/components/assets/input-date-picker/t9n/messages.ja.json +1 -1
  3874. package/assets/components/assets/input-date-picker/t9n/messages.json +1 -1
  3875. package/assets/components/assets/input-date-picker/t9n/messages.ko.json +1 -1
  3876. package/assets/components/assets/input-date-picker/t9n/messages.lt.json +1 -1
  3877. package/assets/components/assets/input-date-picker/t9n/messages.lv.json +1 -1
  3878. package/assets/components/assets/input-date-picker/t9n/messages.nl.json +1 -1
  3879. package/assets/components/assets/input-date-picker/t9n/messages.no.json +1 -1
  3880. package/assets/components/assets/input-date-picker/t9n/messages.pl.json +1 -1
  3881. package/assets/components/assets/input-date-picker/t9n/messages.pt-BR.json +1 -1
  3882. package/assets/components/assets/input-date-picker/t9n/messages.pt-PT.json +1 -1
  3883. package/assets/components/assets/input-date-picker/t9n/messages.ro.json +1 -1
  3884. package/assets/components/assets/input-date-picker/t9n/messages.ru.json +1 -1
  3885. package/assets/components/assets/input-date-picker/t9n/messages.sk.json +1 -1
  3886. package/assets/components/assets/input-date-picker/t9n/messages.sl.json +1 -1
  3887. package/assets/components/assets/input-date-picker/t9n/messages.sr.json +1 -1
  3888. package/assets/components/assets/input-date-picker/t9n/messages.sv.json +1 -1
  3889. package/assets/components/assets/input-date-picker/t9n/messages.th.json +1 -1
  3890. package/assets/components/assets/input-date-picker/t9n/messages.tr.json +1 -1
  3891. package/assets/components/assets/input-date-picker/t9n/messages.uk.json +1 -1
  3892. package/assets/components/assets/input-date-picker/t9n/messages.vi.json +1 -1
  3893. package/assets/components/assets/input-date-picker/t9n/messages.zh-CN.json +1 -1
  3894. package/assets/components/assets/input-date-picker/t9n/messages.zh-HK.json +1 -1
  3895. package/assets/components/assets/input-date-picker/t9n/messages.zh-TW.json +1 -1
  3896. package/assets/components/assets/input-number/t9n/messages.ar.json +1 -1
  3897. package/assets/components/assets/input-number/t9n/messages.bg.json +1 -1
  3898. package/assets/components/assets/input-number/t9n/messages.bs.json +1 -1
  3899. package/assets/components/assets/input-number/t9n/messages.ca.json +1 -1
  3900. package/assets/components/assets/input-number/t9n/messages.cs.json +1 -1
  3901. package/assets/components/assets/input-number/t9n/messages.da.json +1 -1
  3902. package/assets/components/assets/input-number/t9n/messages.de.json +1 -1
  3903. package/assets/components/assets/input-number/t9n/messages.el.json +1 -1
  3904. package/assets/components/assets/input-number/t9n/messages.en.json +1 -1
  3905. package/assets/components/assets/input-number/t9n/messages.es.json +1 -1
  3906. package/assets/components/assets/input-number/t9n/messages.et.json +1 -1
  3907. package/assets/components/assets/input-number/t9n/messages.fi.json +1 -1
  3908. package/assets/components/assets/input-number/t9n/messages.fr.json +1 -1
  3909. package/assets/components/assets/input-number/t9n/messages.he.json +1 -1
  3910. package/assets/components/assets/input-number/t9n/messages.hr.json +1 -1
  3911. package/assets/components/assets/input-number/t9n/messages.hu.json +1 -1
  3912. package/assets/components/assets/input-number/t9n/messages.id.json +1 -1
  3913. package/assets/components/assets/input-number/t9n/messages.it.json +1 -1
  3914. package/assets/components/assets/input-number/t9n/messages.ja.json +1 -1
  3915. package/assets/components/assets/input-number/t9n/messages.json +1 -1
  3916. package/assets/components/assets/input-number/t9n/messages.ko.json +1 -1
  3917. package/assets/components/assets/input-number/t9n/messages.lt.json +1 -1
  3918. package/assets/components/assets/input-number/t9n/messages.lv.json +1 -1
  3919. package/assets/components/assets/input-number/t9n/messages.nl.json +1 -1
  3920. package/assets/components/assets/input-number/t9n/messages.no.json +1 -1
  3921. package/assets/components/assets/input-number/t9n/messages.pl.json +1 -1
  3922. package/assets/components/assets/input-number/t9n/messages.pt-BR.json +1 -1
  3923. package/assets/components/assets/input-number/t9n/messages.pt-PT.json +1 -1
  3924. package/assets/components/assets/input-number/t9n/messages.ro.json +1 -1
  3925. package/assets/components/assets/input-number/t9n/messages.ru.json +1 -1
  3926. package/assets/components/assets/input-number/t9n/messages.sk.json +1 -1
  3927. package/assets/components/assets/input-number/t9n/messages.sl.json +1 -1
  3928. package/assets/components/assets/input-number/t9n/messages.sr.json +1 -1
  3929. package/assets/components/assets/input-number/t9n/messages.sv.json +1 -1
  3930. package/assets/components/assets/input-number/t9n/messages.th.json +1 -1
  3931. package/assets/components/assets/input-number/t9n/messages.tr.json +1 -1
  3932. package/assets/components/assets/input-number/t9n/messages.uk.json +1 -1
  3933. package/assets/components/assets/input-number/t9n/messages.vi.json +1 -1
  3934. package/assets/components/assets/input-number/t9n/messages.zh-CN.json +1 -1
  3935. package/assets/components/assets/input-number/t9n/messages.zh-HK.json +1 -1
  3936. package/assets/components/assets/input-number/t9n/messages.zh-TW.json +1 -1
  3937. package/assets/components/assets/input-text/t9n/messages.ar.json +1 -1
  3938. package/assets/components/assets/input-text/t9n/messages.bg.json +1 -1
  3939. package/assets/components/assets/input-text/t9n/messages.bs.json +1 -1
  3940. package/assets/components/assets/input-text/t9n/messages.ca.json +1 -1
  3941. package/assets/components/assets/input-text/t9n/messages.cs.json +1 -1
  3942. package/assets/components/assets/input-text/t9n/messages.da.json +1 -1
  3943. package/assets/components/assets/input-text/t9n/messages.de.json +1 -1
  3944. package/assets/components/assets/input-text/t9n/messages.el.json +1 -1
  3945. package/assets/components/assets/input-text/t9n/messages.en.json +1 -1
  3946. package/assets/components/assets/input-text/t9n/messages.es.json +1 -1
  3947. package/assets/components/assets/input-text/t9n/messages.et.json +1 -1
  3948. package/assets/components/assets/input-text/t9n/messages.fi.json +1 -1
  3949. package/assets/components/assets/input-text/t9n/messages.fr.json +1 -1
  3950. package/assets/components/assets/input-text/t9n/messages.he.json +1 -1
  3951. package/assets/components/assets/input-text/t9n/messages.hr.json +1 -1
  3952. package/assets/components/assets/input-text/t9n/messages.hu.json +1 -1
  3953. package/assets/components/assets/input-text/t9n/messages.id.json +1 -1
  3954. package/assets/components/assets/input-text/t9n/messages.it.json +1 -1
  3955. package/assets/components/assets/input-text/t9n/messages.ja.json +1 -1
  3956. package/assets/components/assets/input-text/t9n/messages.json +1 -1
  3957. package/assets/components/assets/input-text/t9n/messages.ko.json +1 -1
  3958. package/assets/components/assets/input-text/t9n/messages.lt.json +1 -1
  3959. package/assets/components/assets/input-text/t9n/messages.lv.json +1 -1
  3960. package/assets/components/assets/input-text/t9n/messages.nl.json +1 -1
  3961. package/assets/components/assets/input-text/t9n/messages.no.json +1 -1
  3962. package/assets/components/assets/input-text/t9n/messages.pl.json +1 -1
  3963. package/assets/components/assets/input-text/t9n/messages.pt-BR.json +1 -1
  3964. package/assets/components/assets/input-text/t9n/messages.pt-PT.json +1 -1
  3965. package/assets/components/assets/input-text/t9n/messages.ro.json +1 -1
  3966. package/assets/components/assets/input-text/t9n/messages.ru.json +1 -1
  3967. package/assets/components/assets/input-text/t9n/messages.sk.json +1 -1
  3968. package/assets/components/assets/input-text/t9n/messages.sl.json +1 -1
  3969. package/assets/components/assets/input-text/t9n/messages.sr.json +1 -1
  3970. package/assets/components/assets/input-text/t9n/messages.sv.json +1 -1
  3971. package/assets/components/assets/input-text/t9n/messages.th.json +1 -1
  3972. package/assets/components/assets/input-text/t9n/messages.tr.json +1 -1
  3973. package/assets/components/assets/input-text/t9n/messages.uk.json +1 -1
  3974. package/assets/components/assets/input-text/t9n/messages.vi.json +1 -1
  3975. package/assets/components/assets/input-text/t9n/messages.zh-CN.json +1 -1
  3976. package/assets/components/assets/input-text/t9n/messages.zh-HK.json +1 -1
  3977. package/assets/components/assets/input-text/t9n/messages.zh-TW.json +1 -1
  3978. package/assets/components/assets/input-time-picker/t9n/messages.ar.json +1 -1
  3979. package/assets/components/assets/input-time-picker/t9n/messages.bg.json +1 -1
  3980. package/assets/components/assets/input-time-picker/t9n/messages.bs.json +1 -1
  3981. package/assets/components/assets/input-time-picker/t9n/messages.ca.json +1 -1
  3982. package/assets/components/assets/input-time-picker/t9n/messages.cs.json +1 -1
  3983. package/assets/components/assets/input-time-picker/t9n/messages.da.json +1 -1
  3984. package/assets/components/assets/input-time-picker/t9n/messages.de.json +1 -1
  3985. package/assets/components/assets/input-time-picker/t9n/messages.el.json +1 -1
  3986. package/assets/components/assets/input-time-picker/t9n/messages.en.json +1 -1
  3987. package/assets/components/assets/input-time-picker/t9n/messages.es.json +1 -1
  3988. package/assets/components/assets/input-time-picker/t9n/messages.et.json +1 -1
  3989. package/assets/components/assets/input-time-picker/t9n/messages.fi.json +1 -1
  3990. package/assets/components/assets/input-time-picker/t9n/messages.fr.json +1 -1
  3991. package/assets/components/assets/input-time-picker/t9n/messages.he.json +1 -1
  3992. package/assets/components/assets/input-time-picker/t9n/messages.hr.json +1 -1
  3993. package/assets/components/assets/input-time-picker/t9n/messages.hu.json +1 -1
  3994. package/assets/components/assets/input-time-picker/t9n/messages.id.json +1 -1
  3995. package/assets/components/assets/input-time-picker/t9n/messages.it.json +1 -1
  3996. package/assets/components/assets/input-time-picker/t9n/messages.ja.json +1 -1
  3997. package/assets/components/assets/input-time-picker/t9n/messages.json +1 -1
  3998. package/assets/components/assets/input-time-picker/t9n/messages.ko.json +1 -1
  3999. package/assets/components/assets/input-time-picker/t9n/messages.lt.json +1 -1
  4000. package/assets/components/assets/input-time-picker/t9n/messages.lv.json +1 -1
  4001. package/assets/components/assets/input-time-picker/t9n/messages.nl.json +1 -1
  4002. package/assets/components/assets/input-time-picker/t9n/messages.no.json +1 -1
  4003. package/assets/components/assets/input-time-picker/t9n/messages.pl.json +1 -1
  4004. package/assets/components/assets/input-time-picker/t9n/messages.pt-BR.json +1 -1
  4005. package/assets/components/assets/input-time-picker/t9n/messages.pt-PT.json +1 -1
  4006. package/assets/components/assets/input-time-picker/t9n/messages.ro.json +1 -1
  4007. package/assets/components/assets/input-time-picker/t9n/messages.ru.json +1 -1
  4008. package/assets/components/assets/input-time-picker/t9n/messages.sk.json +1 -1
  4009. package/assets/components/assets/input-time-picker/t9n/messages.sl.json +1 -1
  4010. package/assets/components/assets/input-time-picker/t9n/messages.sr.json +1 -1
  4011. package/assets/components/assets/input-time-picker/t9n/messages.sv.json +1 -1
  4012. package/assets/components/assets/input-time-picker/t9n/messages.th.json +1 -1
  4013. package/assets/components/assets/input-time-picker/t9n/messages.tr.json +1 -1
  4014. package/assets/components/assets/input-time-picker/t9n/messages.uk.json +1 -1
  4015. package/assets/components/assets/input-time-picker/t9n/messages.vi.json +1 -1
  4016. package/assets/components/assets/input-time-picker/t9n/messages.zh-CN.json +1 -1
  4017. package/assets/components/assets/input-time-picker/t9n/messages.zh-HK.json +1 -1
  4018. package/assets/components/assets/input-time-picker/t9n/messages.zh-TW.json +1 -1
  4019. package/assets/components/assets/radio-button-group/t9n/messages.ar.json +1 -0
  4020. package/assets/components/assets/radio-button-group/t9n/messages.bg.json +1 -0
  4021. package/assets/components/assets/radio-button-group/t9n/messages.bs.json +1 -0
  4022. package/assets/components/assets/radio-button-group/t9n/messages.ca.json +1 -0
  4023. package/assets/components/assets/radio-button-group/t9n/messages.cs.json +1 -0
  4024. package/assets/components/assets/radio-button-group/t9n/messages.da.json +1 -0
  4025. package/assets/components/assets/radio-button-group/t9n/messages.de.json +1 -0
  4026. package/assets/components/assets/radio-button-group/t9n/messages.el.json +1 -0
  4027. package/assets/components/assets/radio-button-group/t9n/messages.en.json +1 -0
  4028. package/assets/components/assets/radio-button-group/t9n/messages.es.json +1 -0
  4029. package/assets/components/assets/radio-button-group/t9n/messages.et.json +1 -0
  4030. package/assets/components/assets/radio-button-group/t9n/messages.fi.json +1 -0
  4031. package/assets/components/assets/radio-button-group/t9n/messages.fr.json +1 -0
  4032. package/assets/components/assets/radio-button-group/t9n/messages.he.json +1 -0
  4033. package/assets/components/assets/radio-button-group/t9n/messages.hr.json +1 -0
  4034. package/assets/components/assets/radio-button-group/t9n/messages.hu.json +1 -0
  4035. package/assets/components/assets/radio-button-group/t9n/messages.id.json +1 -0
  4036. package/assets/components/assets/radio-button-group/t9n/messages.it.json +1 -0
  4037. package/assets/components/assets/radio-button-group/t9n/messages.ja.json +1 -0
  4038. package/assets/components/assets/radio-button-group/t9n/messages.json +1 -0
  4039. package/assets/components/assets/radio-button-group/t9n/messages.ko.json +1 -0
  4040. package/assets/components/assets/radio-button-group/t9n/messages.lt.json +1 -0
  4041. package/assets/components/assets/radio-button-group/t9n/messages.lv.json +1 -0
  4042. package/assets/components/assets/radio-button-group/t9n/messages.nl.json +1 -0
  4043. package/assets/components/assets/radio-button-group/t9n/messages.no.json +1 -0
  4044. package/assets/components/assets/radio-button-group/t9n/messages.pl.json +1 -0
  4045. package/assets/components/assets/radio-button-group/t9n/messages.pt-BR.json +1 -0
  4046. package/assets/components/assets/radio-button-group/t9n/messages.pt-PT.json +1 -0
  4047. package/assets/components/assets/radio-button-group/t9n/messages.ro.json +1 -0
  4048. package/assets/components/assets/radio-button-group/t9n/messages.ru.json +1 -0
  4049. package/assets/components/assets/radio-button-group/t9n/messages.sk.json +1 -0
  4050. package/assets/components/assets/radio-button-group/t9n/messages.sl.json +1 -0
  4051. package/assets/components/assets/radio-button-group/t9n/messages.sr.json +1 -0
  4052. package/assets/components/assets/radio-button-group/t9n/messages.sv.json +1 -0
  4053. package/assets/components/assets/radio-button-group/t9n/messages.th.json +1 -0
  4054. package/assets/components/assets/radio-button-group/t9n/messages.tr.json +1 -0
  4055. package/assets/components/assets/radio-button-group/t9n/messages.uk.json +1 -0
  4056. package/assets/components/assets/radio-button-group/t9n/messages.vi.json +1 -0
  4057. package/assets/components/assets/radio-button-group/t9n/messages.zh-CN.json +1 -0
  4058. package/assets/components/assets/radio-button-group/t9n/messages.zh-HK.json +1 -0
  4059. package/assets/components/assets/radio-button-group/t9n/messages.zh-TW.json +1 -0
  4060. package/assets/components/assets/rating/t9n/messages.ar.json +1 -1
  4061. package/assets/components/assets/rating/t9n/messages.bg.json +1 -1
  4062. package/assets/components/assets/rating/t9n/messages.bs.json +1 -1
  4063. package/assets/components/assets/rating/t9n/messages.ca.json +1 -1
  4064. package/assets/components/assets/rating/t9n/messages.cs.json +1 -1
  4065. package/assets/components/assets/rating/t9n/messages.da.json +1 -1
  4066. package/assets/components/assets/rating/t9n/messages.de.json +1 -1
  4067. package/assets/components/assets/rating/t9n/messages.el.json +1 -1
  4068. package/assets/components/assets/rating/t9n/messages.en.json +1 -1
  4069. package/assets/components/assets/rating/t9n/messages.es.json +1 -1
  4070. package/assets/components/assets/rating/t9n/messages.et.json +1 -1
  4071. package/assets/components/assets/rating/t9n/messages.fi.json +1 -1
  4072. package/assets/components/assets/rating/t9n/messages.fr.json +1 -1
  4073. package/assets/components/assets/rating/t9n/messages.he.json +1 -1
  4074. package/assets/components/assets/rating/t9n/messages.hr.json +1 -1
  4075. package/assets/components/assets/rating/t9n/messages.hu.json +1 -1
  4076. package/assets/components/assets/rating/t9n/messages.id.json +1 -1
  4077. package/assets/components/assets/rating/t9n/messages.it.json +1 -1
  4078. package/assets/components/assets/rating/t9n/messages.ja.json +1 -1
  4079. package/assets/components/assets/rating/t9n/messages.json +1 -1
  4080. package/assets/components/assets/rating/t9n/messages.ko.json +1 -1
  4081. package/assets/components/assets/rating/t9n/messages.lt.json +1 -1
  4082. package/assets/components/assets/rating/t9n/messages.lv.json +1 -1
  4083. package/assets/components/assets/rating/t9n/messages.nl.json +1 -1
  4084. package/assets/components/assets/rating/t9n/messages.no.json +1 -1
  4085. package/assets/components/assets/rating/t9n/messages.pl.json +1 -1
  4086. package/assets/components/assets/rating/t9n/messages.pt-BR.json +1 -1
  4087. package/assets/components/assets/rating/t9n/messages.pt-PT.json +1 -1
  4088. package/assets/components/assets/rating/t9n/messages.ro.json +1 -1
  4089. package/assets/components/assets/rating/t9n/messages.ru.json +1 -1
  4090. package/assets/components/assets/rating/t9n/messages.sk.json +1 -1
  4091. package/assets/components/assets/rating/t9n/messages.sl.json +1 -1
  4092. package/assets/components/assets/rating/t9n/messages.sr.json +1 -1
  4093. package/assets/components/assets/rating/t9n/messages.sv.json +1 -1
  4094. package/assets/components/assets/rating/t9n/messages.th.json +1 -1
  4095. package/assets/components/assets/rating/t9n/messages.tr.json +1 -1
  4096. package/assets/components/assets/rating/t9n/messages.uk.json +1 -1
  4097. package/assets/components/assets/rating/t9n/messages.vi.json +1 -1
  4098. package/assets/components/assets/rating/t9n/messages.zh-CN.json +1 -1
  4099. package/assets/components/assets/rating/t9n/messages.zh-HK.json +1 -1
  4100. package/assets/components/assets/rating/t9n/messages.zh-TW.json +1 -1
  4101. package/assets/components/assets/segmented-control/t9n/messages.ar.json +1 -0
  4102. package/assets/components/assets/segmented-control/t9n/messages.bg.json +1 -0
  4103. package/assets/components/assets/segmented-control/t9n/messages.bs.json +1 -0
  4104. package/assets/components/assets/segmented-control/t9n/messages.ca.json +1 -0
  4105. package/assets/components/assets/segmented-control/t9n/messages.cs.json +1 -0
  4106. package/assets/components/assets/segmented-control/t9n/messages.da.json +1 -0
  4107. package/assets/components/assets/segmented-control/t9n/messages.de.json +1 -0
  4108. package/assets/components/assets/segmented-control/t9n/messages.el.json +1 -0
  4109. package/assets/components/assets/segmented-control/t9n/messages.en.json +1 -0
  4110. package/assets/components/assets/segmented-control/t9n/messages.es.json +1 -0
  4111. package/assets/components/assets/segmented-control/t9n/messages.et.json +1 -0
  4112. package/assets/components/assets/segmented-control/t9n/messages.fi.json +1 -0
  4113. package/assets/components/assets/segmented-control/t9n/messages.fr.json +1 -0
  4114. package/assets/components/assets/segmented-control/t9n/messages.he.json +1 -0
  4115. package/assets/components/assets/segmented-control/t9n/messages.hr.json +1 -0
  4116. package/assets/components/assets/segmented-control/t9n/messages.hu.json +1 -0
  4117. package/assets/components/assets/segmented-control/t9n/messages.id.json +1 -0
  4118. package/assets/components/assets/segmented-control/t9n/messages.it.json +1 -0
  4119. package/assets/components/assets/segmented-control/t9n/messages.ja.json +1 -0
  4120. package/assets/components/assets/segmented-control/t9n/messages.json +1 -0
  4121. package/assets/components/assets/segmented-control/t9n/messages.ko.json +1 -0
  4122. package/assets/components/assets/segmented-control/t9n/messages.lt.json +1 -0
  4123. package/assets/components/assets/segmented-control/t9n/messages.lv.json +1 -0
  4124. package/assets/components/assets/segmented-control/t9n/messages.nl.json +1 -0
  4125. package/assets/components/assets/segmented-control/t9n/messages.no.json +1 -0
  4126. package/assets/components/assets/segmented-control/t9n/messages.pl.json +1 -0
  4127. package/assets/components/assets/segmented-control/t9n/messages.pt-BR.json +1 -0
  4128. package/assets/components/assets/segmented-control/t9n/messages.pt-PT.json +1 -0
  4129. package/assets/components/assets/segmented-control/t9n/messages.ro.json +1 -0
  4130. package/assets/components/assets/segmented-control/t9n/messages.ru.json +1 -0
  4131. package/assets/components/assets/segmented-control/t9n/messages.sk.json +1 -0
  4132. package/assets/components/assets/segmented-control/t9n/messages.sl.json +1 -0
  4133. package/assets/components/assets/segmented-control/t9n/messages.sr.json +1 -0
  4134. package/assets/components/assets/segmented-control/t9n/messages.sv.json +1 -0
  4135. package/assets/components/assets/segmented-control/t9n/messages.th.json +1 -0
  4136. package/assets/components/assets/segmented-control/t9n/messages.tr.json +1 -0
  4137. package/assets/components/assets/segmented-control/t9n/messages.uk.json +1 -0
  4138. package/assets/components/assets/segmented-control/t9n/messages.vi.json +1 -0
  4139. package/assets/components/assets/segmented-control/t9n/messages.zh-CN.json +1 -0
  4140. package/assets/components/assets/segmented-control/t9n/messages.zh-HK.json +1 -0
  4141. package/assets/components/assets/segmented-control/t9n/messages.zh-TW.json +1 -0
  4142. package/assets/components/assets/select/t9n/messages.ar.json +1 -0
  4143. package/assets/components/assets/select/t9n/messages.bg.json +1 -0
  4144. package/assets/components/assets/select/t9n/messages.bs.json +1 -0
  4145. package/assets/components/assets/select/t9n/messages.ca.json +1 -0
  4146. package/assets/components/assets/select/t9n/messages.cs.json +1 -0
  4147. package/assets/components/assets/select/t9n/messages.da.json +1 -0
  4148. package/assets/components/assets/select/t9n/messages.de.json +1 -0
  4149. package/assets/components/assets/select/t9n/messages.el.json +1 -0
  4150. package/assets/components/assets/select/t9n/messages.en.json +1 -0
  4151. package/assets/components/assets/select/t9n/messages.es.json +1 -0
  4152. package/assets/components/assets/select/t9n/messages.et.json +1 -0
  4153. package/assets/components/assets/select/t9n/messages.fi.json +1 -0
  4154. package/assets/components/assets/select/t9n/messages.fr.json +1 -0
  4155. package/assets/components/assets/select/t9n/messages.he.json +1 -0
  4156. package/assets/components/assets/select/t9n/messages.hr.json +1 -0
  4157. package/assets/components/assets/select/t9n/messages.hu.json +1 -0
  4158. package/assets/components/assets/select/t9n/messages.id.json +1 -0
  4159. package/assets/components/assets/select/t9n/messages.it.json +1 -0
  4160. package/assets/components/assets/select/t9n/messages.ja.json +1 -0
  4161. package/assets/components/assets/select/t9n/messages.json +1 -0
  4162. package/assets/components/assets/select/t9n/messages.ko.json +1 -0
  4163. package/assets/components/assets/select/t9n/messages.lt.json +1 -0
  4164. package/assets/components/assets/select/t9n/messages.lv.json +1 -0
  4165. package/assets/components/assets/select/t9n/messages.nl.json +1 -0
  4166. package/assets/components/assets/select/t9n/messages.no.json +1 -0
  4167. package/assets/components/assets/select/t9n/messages.pl.json +1 -0
  4168. package/assets/components/assets/select/t9n/messages.pt-BR.json +1 -0
  4169. package/assets/components/assets/select/t9n/messages.pt-PT.json +1 -0
  4170. package/assets/components/assets/select/t9n/messages.ro.json +1 -0
  4171. package/assets/components/assets/select/t9n/messages.ru.json +1 -0
  4172. package/assets/components/assets/select/t9n/messages.sk.json +1 -0
  4173. package/assets/components/assets/select/t9n/messages.sl.json +1 -0
  4174. package/assets/components/assets/select/t9n/messages.sr.json +1 -0
  4175. package/assets/components/assets/select/t9n/messages.sv.json +1 -0
  4176. package/assets/components/assets/select/t9n/messages.th.json +1 -0
  4177. package/assets/components/assets/select/t9n/messages.tr.json +1 -0
  4178. package/assets/components/assets/select/t9n/messages.uk.json +1 -0
  4179. package/assets/components/assets/select/t9n/messages.vi.json +1 -0
  4180. package/assets/components/assets/select/t9n/messages.zh-CN.json +1 -0
  4181. package/assets/components/assets/select/t9n/messages.zh-HK.json +1 -0
  4182. package/assets/components/assets/select/t9n/messages.zh-TW.json +1 -0
  4183. package/assets/components/assets/slider/t9n/messages.ar.json +1 -0
  4184. package/assets/components/assets/slider/t9n/messages.bg.json +1 -0
  4185. package/assets/components/assets/slider/t9n/messages.bs.json +1 -0
  4186. package/assets/components/assets/slider/t9n/messages.ca.json +1 -0
  4187. package/assets/components/assets/slider/t9n/messages.cs.json +1 -0
  4188. package/assets/components/assets/slider/t9n/messages.da.json +1 -0
  4189. package/assets/components/assets/slider/t9n/messages.de.json +1 -0
  4190. package/assets/components/assets/slider/t9n/messages.el.json +1 -0
  4191. package/assets/components/assets/slider/t9n/messages.en.json +1 -0
  4192. package/assets/components/assets/slider/t9n/messages.es.json +1 -0
  4193. package/assets/components/assets/slider/t9n/messages.et.json +1 -0
  4194. package/assets/components/assets/slider/t9n/messages.fi.json +1 -0
  4195. package/assets/components/assets/slider/t9n/messages.fr.json +1 -0
  4196. package/assets/components/assets/slider/t9n/messages.he.json +1 -0
  4197. package/assets/components/assets/slider/t9n/messages.hr.json +1 -0
  4198. package/assets/components/assets/slider/t9n/messages.hu.json +1 -0
  4199. package/assets/components/assets/slider/t9n/messages.id.json +1 -0
  4200. package/assets/components/assets/slider/t9n/messages.it.json +1 -0
  4201. package/assets/components/assets/slider/t9n/messages.ja.json +1 -0
  4202. package/assets/components/assets/slider/t9n/messages.json +1 -0
  4203. package/assets/components/assets/slider/t9n/messages.ko.json +1 -0
  4204. package/assets/components/assets/slider/t9n/messages.lt.json +1 -0
  4205. package/assets/components/assets/slider/t9n/messages.lv.json +1 -0
  4206. package/assets/components/assets/slider/t9n/messages.nl.json +1 -0
  4207. package/assets/components/assets/slider/t9n/messages.no.json +1 -0
  4208. package/assets/components/assets/slider/t9n/messages.pl.json +1 -0
  4209. package/assets/components/assets/slider/t9n/messages.pt-BR.json +1 -0
  4210. package/assets/components/assets/slider/t9n/messages.pt-PT.json +1 -0
  4211. package/assets/components/assets/slider/t9n/messages.ro.json +1 -0
  4212. package/assets/components/assets/slider/t9n/messages.ru.json +1 -0
  4213. package/assets/components/assets/slider/t9n/messages.sk.json +1 -0
  4214. package/assets/components/assets/slider/t9n/messages.sl.json +1 -0
  4215. package/assets/components/assets/slider/t9n/messages.sr.json +1 -0
  4216. package/assets/components/assets/slider/t9n/messages.sv.json +1 -0
  4217. package/assets/components/assets/slider/t9n/messages.th.json +1 -0
  4218. package/assets/components/assets/slider/t9n/messages.tr.json +1 -0
  4219. package/assets/components/assets/slider/t9n/messages.uk.json +1 -0
  4220. package/assets/components/assets/slider/t9n/messages.vi.json +1 -0
  4221. package/assets/components/assets/slider/t9n/messages.zh-CN.json +1 -0
  4222. package/assets/components/assets/slider/t9n/messages.zh-HK.json +1 -0
  4223. package/assets/components/assets/slider/t9n/messages.zh-TW.json +1 -0
  4224. package/assets/components/assets/sort-handle/t9n/messages.ar.json +1 -1
  4225. package/assets/components/assets/sort-handle/t9n/messages.bg.json +1 -1
  4226. package/assets/components/assets/sort-handle/t9n/messages.bs.json +1 -1
  4227. package/assets/components/assets/sort-handle/t9n/messages.ca.json +1 -1
  4228. package/assets/components/assets/sort-handle/t9n/messages.cs.json +1 -1
  4229. package/assets/components/assets/sort-handle/t9n/messages.da.json +1 -1
  4230. package/assets/components/assets/sort-handle/t9n/messages.de.json +1 -1
  4231. package/assets/components/assets/sort-handle/t9n/messages.el.json +1 -1
  4232. package/assets/components/assets/sort-handle/t9n/messages.en.json +1 -1
  4233. package/assets/components/assets/sort-handle/t9n/messages.es.json +1 -1
  4234. package/assets/components/assets/sort-handle/t9n/messages.et.json +1 -1
  4235. package/assets/components/assets/sort-handle/t9n/messages.fi.json +1 -1
  4236. package/assets/components/assets/sort-handle/t9n/messages.fr.json +1 -1
  4237. package/assets/components/assets/sort-handle/t9n/messages.he.json +1 -1
  4238. package/assets/components/assets/sort-handle/t9n/messages.hr.json +1 -1
  4239. package/assets/components/assets/sort-handle/t9n/messages.hu.json +1 -1
  4240. package/assets/components/assets/sort-handle/t9n/messages.id.json +1 -1
  4241. package/assets/components/assets/sort-handle/t9n/messages.it.json +1 -1
  4242. package/assets/components/assets/sort-handle/t9n/messages.ja.json +1 -1
  4243. package/assets/components/assets/sort-handle/t9n/messages.json +1 -1
  4244. package/assets/components/assets/sort-handle/t9n/messages.ko.json +1 -1
  4245. package/assets/components/assets/sort-handle/t9n/messages.lt.json +1 -1
  4246. package/assets/components/assets/sort-handle/t9n/messages.lv.json +1 -1
  4247. package/assets/components/assets/sort-handle/t9n/messages.nl.json +1 -1
  4248. package/assets/components/assets/sort-handle/t9n/messages.no.json +1 -1
  4249. package/assets/components/assets/sort-handle/t9n/messages.pl.json +1 -1
  4250. package/assets/components/assets/sort-handle/t9n/messages.pt-BR.json +1 -1
  4251. package/assets/components/assets/sort-handle/t9n/messages.pt-PT.json +1 -1
  4252. package/assets/components/assets/sort-handle/t9n/messages.ro.json +1 -1
  4253. package/assets/components/assets/sort-handle/t9n/messages.ru.json +1 -1
  4254. package/assets/components/assets/sort-handle/t9n/messages.sk.json +1 -1
  4255. package/assets/components/assets/sort-handle/t9n/messages.sl.json +1 -1
  4256. package/assets/components/assets/sort-handle/t9n/messages.sr.json +1 -1
  4257. package/assets/components/assets/sort-handle/t9n/messages.sv.json +1 -1
  4258. package/assets/components/assets/sort-handle/t9n/messages.th.json +1 -1
  4259. package/assets/components/assets/sort-handle/t9n/messages.tr.json +1 -1
  4260. package/assets/components/assets/sort-handle/t9n/messages.uk.json +1 -1
  4261. package/assets/components/assets/sort-handle/t9n/messages.vi.json +1 -1
  4262. package/assets/components/assets/sort-handle/t9n/messages.zh-CN.json +1 -1
  4263. package/assets/components/assets/sort-handle/t9n/messages.zh-HK.json +1 -1
  4264. package/assets/components/assets/sort-handle/t9n/messages.zh-TW.json +1 -1
  4265. package/assets/components/assets/text-area/t9n/messages.ar.json +1 -1
  4266. package/assets/components/assets/text-area/t9n/messages.bg.json +1 -1
  4267. package/assets/components/assets/text-area/t9n/messages.bs.json +1 -1
  4268. package/assets/components/assets/text-area/t9n/messages.ca.json +1 -1
  4269. package/assets/components/assets/text-area/t9n/messages.cs.json +1 -1
  4270. package/assets/components/assets/text-area/t9n/messages.da.json +1 -1
  4271. package/assets/components/assets/text-area/t9n/messages.de.json +1 -1
  4272. package/assets/components/assets/text-area/t9n/messages.el.json +1 -1
  4273. package/assets/components/assets/text-area/t9n/messages.en.json +1 -1
  4274. package/assets/components/assets/text-area/t9n/messages.es.json +1 -1
  4275. package/assets/components/assets/text-area/t9n/messages.et.json +1 -1
  4276. package/assets/components/assets/text-area/t9n/messages.fi.json +1 -1
  4277. package/assets/components/assets/text-area/t9n/messages.fr.json +1 -1
  4278. package/assets/components/assets/text-area/t9n/messages.he.json +1 -1
  4279. package/assets/components/assets/text-area/t9n/messages.hr.json +1 -1
  4280. package/assets/components/assets/text-area/t9n/messages.hu.json +1 -1
  4281. package/assets/components/assets/text-area/t9n/messages.id.json +1 -1
  4282. package/assets/components/assets/text-area/t9n/messages.it.json +1 -1
  4283. package/assets/components/assets/text-area/t9n/messages.ja.json +1 -1
  4284. package/assets/components/assets/text-area/t9n/messages.json +1 -1
  4285. package/assets/components/assets/text-area/t9n/messages.ko.json +1 -1
  4286. package/assets/components/assets/text-area/t9n/messages.lt.json +1 -1
  4287. package/assets/components/assets/text-area/t9n/messages.lv.json +1 -1
  4288. package/assets/components/assets/text-area/t9n/messages.nl.json +1 -1
  4289. package/assets/components/assets/text-area/t9n/messages.no.json +1 -1
  4290. package/assets/components/assets/text-area/t9n/messages.pl.json +1 -1
  4291. package/assets/components/assets/text-area/t9n/messages.pt-BR.json +1 -1
  4292. package/assets/components/assets/text-area/t9n/messages.pt-PT.json +1 -1
  4293. package/assets/components/assets/text-area/t9n/messages.ro.json +1 -1
  4294. package/assets/components/assets/text-area/t9n/messages.ru.json +1 -1
  4295. package/assets/components/assets/text-area/t9n/messages.sk.json +1 -1
  4296. package/assets/components/assets/text-area/t9n/messages.sl.json +1 -1
  4297. package/assets/components/assets/text-area/t9n/messages.sr.json +1 -1
  4298. package/assets/components/assets/text-area/t9n/messages.sv.json +1 -1
  4299. package/assets/components/assets/text-area/t9n/messages.th.json +1 -1
  4300. package/assets/components/assets/text-area/t9n/messages.tr.json +1 -1
  4301. package/assets/components/assets/text-area/t9n/messages.uk.json +1 -1
  4302. package/assets/components/assets/text-area/t9n/messages.vi.json +1 -1
  4303. package/assets/components/assets/text-area/t9n/messages.zh-CN.json +1 -1
  4304. package/assets/components/assets/text-area/t9n/messages.zh-HK.json +1 -1
  4305. package/assets/components/assets/text-area/t9n/messages.zh-TW.json +1 -1
  4306. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4307. package/assets/esri/core/workers/chunks/{f7e9cbd54154341bd2de.js → 03fac1122eb73bb14d2d.js} +1 -1
  4308. package/assets/esri/core/workers/chunks/{5303d77a3ab1b7ddeef3.js → 0434a490326c0de47c22.js} +1 -1
  4309. package/assets/esri/core/workers/chunks/0751f539db31bdb5caec.js +1 -0
  4310. package/assets/esri/core/workers/chunks/{0eb728cee6e40cb30c01.js → 18641332bee3e9b9c44a.js} +1 -1
  4311. package/assets/esri/core/workers/chunks/{d44f3ee27e142e0c3030.js → 19228ab0fe7944c554e5.js} +1 -1
  4312. package/assets/esri/core/workers/chunks/22a66db7d73e733917e3.js +1 -0
  4313. package/assets/esri/core/workers/chunks/{04e652df94790f5ca08a.js → 2845a0810e9c00bf30f8.js} +1 -1
  4314. package/assets/esri/core/workers/chunks/{f9385d7fb5ff20f7b252.js → 2a19a4d7d1c580121065.js} +1 -1
  4315. package/assets/esri/core/workers/chunks/2afafaf40293d5ab1d8e.js +1 -0
  4316. package/assets/esri/core/workers/chunks/{c94c797864a85342b105.js → 38e7d1c6987aaa9b520b.js} +1 -1
  4317. package/assets/esri/core/workers/chunks/{bce41b41431a7daed33c.js → 3e9c3e7c5cf7c0afbc80.js} +1 -1
  4318. package/assets/esri/core/workers/chunks/459a67928bde4a62b6a4.js +1 -0
  4319. package/assets/esri/core/workers/chunks/49f7a5523462aebf90fc.js +2 -0
  4320. package/assets/esri/core/workers/chunks/{30776f451c778fa6e043.js.LICENSE.txt → 49f7a5523462aebf90fc.js.LICENSE.txt} +1 -1
  4321. package/assets/esri/core/workers/chunks/5477ff0ce432c9e5b3ab.js +1 -0
  4322. package/assets/esri/core/workers/chunks/5a476e6743902e35f81a.js +2 -0
  4323. package/assets/esri/core/workers/chunks/{d7056ce482aca45dadbd.js.LICENSE.txt → 5a476e6743902e35f81a.js.LICENSE.txt} +1 -1
  4324. package/assets/esri/core/workers/chunks/5c30252c1bb8350cae5f.js +1 -0
  4325. package/assets/esri/core/workers/chunks/5c53deb45bc142219c76.js +2 -0
  4326. package/assets/esri/core/workers/chunks/5c53deb45bc142219c76.js.LICENSE.txt +3 -0
  4327. package/assets/esri/core/workers/chunks/626c18c1bbc50b3b16b2.js +2 -0
  4328. package/assets/esri/core/workers/chunks/{72bde3290ad2e1a11d9b.js.LICENSE.txt → 626c18c1bbc50b3b16b2.js.LICENSE.txt} +1 -1
  4329. package/assets/esri/core/workers/chunks/67d9cfe02613cb73ee37.js +2 -0
  4330. package/assets/esri/core/workers/chunks/{26c5675093820b485106.js.LICENSE.txt → 67d9cfe02613cb73ee37.js.LICENSE.txt} +1 -1
  4331. package/assets/esri/core/workers/chunks/6da298da2ec09cced0b5.js +1 -0
  4332. package/assets/esri/core/workers/chunks/7219ceab0b6fae2e69b6.js +2 -0
  4333. package/assets/esri/core/workers/chunks/7219ceab0b6fae2e69b6.js.LICENSE.txt +3 -0
  4334. package/assets/esri/core/workers/chunks/76ec3d2646ba64e3442f.js +1 -0
  4335. package/assets/esri/core/workers/chunks/{643acb12ec6a1d4b4fbb.js → 79968c183135281d2a6f.js} +1 -1
  4336. package/assets/esri/core/workers/chunks/{f51c1420c9243d550c9d.js → 8b1d2bbb2b2eb1830921.js} +1 -1
  4337. package/assets/esri/core/workers/chunks/8d642b34d40edfe02d8e.js +2 -0
  4338. package/assets/esri/core/workers/chunks/{d1aeb9fe9eb573beefcc.js.LICENSE.txt → 8d642b34d40edfe02d8e.js.LICENSE.txt} +1 -1
  4339. package/assets/esri/core/workers/chunks/{e47acdb1fbf797342716.js → 8fc13e0e1a5a8f3e4798.js} +1 -1
  4340. package/assets/esri/core/workers/chunks/90321feb56f3a84f6e58.js +2 -0
  4341. package/assets/esri/core/workers/chunks/{c9c109d43a1e5160955d.js.LICENSE.txt → 90321feb56f3a84f6e58.js.LICENSE.txt} +1 -1
  4342. package/assets/esri/core/workers/chunks/{c427516421edf56e7776.js → 92d5b0559e128d62fbda.js} +1 -1
  4343. package/assets/esri/core/workers/chunks/9e3164bf8872d7b1b191.js +1 -0
  4344. package/assets/esri/core/workers/chunks/9e47f680b66320dcfd34.js +1 -0
  4345. package/assets/esri/core/workers/chunks/{37d7c249114994a7dfac.js → a0a519f498e9ea7623ff.js} +1 -1
  4346. package/assets/esri/core/workers/chunks/a48f980c1531805db73b.js +1 -0
  4347. package/assets/esri/core/workers/chunks/{1e86df439c564fe752e3.js → b0de01f8c9b1c3182e0c.js} +1 -1
  4348. package/assets/esri/core/workers/chunks/{8ce653c3c5dde10ccbcf.js → b5f197e24982f6e14468.js} +2 -2
  4349. package/assets/esri/core/workers/chunks/{0cbd5335cc92f5891bcf.js → bd4e64d6e73cd4db9695.js} +1 -1
  4350. package/assets/esri/core/workers/chunks/d12f373fcf5848ddcd8a.js +1 -0
  4351. package/assets/esri/core/workers/chunks/{e2384a1079a4722c41dd.js → d305ca524837c5dc81c8.js} +1 -1
  4352. package/assets/esri/core/workers/chunks/{4aa98309081e6889ccbb.js → e086b835a98b71a46825.js} +1 -1
  4353. package/assets/esri/core/workers/chunks/{fe475b1ecdefecfcd541.js → e54df2128039425a9090.js} +1 -1
  4354. package/assets/esri/core/workers/chunks/f7f5c4f30e5a0ddbf9a4.js +1 -0
  4355. package/assets/esri/core/workers/chunks/{605acf18cbeb89e4f29f.js → fe24c6d61a50898549a5.js} +1 -1
  4356. package/assets/esri/core/workers/chunks/{f636ca5c811c3a2a962f.js → fec572f03f9514244972.js} +1 -1
  4357. package/assets/esri/core/workers/chunks/ff3fe5c97a98c8cab4ac.js +2 -0
  4358. package/assets/esri/core/workers/chunks/{4fda6e90822bc0198b28.js.LICENSE.txt → ff3fe5c97a98c8cab4ac.js.LICENSE.txt} +1 -7
  4359. package/assets/esri/themes/dark/main.css +1 -1
  4360. package/assets/esri/themes/light/main.css +1 -1
  4361. package/assets/esri/themes/light/view.css +1 -1
  4362. package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
  4363. package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
  4364. package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
  4365. package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
  4366. package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
  4367. package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
  4368. package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
  4369. package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
  4370. package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
  4371. package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
  4372. package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
  4373. package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
  4374. package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
  4375. package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
  4376. package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
  4377. package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
  4378. package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
  4379. package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
  4380. package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
  4381. package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
  4382. package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
  4383. package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
  4384. package/assets/esri/widgets/Sketch/t9n/Sketch_no.json +1 -1
  4385. package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
  4386. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
  4387. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
  4388. package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
  4389. package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
  4390. package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
  4391. package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
  4392. package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
  4393. package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
  4394. package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
  4395. package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
  4396. package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
  4397. package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
  4398. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
  4399. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
  4400. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
  4401. package/chunks/array.js +1 -1
  4402. package/config.js +1 -1
  4403. package/core/MultiOriginJSONSupport.js +1 -1
  4404. package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
  4405. package/geometry/operators/offsetOperator.js +1 -1
  4406. package/interfaces.d.ts +73 -11
  4407. package/kernel.js +1 -1
  4408. package/layers/ImageryLayer.js +1 -1
  4409. package/layers/ImageryTileLayer.js +1 -1
  4410. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  4411. package/layers/OrientedImageryLayer.js +1 -1
  4412. package/layers/VoxelWasmPerSceneView.js +1 -1
  4413. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  4414. package/layers/orientedImagery/core/utils.js +1 -1
  4415. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  4416. package/layers/support/ElevationQuery.js +1 -1
  4417. package/layers/support/ElevationSampler.js +1 -1
  4418. package/layers/support/GeometryDescriptor.js +5 -0
  4419. package/layers/support/gaussianSplatUtils.js +1 -1
  4420. package/layers/support/layerUtils.js +1 -1
  4421. package/layers/video/VideoController.js +1 -1
  4422. package/package.json +2 -2
  4423. package/portal/Portal.js +1 -1
  4424. package/support/revision.js +1 -1
  4425. package/undoredo/support/Services.js +1 -1
  4426. package/views/3d/analysis/ElevationProfile/ElevationProfileInputVisualization3D.js +1 -1
  4427. package/views/3d/analysis/ElevationProfile/ElevationProfileSceneLineComputation.js +1 -1
  4428. package/views/3d/environment/EnvironmentManager.js +1 -1
  4429. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  4430. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  4431. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  4432. package/views/3d/layers/FlowSubView3D.js +1 -1
  4433. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  4434. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  4435. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  4436. package/views/3d/layers/SceneLayerView3D.js +1 -1
  4437. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  4438. package/views/3d/layers/graphics/pipeline/rendering/DirectRenderer.js +1 -1
  4439. package/views/3d/layers/i3s/I3SFrameTask.js +1 -1
  4440. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  4441. package/views/3d/layers/i3s/Intersector.js +1 -1
  4442. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  4443. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  4444. package/views/3d/state/ViewStateManager.js +1 -1
  4445. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  4446. package/views/3d/support/CombinedElevationProvider.js +1 -1
  4447. package/views/3d/support/ViewSlice.js +1 -1
  4448. package/views/3d/support/cameraUtils.js +1 -1
  4449. package/views/3d/support/hitTest.js +1 -1
  4450. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  4451. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  4452. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  4453. package/views/3d/terrain/Intersector.js +1 -1
  4454. package/views/3d/terrain/TerrainRenderer.js +1 -1
  4455. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +1 -1
  4456. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  4457. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  4458. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  4459. package/views/3d/webgl-engine/lib/IntersectorResult.js +1 -1
  4460. package/views/3d/webgl-engine/lib/ObjectIntersectorResult.js +1 -1
  4461. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  4462. package/views/3d/webgl-engine/lib/lodRendering/Intersector.js +1 -1
  4463. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  4464. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  4465. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +3 -3
  4466. package/views/GroundView.js +1 -1
  4467. package/views/SceneView.js +1 -1
  4468. package/views/View2D.js +1 -1
  4469. package/views/analysis/ElevationProfile/ElevationProfileInputLineComputation.js +1 -1
  4470. package/views/analysis/ElevationProfile/constants.js +1 -1
  4471. package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
  4472. package/views/input/gamepad/GamepadSettings.js +1 -1
  4473. package/views/support/GroundElevationSampler.js +5 -0
  4474. package/views/support/GroundViewElevationSampler.js +1 -1
  4475. package/views/support/IntegratedMeshElevationSampler.js +5 -0
  4476. package/views/webgl/ShaderBuilder.js +1 -1
  4477. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  4478. package/widgets/Editor/Upload.js +1 -1
  4479. package/widgets/ElevationProfile/ElevationProfileLineInput.js +1 -1
  4480. package/widgets/ElevationProfile/ElevationProfileLineView.js +1 -1
  4481. package/widgets/Legend/LegendViewModel.js +1 -1
  4482. package/widgets/Legend/styles/card/LegendElement.js +1 -1
  4483. package/widgets/Legend/styles/classic/ColorRamp.js +1 -1
  4484. package/widgets/Legend/styles/classic/LegendElement.js +1 -1
  4485. package/widgets/Legend/styles/support/utils.js +1 -1
  4486. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  4487. package/widgets/Legend/support/utils.js +1 -1
  4488. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  4489. package/assets/esri/core/workers/chunks/0814676e4bac81f96140.js +0 -1
  4490. package/assets/esri/core/workers/chunks/1ada9e6cdd6792e3847a.js +0 -1
  4491. package/assets/esri/core/workers/chunks/26c5675093820b485106.js +0 -2
  4492. package/assets/esri/core/workers/chunks/30776f451c778fa6e043.js +0 -2
  4493. package/assets/esri/core/workers/chunks/3a7ac10a6614fe5745f7.js +0 -1
  4494. package/assets/esri/core/workers/chunks/4a5092e27e6f294ea888.js +0 -1
  4495. package/assets/esri/core/workers/chunks/4d33eec23ad6dbd6a0f0.js +0 -1
  4496. package/assets/esri/core/workers/chunks/4fda6e90822bc0198b28.js +0 -2
  4497. package/assets/esri/core/workers/chunks/57486b18421a3c9690d0.js +0 -1
  4498. package/assets/esri/core/workers/chunks/65eb183b5d001dfc42c8.js +0 -1
  4499. package/assets/esri/core/workers/chunks/72bde3290ad2e1a11d9b.js +0 -2
  4500. package/assets/esri/core/workers/chunks/80dc4c6c549d3711af5c.js +0 -1
  4501. package/assets/esri/core/workers/chunks/b683b0fa7fc430b4d9c5.js +0 -1
  4502. package/assets/esri/core/workers/chunks/be9edd9791a00cab9c2b.js +0 -1
  4503. package/assets/esri/core/workers/chunks/c9c109d43a1e5160955d.js +0 -2
  4504. package/assets/esri/core/workers/chunks/cd58b40a8105be758c0e.js +0 -1
  4505. package/assets/esri/core/workers/chunks/d1aeb9fe9eb573beefcc.js +0 -2
  4506. package/assets/esri/core/workers/chunks/d35cadfb78ac9803069b.js +0 -1
  4507. package/assets/esri/core/workers/chunks/d7056ce482aca45dadbd.js +0 -2
  4508. package/assets/esri/core/workers/chunks/f912fca8c875eb1a27f2.js +0 -2
  4509. package/assets/esri/core/workers/chunks/f912fca8c875eb1a27f2.js.LICENSE.txt +0 -15
  4510. package/assets/esri/core/workers/chunks/ff7962063d132c1ec814.js +0 -1
  4511. package/chunks/offsetOperator.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7732],{4146:(e,t,i)=>{i.d(t,{A:()=>v});var s=i(31635),r=i(78888),n=i(49186),a=i(65529),o=i(4902),l=i(92474),u=i(53966),c=i(74887),h=i(84952),d=i(10107),p=(i(44208),i(87811),i(40608)),m=i(5443),g=i(16930),f=i(92602),y=i(79677);let _=0,v=class extends((0,a.Zt)((0,o.sA)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+_++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:s}=await i.e(5613).then(i.bind(i,45613));try{return await s(t)}catch(e){const i=t?.portalItem,s=i?.id||"unset",r=i?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"groundLayers"in e&&e.groundLayers.includes(t)?e.groundLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,s.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,s.Cg)([(0,d.MZ)({type:m.A})],v.prototype,"fullExtent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,s.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,s.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,s.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"spatialReference",void 0),(0,s.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,s.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,s.Cg)([(0,d.MZ)({type:y.A})],v.prototype,"visibilityTimeExtent",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,s.Cg)([(0,p.$)("esri.layers.Layer")],v)},4197:(e,t,i)=>{i.d(t,{Vj:()=>u,cj:()=>l,jh:()=>n,l5:()=>o,xm:()=>a});var s=i(34275),r=i(9093);function n(e){return e<=s.y9?new Array(e).fill(0):new Float64Array(e)}function a(e){return((0,s.iu)(e)?e.byteLength/8:e.length)<=s.y9?Array.from(e):new Float64Array(e)}function o(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function l(e){return[...e]}function u(e){const t=(0,r.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},4902:(e,t,i)=>{i.d(t,{PH:()=>o,sA:()=>a});var s=i(31635),r=i(40608);let n=0;const a=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return i=(0,s.Cg)([(0,r.$)("esri.core.Identifiable")],i),i},o=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return i=(0,s.Cg)([(0,r.$)("esri.core.Identifiable.NumericIdentifiable")],i),i};a(class{})},8303:(e,t,i)=>{i.d(t,{A:()=>S});var s=i(31635),r=i(92602),n=i(70333),a=i(78888),o=i(60999),l=i(49186),u=i(53966),c=i(97768),h=i(74887),d=i(84952),p=i(10107),m=(i(44208),i(87811),i(36005)),g=i(40608),f=i(43937),y=i(77548),_=i(20655),v=i(80812),b=i(41318),T=i(10407);const S=e=>{const t=e;let S=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new v.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:s}=await i.e(1204).then(i.bind(i,41204));return(0,h.Te)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:s},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=!n.id?.findCredential(this.url),r=e===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,s);let a,o;if(r)a=i.portal.url;else try{a=await(0,y.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!a||!(0,d.b8)(a,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(n.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,u=!1,c=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(r?await i.reload():(i=new v.default({id:e,portal:{url:a}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,s)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,T.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const s=`${i.owningSystemUrl}/sharing/rest`,r=_.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(s))return r.user;const l=`${s}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,s=this.portalItem?.id&&(this.portalItem.portal||_.A.getDefault());return i&&s&&!(0,d.ut)(s.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s.Cg)([(0,p.MZ)({type:v.default})],S.prototype,"portalItem",null),(0,s.Cg)([(0,m.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,s.Cg)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,s.Cg)([(0,p.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,s.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],S),S},w={credential:null,user:null}},9093:(e,t,i)=>{function s(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>s,zK:()=>n});const n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:r,create:s,fromValues:function(e,t,i,s,r,n,a,o,l,u,c,h,d,p,m,g){return[e,t,i,s,r,n,a,o,l,u,c,h,d,p,m,g]}},Symbol.toStringTag,{value:"Module"}))},11053:(e,t,i)=>{i.d(t,{c:()=>s,g:()=>r});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},18768:(e,t,i)=>{i.d(t,{b:()=>l});var s=i(31635),r=i(53966),n=i(10107),a=(i(44208),i(87811),i(40608)),o=i(60694);const l=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,r.A.getLogger(this)))}};return(0,s.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,s.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,s.Cg)([(0,a.$)("esri.layers.mixins.ArcGISService")],i),i}},20557:(e,t,i)=>{i.d(t,{Fm:()=>l,Hz:()=>p,JQ:()=>d,JZ:()=>b,ND:()=>g,R_:()=>a,U9:()=>h,fu:()=>r,nr:()=>m,oF:()=>n,rq:()=>u,z$:()=>c});const s=[["binary","application/octet-stream","bin",""]];function r(e,t){return null!=y(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const i=u(t,e.supportedFormats??[]);return null!=i&&e.editFormats.includes(i)}function a(e,t){return _(function(e,t){const i=e.toLowerCase();return f(t).find(e=>v(e)===i)}(e,t))}function o(e,t){return _(y(e,t))}function l(e,t){return v(function(e,t){return f(t).find(t=>_(t)===e)}(e,t))}function u(e,t){return o(e.name,t)??a(e.type,t)}function c(e,t,i){return a(e,i)??o(t,i)}function h({supportedFormats:e}){return c("model/gltf-binary","glb",e)}function d(e){const t=h(e);return null!=t&&e.editFormats.includes(t)}function p(e){if(!e)return null;const t=h(e),i=function({supportedFormats:e}){return c("model/gltf+json","gltf",e)}(e);let s=null;for(const r of e.queryFormats){if(r===t)return r;r===i&&(s=r)}return s}function m({supportedFormats:e}){return c("application/esri3do-SR_world","wld",e)}function g({supportedFormats:e}){return c("application/esri3do-SR_prj","prj",e)}function f(e){return[...s,...e]}function y(e,t){const i=e.toLowerCase();return f(t).find(e=>function(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}(e).some(e=>i.endsWith(e)))}function _(e){return e?.[0]}function v(e){return e?.[1].toLowerCase()}function b(e){return e.tables?.find(e=>"assetMaps"===e.role)}},22453:(e,t,i)=>{i.d(t,{S:()=>m,d:()=>E});var s=i(44208),r=i(60694),n=i(20557);function a(e,t,i){return!!l(e,t,i)}function o(e,t,i){return l(e,t,i)}function l(e,t,i){return e&&e.hasOwnProperty(t)?e[t]:i}const u={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function c(e){const t=e?.supportedSpatialAggregationStatistics?.map(e=>e.toLowerCase());return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function h(e,t){const i=e?.supportedOperationsWithCacheHint?.map(e=>e.toLowerCase());return!!i?.includes(t.toLowerCase())}function d(e){const t=e?.supportedStatisticTypes?.map(e=>e.toLowerCase());return{count:!!t?.includes("count"),sum:!!t?.includes("sum"),min:!!t?.includes("min"),max:!!t?.includes("max"),avg:!!t?.includes("avg"),var:!!t?.includes("var"),stddev:!!t?.includes("stddev"),percentileContinuous:!!t?.includes("percentile_cont"),percentileDiscrete:!!t?.includes("percentile_disc"),envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function p(e){const t=e?.supportedNormalizationTypes?.map(e=>e.toLowerCase());return{field:!!t?.includes("field"),log:!!t?.includes("log"),naturalLog:!!t?.includes("naturallog"),percentOfTotal:!!t?.includes("percentoftotal"),squareRoot:!!t?.includes("squareroot")}}function m(e,t){return{analytics:g(e),attachment:f(e),data:y(e),metadata:_(e),operations:v(e.capabilities,e,t),query:b(e,t),queryAttributeBins:w(e),queryRelated:T(e),queryTopFeatures:S(e),editing:C(e)}}function g(e){return{supportsCacheHint:h(e.advancedQueryCapabilities,"queryAnalytics")}}function f(e){const t=e.attachmentProperties,i={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:h(e.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:a(e.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:a(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach(e=>{const t=u[e.name];t&&(i[t]=!!e.isEnabled)}),i}function y(e){return{isVersioned:a(e,"isDataVersioned",!1),isBranchVersioned:a(e,"isDataBranchVersioned",!1),supportsAttachment:a(e,"hasAttachments",!1),supportsM:a(e,"hasM",!1),supportsZ:a(e,"hasZ",!1)}}function _(e){return{supportsAdvancedFieldProperties:a(e,"supportsFieldDescriptionProperty",!1)}}function v(e,t,i){const s=e?.toLowerCase().split(",").map(e=>e.trim())??[],n=i?(0,r.qg)(i):null,o=s.includes("MapServer"===n?.serverType?"data":"query"),l=s.includes("editing")&&!t.datesInUnknownTimezone&&!(!0===t.uniqueIdInfo?.OIDFieldContainsHashValue);let u=l&&s.includes("create"),c=l&&s.includes("delete"),h=l&&s.includes("update");const d=s.includes("changetracking"),p=t.advancedQueryCapabilities;return l&&!(u||c||h)&&(u=c=h=!0),{supportsCalculate:a(t,"supportsCalculate",!1),supportsTruncate:a(t,"supportsTruncate",!1),supportsValidateSql:a(t,"supportsValidateSql",!1),supportsAdd:u,supportsDelete:c,supportsEditing:l,supportsChangeTracking:d,supportsQuery:o,supportsQueryAnalytics:a(p,"supportsQueryAnalytic",!1),supportsQueryAttachments:a(p,"supportsQueryAttachments",!1),supportsQueryBins:a(p,"supportsQueryBins",!1)||!!t.queryBinsCapabilities,supportsQueryTopFeatures:a(p,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:a(t,"supportsAttachmentsResizing",!1),supportsSync:s.includes("sync"),supportsUpdate:h,supportsExceedsLimitStatistics:a(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:a(t,"supportsAsyncConvert3D",!1)}}function b(e,t){const i=e.advancedQueryCapabilities,l=e.ownershipBasedAccessControlForFeatures,u=e.archivingInfo,d=e.currentVersion,p=t?.includes("MapServer"),m=!p||d>=(0,s.A)("mapserver-pbf-version-support"),g=(0,r.Wo)(t),f=new Set((e.supportedQueryFormats??"").split(",").map(e=>e.toLowerCase().trim()));return{maxRecordCount:o(e,"maxRecordCount",void 0),maxRecordCountFactor:o(e,"maxRecordCountFactor",void 0),maxUniqueIDCount:o(e,"maxUniqueIDCount",void 0),standardMaxRecordCount:o(e,"standardMaxRecordCount",void 0),supportedSpatialAggregationStatistics:c(i),supportsCacheHint:a(i,"supportsQueryWithCacheHint",!1)||h(i,"query"),supportsCentroid:a(i,"supportsReturningGeometryCentroid",!1),supportsCentroidOnDegeneratedQuantizedGeometry:g||null==t,supportsCompactGeometry:g,supportsCurrentUser:a(i,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:a(i,"supportsDefaultSR",!1),supportsDegeneratedQuantizedGeometry:a(i,"supportsDegeneratedQuantizedGeometry",!1),supportsDisjointSpatialRelationship:a(i,"supportsDisjointSpatialRel",!1),supportsDistance:a(i,"supportsQueryWithDistance",!1),supportsDistinct:a(i,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:a(i,"supportsReturningQueryExtent",!1),supportsFormatPBF:m&&f.has("pbf"),supportsFullTextSearch:a(i,"supportsFullTextSearch",!1),supportsGeometryProperties:a(i,"supportsReturningGeometryProperties",!1),supportsHavingClause:a(i,"supportsHavingClause",!1),supportsHistoricMoment:a(u,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:a(i,"supportsMaxRecordCountFactor",!1),supportsOrderBy:a(i,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:a(i,"supportsPagination",!1),supportsPaginationOnAggregatedQueries:a(i,"supportsPaginationOnAggregatedQueries",!1),supportsPercentileStatistics:a(i,"supportsPercentileStatistics",!1),supportsQuantization:a(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:a(e,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:a(l,"allowAnonymousToQuery",!0),supportsQueryByOthers:a(l,"allowOthersToQuery",!0),supportsQueryGeometry:a(e,"supportsReturningQueryGeometry",!1),supportsResultType:a(i,"supportsQueryWithResultType",!1),supportsReturnMesh:!!(0,n.Hz)(e.infoFor3D),supportsSpatialAggregationStatistics:a(i,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:a(i,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:a(e,"useStandardizedQueries",!1),supportsStatistics:a(i,"supportsStatistics",e.supportsStatistics),supportsTopFeaturesQuery:a(i,"supportsTopFeaturesQuery",!1),supportsTrueCurve:a(i,"supportsTrueCurve",!1),tileMaxRecordCount:o(e,"tileMaxRecordCount",void 0)}}function T(e){const t=e.advancedQueryCapabilities,i=a(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:a(t,"supportsQueryRelatedPagination",!1),supportsCount:i,supportsOrderBy:i,supportsCacheHint:h(t,"queryRelated")}}function S(e){return{supportsCacheHint:h(e.advancedQueryCapabilities,"queryTopFilter")}}function w(e){const t=e?e.queryBinsCapabilities:void 0;return{supportsDate:a(t,"supportsDateBin",!1),supportsFixedInterval:a(t,"supportsFixedIntervalBin",!1),supportsAutoInterval:a(t,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:a(t,"supportsFixedBoundariesBin",!1),supportsStackBy:a(t,"supportsStackBy",!1),supportsSplitBy:a(t,"supportsSplitBy",!1),supportsSnapToData:a(t,"supportsSnapToData",!1),supportsReturnFullIntervalBin:a(t,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:a(t,"supportsFirstDayOfWeek",!1),supportsNormalization:a(t,"supportsNormalization",!1),supportedStatistics:d(t),supportedNormalizationTypes:p(t)}}function C(e){const t=e.ownershipBasedAccessControlForFeatures,i=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:a(e,"allowGeometryUpdates",!0),supportsGlobalId:a(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:a(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:a(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:a(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:a(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:a(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:a(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:a(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:a(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:a(i,"supportsAsyncApplyEdits",!1),zDefault:o(e,"zDefault",void 0)}}function E(e){return{operations:{supportsAppend:a(e,"supportsAppend",!1),supportsCoverageQuery:e?.playbackInfo?.klv["0601"]??!1,supportsExportClip:a(e,"supportsExportClip",!1),supportsExportFrameset:a(e,"supportsExportFrameset",!1),supportsMensuration:a(e,"supportsMensuration",!1),supportsPreviews:a(e,"supportsPreviews",!1),supportsUpdate:a(e,"supportsUpdate",!1)}}}},25036:(e,t,i)=>{i.d(t,{j:()=>a});var s=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));const a=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,s.Cg)([(0,r.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],i.prototype,"minScale",void 0),(0,s.Cg)([(0,r.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],i.prototype,"maxScale",void 0),(0,s.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"effectiveScaleRange",null),i=(0,s.Cg)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],i),i}},37531:(e,t,i)=>{i.d(t,{dt:()=>d,GG:()=>y,UQ:()=>f,Sx:()=>c});var s=i(68197),r=i(60999),n=(i(44208),i(51850)),a=(i(76369),i(62046)),o=(i(2741),i(78888),i(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new o.q(1e3),new s.A([128,128,128]);var l=i(28975),u=i(33910);function c(e,t){if(!e)return null;let i=null;return(0,u.wk)(e)?i=function(e){const t=e.symbolLayers;if(!t)return null;let i=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(i="water"===e.type?e.color:e.material?e.material.color:null)}),i?new s.A(i):null}(e):(0,u.$y)(e)&&(i="cim"===e.type?(0,a.Nk)(e):e.color?new s.A(e.color):null),i?h(i,t):null}function h(e,t){if(null==t||null==e)return e;const i=e.toRgba();return i[3]=i[3]*t,new s.A(i)}function d(e,t,i){e&&(t||null!=i)&&(t&&(t=new s.A(t)),(0,u.wk)(e)?function(e,t,i){const r=e.symbolLayers;if(!r)return;const n=(e,r=!1)=>{let n=t??e??null;return null!=i?.override&&(!n&&r&&(n=new s.A([255,255,255])),n&&(n.a=i.override)),h(n,i?.add)};r.forEach(e=>{if("water"===e.type)return void(e.color=h(e.color,i?.add));const t=null!=e.material?e.material.color:null,s=n(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.N({color:s}):e.material.color=s,"outline"in e&&e.outline?.color&&null!=i?.add&&(e.outline.color=h(e.outline.color,i.add)),"marker"in e&&null!=e.marker&&(e.marker.color=n(e.marker.color))})}(e,t,i):(0,u.$y)(e)&&function(e,t,i){t=t??e.color,null!=i?.override&&t&&(t.a=i.override),t&&(e.color=h(t,i?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=h(e.outline.color,i?.add))}(e,t,i))}function p(e){for(const t of e)if("number"==typeof t)return t;return null}function m(e,t,i){for(let s=0;s<3;s++){const r=e[s];switch(r){case"symbol-value":{const e=i[s];return null!=e?e/t[s]:1}case"proportional":break;default:if(r&&t[s])return r/t[s]}}return null}function g(e,t,i,s){switch(e){case"proportional":return i*s;case"symbol-value":return null!=t?t:i;default:return e}}async function f(e,t){if(e&&t)return(0,u.wk)(e)?async function(e,t){const s=e.symbolLayers;s&&await(0,r.jJ)(s,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const i=t[2];"number"==typeof i&&(e.size=i)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const i=p(t);null!=i&&(e.size=i)}(e,t);break;case"path":!function(e,t){const i=m(t,n.Un,[e.width,void 0,e.height]);null!=i&&(e.width=g(t[0],e.width,1,i),e.height=g(t[2],e.height,1,i))}(e,t);break;case"object":await async function(e,t){const{resourceSize:s,symbolSize:r}=await async function(e){const{computeObjectLayerResourceSize:t}=await i.e(5404).then(i.bind(i,95404)),s=await t(e,10),{width:r,height:n,depth:a}=e,o=[r,a,n];let l=1;for(let e=0;e<3;e++){const t=o[e];if(null!=t){l=t/s[e];break}}for(let e=0;e<3;e++)null==o[e]&&(o[e]=s[e]*l);return{resourceSize:s,symbolSize:o}}(e),n=m(t,s,r);null!=n&&(e.width=g(t[0],r[0],s[0],n),e.depth=g(t[1],r[1],s[1],n),e.height=g(t[2],r[2],s[2],n))}(e,t)}}(e,t))}(e,t):void((0,u.$y)(e)&&function(e,t){const i=p(t);if(null!=i)switch(e.type){case"simple-marker":e.size=i;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=i,e.height=i*t):(e.width=i*t,e.height=i);break}case"simple-line":e.width=i;break;case"text":e.font.size=i}}(e,t))}function y(e,t,i){if(e&&null!=t)if((0,u.wk)(e)){const s=e.symbolLayers;s&&s.forEach(e=>{if("object"===e.type)switch(i){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else(0,u.$y)(e)&&("simple-marker"!==e.type&&"picture-marker"!==e.type&&"text"!==e.type||(e.angle+=t))}},38954:(e,t,i)=>{i.d(t,{A:()=>m,B:()=>p,C:()=>c,D:()=>h,E:()=>L,F:()=>U,H:()=>B,a:()=>O,b:()=>y,c:()=>a,d:()=>u,e:()=>C,f:()=>l,g:()=>f,h:()=>E,i:()=>o,j:()=>_,k:()=>b,l:()=>n,m:()=>k,n:()=>w,o:()=>I,q:()=>M,r:()=>S,s:()=>v,t:()=>x,u:()=>T,v:()=>A,w:()=>d,x:()=>F,y:()=>q,z:()=>g});var s=i(51850),r=i(34304);function n(e){const t=e[0],i=e[1],s=e[2];return Math.sqrt(t*t+i*i+s*s)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,i,s){return e[0]=t,e[1]=i,e[2]=s,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function h(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function g(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function f(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function y(e,t,i,s){return e[0]=t[0]+i[0]*s,e[1]=t[1]+i[1]*s,e[2]=t[2]+i[2]*s,e}function _(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+s*s+r*r)}function v(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2];return i*i+s*s+r*r}function b(e){const t=e[0],i=e[1],s=e[2];return t*t+i*i+s*s}function T(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const i=t[0],s=t[1],r=t[2];let n=i*i+s*s+r*r;return n>0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function E(e,t,i){const s=t[0],r=t[1],n=t[2],a=i[0],o=i[1],l=i[2];return e[0]=r*l-n*o,e[1]=n*a-s*l,e[2]=s*o-r*a,e}function k(e,t,i,s){const r=t[0],n=t[1],a=t[2];return e[0]=r+s*(i[0]-r),e[1]=n+s*(i[1]-n),e[2]=a+s*(i[2]-a),e}function x(e,t,i){const s=t[0],r=t[1],n=t[2];return e[0]=i[0]*s+i[4]*r+i[8]*n+i[12],e[1]=i[1]*s+i[5]*r+i[9]*n+i[13],e[2]=i[2]*s+i[6]*r+i[10]*n+i[14],e}function I(e,t,i){const s=t[0],r=t[1],n=t[2];return e[0]=s*i[0]+r*i[3]+n*i[6],e[1]=s*i[1]+r*i[4]+n*i[7],e[2]=s*i[2]+r*i[5]+n*i[8],e}function A(e,t,i){const s=i[0],r=i[1],n=i[2],a=i[3],o=t[0],l=t[1],u=t[2],c=r*u-n*l,h=n*o-s*u,d=s*l-r*o,p=r*d-n*h,m=n*c-s*d,g=s*h-r*c,f=2*a;return e[0]=o+c*f+2*p,e[1]=l+h*f+2*m,e[2]=u+d*f+2*g,e}const D=(0,s.vt)(),P=(0,s.vt)();function M(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function L(e,t,i){const s=i[0]-t[0],r=i[1]-t[1],n=i[2]-t[2];let a=s*s+r*r+n*n;return a>0?(a=1/Math.sqrt(a),e[0]=s*a,e[1]=r*a,e[2]=n*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,N=c,R=h,U=_,F=v,B=n,q=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){w(D,e),w(P,t);const i=C(D,P);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,s,r,n){const a=1-n,o=a*a,l=n*n,u=o*a,c=3*n*o,h=3*l*a,d=l*n;return e[0]=t[0]*u+i[0]*c+s[0]*h+r[0]*d,e[1]=t[1]*u+i[1]*c+s[1]*h+r[1]*d,e[2]=t[2]*u+i[2]*c+s[2]*h+r[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:a,cross:E,crossAndNormalize:function(e,t,i){const s=t[0],r=t[1],n=t[2],a=i[0],o=i[1],l=i[2],u=r*l-n*o,c=n*a-s*l,h=s*o-r*a,d=Math.sqrt(u*u+c*c+h*h);return e[0]=u/d,e[1]=c/d,e[2]=h/d,e},direction:L,dist:U,distance:_,div:R,divide:h,dot:C,equals:function(e,t){if(e===t)return!0;const i=e[0],s=e[1],n=e[2],a=t[0],o=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(s-o)<=u*Math.max(1,Math.abs(s),Math.abs(o))&&Math.abs(n-l)<=u*Math.max(1,Math.abs(n),Math.abs(l))},exactEquals:M,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,s,r,n){const a=n*n,o=a*(2*n-3)+1,l=a*(n-2)+n,u=a*(n-1),c=a*(3-2*n);return e[0]=t[0]*o+i[0]*l+s[0]*u+r[0]*c,e[1]=t[1]*o+i[1]*l+s[1]*u+r[1]*c,e[2]=t[2]*o+i[2]*l+s[2]*u+r[2]*c,e},inverse:S,len:B,length:n,lerp:k,max:g,min:m,mul:N,multiply:c,negate:T,normalize:w,random:function(e,t=1){const i=r.Ov,s=2*i()*Math.PI,n=2*i()-1,a=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(s)*a,e[1]=Math.sin(s)*a,e[2]=n*t,e},rotateX:function(e,t,i,s){const r=[],n=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],n[0]=r[0],n[1]=r[1]*Math.cos(s)-r[2]*Math.sin(s),n[2]=r[1]*Math.sin(s)+r[2]*Math.cos(s),e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},rotateY:function(e,t,i,s){const r=[],n=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],n[0]=r[2]*Math.sin(s)+r[0]*Math.cos(s),n[1]=r[1],n[2]=r[2]*Math.cos(s)-r[0]*Math.sin(s),e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},rotateZ:function(e,t,i,s){const r=[],n=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],n[0]=r[0]*Math.cos(s)-r[1]*Math.sin(s),n[1]=r[0]*Math.sin(s)+r[1]*Math.cos(s),n[2]=r[2],e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:f,scaleAndAdd:y,set:o,sign:p,sqrDist:F,sqrLen:q,squaredDistance:v,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:I,transformMat4:x,transformQuat:A},Symbol.toStringTag,{value:"Module"}))},62046:(e,t,i)=>{i.d(t,{Fe:()=>c,Nk:()=>n});var s=i(68197),r=i(93397);function n(e){const t=[];return a((0,r.lW)(e),t),t.length?new s.A((0,r.e6)(t[0])):null}function a(e,t){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;const s="CIMPolygonSymbol"===e.type;if(i?.symbolLayers)for(const e of i.symbolLayers)if(!(e.colorLocked||s&&((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&o(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{a(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":o(t,e.color);break;case"CIMGradientFill":l(t,e);break;case"CIMHatchFill":a(e.lineSymbol,t)}}function o(e,t){for(const i of e)if(i.join(".")===t.join("."))return;e.push(t)}function l(e,t){const i=t.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&u(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":u(e,t.colorRamp)}}function u(e,t){t&&(t.fromColor&&o(e,t.fromColor),t.toColor&&o(e,t.toColor))}function c(e,t,i){t instanceof s.A||(t=new s.A(t));const n=(0,r.lW)(e);n&&h(n,t,i)}function h(e,t,i){if(!e)return;let s;s="CIMTextSymbol"===e.type?e.symbol:e;const n="CIMPolygonSymbol"===s?.type;if(s?.symbolLayers)for(const e of s.symbolLayers){if(e.colorLocked)continue;if(n)if(i){const{layersToColor:t}=i;if(((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))&&"fill"===t||(0,r.jn)(e)&&"outline"===t)continue}else if((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))continue;const s=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=s;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{h(e.symbol,t,i)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=s;break;case"CIMGradientFill":d(e,t);break;case"CIMHatchFill":h(e.lineSymbol,t,i)}}}function d(e,t){const i=e.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&p(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":p(e.colorRamp,t)}}function p(e,t){if(e&&(e.fromColor&&(e.fromColor=t.toArray()),e.toColor)){const i=t.clone();i.a=0,e.toColor=i.toArray()}}},63074:(e,t,i)=>{i.d(t,{LF:()=>c,dM:()=>h,sU:()=>l});var s=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),a=i(89317),o=i(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:a.K}},"portal-item":{read:!0,write:{layerContainerTypes:a.K}}}}},u={read:{reader:o.LF},write:{allowNull:!0,writer:o.M9,layerContainerTypes:a.K}},c={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}},h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,s.Cg)([(0,r.MZ)(l)],i.prototype,"blendMode",void 0),(0,s.Cg)([(0,r.MZ)(c)],i.prototype,"effect",void 0),i=(0,s.Cg)([(0,n.$)("esri.layers.mixins.BlendLayer")],i),i}},69208:(e,t,i)=>{i.d(t,{d:()=>a});var s=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));const a=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,s.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,s.Cg)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],i),i}},70328:(e,t,i)=>{i.d(t,{BI:()=>v,DC:()=>h,Ej:()=>p,Ie:()=>y,Jt:()=>_,Ne:()=>m,RF:()=>c,aI:()=>T,fA:()=>a,gE:()=>l,hZ:()=>f,iT:()=>d,is:()=>b,qv:()=>S,vI:()=>g,vY:()=>o,v_:()=>w,vt:()=>n,w1:()=>u});var s=i(5443),r=(i(19419),i(4197));function n(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,i,s,r,a,o=n()){return o[0]=e,o[1]=t,o[2]=i,o[3]=s,o[4]=r,o[5]=a,o}function o(e,t=n()){return function(e,t,i,s=n()){return f(s,S),function(e,t,i=0,s=t.length/3){let r=e[0],n=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<s;e++)r=Math.min(r,t[i+3*e]),n=Math.min(n,t[i+3*e+1]),a=Math.min(a,t[i+3*e+2]),o=Math.max(o,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=n,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(s,e,t,i),s}(e,0,e.length/3,t)}function l(e,t=(0,r.jh)(24)){const[i,s,n,a,o,l]=e;return t[0]=i,t[1]=s,t[2]=n,t[3]=i,t[4]=s,t[5]=l,t[6]=i,t[7]=o,t[8]=n,t[9]=i,t[10]=o,t[11]=l,t[12]=a,t[13]=s,t[14]=n,t[15]=a,t[16]=s,t[17]=l,t[18]=a,t[19]=o,t[20]=n,t[21]=a,t[22]=o,t[23]=l,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new s.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function p(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function g(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?f(e,S):n(S)}function _(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,i,s,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=s,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function T(e,t,i){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(i){for(let s=0;s<e.length;s++)if(!i(e[s],t[s]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const S=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];n()},73179:(e,t,i)=>{i.d(t,{b:()=>l,h:()=>u});var s=i(4718),r=i(53966),n=i(84952),a=i(60694),o=i(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},n=(0,s.o8)(o.OZ),l=n.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,s,r){(0,a.LS)(this,e,i,t,r)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const i=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:r.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function u(e,t){const{separator:i}=t??{},s=(0,n.An)(e.url);return null!=s&&(null!=e.dynamicDataSource?s.path=(0,n.fj)(s.path,"dynamicLayer"):null!=e.layerId&&(s.path=(0,n.fj)(s.path,i??"",e.layerId.toString()))),s}},73838:(e,t,i)=>{i.d(t,{rS:()=>O,M9:()=>D,oO:()=>P});var s=i(49186),r=i(93637),n=i(77548),a=i(37757),o=i(13313),l=i(97887),u=i(68548),c=i(58592),h=i(75981),d=i(65365),p=i(94985),m=i(31593),g=i(53930),f=i(68249),y=i(68197),_=i(7762),v=(i(44208),i(90629)),b=i(27845),T=i(11506),S=i(39065),w=i(59868),C=i(93470);h.A.fromSimpleMarkerSymbol(w.UK),l.A.fromSimpleLineSymbol(w.A7),d.A.fromSimpleFillSymbol(w.Cx),new u.A({symbolLayers:new _.A([new b.A({material:{color:C.fT},edges:new S.A({size:(0,v.PN)(1),color:new y.A(C.JR)})})])});const E=new l.A({symbolLayers:new _.A([new T.A({material:{color:new y.A([0,0,0])},size:(0,v.PN)(1)})])}),k=new d.A({symbolLayers:new _.A([new b.A({outline:{color:new y.A([0,0,0]),size:(0,v.PN)(1)}})])});var x=i(33910);const I="#useCIMFallbackSymbology()",A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function D(e,t,i,s){const n=L(e,{},{context:s,isLabelSymbol:!1});null!=n&&(0,r.sM)(i,n,t)}function P(e,t,i,s){const r=L(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function M(e){return(0,x.wk)(e)||e instanceof a.A}function L(e,t,i){if(null==e)return null;const{context:r,isLabelSymbol:y}=i,_=r?.origin,v=r?.messages;if("web-scene"===_&&!M(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:r=A.ignoreDrivers,hasLabelingContext:n=A.hasLabelingContext,retainCIM:y=A.retainCIM,cimFallbackEnabled:_=A.cimFallbackEnabled}=t;let v=null;if((0,x.wk)(e))v=e.clone();else if("web-style"===e.type)v=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":v=y?e.clone():h.A.fromCIMSymbol(e);break;case"CIMLineSymbol":_&&(v=E.clone(),t?.logWarning?.(I,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":_&&(v=k.clone(),t?.logWarning?.(I,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!v)return{error:new s.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof m.A)v=l.A.fromSimpleLineSymbol(e);else if(e instanceof g.A)v=h.A.fromSimpleMarkerSymbol(e);else if(e instanceof c.A)v=h.A.fromPictureMarkerSymbol(e);else if(e instanceof p.A)v=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new s.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=n?o.A.fromTextSymbol(e):h.A.fromTextSymbol(e)}return i&&v&&"cim"!==v.type&&(v.id=e.id),!r||"cim"===v.type||v instanceof a.A||v.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:v}}(e,{retainCIM:!0,hasLabelingContext:y});return null!=i.symbol?i.symbol.write(t,r):(v?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:r,error:i.error})),null)}return(0,n.TU)(r?.layer)&&(b=e,"polygon-3d"===b?.type||"line-3d"===b?.type)?(v?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported on layers of type '${r?.layer?.declaredClass}'.`,{symbol:e,context:r})),null):("web-map"===_||"portal-item"===_&&!(0,n.TU)(r?.layer))&&M(e)?(v?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:r})),null):e.write(t,r);var b}function O(e,t){return(0,x.Bu)(e,null,t)}},76369:(e,t,i)=>{i.d(t,{LF:()=>S,M9:()=>w});var s=i(49186),r=i(93637),n=i(40876),a=i(59247),o=i(27865);class l extends SyntaxError{constructor(e,t,i,s){super(e),this.expected=t,this.found=i,this.location=s,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let i=null;const s=e.find(e=>e.source===this.location.source);s&&(i=s.text.split(/\r\n|\n|\r/g));const r=this.location.start,n=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(r):r,a=this.location.source+":"+n.line+":"+n.column;if(i){const e=this.location.end,s="".padEnd(n.line.toString().length," "),o=i[r.line-1],l=(r.line===e.line?e.column:o.length+1)-r.column||1;t+="\n --\x3e "+a+"\n"+s+" |\n"+n.line+" | "+o+"\n"+s+" | "+"".padEnd(r.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+a}return t}static buildMessage(e,t){function i(e){return e.codePointAt(0).toString(16).toUpperCase()}const s=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function r(e){return s?e.replace(s,e=>"\\u{"+i(e)+"}"):e}function n(e){return r(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+i(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+i(e)))}function a(e){return r(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+i(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+i(e)))}const o={literal:e=>'"'+n(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return o[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let i=1;i<t.length;i++)t[i-1]!==t[i]&&(t[e]=t[i],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=c(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new s.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:c(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,o.mj)(t[e].effects,t[e+1].effects))throw new s.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,o.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function c(e){let t;if(!e)return[];try{t=function(e,t){const i={},s=(t=void 0!==t?t:{}).grammarSource,r={start:Te};let n=Te;const a="none",o=")",u=",",c="(",h="%",d="px",p="cm",m="mm",g="in",f="pt",y="pc",_="deg",v="rad",b="grad",T="turn",S="#",w=".",C="e",E=/^[ \t\n\r]/,k=/^[a-z\-]/,x=/^[0-9a-fA-F]/,I=/^[+\-]/,A=/^[0-9]/,D=ye("none"),P=ge("none",!1),M=ge(")",!1),L=ge(",",!1),O=fe([" ","\t","\n","\r"],!1,!1,!1),N=ye("function"),R=ge("(",!1),U=ye("identifier"),F=fe([["a","z"],"-"],!1,!1,!1),B=ye("percentage"),q=ge("%",!1),j=ye("length"),$=ge("px",!1),H=ge("cm",!1),V=ge("mm",!1),z=ge("in",!1),W=ge("pt",!1),G=ge("pc",!1),X=ye("angle"),Z=ge("deg",!1),Q=ge("rad",!1),K=ge("grad",!1),Y=ge("turn",!1),J=ye("number"),ee=ye("color"),te=ge("#",!1),ie=fe([["0","9"],["a","f"],["A","F"]],!1,!1,!1),se=fe(["+","-"],!1,!1,!1),re=fe([["0","9"]],!1,!1,!1),ne=ge(".",!1),ae=ge("e",!1);let oe=0|t.peg$currPos,le=oe;const ue=[{line:1,column:1}];let ce,he=oe,de=t.peg$maxFailExpected||[],pe=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in r))throw new Error("Can't start parsing from rule \""+t.startRule+'".');n=r[t.startRule]}function me(){return e.substring(le,oe)}function ge(e,t){return{type:"literal",text:e,ignoreCase:t}}function fe(e,t,i,s){return{type:"class",parts:e,inverted:t,ignoreCase:i,unicode:s}}function ye(e){return{type:"other",description:e}}function _e(t){let i,s=ue[t];if(s)return s;if(t>=ue.length)i=ue.length-1;else for(i=t;!ue[--i];);for(s=ue[i],s={line:s.line,column:s.column};i<t;)10===e.charCodeAt(i)?(s.line++,s.column=1):s.column++,i++;return ue[t]=s,s}function ve(e,t,i){const r=_e(e),n=_e(t);return{source:s,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function be(e){oe<he||(oe>he&&(he=oe,de=[]),de.push(e))}function Te(){let e;return e=Se(),e===i&&(e=function(){let e,t;if(e=[],t=we(),t!==i)for(;t!==i;)e.push(t),t=we();else e=i;return e}()),e}function Se(){let t,s;return pe++,t=oe,Ee(),e.substr(oe,4)===a?(s=a,oe+=4):(s=i,0===pe&&be(P)),s!==i?(Ee(),le=t,t=[]):(oe=t,t=i),pe--,t===i&&0===pe&&be(D),t}function we(){let t,s,r,n;return t=oe,Ee(),s=function(){let t,s,r;return pe++,t=oe,s=ke(),s!==i?(40===e.charCodeAt(oe)?(r=c,oe++):(r=i,0===pe&&be(R)),r!==i?(le=t,t=s):(oe=t,t=i)):(oe=t,t=i),pe--,t===i&&(s=i,0===pe&&be(N)),t}(),s!==i?(Ee(),r=function(){let t,s,r,n,a,o,l,c;if(t=oe,s=Ce(),s!==i){for(r=[],n=oe,a=Ee(),44===e.charCodeAt(oe)?(o=u,oe++):(o=i,0===pe&&be(L)),o===i&&(o=null),l=Ee(),c=Ce(),c!==i?(a=[a,o,l,c],n=a):(oe=n,n=i);n!==i;)r.push(n),n=oe,a=Ee(),44===e.charCodeAt(oe)?(o=u,oe++):(o=i,0===pe&&be(L)),o===i&&(o=null),l=Ee(),c=Ce(),c!==i?(a=[a,o,l,c],n=a):(oe=n,n=i);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(s,r)}else oe=t,t=i;return t}(),r===i&&(r=null),Ee(),41===e.charCodeAt(oe)?(n=o,oe++):(n=i,0===pe&&be(M)),n!==i?(Ee(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(s,r)):(oe=t,t=i)):(oe=t,t=i),t}function Ce(){let e,t;return e=oe,t=xe(),t===i&&(t=Ie(),t===i&&(t=Ae(),t===i&&(t=function(){let e,t;return pe++,e=oe,Ee(),t=Pe(),t!==i?(le=e,e=function(e){return{value:e,unit:null}}(t)):(oe=e,e=i),pe--,e===i&&0===pe&&be(J),e}()))),t!==i&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===i&&(e=oe,t=De(),t!==i&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Ee(){let t,s;for(pe++,t=[],s=e.charAt(oe),E.test(s)?oe++:(s=i,0===pe&&be(O));s!==i;)t.push(s),s=e.charAt(oe),E.test(s)?oe++:(s=i,0===pe&&be(O));return pe--,t}function ke(){let t,s,r;if(pe++,t=oe,s=[],r=e.charAt(oe),k.test(r)?oe++:(r=i,0===pe&&be(F)),r!==i)for(;r!==i;)s.push(r),r=e.charAt(oe),k.test(r)?oe++:(r=i,0===pe&&be(F));else s=i;return s!==i&&(le=t,s=me()),t=s,pe--,t===i&&(s=i,0===pe&&be(U)),t}function xe(){let t,s,r;return pe++,t=oe,Ee(),s=Pe(),s!==i?(37===e.charCodeAt(oe)?(r=h,oe++):(r=i,0===pe&&be(q)),r!==i?(le=t,t=function(e){return{value:e,unit:"%"}}(s)):(oe=t,t=i)):(oe=t,t=i),pe--,t===i&&0===pe&&be(B),t}function Ie(){let t,s,r;return pe++,t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===d?(r=d,oe+=2):(r=i,0===pe&&be($)),r!==i?(le=t,t=function(e){return{value:e,unit:"px"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===p?(r=p,oe+=2):(r=i,0===pe&&be(H)),r!==i?(le=t,t=function(e){return{value:e,unit:"cm"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===m?(r=m,oe+=2):(r=i,0===pe&&be(V)),r!==i?(le=t,t=function(e){return{value:e,unit:"mm"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===g?(r=g,oe+=2):(r=i,0===pe&&be(z)),r!==i?(le=t,t=function(e){return{value:e,unit:"in"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===f?(r=f,oe+=2):(r=i,0===pe&&be(W)),r!==i?(le=t,t=function(e){return{value:e,unit:"pt"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===y?(r=y,oe+=2):(r=i,0===pe&&be(G)),r!==i?(le=t,t=function(e){return{value:e,unit:"pc"}}(s)):(oe=t,t=i)):(oe=t,t=i)))))),pe--,t===i&&0===pe&&be(j),t}function Ae(){let t,s,r;return pe++,t=oe,s=Pe(),s!==i?(e.substr(oe,3)===_?(r=_,oe+=3):(r=i,0===pe&&be(Z)),r!==i?(le=t,t=function(e){return{value:e,unit:"deg"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,s=Pe(),s!==i?(e.substr(oe,3)===v?(r=v,oe+=3):(r=i,0===pe&&be(Q)),r!==i?(le=t,t=function(e){return{value:e,unit:"rad"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,s=Pe(),s!==i?(e.substr(oe,4)===b?(r=b,oe+=4):(r=i,0===pe&&be(K)),r!==i?(le=t,t=function(e){return{value:e,unit:"grad"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,s=Pe(),s!==i?(e.substr(oe,4)===T?(r=T,oe+=4):(r=i,0===pe&&be(Y)),r!==i?(le=t,t=function(e){return{value:e,unit:"turn"}}(s)):(oe=t,t=i)):(oe=t,t=i)))),pe--,t===i&&(s=i,0===pe&&be(X)),t}function De(){let t,s,r,n;if(pe++,t=oe,35===e.charCodeAt(oe)?(s=S,oe++):(s=i,0===pe&&be(te)),s!==i){if(r=[],n=e.charAt(oe),x.test(n)?oe++:(n=i,0===pe&&be(ie)),n!==i)for(;n!==i;)r.push(n),n=e.charAt(oe),x.test(n)?oe++:(n=i,0===pe&&be(ie));else r=i;r!==i?(le=t,t={type:"hex",value:me()}):(oe=t,t=i)}else oe=t,t=i;return t===i&&(t=oe,s=we(),s!==i&&(le=t,s=function(e){return{type:"function",value:e}}(s)),t=s,t===i&&(t=oe,s=ke(),s!==i&&(le=t,s={type:"named",value:me()}),t=s)),pe--,t===i&&(s=i,0===pe&&be(ee)),t}function Pe(){let t,s,r,n,a,o,l,u;for(t=oe,s=e.charAt(oe),I.test(s)?oe++:(s=i,0===pe&&be(se)),s===i&&(s=null),r=oe,n=[],a=e.charAt(oe),A.test(a)?oe++:(a=i,0===pe&&be(re));a!==i;)n.push(a),a=e.charAt(oe),A.test(a)?oe++:(a=i,0===pe&&be(re));if(46===e.charCodeAt(oe)?(a=w,oe++):(a=i,0===pe&&be(ne)),a!==i){if(o=[],l=e.charAt(oe),A.test(l)?oe++:(l=i,0===pe&&be(re)),l!==i)for(;l!==i;)o.push(l),l=e.charAt(oe),A.test(l)?oe++:(l=i,0===pe&&be(re));else o=i;o!==i?(n=[n,a,o],r=n):(oe=r,r=i)}else oe=r,r=i;if(r===i)if(r=[],n=e.charAt(oe),A.test(n)?oe++:(n=i,0===pe&&be(re)),n!==i)for(;n!==i;)r.push(n),n=e.charAt(oe),A.test(n)?oe++:(n=i,0===pe&&be(re));else r=i;if(r!==i){if(n=oe,101===e.charCodeAt(oe)?(a=C,oe++):(a=i,0===pe&&be(ae)),a!==i){if(o=e.charAt(oe),I.test(o)?oe++:(o=i,0===pe&&be(se)),o===i&&(o=null),l=[],u=e.charAt(oe),A.test(u)?oe++:(u=i,0===pe&&be(re)),u!==i)for(;u!==i;)l.push(u),u=e.charAt(oe),A.test(u)?oe++:(u=i,0===pe&&be(re));else l=i;l!==i?(a=[a,o,l],n=a):(oe=n,n=i)}else oe=n,n=i;n===i&&(n=null),le=t,t=parseFloat(me())}else oe=t,t=i;return t}ce=n();const Me=ce!==i&&oe===e.length;function Le(){throw ce!==i&&oe<e.length&&be({type:"end"}),function(e,t,i){return new l(l.buildMessage(e,t),e,t,i)}(de,he<e.length?function(t=oe){const i=e.codePointAt(t);return void 0===i?"":String.fromCodePoint(i)}(he):null,he<e.length?ve(he,he+1):ve(he,he))}return t.peg$library?{peg$result:ce,peg$currPos:oe,peg$FAILED:i,peg$maxFailExpected:de,peg$maxFailPos:he,peg$success:Me,peg$throw:Me?void 0:Le}:Me?ce:void Le()}(e)}catch(t){throw new s.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new a.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new a.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new s.A("effect:type-error",`Expected <angle>, Actual: ${d(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new a.Nd(t)}(e);case"blur":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=y(e.parameters[0]),p(t,e.parameters[0])),new a.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let i=null;for(const r of e.parameters)if("color"===r.type){if(t.length&&Object.freeze(t),i)throw new s.A("effect:type-error","Accepts only one color",{});i=_(r)}else{const e=y(r);if(Object.isFrozen(t))throw new s.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&p(e,r)}if(t.length<2||t.length>3)throw new s.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new a.$b(t[0],t[1],t[2]||0,i||v("black"))}(e);case"bloom":return function(e){let t=1,i=0,s=0;return h(e.parameters,3),e.parameters[0]&&(t=f(e.parameters[0])),e.parameters[1]&&(i=y(e.parameters[1]),p(i,e.parameters[1])),e.parameters[2]&&(s=f(e.parameters[2])),new a.bv(t,i,s)}(e)}}catch(t){throw t.details.filter=e,t}throw new s.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function h(e,t){if(e.length>t)throw new s.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function d(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in g)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function p(e,t){if(e<0)throw new s.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},g={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function f(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new s.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${d(e)}`,{term:e})}(e);const t=e.value;return p(t,e),"%"===e.unit?.01*t:t}function y(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=g[e.unit]))throw new s.A("effect:type-error",`Expected <length>, Actual: ${d(e)}`,{term:e})}(e),e.value*g[e.unit]||0}function _(e){switch(e.colorType){case"hex":return(0,n.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(h(e.parameters,4),b.test(e.name))return[f(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1];if(T.test(e.name))return(0,n.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new s.A("effect:type-error",`Expected <double>, Actual: ${d(e)}`,{term:e})}(e),p(e.value,e),e.value}(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1);throw new s.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,n.V6)(e))throw new s.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,n.c4)(e)}const b=/^rgba?/i,T=/^hsla?/i;function S(e,t,i){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const i of e)t.push({scale:i.scale,value:C(i.value)});return t}return C(e)}(e)}catch(e){i?.messages?.push(e)}return null}function w(e,t,i,s){try{const s=function(e){const t=u(e);return t?(0,o.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,r.sM)(i,s,t)}catch(e){s.messages&&s.messages.push(e)}}function C(e){if(!e?.length)return"";const t=[];for(const i of e){let e=[];switch(i.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[E(i,"amount")];break;case"blur":e=[E(i,"radius","pt")];break;case"hue-rotate":e=[E(i,"angle","deg")];break;case"drop-shadow":e=[E(i,"xoffset","pt"),E(i,"yoffset","pt"),E(i,"blurRadius","pt"),k(i,"color")];break;case"bloom":e=[E(i,"strength"),E(i,"radius","pt"),E(i,"threshold")]}const s=`${i.type}(${e.filter(Boolean).join(" ")})`;u(s),t.push(s)}return t.join(" ")}function E(e,t,i){if(null==e[t])throw new s.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return i?e[t]+i:""+e[t]}function k(e,t){if(null==e[t])throw new s.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const i=e[t];return`rgba(${i[0]||0}, ${i[1]||0}, ${i[2]||0}, ${i[3]/255||0})`}},78553:(e,t,i)=>{i.d(t,{D:()=>n,p:()=>r});var s=i(56507);function r(e){const t=(0,s.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},86875:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Vd});var s=i(31635),r=i(68197),n=i(78888),a=i(51447),o=i(49186),l=i(53966),u=i(34727),c=i(92071),h=i(74887),d=i(36708),p=i(10107),m=i(56507),g=(i(44208),i(87811),i(36005)),f=i(40608),y=i(5443),_=i(82799),v=i(16930),b=i(4146),T=i(18768),S=i(63074),w=i(69208),C=i(16131),E=i(8303),k=i(25036),x=i(60694),I=i(10873),A=i(73179),D=i(69540),P=i(25482);let M=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.framerate=null,this.containerFormat=null,this.gop=null,this.aspectRatio=null,this.klv=null}};(0,s.Cg)([(0,p.MZ)({type:String})],M.prototype,"framerate",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],M.prototype,"containerFormat",void 0),(0,s.Cg)([(0,p.MZ)({type:Number})],M.prototype,"gop",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],M.prototype,"aspectRatio",void 0),(0,s.Cg)([(0,p.MZ)({type:Object})],M.prototype,"klv",void 0),M=(0,s.Cg)([(0,f.$)("esri.layers.support.PlaybackInfo")],M);const L=M;var O=i(22453),N=i(86738),R=i(39829);let U=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.frameCenter=null,this.frameOutline=null,this.lineOfSight=null,this.sensorLocation=null,this.sensorTrail=null}};(0,s.Cg)([(0,p.MZ)({type:N.A})],U.prototype,"frameCenter",void 0),(0,s.Cg)([(0,p.MZ)({type:R.A})],U.prototype,"frameOutline",void 0),(0,s.Cg)([(0,p.MZ)({type:_.A})],U.prototype,"lineOfSight",void 0),(0,s.Cg)([(0,p.MZ)({type:N.A})],U.prototype,"sensorLocation",void 0),(0,s.Cg)([(0,p.MZ)({type:_.A})],U.prototype,"sensorTrail",void 0),U=(0,s.Cg)([(0,f.$)("esri.layers.support.TelemetryData")],U);const F={type:Boolean,json:{write:!0}};let B=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.frame=!1,this.frameCenter=!1,this.frameOutline=!0,this.lineOfSight=!0,this.sensorLocation=!0,this.sensorTrail=!0}};(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"frame",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"frameCenter",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"frameOutline",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"lineOfSight",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"sensorLocation",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"sensorTrail",void 0),B=(0,s.Cg)([(0,f.$)("esri.layers.support.TelemetryDisplay")],B);var q=i(65008),j=i(43937);let $=class extends q.A{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,s.Cg)([(0,p.MZ)()],$.prototype,"sourcePoint",void 0),(0,s.Cg)([(0,p.MZ)({type:N.A})],$.prototype,"mapPoint",void 0),$=(0,s.Cg)([(0,f.$)("esri.layers.support.VideoFrame.ControlPoint")],$);let H=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.frame=null,this.controlPoints=null}readControlPoints(e){return e.map(e=>({sourcePoint:{x:e.frameX,y:e.frameY},mapPoint:new N.A(e.point)}))}writeControlPoints(e,t){null!=e&&function(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(e[0])&&(t.controlPoints=e.map(e=>{const t=e.sourcePoint,i=e.mapPoint;return{frameX:t.x,frameY:t.y,point:i.toJSON()}}))}};(0,s.Cg)([(0,p.MZ)({type:String})],H.prototype,"frame",void 0),(0,s.Cg)([(0,p.MZ)({type:[$],json:{write:{allowNull:!1,isRequired:!0}}})],H.prototype,"controlPoints",void 0),(0,s.Cg)([(0,g.w)("controlPoints")],H.prototype,"readControlPoints",null),(0,s.Cg)([(0,j.K)("controlPoints")],H.prototype,"writeControlPoints",null),H=(0,s.Cg)([(0,f.$)("esri.layers.support.VideoFrame")],H);const V=H;let z=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.duration=null,this.end=null,this.start=null,this.timezone="UTC"}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}};(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:{allowNull:!0}}})],z.prototype,"duration",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:{allowNull:!0}}})],z.prototype,"end",void 0),(0,s.Cg)([(0,g.w)("end")],z.prototype,"readEnd",null),(0,s.Cg)([(0,j.K)("end")],z.prototype,"writeEnd",null),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:{allowNull:!0}}})],z.prototype,"start",void 0),(0,s.Cg)([(0,g.w)("start")],z.prototype,"readStart",null),(0,s.Cg)([(0,j.K)("start")],z.prototype,"writeStart",null),(0,s.Cg)([(0,p.MZ)({type:String})],z.prototype,"timezone",void 0),z=(0,s.Cg)([(0,f.$)("esri.layers.support.VideoTimeExtent")],z);const W=z;var G=i(56058);class X extends EventTarget{constructor(){super(...arguments),this._readyState=0,this._responseType="",this.timeout=0,this._withCredentials=!1,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this.onreadystatechange=null,this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this._abortController=null,this._error=null,this._options={},this._response=null,this._sendFlag=!1,this._url=""}get readyState(){return this._readyState}get response(){return""===this.responseType||"text"===this.responseType?this.responseText:this.readyState!==this.DONE||this._error||!this._response?null:this._response.data}get responseText(){return""!==this.responseType&&"text"!==this.responseType&&this._throwDOMException(),this.readyState!==this.DONE?"":this._response?this._response.data:null!=this._error?.raw?"string"==typeof this._error.raw?this._error.raw:JSON.stringify(this._error.raw):""}get responseType(){return this._responseType}set responseType(e){("document"!==e||globalThis instanceof Window)&&(this.readyState!==this.LOADING&&this.readyState!==this.DONE||this._throwDOMException(),this._responseType=e)}get responseURL(){return(this._response||this._error)?.url??""}get responseXML(){return""!==this.responseType&&"document"!==this.responseType&&this._throwDOMException(),this.readyState!==this.DONE?null:this._response?.data??null}get status(){return(this._response||this._error)?.httpStatus??0}get statusText(){return""}get upload(){return console.warn("upload not implemented"),null}get withCredentials(){return this._withCredentials}set withCredentials(e){this.readyState!==this.UNSENT&&this.readyState!==this.OPENED&&this._throwDOMException(),this._withCredentials=e}static{this.UNSENT=0}static{this.OPENED=1}static{this.HEADERS_RECEIVED=2}static{this.LOADING=3}static{this.DONE=4}abort(){this.readyState===this.OPENED&&this._sendFlag||this.readyState===this.HEADERS_RECEIVED||this.readyState===this.LOADING?(this._sendFlag=!1,this._error=null,this._response=null,this._abortController?.abort(),this._updateReadyState(this.DONE),this._dispatchProgressEvent("abort"),this._dispatchProgressEvent("loadend")):this.readyState===this.DONE&&this._updateReadyState(this.UNSENT)}getAllResponseHeaders(){let e="";const t=(this._response||this._error)?.getAllHeaders?.();if(t)for(const[i,s]of t)e+=`${i}: ${s}\r\n`;return e}getResponseHeader(e){return(this._response||this._error)?.getHeader?.(e)??null}open(e,t){switch(this._sendFlag=!1,this._options={},e){case"GET":this._options.method="auto";break;case"POST":this._options.method="post";break;case"HEAD":this._options.method="head";break;case"DELETE":this._options.method="delete";break;case"PUT":this._options.method="put"}this._url=t,this._error=null,this._response=null,this._abortController=new AbortController,this._updateReadyState(this.OPENED)}overrideMimeType(e){throw new Error("overrideMimeType not implemented")}send(e){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._sendFlag=!0,this._updateReadyState(this.LOADING),this._dispatchProgressEvent("loadstart");const t=this._options;e instanceof URLSearchParams?t.body=e.toString():t.body=e,t.responseType=""===this.responseType?"text":"arraybuffer"===this.responseType?"array-buffer":this.responseType,t.signal=this._abortController?.signal,this.timeout&&(t.timeout=this.timeout),this.withCredentials&&(t.withCredentials=!0),(0,n.A)(this._url,t).then(e=>{this._response=e,this._updateReadyState(this.DONE),this._dispatchProgressEvent("load")}).catch(e=>{this._sendFlag&&(this._error=e.details,this._updateReadyState(this.DONE),(0,G.c8)(e)?this._dispatchProgressEvent("timeout"):"AbortError"===e.name?this._dispatchProgressEvent("abort"):this._dispatchProgressEvent("error"))}).finally(()=>{this._sendFlag&&this._dispatchProgressEvent("loadend")})}setRequestHeader(e,t){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._options.headers??={},this._options.headers[e]=t}_dispatchProgressEvent(e){const t=new ProgressEvent(e,{loaded:0,total:0});this.dispatchEvent(t),this[`on${e}`]?.(t)}_throwDOMException(){throw new DOMException("","InvalidStateError")}_updateReadyState(e){if(this._readyState!==e&&(this._readyState=e,e!==this.UNSENT)){const e=new Event("readystatechange");this.dispatchEvent(e),this.onreadystatechange?.(e)}}}var Z=i(29242),Q=i(51850),K=i(77690),Y=i(38954),J=i(98764),ee=i(9762),te=i(79258),ie=i(62046),se=i(37531);const re="application/x-mpegURL",ne=10013,ae=10014,oe=10015,le=10023,ue=10024,ce=10025,he=90001,de=90002;function pe(e,t,i){if(!e)return null;const s=e.clone();switch(s.type){case"simple-fill":(0,se.dt)(s,i),s.outline.color=t;break;case"simple-line":(0,se.dt)(s,t);break;case"simple-marker":(0,se.dt)(s,t),s?.outline?.color&&(s.outline.color=t);break;case"cim":(0,ie.Fe)(s,t)}return s}const me=Math.PI/180;let ge=class extends q.A{constructor(e){super(),this.averageElevation=0,this.imageHeight=0,this.imageWidth=0,this.metadataSupportsTransforms=!1,this.platformHeadingAngle=0,this.platformPitchAngle=0,this.platformRollAngle=0,this.sensorHeadingAngle=0,this.sensorAltitude=0,this.sensorHorizontalFieldOfView=0,this.sensorLatitude=0,this.sensorLongitude=0,this.sensorPitchAngle=0,this.sensorRollAngle=0,this.sensorVerticalFieldOfView=0,this.vttMetadata=new Map,this._createMat3FromValues=e=>{const t=e[0],i=e[1],s=e[2];return(0,Z.fA)(t[0],i[0],s[0],t[1],i[1],s[1],t[2],i[2],s[2])},this._multiplyMat3=(e,t)=>{const i=(0,Z.vt)();return(0,K.lw)(i,e,t),i},this._transposeMat3=e=>{const t=(0,Z.vt)();return(0,K.mg)(t,e),t},this._calculateCameraFovForward=()=>this._createMat3FromValues([[0,0,1],[Math.tan(.5*this.sensorHorizontalFieldOfView*me),0,0],[0,Math.tan(.5*this.sensorVerticalFieldOfView*me),0]]),this._calculateCameraFovReverse=()=>this._createMat3FromValues([[0,1/Math.tan(.5*this.sensorHorizontalFieldOfView*me),0],[0,0,1/Math.tan(.5*this.sensorVerticalFieldOfView*me)],[1,0,0]]),this._calculateCameraLook=()=>this._getRotationMatrixZYX(this.sensorHeadingAngle*me,this.sensorPitchAngle*me,this.sensorRollAngle*me),this._calculateImageDimensionsForward=()=>this._createMat3FromValues([[2/this.imageWidth,0,-1],[0,-2/this.imageHeight,-1],[0,0,1]]),this._calculateImageDimensionsReverse=()=>this._createMat3FromValues([[this.imageWidth/2,0,this.imageWidth/2],[0,-this.imageHeight/2,-this.imageHeight/2],[0,0,1]]),this._calculatePlatformPositionMatrix=()=>{const e=Math.sin(this.sensorLatitude*me),t=Math.cos(this.sensorLatitude*me),i=Math.sin(this.sensorLongitude*me),s=Math.cos(this.sensorLongitude*me);return this._createMat3FromValues([[-e*s,-i,-t*s],[-e*i,s,-t*i],[t,0,-e]])},this._calculatePlatformOrientation=()=>this._getRotationMatrixZYX(this.platformHeadingAngle*me,this.platformPitchAngle*me,this.platformRollAngle*me),this._extractValues=e=>{this.imageWidth=e.get(he)?.value,this.imageHeight=e.get(de)?.value;const t=e.get(10075)?.value;this.sensorAltitude=t??e.get(oe)?.value,this.sensorLatitude=e.get(ne)?.value,this.sensorLongitude=e.get(ae)?.value,this.sensorHeadingAngle=e.get(10018)?.value,this.sensorPitchAngle=e.get(10019)?.value,this.sensorRollAngle=e.get(10020)?.value,this.sensorHorizontalFieldOfView=e.get(10016)?.value,this.sensorVerticalFieldOfView=e.get(10017)?.value,this.platformHeadingAngle=e.get(10005)?.value,this.platformPitchAngle=e.get(10006)?.value,this.platformRollAngle=e.get(10007)?.value,this.averageElevation=e.get(ce)?.value||0},this._getRotationMatrixZYX=(e,t,i)=>{const s=Math.cos(e),r=Math.sin(e),n=Math.cos(t),a=Math.sin(t),o=Math.cos(i),l=Math.sin(i);return this._createMat3FromValues([[s*n,s*a*l-o*r,r*l+s*o*a],[n*r,s*o+r*a*l,o*r*a-s*l],[-a,n*l,n*o]])},this._initCameraSensor=()=>{const e=this._calculateCameraFovForward(),t=this._calculateCameraFovReverse(),i=this._calculateCameraLook(),s=this._calculateImageDimensionsForward(),r=this._calculateImageDimensionsReverse(),n=this._calculatePlatformPositionMatrix(),a=this._calculatePlatformOrientation(),o=this._multiplyMat3(this._multiplyMat3(n,a),i);this._imageToEarthTransform=this._multiplyMat3(this._multiplyMat3(o,e),s);const l=this._multiplyMat3(r,t);this._earthToImageTransform=this._multiplyMat3(l,this._transposeMat3(o)),this._platformPositionEcef=this._projectPointToECEF(this.sensorLongitude,this.sensorLatitude,this.sensorAltitude||this.averageElevation)},this._metadataSupportsTransforms=e=>{if(!e?.size)return!1;const t=e.get(he)?.value??0,i=e.get(de)?.value??0;if(t<=0||i<=0)return!1;const s=e.get(10075)?.value,r=e.get(oe)?.value,n=e.get(ne)?.value,a=e.get(ae)?.value;if(null==s&&null==r||null==n||null==a)return!1;const o=e.get(10005)?.value,l=e.get(10006)?.value,u=e.get(10007)?.value;if(null==o||null==l||null==u)return!1;const c=e.get(10016)?.value,h=e.get(10017)?.value;if(null==c||null==h)return!1;const d=e.get(10018)?.value,p=e.get(10019)?.value,m=e.get(10020)?.value;return null!=d&&null!=p&&null!=m},this._projectPointToECEF=(e,t,i)=>{const s=[];return(0,ee.projectBuffer)([e,t,i],v.A.WGS84,0,s,J.Y0,0),new N.A({x:s[0],y:s[1],z:s[2],spatialReference:J.Y0})},this._projectImageVectorToEllipsoid=(e,t)=>{const i=te.$O.semiMajorAxis+t,s=te.$O.semiMinorAxis+t,r=s/i,n=i/s,{x:a,y:o,z:l}=this._platformPositionEcef,u=l??this.averageElevation,c=(0,Q.fA)(a,o,n*u),h=(0,Y.e)(e,e),d=(0,Y.e)(e,c),p=(0,Y.e)(c,c)-i*i,m=(-d-Math.sqrt(d*d-h*p))/h;if(m<0)return[NaN,NaN,NaN];const g=(0,Q.vt)();return(0,Y.b)(g,c,e,m),g[2]=g[2]*r,g};const t=e?.videoMetadata;this.updateSensorModel(t)}updateSensorModel(e){e?.size&&(this._set("metadataSupportsTransforms",this._metadataSupportsTransforms(e)),this.metadataSupportsTransforms&&(this._extractValues(e),this._initCameraSensor()))}transformGeoToImage(e,t,i){const s=this._platformPositionEcef;if(!s)return[0,0];const{x:r,y:n,z:a}=s,o=(0,Q.fA)(r,n,a),l=this._projectPointToECEF(e,t,i||this.averageElevation),u=(0,Q.vt)(),c=(0,Q.fA)(l.x,l.y,l.z);(0,Y.d)(u,c,o),(0,Y.o)(u,u,this._earthToImageTransform);const h=u[0],d=u[1],p=u[2];let m=(0,Q.fA)(NaN,NaN,NaN);return isNaN(p)||(m=(0,Q.fA)(h/p,d/p,p/p)),[m[0],m[1]]}transformImageToGeo(e,t){const i=(0,Q.fA)(e,t,1),s=(0,Q.vt)();(0,Y.o)(s,i,this._imageToEarthTransform);const r=this._projectImageVectorToEllipsoid(s,this.averageElevation);let n;if(!isNaN(r[0])){const e=[];(0,ee.projectBuffer)([r[0],r[1],r[2]],J.Y0,0,e,v.A.WGS84,0),n=new N.A({x:e[0],y:e[1],z:e[2],spatialReference:v.A.WGS84})}return n}};(0,s.Cg)([(0,p.MZ)()],ge.prototype,"averageElevation",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"imageHeight",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"imageWidth",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],ge.prototype,"metadataSupportsTransforms",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"platformHeadingAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"platformPitchAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"platformRollAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorHeadingAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorAltitude",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorHorizontalFieldOfView",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorLatitude",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorLongitude",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorPitchAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorRollAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorVerticalFieldOfView",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"vttMetadata",void 0),ge=(0,s.Cg)([(0,f.$)("esri.layers.video.VideoCameraSensorModel")],ge);var fe,ye,_e=i(11053);function ve(){return ye?fe:(ye=1,e="undefined"!=typeof window?window:void 0!==_e.c?_e.c:"undefined"!=typeof self?self:{},fe=e);var e}const be=(0,_e.g)(ve());var Te,Se,we,Ce,Ee,ke,xe,Ie,Ae,De,Pe,Me,Le,Oe,Ne,Re,Ue,Fe,Be,qe,je,$e,He,Ve,ze,We;function Ge(){if(Se)return Te;Se=1;var e=Array.prototype.slice;return Te=function(t,i){"length"in t||(t=[t]),t=e.call(t);for(;t.length;){var s=t.shift(),r=i(s);if(r)return r;s.childNodes&&s.childNodes.length&&(t=e.call(s.childNodes).concat(t))}}}function Xe(){return Ie?xe:(Ie=1,xe=function(e){var t=this,i=e.type;e.target||(e.target=t),t.listeners||(t.listeners={});var s=t.listeners[i];if(s)return s.forEach(function(i){e.currentTarget=t,"function"==typeof i?i(e):i.handleEvent(e)});t.parentNode&&t.parentNode.dispatchEvent(e)})}function Ze(){return De?Ae:(De=1,Ae=function(e,t){var i=this;i.listeners||(i.listeners={}),i.listeners[e]||(i.listeners[e]=[]),-1===i.listeners[e].indexOf(t)&&i.listeners[e].push(t)})}function Qe(){return Me?Pe:(Me=1,Pe=function(e,t){var i=this;if(i.listeners&&i.listeners[e]){var s=i.listeners[e],r=s.indexOf(t);-1!==r&&s.splice(r,1)}})}function Ke(){if(Re)return Ne;Re=1;var e=Ge(),t=Xe(),i=Ze(),s=Qe(),r=function(){if(Oe)return Le;Oe=1;var e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function t(e){switch(e.nodeType){case 3:return a(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return i(e)}}function i(i){var s=[],o=i.tagName;return"http://www.w3.org/1999/xhtml"===i.namespaceURI&&(o=o.toLowerCase()),s.push("<"+o+n(i)+function(e){var t=e.dataset,i=[];for(var s in t)i.push({name:"data-"+s,value:t[s]});return i.length?r(i):""}(i)),e.indexOf(o)>-1?s.push(" />"):(s.push(">"),i.childNodes.length?s.push.apply(s,i.childNodes.map(t)):i.textContent||i.innerText?s.push(a(i.textContent||i.innerText)):i.innerHTML&&s.push(i.innerHTML),s.push("</"+o+">")),s.join("")}function s(e,t){var i=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===i||"boolean"===i||"number"===i)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function r(e){var t=[];return e.forEach(function(e){var i=e.name,s=e.value;"style"===i&&(s=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach(function(i){var s=e[i];i=i.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}),t+=i+":"+s+";"}),t}(s)),t.push(i+'="'+function(e){return a(e).replace(/"/g,"&quot;")}(s)+'"')}),t.length?" "+t.join(" "):""}function n(e){var t=[];for(var i in e)s(e,i)&&t.push({name:i,value:e[i]});for(var n in e._attributes)for(var a in e._attributes[n]){var o=e._attributes[n][a],l=(o.prefix?o.prefix+":":"")+a;t.push({name:l,value:o.value})}return e.className&&t.push({name:"class",value:e.className}),t.length?r(t):""}function a(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}return Le=t}(),n="http://www.w3.org/1999/xhtml";function a(e,t,i){if(!(this instanceof a))return new a(e);var s=void 0===i?n:i||null;this.tagName=s===n?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=s,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}return Ne=a,a.prototype.type="DOMElement",a.prototype.nodeType=1,a.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},a.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[i]=e,e.parentNode=this,t},a.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},a.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=null==t?-1:this.childNodes.indexOf(t);return i>-1?this.childNodes.splice(i,0,e):this.childNodes.push(e),e.parentNode=this,e},a.prototype.setAttributeNS=function(e,t,i){var s=null,r=t,n=t.indexOf(":");n>-1&&(s=t.substr(0,n),r=t.substr(n+1)),"INPUT"===this.tagName&&"type"===t?this.type=i:(this._attributes[e]||(this._attributes[e]={}))[r]={value:i,prefix:s}},a.prototype.getAttributeNS=function(e,t){var i=this._attributes[e],s=i&&i[t]&&i[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof s?null:s},a.prototype.removeAttributeNS=function(e,t){var i=this._attributes[e];i&&delete i[t]},a.prototype.hasAttributeNS=function(e,t){var i=this._attributes[e];return!!i&&t in i},a.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},a.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},a.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},a.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},a.prototype.removeEventListener=s,a.prototype.addEventListener=i,a.prototype.dispatchEvent=t,a.prototype.focus=function(){},a.prototype.toString=function(){return r(this)},a.prototype.getElementsByClassName=function(t){var i=t.split(" "),s=[];return e(this,function(e){if(1===e.nodeType){var t=(e.className||"").split(" ");i.every(function(e){return-1!==t.indexOf(e)})&&s.push(e)}}),s},a.prototype.getElementsByTagName=function(t){t=t.toLowerCase();var i=[];return e(this.childNodes,function(e){1!==e.nodeType||"*"!==t&&e.tagName.toLowerCase()!==t||i.push(e)}),i},a.prototype.contains=function(t){return e(this,function(e){return t===e})||!1},Ne}function Ye(){if(We)return ze;We=1;var e,t=void 0!==_e.c?_e.c:"undefined"!=typeof window?window:{},i=function(){if(Ve)return He;Ve=1;var e=function(){if($e)return je;$e=1;var e=Ge(),t=function(){if(Ce)return we;function e(t,i){if(!(this instanceof e))return new e(t,i);this.data=t,this.nodeValue=t,this.length=t.length,this.ownerDocument=i||null}return Ce=1,we=e,e.prototype.nodeType=8,e.prototype.nodeName="#comment",e.prototype.toString=function(){return"[object Comment]"},we}(),i=function(){if(ke)return Ee;function e(t,i){if(!(this instanceof e))return new e(t);this.data=t||"",this.length=this.data.length,this.ownerDocument=i||null}return ke=1,Ee=e,e.prototype.type="DOMTextNode",e.prototype.nodeType=3,e.prototype.nodeName="#text",e.prototype.toString=function(){return this.data},e.prototype.replaceData=function(e,t,i){var s=this.data,r=s.substring(0,e),n=s.substring(e+t,s.length);this.data=r+i+n,this.length=this.data.length},Ee}(),s=Ke(),r=function(){if(Fe)return Ue;Fe=1;var e=Ke();function t(e){if(!(this instanceof t))return new t;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}return Ue=t,t.prototype.type="DocumentFragment",t.prototype.nodeType=11,t.prototype.nodeName="#document-fragment",t.prototype.appendChild=e.prototype.appendChild,t.prototype.replaceChild=e.prototype.replaceChild,t.prototype.removeChild=e.prototype.removeChild,t.prototype.toString=function(){return this.childNodes.map(function(e){return String(e)}).join("")},Ue}(),n=function(){if(qe)return Be;function e(e){}return qe=1,Be=e,e.prototype.initEvent=function(e,t,i){this.type=e,this.bubbles=t,this.cancelable=i},e.prototype.preventDefault=function(){},Be}(),a=Xe(),o=Ze(),l=Qe();function u(){if(!(this instanceof u))return new u;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}je=u;var c=u.prototype;return c.createTextNode=function(e){return new i(e,this)},c.createElementNS=function(e,t){var i=null===e?null:String(e);return new s(t,this,i)},c.createElement=function(e){return new s(e,this)},c.createDocumentFragment=function(){return new r(this)},c.createEvent=function(e){return new n(e)},c.createComment=function(e){return new t(e,this)},c.getElementById=function(t){return t=String(t),e(this.childNodes,function(e){if(String(e.id)===t)return e})||null},c.getElementsByClassName=s.prototype.getElementsByClassName,c.getElementsByTagName=s.prototype.getElementsByTagName,c.contains=s.prototype.contains,c.removeEventListener=l,c.addEventListener=o,c.dispatchEvent=a,je}();return He=new e}();return"undefined"!=typeof document?e=document:(e=t["__GLOBAL_DOCUMENT_CACHE@4"])||(e=t["__GLOBAL_DOCUMENT_CACHE@4"]=i),ze=e}const Je=(0,_e.g)(Ye());var et,tt,it,st,rt,nt,at,ot,lt,ut,ct={exports:{}},ht={exports:{}};const dt=(0,_e.g)(function(){if(ut)return ct.exports;ut=1;var e=ve(),t=(et||(et=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ht)),ht.exports),i=function(){if(it)return tt;it=1,tt=function(t){if(!t)return!1;var i=e.call(t);return"[object Function]"===i||"function"==typeof t&&"[object RegExp]"!==i||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString;return tt}(),s=function(){if(rt)return st;function e(e,i){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=t(e))||i){s&&(e=s);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return i(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}return rt=1,st=function(){function t(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var i=t.prototype;return i.getIsEnabled=function(){return this.enabled_},i.enable=function(){this.enabled_=!0},i.disable=function(){this.enabled_=!1},i.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},i.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var i=this.typeToInterceptorsMap_.get(e);return!i.has(t)&&(i.add(t),!0)},i.removeInterceptor=function(e,t){var i=this.typeToInterceptorsMap_.get(e);return!(!i||!i.has(t)||(i.delete(t),0))},i.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},i.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},i.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},i.execute=function(t,i){for(var s,r=e(this.getForType(t));!(s=r()).done;){var n=s.value;try{i=n(i)}catch(e){}}return i},t}()}(),r=function(){if(at)return nt;at=1;var e=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var i=e.prototype;return i.getIsEnabled=function(){return this.enabled_},i.enable=function(){this.enabled_=!0},i.disable=function(){this.enabled_=!1},i.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},i.getMaxAttempts=function(){return this.maxAttempts_},i.setMaxAttempts=function(e){this.maxAttempts_=e},i.getDelayFactor=function(){return this.delayFactor_},i.setDelayFactor=function(e){this.delayFactor_=e},i.getFuzzFactor=function(){return this.fuzzFactor_},i.setFuzzFactor=function(e){this.fuzzFactor_=e},i.getInitialDelay=function(){return this.initialDelay_},i.setInitialDelay=function(e){this.initialDelay_=e},i.createRetry=function(e){var i=void 0===e?{}:e,s=i.maxAttempts,r=i.delayFactor,n=i.fuzzFactor,a=i.initialDelay;return new t({maxAttempts:s||this.maxAttempts_,delayFactor:r||this.delayFactor_,fuzzFactor:n||this.fuzzFactor_,initialDelay:a||this.initialDelay_})},e}(),t=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay(),t=this.getCurrentMaxPossibleDelay();return e+Math.random()*(t-e)},e}();return nt=e}();o.httpHandler=function(){if(lt)return ot;lt=1;var e=ve();return ot=function(t,i){return void 0===i&&(i=!1),function(s,r,n){if(s)t(s);else if(r.statusCode>=400&&r.statusCode<=599){var a=n;if(i)if(e.TextDecoder){var o=function(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),s=i[0],r=i[1];return"charset"===s.trim()?r.trim():e},"utf-8")}(r.headers&&r.headers["content-type"]);try{a=new TextDecoder(o).decode(n)}catch(e){}}else a=String.fromCharCode.apply(null,new Uint8Array(n));t({cause:a})}else t(null,n)}}}(),o.requestInterceptorsStorage=new s,o.responseInterceptorsStorage=new s,o.retryManager=new r;var n=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var i=e.indexOf(":"),s=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim();void 0===t[s]?t[s]=r:Array.isArray(t[s])?t[s].push(r):t[s]=[t[s],r]}),t):t};function a(e,s,r){var n=e;return i(s)?(r=s,"string"==typeof e&&(n={uri:e})):n=t({},s,{uri:e}),n.callback=r,n}function o(e,t,i){return l(t=a(e,t,i))}function l(e){if(void 0===e.callback)throw new Error("callback argument missing");if(e.requestType&&o.requestInterceptorsStorage.getIsEnabled()){var t={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},i=o.requestInterceptorsStorage.execute(e.requestType,t);e.uri=i.uri,e.headers=i.headers,e.body=i.body,e.metadata=i.metadata,e.retry=i.retry,e.timeout=i.timeout}var s=!1,r=function(t,i,r){s||(s=!0,e.callback(t,i,r))};function a(){var e=void 0;if(e=p.response?p.response:p.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(p),b)try{e=JSON.parse(e)}catch(e){}return e}function u(t){if(clearTimeout(m),clearTimeout(e.retryTimeout),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,d||!o.retryManager.getIsEnabled()||!e.retry||!e.retry.shouldRetry()){if(e.requestType&&o.responseInterceptorsStorage.getIsEnabled()){var i={headers:T.headers||{},body:T.body,responseUrl:p.responseURL,responseType:p.responseType},s=o.responseInterceptorsStorage.execute(e.requestType,i);T.body=s.body,T.headers=s.headers}return r(t,T)}e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=p,l(e)},e.retry.getCurrentFuzzedDelay())}function c(){if(!d){var t;clearTimeout(m),clearTimeout(e.retryTimeout),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var i=T,s=null;if(0!==t?(i={body:a(),statusCode:t,method:f,headers:{},url:g,rawRequest:p},p.getAllResponseHeaders&&(i.headers=n(p.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),e.requestType&&o.responseInterceptorsStorage.getIsEnabled()){var l={headers:i.headers||{},body:i.body,responseUrl:p.responseURL,responseType:p.responseType},u=o.responseInterceptorsStorage.execute(e.requestType,l);i.body=u.body,i.headers=u.headers}return r(s,i,i.body)}}var h,d,p=e.xhr||null;p||(p=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var m,g=p.url=e.uri||e.url,f=p.method=e.method||"GET",y=e.body||e.data,_=p.headers=e.headers||{},v=!!e.sync,b=!1,T={body:void 0,headers:{},statusCode:0,method:f,url:g,rawRequest:p};if("json"in e&&!1!==e.json&&(b=!0,_.accept||_.Accept||(_.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json"),y=JSON.stringify(!0===e.json?y:e.json))),p.onreadystatechange=function(){4!==p.readyState||o.responseInterceptorsStorage.getIsEnabled()||setTimeout(c,0)},p.onload=c,p.onerror=u,p.onprogress=function(){},p.onabort=function(){d=!0,clearTimeout(e.retryTimeout)},p.ontimeout=u,p.open(f,g,!v,e.username,e.password),v||(p.withCredentials=!!e.withCredentials),!v&&e.timeout>0&&(m=setTimeout(function(){if(!d){d=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",u(e)}},e.timeout)),p.setRequestHeader)for(h in _)_.hasOwnProperty(h)&&p.setRequestHeader(h,_[h]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(p),p.send(y||null),p}return ct.exports=o,ct.exports.default=o,o.XMLHttpRequest=e.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:e.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(e){o["delete"===e?"del":e]=function(t,i,s){return(i=a(t,i,s)).method=e.toUpperCase(),l(i)}}),ct.exports}());var pt,mt,gt,ft,yt,_t,vt,bt={exports:{}};function Tt(){if(mt)return pt;mt=1;var e=Ye(),t=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function i(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,i,s){return 3600*(0|e)+60*(0|t)+(0|i)+(0|s)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function r(){this.values=t(null)}function n(e,t,i,s){var r=s?e.split(s):[e];for(var n in r)if("string"==typeof r[n]){var a=r[n].split(i);2===a.length&&t(a[0].trim(),a[1].trim())}}function a(e,t,a){var o=e;function l(){var t=s(e);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+o);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=l(),u(),"--\x3e"!==e.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);e=e.substr(3),u(),t.endTime=l(),u(),function(e,t){var i=new r;n(e,function(e,t){switch(e){case"region":for(var s=a.length-1;s>=0;s--)if(a[s].id===t){i.set(e,a[s].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),n=r[0];i.integer(e,n),i.percent(e,n)&&i.set("snapToLines",!1),i.alt(e,n,["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start","center","end"]);break;case"position":r=t.split(","),i.percent(e,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(e){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(e){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(e){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}i.prototype=t(Error.prototype),i.prototype.constructor=i,i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var s=0;s<i.length;++s)if(t===i[s]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var o=e.createElement&&e.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},c={v:"title",lang:"lang"},h={rt:"ruby"};function d(e,t){function i(){if(!t)return null;var e=t.match(/^([^<]*)(<[^>]*>?)?/);return function(e){return t=t.substr(e.length),e}(e[1]?e[1]:e[2])}function r(e){return o.innerHTML=e,e=o.textContent,o.textContent="",e}function n(e,t){return!h[t.localName]||h[t.localName]===e.localName}function a(t,i){var s=l[t];if(!s)return null;var r=e.document.createElement(s),n=c[t];return n&&i&&(r[n]=i.trim()),r}for(var d,p=e.document.createElement("div"),m=p,g=[];null!==(d=i());)if("<"!==d[0])m.appendChild(e.document.createTextNode(r(d)));else{if("/"===d[1]){g.length&&g[g.length-1]===d.substr(2).replace(">","")&&(g.pop(),m=m.parentNode);continue}var f,y=s(d.substr(1,d.length-2));if(y){f=e.document.createProcessingInstruction("timestamp",y),m.appendChild(f);continue}var _=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!_)continue;if(!(f=a(_[1],_[3])))continue;if(!n(m,f))continue;if(_[2]){var v=_[2].split(".");v.forEach(function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(u.hasOwnProperty(i)){var s=t?"background-color":"color",r=u[i];f.style[s]=r}}),f.className=v.join(" ")}g.push(_[1]),m.appendChild(f),m=f}return p}var p=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(e){for(var t=0;t<p.length;t++){var i=p[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function g(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function s(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function r(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textContent||t.innerText;if(i){var n=i.match(/^.*(\n|\r)/);return n?(e.length=0,n[0]):i}return"ruby"===t.tagName?r(e):t.childNodes?(s(e,t),r(e)):void 0}for(s(t,e);i=r(t);)for(var n=0;n<i.length;n++)if(m(i.charCodeAt(n)))return"rtl";return"ltr"}function f(){}function y(e,t,i){f.call(this),this.cue=t,this.cueDiv=d(e,t.text);var s={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={direction:g(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(s),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function _(e){var t,i,s,r;if(e.div){i=e.div.offsetHeight,s=e.div.offsetWidth,r=e.div.offsetTop;var n=(n=e.div.childNodes)&&(n=n[0])&&n.getClientRects&&n.getClientRects();e=e.div.getBoundingClientRect(),t=n?Math.max(n[0]&&n[0].height||0,e.height/n.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||i,this.bottom=e.bottom||r+(e.height||i),this.width=e.width||s,this.lineHeight=void 0!==t?t:e.lineHeight}function v(e,t,i,s){var r=new _(t),n=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,s=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&s++;return-1*++s}(n),o=[];if(n.snapToLines){var l;switch(n.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var u=r.lineHeight,c=u*Math.round(a),h=i[l]+u,d=o[0];Math.abs(c)>h&&(c=c<0?-1:1,c*=Math.ceil(h/u)*u),a<0&&(c+=""===n.vertical?i.height:i.width,o=o.reverse()),r.move(d,c)}else{var p=r.lineHeight/i.height*100;switch(n.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(n.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}o=["+y","-x","+x","-y"],r=new _(t)}var m=function(e,t){for(var r,n=new _(e),a=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(i,t[o])||e.within(i)&&e.overlapsAny(s);)e.move(t[o]);if(e.within(i))return e;var l=e.intersectPercentage(i);a>l&&(r=new _(e),a=l),e=new _(n)}return r||n}(r,o);t.move(m.toCSSCompatValues(i))}function b(){}return f.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},f.prototype.formatStyle=function(e,t){return 0===e?0:e+t},y.prototype=t(f.prototype),y.prototype.constructor=y,_.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},_.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},_.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},_.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},_.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},_.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},_.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},_.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,s=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||s,height:e.height||t,bottom:e.bottom||s+(e.height||t),width:e.width||i}},b.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},b.convertCueToDOMTree=function(e,t){return e&&t?d(e,t):null},b.processCues=function(e,t,i){if(!e||!t||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var s=e.document.createElement("div");if(s.style.position="absolute",s.style.left="0",s.style.right="0",s.style.top="0",s.style.bottom="0",s.style.margin="1.5%",i.appendChild(s),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],n=_.getSimpleBoxPosition(s),a={font:Math.round(.05*n.height*100)/100+"px sans-serif"};!function(){for(var i,o,l=0;l<t.length;l++)o=t[l],i=new y(e,o,a),s.appendChild(i.div),v(0,i,n,r),o.displayState=i.div,r.push(_.getSimpleBoxPosition(i))}()}else for(var o=0;o<t.length;o++)s.appendChild(t[o].displayState)},b.Parser=function(e,t,i){i||(i=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},b.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof i))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function o(){for(var e=t.buffer,i=0;i<e.length&&"\r"!==e[i]&&"\n"!==e[i];)++i;var s=e.substr(0,i);return"\r"===e[i]&&++i,"\n"===e[i]&&++i,t.buffer=e.substr(i),s}function l(e){var i=new r;if(n(e,function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var s=t.split(",");if(2!==s.length)break;var n=new r;if(n.percent("x",s[0]),n.percent("y",s[1]),!n.has("x")||!n.has("y"))break;i.set(e+"X",n.get("x")),i.set(e+"Y",n.get("y"));break;case"scroll":i.alt(e,t,["up"])}},/=/,/\s/),i.has("id")){var s=new(t.vttjs.VTTRegion||t.window.VTTRegion);s.width=i.get("width",100),s.lines=i.get("lines",3),s.regionAnchorX=i.get("regionanchorX",0),s.regionAnchorY=i.get("regionanchorY",100),s.viewportAnchorX=i.get("viewportanchorX",0),s.viewportAnchorY=i.get("viewportanchorY",100),s.scroll=i.get("scroll",""),t.onregion&&t.onregion(s),t.regionList.push({id:i.get("id"),region:s})}}function u(e){var i=new r;n(e,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",s(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}function c(e){e.match(/X-TIMESTAMP-MAP/)?n(e,function(e,t){"X-TIMESTAMP-MAP"===e&&u(t)},/=/):n(e,function(e,t){"Region"===e&&l(t)},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var h;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var d=(h=o()).match(/^WEBVTT([ \t].*)?$/);if(!d||!d[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(var p=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:h=o(),t.state){case"HEADER":/:/.test(h)?c(h):h||(t.state="ID");continue;case"NOTE":h||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(h)){t.state="NOTE";break}if(!h)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===h.indexOf("--\x3e")){t.cue.id=h;continue}case"CUE":try{a(h,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var m=-1!==h.indexOf("--\x3e");if(!h||m&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=h.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":h||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new i(i.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},pt=b}function St(){if(ft)return gt;ft=1;var e={"":1,lr:1,rl:1},t={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}function s(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}function r(e,t,r){this.hasBeenReset=!1;var n="",a=!1,o=e,l=t,u=r,c=null,h="",d=!0,p="auto",m="start",g="auto",f="auto",y=100,_="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(e){a=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var t=i(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(e){d=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=s(e);t?(m=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=s(e);t?(f=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return _},set:function(e){var t=s(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");_=t,this.hasBeenReset=!0}}}),this.displayState=void 0}return r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},gt=r}function wt(){if(_t)return yt;_t=1;var e={"":!0,up:!0};function t(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}function i(e){return"number"==typeof e&&e>=0&&e<=100}return yt=function(){var e=100,s=3,r=0,n=100,a=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");s=e}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(e){if(!i(e))throw new Error("RegionAnchorX must be between 0 and 100.");n=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!i(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!i(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!i(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var i=t(e);!1===i?console.warn("Scroll: an invalid or illegal string was specified."):l=i}}})}}const Ct=(0,_e.g)(function(){if(vt)return bt.exports;vt=1;var e=ve(),t=bt.exports={WebVTT:Tt(),VTTCue:St(),VTTRegion:wt()};e.vttjs=t,e.WebVTT=t.WebVTT;var i=t.VTTCue,s=t.VTTRegion,r=e.VTTCue,n=e.VTTRegion;return t.shim=function(){e.VTTCue=i,e.VTTRegion=s},t.restore=function(){e.VTTCue=r,e.VTTRegion=n},e.VTTCue||t.shim(),bt.exports}());function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Et.apply(null,arguments)}var kt=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=be.location&&be.location.href||"");var i=/^\/\//.test(e),s=!be.location&&!/\/\//i.test(e);e=new be.URL(e,be.location||"https://example.com");var r=new URL(t,e);return s?r.href.slice(19):i?r.href.slice(r.protocol.length):r.href},xt=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,s=0;s<i;++s)t[s].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),n=t.length,a=0;a<n;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function It(e){for(var t=function(e){return be.atob?be.atob(e):Buffer.from(e,"base64").toString("binary")}(e),i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}class At extends xt{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}const Dt=String.fromCharCode(9),Pt=function(e){const t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),i={};return t[1]&&(i.length=parseInt(t[1],10)),t[2]&&(i.offset=parseInt(t[2],10)),i},Mt=function(e){const t={};if(!e)return t;const i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let s,r=i.length;for(;r--;)""!==i[r]&&(s=/([^=]*)=(.*)/.exec(i[r]).slice(1),s[0]=s[0].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^['"](.*)['"]$/g,"$1"),t[s[0]]=s[1]);return t},Lt=e=>{const t=e.split("x"),i={};return t[0]&&(i.width=parseInt(t[0],10)),t[1]&&(i.height=parseInt(t[1],10)),i};class Ot extends xt{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,i;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((t,i)=>{const s=i(e);return s===e?t:t.concat([s])},[e]).forEach(e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t)return i={type:"tag",tagType:"inf"},t[1]&&(i.duration=parseFloat(t[1])),t[2]&&(i.title=t[2]),void this.trigger("data",i);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"targetduration"},t[1]&&(i.duration=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"version"},t[1]&&(i.version=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"media-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"playlist-type"},t[1]&&(i.playlistType=t[1]),void this.trigger("data",i);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t)return i=Et(Pt(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",i);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t)return i={type:"tag",tagType:"allow-cache"},t[1]&&(i.allowed=!/NO/.test(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if(i={type:"tag",tagType:"map"},t[1]){const e=Mt(t[1]);e.URI&&(i.uri=e.URI),e.BYTERANGE&&(i.byterange=Pt(e.BYTERANGE))}this.trigger("data",i)}else{if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t)return i={type:"tag",tagType:"stream-inf"},t[1]&&(i.attributes=Mt(t[1]),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=Lt(i.attributes.RESOLUTION)),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return i={type:"tag",tagType:"media"},t[1]&&(i.attributes=Mt(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t)return i={type:"tag",tagType:"program-date-time"},t[1]&&(i.dateTimeString=t[1],i.dateTimeObject=new Date(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t)return i={type:"tag",tagType:"key"},t[1]&&(i.attributes=Mt(t[1]),i.attributes.IV&&("0x"===i.attributes.IV.substring(0,2).toLowerCase()&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void this.trigger("data",i);if(t=/^#EXT-X-START:(.*)$/.exec(e),t)return i={type:"tag",tagType:"start"},t[1]&&(i.attributes=Mt(t[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-out-cont"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-out"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-in"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"skip"},i.attributes=Mt(t[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(Dt)),void this.trigger("data",i);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"part"},i.attributes=Mt(t[1]),["DURATION"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=Pt(i.attributes.BYTERANGE)),void this.trigger("data",i);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"server-control"},i.attributes=Mt(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))}),void this.trigger("data",i);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"part-inf"},i.attributes=Mt(t[1]),["PART-TARGET"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),void this.trigger("data",i);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"preload-hint"},i.attributes=Mt(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(i.attributes.hasOwnProperty(e)){i.attributes[e]=parseInt(i.attributes[e],10);const t="BYTERANGE-LENGTH"===e?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[t]=i.attributes[e],delete i.attributes[e]}}),void this.trigger("data",i);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"rendition-report"},i.attributes=Mt(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseInt(i.attributes[e],10))}),void this.trigger("data",i);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){i={type:"tag",tagType:"daterange"},i.attributes=Mt(t[1]),["ID","CLASS"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=String(i.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=new Date(i.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/i.test(i.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=i.attributes[e].toString(16))});const e=/^X-([A-Z]+-)+[A-Z]+$/;for(const t in i.attributes){if(!e.test(t))continue;const s=/[0-9A-Fa-f]{6}/g.test(i.attributes[t]),r=/^\d+(\.\d+)?$/.test(i.attributes[t]);i.attributes[t]=s?i.attributes[t].toString(16):r?parseFloat(i.attributes[t]):String(i.attributes[t])}return void this.trigger("data",i)}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t)this.trigger("data",{type:"tag",tagType:"independent-segments"});else if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"i-frames-only"});else{if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t)return i={type:"tag",tagType:"content-steering"},i.attributes=Mt(t[1]),void this.trigger("data",i);if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e),t)return i={type:"tag",tagType:"i-frame-playlist"},i.attributes=Mt(t[1]),i.attributes.URI&&(i.uri=i.attributes.URI),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=Lt(i.attributes.RESOLUTION)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),void this.trigger("data",i);if(t=/^#EXT-X-DEFINE:(.*)$/.exec(e),t)return i={type:"tag",tagType:"define"},i.attributes=Mt(t[1]),void this.trigger("data",i);this.trigger("data",{type:"tag",data:e.slice(4)})}}}}else this.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))}addParser({expression:e,customType:t,dataParser:i,segment:s}){"function"!=typeof i&&(i=e=>e),this.customParsers.push(r=>{if(e.exec(r))return this.trigger("data",{type:"custom",data:i(r),customType:t,segment:s}),!0})}addTagMapper({expression:e,map:t}){this.tagMappers.push(i=>e.test(i)?t(i):i)}}const Nt=function(e){const t={};return Object.keys(e).forEach(function(i){t[(e=>e.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()))(i)]=e[i]}),t},Rt=function(e){const{serverControl:t,targetDuration:i,partTargetDuration:s}=e;if(!t)return;const r="#EXT-X-SERVER-CONTROL",n="holdBack",a="partHoldBack",o=i&&3*i,l=s&&2*s;i&&!t.hasOwnProperty(n)&&(t[n]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&t[n]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${t[n]}) to targetDuration * 3 (${o})`}),t[n]=o),s&&!t.hasOwnProperty(a)&&(t[a]=3*s,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`})),s&&t[a]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${l}).`}),t[a]=l)};class Ut extends xt{constructor(e={}){super(),this.lineStream=new At,this.parseStream=new Ot,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const t=this,i=[];let s,r,n={},a=!1;const o=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let u=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let c=0,h=0;const d={};this.on("end",()=>{n.uri||!n.parts&&!n.preloadHints||(!n.map&&s&&(n.map=s),!n.key&&r&&(n.key=r),n.timeline||"number"!=typeof u||(n.timeline=u),this.manifest.preloadSegment=n)}),this.parseStream.on("data",function(e){let p,m;if(t.manifest.definitions)for(const i in t.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${i}}`,t.manifest.definitions[i])),e.attributes)for(const s in e.attributes)"string"==typeof e.attributes[s]&&(e.attributes[s]=e.attributes[s].replace(`{$${i}}`,t.manifest.definitions[i]));({tag(){({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const t={};"length"in e&&(n.byterange=t,t.length=e.length,"offset"in e||(e.offset=c)),"offset"in e&&(n.byterange=t,t.offset=e.offset),c=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.title&&(n.title=e.title),e.duration>0&&(n.duration=e.duration),0===e.duration&&(n.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=i},key(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:It(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence"(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,u=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type"(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map(){s={},e.uri&&(s.uri=e.uri),e.byterange&&(s.byterange=e.byterange),r&&(s.key=r)},"stream-inf"(){this.manifest.playlists=i,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes?(n.attributes||(n.attributes={}),Et(n.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},p=t[e.attributes["GROUP-ID"]],m={default:/yes/i.test(e.attributes.DEFAULT)},m.default?m.autoselect=!0:m.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(m.language=e.attributes.LANGUAGE),e.attributes.URI&&(m.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(m.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(m.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(m.forced=/yes/i.test(e.attributes.FORCED)),p[e.attributes.NAME]=m},discontinuity(){u+=1,n.discontinuity=!0,this.manifest.discontinuityStarts.push(i.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),n.dateTimeString=e.dateTimeString,n.dateTimeObject=e.dateTimeObject;const{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime),this.lastProgramDateTime)},targetduration(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,Rt.call(this,this.manifest))},start(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){n.cueOut=e.data},"cue-out-cont"(){n.cueOutCont=e.data},"cue-in"(){n.cueIn=e.data},skip(){this.manifest.skip=Nt(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){a=!0;const t=this.manifest.segments.length,i=Nt(e.attributes);n.parts=n.parts||[],n.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=h),h=i.byterange.offset+i.byterange.length);const s=n.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${s} for segment #${t}`,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})})},"server-control"(){const t=this.manifest.serverControl=Nt(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Rt.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const t=this.manifest.segments.length,i=Nt(e.attributes),s=i.type&&"PART"===i.type;n.preloadHints=n.preloadHints||[],n.preloadHints.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=s?h:0,s&&(h=i.byterange.offset+i.byterange.length)));const r=n.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${r} for segment #${t}`,e.attributes,["TYPE","URI"]),i.type)for(let e=0;e<n.preloadHints.length-1;e++){const s=n.preloadHints[e];s.type&&s.type===i.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${r} for segment #${t} has the same TYPE ${i.type} as preload hint #${e}`})}},"rendition-report"(){const t=Nt(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);const i=this.manifest.renditionReports.length-1,s=["LAST-MSN","URI"];a&&s.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${i}`,e.attributes,s)},"part-inf"(){this.manifest.partInf=Nt(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Rt.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Nt(e.attributes));const t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,["ID","START-DATE"]);const i=this.manifest.dateRanges[t];i.endDate&&i.startDate&&new Date(i.endDate)<new Date(i.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),i.duration&&i.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),i.plannedDuration&&i.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const s=!!i.endOnNext;if(s&&!i.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),s&&(i.duration||i.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),i.duration&&i.endDate){const e=i.startDate.getTime()+1e3*i.duration;this.manifest.dateRanges[t].endDate=new Date(e)}if(d[i.id]){for(const e in d[i.id])if(i[e]&&JSON.stringify(d[i.id][e])!==JSON.stringify(i[e])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const e=this.manifest.dateRanges.findIndex(e=>e.id===i.id);this.manifest.dateRanges[e]=Et(this.manifest.dateRanges[e],i),d[i.id]=Et(d[i.id],i),this.manifest.dateRanges.pop()}else d[i.id]=i},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=Nt(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const t=(e,t)=>{e in this.manifest.definitions?this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`}):this.manifest.definitions[e]=t};if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});const i=this.params.get(e.attributes.QUERYPARAM);return i?void t(e.attributes.QUERYPARAM,decodeURIComponent(i)):void this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`})}return"NAME"in e.attributes?"IMPORT"in e.attributes?void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in e.attributes&&"string"==typeof e.attributes.VALUE?void t(e.attributes.NAME,e.attributes.VALUE):void this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`}):"IMPORT"in e.attributes?this.mainDefinitions[e.attributes.IMPORT]?void t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]):void this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`}):void this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:u}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}}[e.tagType]||o).call(t)},uri(){n.uri=e.uri,i.push(n),this.manifest.targetDuration&&!("duration"in n)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),n.duration=this.manifest.targetDuration),r&&(n.key=r),n.timeline=u,s&&(n.map=s),h=0,null!==this.lastProgramDateTime&&(n.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*n.duration),n={}},comment(){},custom(){e.segment?(n.custom=n.custom||{},n.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(t)})}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,i){const s=[];i.forEach(function(e){t.hasOwnProperty(e)||s.push(e)}),s.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${s.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var Ft,Bt,qt={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},jt=["video","audio","text"],$t=["Video","Audio","Text"],Ht=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)}):e},Vt=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach(function(e){var t;e=e.trim(),jt.forEach(function(s){var r=qt[s].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=s;var n=e.substring(0,r[1].length),a=e.replace(n,"");i.push({type:n,details:a,mediaType:s})}}),t||i.push({type:e,details:"",mediaType:"unknown"})}),i},zt=function(e){return void 0===e&&(e=""),qt.audio.test(e.trim().toLowerCase())},Wt=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return Ht(e.trim())}),i="video";1===t.length&&zt(t[0])?i="audio":1===t.length&&function(e){return void 0===e&&(e=""),qt.text.test(e.trim().toLowerCase())}(t[0])&&(i="application");var s="mp4";return t.every(function(e){return qt.mp4.test(e)})?s="mp4":t.every(function(e){return qt.webm.test(e)})?s="webm":t.every(function(e){return qt.ogg.test(e)})&&(s="ogg"),i+"/"+s+';codecs="'+e+'"'}},Gt=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),be.MediaSource&&be.MediaSource.isTypeSupported&&be.MediaSource.isTypeSupported(Wt(e))||t&&be.ManagedMediaSource&&be.ManagedMediaSource.isTypeSupported&&be.ManagedMediaSource.isTypeSupported(Wt(e))||!1},Xt=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<$t.length;t++)if(qt["muxer"+$t[t]].test(e))return!0;return!1})},Zt="mp4a.40.2",Qt=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Kt=/^application\/dash\+xml/i,Yt=function(e){return Qt.test(e)?"hls":Kt.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},Jt=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},ei=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||function(e){return Jt(e)}(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},ti=be.BigInt||Number,ii=[ti("0x1"),ti("0x100"),ti("0x10000"),ti("0x1000000"),ti("0x100000000"),ti("0x10000000000"),ti("0x1000000000000"),ti("0x100000000000000"),ti("0x10000000000000000")];Ft=new Uint16Array([65484]),255===(Bt=new Uint8Array(Ft.buffer,Ft.byteOffset,Ft.byteLength))[0]||Bt[0];var si,ri,ni=function(e,t){var i=void 0===t?{}:t,s=i.signed,r=void 0!==s&&s,n=i.le,a=void 0!==n&&n;e=ei(e);var o=a?"reduce":"reduceRight",l=(e[o]?e[o]:Array.prototype[o]).call(e,function(t,i,s){var r=a?s:Math.abs(s+1-e.length);return t+ti(i)*ii[r]},ti(0));if(r){var u=ii[e.length]/ti(2)-ti(1);(l=ti(l))>u&&(l-=u,l-=u,l-=ti(2))}return Number(l)},ai=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),s=0;s<e.length;s++)i[s]=e.charCodeAt(s);return i},oi=function(e,t,i){var s=void 0===i?{}:i,r=s.offset,n=void 0===r?0:r,a=s.mask,o=void 0===a?[]:a;e=ei(e);var l=(t=ei(t)).every?t.every:Array.prototype.every;return t.length&&e.length-n>=t.length&&l.call(t,function(t,i){return t===(o[i]?o[i]&e[n+i]:e[n+i])})},li={},ui={},ci={};function hi(){if(si)return ci;function e(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}si=1;var t=e({HTML:"text/html",isHTML:function(e){return e===t.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i=e({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===i.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return ci.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ci.find=function(e,t,i){if(void 0===i&&(i=Array.prototype),e&&"function"==typeof i.find)return i.find.call(e,t);for(var s=0;s<e.length;s++)if(Object.prototype.hasOwnProperty.call(e,s)){var r=e[s];if(t.call(void 0,r,s,e))return r}},ci.freeze=e,ci.MIME_TYPE=t,ci.NAMESPACE=i,ci}function di(){if(ri)return ui;ri=1;var e=hi(),t=e.find,i=e.NAMESPACE;function s(e){return""!==e}function r(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function n(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(s):[]}(e);return Object.keys(t.reduce(r,{}))}function a(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function o(e,t){var i=e.prototype;if(!(i instanceof t)){function s(){}s.prototype=t.prototype,a(i,s=new s),e.prototype=i=s}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.constructor=e)}var l={},u=l.ELEMENT_NODE=1,c=l.ATTRIBUTE_NODE=2,h=l.TEXT_NODE=3,d=l.CDATA_SECTION_NODE=4,p=l.ENTITY_REFERENCE_NODE=5,m=l.ENTITY_NODE=6,g=l.PROCESSING_INSTRUCTION_NODE=7,f=l.COMMENT_NODE=8,y=l.DOCUMENT_NODE=9,_=l.DOCUMENT_TYPE_NODE=10,v=l.DOCUMENT_FRAGMENT_NODE=11,b=l.NOTATION_NODE=12,T={},S={};T.INDEX_SIZE_ERR=(S[1]="Index size error",1),T.DOMSTRING_SIZE_ERR=(S[2]="DOMString size error",2);var w=T.HIERARCHY_REQUEST_ERR=(S[3]="Hierarchy request error",3);T.WRONG_DOCUMENT_ERR=(S[4]="Wrong document",4),T.INVALID_CHARACTER_ERR=(S[5]="Invalid character",5),T.NO_DATA_ALLOWED_ERR=(S[6]="No data allowed",6),T.NO_MODIFICATION_ALLOWED_ERR=(S[7]="No modification allowed",7);var C=T.NOT_FOUND_ERR=(S[8]="Not found",8);T.NOT_SUPPORTED_ERR=(S[9]="Not supported",9);var E=T.INUSE_ATTRIBUTE_ERR=(S[10]="Attribute in use",10);function k(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,S[e]),this.message=S[e],Error.captureStackTrace&&Error.captureStackTrace(this,k);return i.code=e,t&&(this.message=this.message+": "+t),i}function x(){}function I(e,t){this._node=e,this._refresh=t,A(this)}function A(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var i=e._refresh(e._node);if(ye(e,"length",i.length),!e.$$length||i.length<e.$$length)for(var s=i.length;s in e;s++)Object.prototype.hasOwnProperty.call(e,s)&&delete e[s];a(i,e),e._inc=t}}function D(){}function P(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function M(e,t,i,s){if(s?t[P(t,s)]=i:t[t.length++]=i,e){i.ownerElement=e;var r=e.ownerDocument;r&&(s&&q(r,e,s),B(r,e,i))}}function L(e,t,i){var s=P(t,i);if(!(s>=0))throw new k(C,new Error(e.tagName+"@"+i));for(var r=t.length-1;s<r;)t[s]=t[++s];if(t.length=r,e){var n=e.ownerDocument;n&&(q(n,e,i),i.ownerElement=null)}}function O(){}function N(){}function R(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function U(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(U(e,t))return!0}while(e=e.nextSibling)}function F(){this.ownerDocument=this}function B(e,t,s){e&&e._inc++,s.namespaceURI===i.XMLNS&&(t._nsMap[s.prefix?s.localName:""]=s.value)}function q(e,t,s,r){e&&e._inc++,s.namespaceURI===i.XMLNS&&delete t._nsMap[s.prefix?s.localName:""]}function j(e,t,i){if(e&&e._inc){e._inc++;var s=t.childNodes;if(i)s[s.length++]=i;else{for(var r=t.firstChild,n=0;r;)s[n++]=r,r=r.nextSibling;s.length=n,delete s[s.length]}}}function $(e,t){var i=t.previousSibling,s=t.nextSibling;return i?i.nextSibling=s:e.firstChild=s,s?s.previousSibling=i:e.lastChild=i,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,j(e.ownerDocument,e),t}function H(e){return e&&e.nodeType===N.DOCUMENT_TYPE_NODE}function V(e){return e&&e.nodeType===N.ELEMENT_NODE}function z(e){return e&&e.nodeType===N.TEXT_NODE}function W(e,i){var s=e.childNodes||[];if(t(s,V)||H(i))return!1;var r=t(s,H);return!(i&&r&&s.indexOf(r)>s.indexOf(i))}function G(e,i){var s=e.childNodes||[];if(t(s,function(e){return V(e)&&e!==i}))return!1;var r=t(s,H);return!(i&&r&&s.indexOf(r)>s.indexOf(i))}function X(e,i,s){var r=e.childNodes||[],n=i.childNodes||[];if(i.nodeType===N.DOCUMENT_FRAGMENT_NODE){var a=n.filter(V);if(a.length>1||t(n,z))throw new k(w,"More than one element or text in fragment");if(1===a.length&&!W(e,s))throw new k(w,"Element in fragment can not be inserted before doctype")}if(V(i)&&!W(e,s))throw new k(w,"Only one element can be added and only after doctype");if(H(i)){if(t(r,H))throw new k(w,"Only one doctype is allowed");var o=t(r,V);if(s&&r.indexOf(o)<r.indexOf(s))throw new k(w,"Doctype can only be inserted before an element");if(!s&&o)throw new k(w,"Doctype can not be appended since element is present")}}function Z(e,i,s){var r=e.childNodes||[],n=i.childNodes||[];if(i.nodeType===N.DOCUMENT_FRAGMENT_NODE){var a=n.filter(V);if(a.length>1||t(n,z))throw new k(w,"More than one element or text in fragment");if(1===a.length&&!G(e,s))throw new k(w,"Element in fragment can not be inserted before doctype")}if(V(i)&&!G(e,s))throw new k(w,"Only one element can be added and only after doctype");if(H(i)){function l(e){return H(e)&&e!==s}if(t(r,l))throw new k(w,"Only one doctype is allowed");var o=t(r,V);if(s&&r.indexOf(o)<r.indexOf(s))throw new k(w,"Doctype can only be inserted before an element")}}function Q(e,t,i,s){(function(e,t,i){if(!function(e){return e&&(e.nodeType===N.DOCUMENT_NODE||e.nodeType===N.DOCUMENT_FRAGMENT_NODE||e.nodeType===N.ELEMENT_NODE)}(e))throw new k(w,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new k(C,"child not in parent");if(!function(e){return e&&(V(e)||z(e)||H(e)||e.nodeType===N.DOCUMENT_FRAGMENT_NODE||e.nodeType===N.COMMENT_NODE||e.nodeType===N.PROCESSING_INSTRUCTION_NODE)}(t)||H(t)&&e.nodeType!==N.DOCUMENT_NODE)throw new k(w,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)})(e,t,i),e.nodeType===N.DOCUMENT_NODE&&(s||X)(e,t,i);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===v){var n=t.firstChild;if(null==n)return t;var a=t.lastChild}else n=a=t;var o=i?i.previousSibling:e.lastChild;n.previousSibling=o,a.nextSibling=i,o?o.nextSibling=n:e.firstChild=n,null==i?e.lastChild=a:i.previousSibling=a;do{n.parentNode=e,K(n,e.ownerDocument||e)}while(n!==a&&(n=n.nextSibling));return j(e.ownerDocument||e,e),t.nodeType==v&&(t.firstChild=t.lastChild=null),t}function K(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===u&&e.attributes)for(var i=0;i<e.attributes.length;i++){var s=e.attributes.item(i);s&&(s.ownerDocument=t)}for(var r=e.firstChild;r;)K(r,t),r=r.nextSibling}}function Y(){this._nsMap={}}function J(){}function ee(){}function te(){}function ie(){}function se(){}function re(){}function ne(){}function ae(){}function oe(){}function le(){}function ue(){}function ce(){}function he(e,t){var i=[],s=9==this.nodeType&&this.documentElement||this,r=s.prefix,n=s.namespaceURI;if(n&&null==r&&null==(r=s.lookupPrefix(n)))var a=[{namespace:n,prefix:null}];return me(this,i,e,t,a),i.join("")}function de(e,t,s){var r=e.prefix||"",n=e.namespaceURI;if(!n)return!1;if("xml"===r&&n===i.XML||n===i.XMLNS)return!1;for(var a=s.length;a--;){var o=s[a];if(o.prefix===r)return o.namespace!==n}return!0}function pe(e,t,i){e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,R),'"')}function me(e,t,s,r,n){if(n||(n=[]),r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case u:var a=e.attributes,o=a.length,l=e.firstChild,m=e.tagName,b=m;if(!(s=i.isHTML(e.namespaceURI)||s)&&!e.prefix&&e.namespaceURI){for(var T,S=0;S<a.length;S++)if("xmlns"===a.item(S).name){T=a.item(S).value;break}if(!T)for(var w=n.length-1;w>=0;w--)if(""===(C=n[w]).prefix&&C.namespace===e.namespaceURI){T=C.namespace;break}if(T!==e.namespaceURI)for(w=n.length-1;w>=0;w--){var C;if((C=n[w]).namespace===e.namespaceURI){C.prefix&&(b=C.prefix+":"+m);break}}}t.push("<",b);for(var E=0;E<o;E++)"xmlns"==(k=a.item(E)).prefix?n.push({prefix:k.localName,namespace:k.value}):"xmlns"==k.nodeName&&n.push({prefix:"",namespace:k.value});for(E=0;E<o;E++){var k,x,I;de(k=a.item(E),0,n)&&(pe(t,(x=k.prefix||"")?"xmlns:"+x:"xmlns",I=k.namespaceURI),n.push({prefix:x,namespace:I})),me(k,t,s,r,n)}if(m===b&&de(e,0,n)&&(pe(t,(x=e.prefix||"")?"xmlns:"+x:"xmlns",I=e.namespaceURI),n.push({prefix:x,namespace:I})),l||s&&!/^(?:meta|link|img|br|hr|input)$/i.test(m)){if(t.push(">"),s&&/^script$/i.test(m))for(;l;)l.data?t.push(l.data):me(l,t,s,r,n.slice()),l=l.nextSibling;else for(;l;)me(l,t,s,r,n.slice()),l=l.nextSibling;t.push("</",b,">")}else t.push("/>");return;case y:case v:for(l=e.firstChild;l;)me(l,t,s,r,n.slice()),l=l.nextSibling;return;case c:return pe(t,e.name,e.value);case h:return t.push(e.data.replace(/[<&>]/g,R));case d:return t.push("<![CDATA[",e.data,"]]>");case f:return t.push("\x3c!--",e.data,"--\x3e");case _:var A=e.publicId,D=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),D&&"."!=D&&t.push(" ",D),t.push(">");else if(D&&"."!=D)t.push(" SYSTEM ",D,">");else{var P=e.internalSubset;P&&t.push(" [",P,"]"),t.push(">")}return;case g:return t.push("<?",e.target," ",e.data,"?>");case p:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ge(e,t,i){var s;switch(t.nodeType){case u:(s=t.cloneNode(!1)).ownerDocument=e;case v:break;case c:i=!0}if(s||(s=t.cloneNode(!1)),s.ownerDocument=e,s.parentNode=null,i)for(var r=t.firstChild;r;)s.appendChild(ge(e,r,i)),r=r.nextSibling;return s}function fe(e,t,i){var s=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=t[r];"object"!=typeof n&&n!=s[r]&&(s[r]=n)}switch(t.childNodes&&(s.childNodes=new x),s.ownerDocument=e,s.nodeType){case u:var a=t.attributes,o=s.attributes=new D,l=a.length;o._ownerElement=s;for(var h=0;h<l;h++)s.setAttributeNode(fe(e,a.item(h),!0));break;case c:i=!0}if(i)for(var d=t.firstChild;d;)s.appendChild(fe(e,d,i)),d=d.nextSibling;return s}function ye(e,t,i){e[t]=i}T.INVALID_STATE_ERR=(S[11]="Invalid state",11),T.SYNTAX_ERR=(S[12]="Syntax error",12),T.INVALID_MODIFICATION_ERR=(S[13]="Invalid modification",13),T.NAMESPACE_ERR=(S[14]="Invalid namespace",14),T.INVALID_ACCESS_ERR=(S[15]="Invalid access",15),k.prototype=Error.prototype,a(T,k),x.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var i=[],s=0;s<this.length;s++)me(this[s],i,e,t);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},I.prototype.item=function(e){return A(this),this[e]||null},o(I,x),D.prototype={length:0,item:x.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new k(E);var i=this.getNamedItem(e.nodeName);return M(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new k(E);return t=this.getNamedItemNS(e.namespaceURI,e.localName),M(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return L(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return L(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var s=this[i];if(s.localName==t&&s.namespaceURI==e)return s}return null}},O.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var s=new F;if(s.implementation=this,s.childNodes=new x,s.doctype=i||null,i&&s.appendChild(i),t){var r=s.createElementNS(e,t);s.appendChild(r)}return s},createDocumentType:function(e,t,i){var s=new re;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=i||"",s}},N.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Q(this,e,t)},replaceChild:function(e,t){Q(this,e,t,Z),t&&this.removeChild(t)},removeChild:function(e){return $(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return fe(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==h&&e.nodeType==h?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var i=t._nsMap;if(i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&i[s]===e)return s;t=t.nodeType==c?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];t=t.nodeType==c?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},a(l,N),a(l,N.prototype),F.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==v){for(var i=e.firstChild;i;){var s=i.nextSibling;this.insertBefore(i,t),i=s}return e}return Q(this,e,t),K(e,this),null===this.documentElement&&e.nodeType===u&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),$(this,e)},replaceChild:function(e,t){Q(this,e,t,Z),K(e,this),t&&this.removeChild(t),V(e)&&(this.documentElement=e)},importNode:function(e,t){return ge(this,e,t)},getElementById:function(e){var t=null;return U(this.documentElement,function(i){if(i.nodeType==u&&i.getAttribute("id")==e)return t=i,!0}),t},getElementsByClassName:function(e){var t=n(e);return new I(this,function(i){var s=[];return t.length>0&&U(i.documentElement,function(r){if(r!==i&&r.nodeType===u){var a=r.getAttribute("class");if(a){var o=e===a;if(!o){var l=n(a);o=t.every(function(e){return function(t){return e&&-1!==e.indexOf(t)}}(l))}o&&s.push(r)}}}),s})},createElement:function(e){var t=new Y;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new x,(t.attributes=new D)._ownerElement=t,t},createDocumentFragment:function(){var e=new le;return e.ownerDocument=this,e.childNodes=new x,e},createTextNode:function(e){var t=new te;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ie;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new se;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new ue;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new J;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new oe;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new Y,s=t.split(":"),r=i.attributes=new D;return i.childNodes=new x,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,r._ownerElement=i,i},createAttributeNS:function(e,t){var i=new J,s=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,i}},o(F,N),Y.prototype={nodeType:u,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+t,this.setAttributeNode(i)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===v?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,j(e.ownerDocument,e,t),K(t,e.ownerDocument||e),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);i&&this.removeAttributeNode(i)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);return i&&i.value||""},setAttributeNS:function(e,t,i){var s=this.ownerDocument.createAttributeNS(e,t);s.value=s.nodeValue=""+i,this.setAttributeNode(s)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new I(this,function(t){var i=[];return U(t,function(s){s===t||s.nodeType!=u||"*"!==e&&s.tagName!=e||i.push(s)}),i})},getElementsByTagNameNS:function(e,t){return new I(this,function(i){var s=[];return U(i,function(r){r===i||r.nodeType!==u||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||s.push(r)}),s})}},F.prototype.getElementsByTagName=Y.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=Y.prototype.getElementsByTagNameNS,o(Y,N),J.prototype.nodeType=c,o(J,N),ee.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(S[w])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){i=this.data.substring(0,e)+i+this.data.substring(e+t),this.nodeValue=this.data=i,this.length=i.length}},o(ee,N),te.prototype={nodeName:"#text",nodeType:h,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var s=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}},o(te,ee),ie.prototype={nodeName:"#comment",nodeType:f},o(ie,ee),se.prototype={nodeName:"#cdata-section",nodeType:d},o(se,ee),re.prototype.nodeType=_,o(re,N),ne.prototype.nodeType=b,o(ne,N),ae.prototype.nodeType=m,o(ae,N),oe.prototype.nodeType=p,o(oe,N),le.prototype.nodeName="#document-fragment",le.prototype.nodeType=v,o(le,N),ue.prototype.nodeType=g,o(ue,N),ce.prototype.serializeToString=function(e,t,i){return he.call(e,t,i)},N.prototype.toString=he;try{if(Object.defineProperty){function _e(e){switch(e.nodeType){case u:case v:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(_e(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(I.prototype,"length",{get:function(){return A(this),this.$$length}}),Object.defineProperty(N.prototype,"textContent",{get:function(){return _e(this)},set:function(e){switch(this.nodeType){case u:case v:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ye=function(e,t,i){e["$$"+t]=i}}}catch(ve){}return ui.DocumentType=re,ui.DOMException=k,ui.DOMImplementation=O,ui.Element=Y,ui.Node=N,ui.NodeList=x,ui.XMLSerializer=ce,ui}var pi,mi,gi,fi,yi={},_i={},vi={};function bi(){if(gi)return yi;gi=1;var e=hi(),t=di(),i=function(){return pi||(pi=1,e=_i,t=hi().freeze,e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),e.entityMap=e.HTML_ENTITIES),_i;var e,t}(),s=function(){if(mi)return vi;mi=1;var e=hi().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,i=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=new RegExp("^"+t.source+i.source+"*(?::"+t.source+i.source+"*)?$");function r(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,r)}function n(){}function a(t,i,s,n,a){function d(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(s,t)?s[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function f(e){if(e>C){var i=t.substring(C,e).replace(/&#?\w+;/g,d);T&&y(C),n.characters(i,0,e-C),C=e}}function y(e,i){for(;e>=v&&(i=b.exec(t));)_=i.index,v=_+i[0].length,T.lineNumber++;T.columnNumber=e-_+1}for(var _=0,v=0,b=/.*(?:\r\n?|\n)|.*$/g,T=n.locator,S=[{currentNSMap:i}],w={},C=0;;){try{var E=t.indexOf("<",C);if(E<0){if(!t.substr(C).match(/^\s*$/)){var k=n.doc,x=k.createTextNode(t.substr(C));k.appendChild(x),n.currentElement=x}return}switch(E>C&&f(E),t.charAt(E+1)){case"/":var I=t.indexOf(">",E+3),A=t.substring(E+2,I).replace(/[ \t\n\r]+$/g,""),D=S.pop();I<0?(A=t.substring(E+2).replace(/[\s<].*/,""),a.error("end tag name: "+A+" is not complete:"+D.tagName),I=E+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),a.error("end tag name: "+A+" maybe not complete"),I=E+1+A.length);var P=D.localNSMap,M=D.tagName==A;if(M||D.tagName&&D.tagName.toLowerCase()==A.toLowerCase()){if(n.endElement(D.uri,D.localName,A),P)for(var L in P)Object.prototype.hasOwnProperty.call(P,L)&&n.endPrefixMapping(L);M||a.fatalError("end tag name: "+A+" is not match the current start tagName:"+D.tagName)}else S.push(D);I++;break;case"?":T&&y(E),I=m(t,E,n);break;case"!":T&&y(E),I=p(t,E,n,a);break;default:T&&y(E);var O=new g,N=S[S.length-1].currentNSMap,R=(I=l(t,E,O,N,d,a),O.length);if(!O.closed&&h(t,I,O.tagName,w)&&(O.closed=!0,s.nbsp||a.warning("unclosed xml attribute")),T&&R){for(var U=o(T,{}),F=0;F<R;F++){var B=O[F];y(B.offset),B.locator=o(T,{})}n.locator=U,u(O,n,N)&&S.push(O),n.locator=T}else u(O,n,N)&&S.push(O);e.isHTML(O.uri)&&!O.closed?I=c(t,I,O.tagName,d,n):I++}}catch(e){if(e instanceof r)throw e;a.error("element parse error: "+e),I=-1}I>C?C=I:f(Math.max(E,C)+1)}}function o(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function l(t,i,s,r,n,a){function o(e,t,i){s.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),s.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,n),i)}for(var l,u=++i,c=0;;){var h=t.charAt(u);switch(h){case"=":if(1===c)l=t.slice(i,u),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(a.warning('attribute value must after "="'),l=t.slice(i,u)),i=u+1,!((u=t.indexOf(h,i))>0))throw new Error("attribute value no end '"+h+"' match");o(l,d=t.slice(i,u),i-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');o(l,d=t.slice(i,u),i),a.warning('attribute "'+l+'" missed start quot('+h+")!!"),i=u+1,c=5}break;case"/":switch(c){case 0:s.setTagName(t.slice(i,u));case 5:case 6:case 7:c=7,s.closed=!0;case 4:case 1:break;case 2:s.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==c&&s.setTagName(t.slice(i,u)),u;case">":switch(c){case 0:s.setTagName(t.slice(i,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(d=t.slice(i,u)).slice(-1)&&(s.closed=!0,d=d.slice(0,-1));case 2:2===c&&(d=l),4==c?(a.warning('attribute "'+d+'" missed quot(")!'),o(l,d,i)):(e.isHTML(r[""])&&d.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+d+'" missed value!! "'+d+'" instead!!'),o(d,d,i));break;case 3:throw new Error("attribute value missed!!")}return u;case"€":h=" ";default:if(h<=" ")switch(c){case 0:s.setTagName(t.slice(i,u)),c=6;break;case 1:l=t.slice(i,u),c=2;break;case 4:var d=t.slice(i,u);a.warning('attribute "'+d+'" missed quot(")!!'),o(l,d,i);case 5:c=6}else switch(c){case 2:s.tagName,e.isHTML(r[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),o(l,l,i),i=u,c=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:c=1,i=u;break;case 3:c=4,i=u;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function u(t,i,s){for(var r=t.tagName,n=null,a=t.length;a--;){var o=t[a],l=o.qName,u=o.value;if((m=l.indexOf(":"))>0)var c=o.prefix=l.slice(0,m),h=l.slice(m+1),p="xmlns"===c&&h;else h=l,c=null,p="xmlns"===l&&"";o.localName=h,!1!==p&&(null==n&&(n={},d(s,s={})),s[p]=n[p]=u,o.uri=e.XMLNS,i.startPrefixMapping(p,u))}for(a=t.length;a--;)(c=(o=t[a]).prefix)&&("xml"===c&&(o.uri=e.XML),"xmlns"!==c&&(o.uri=s[c||""]));var m;(m=r.indexOf(":"))>0?(c=t.prefix=r.slice(0,m),h=t.localName=r.slice(m+1)):(c=null,h=t.localName=r);var g=t.uri=s[c||""];if(i.startElement(g,h,r,t),!t.closed)return t.currentNSMap=s,t.localNSMap=n,!0;if(i.endElement(g,h,r),n)for(c in n)Object.prototype.hasOwnProperty.call(n,c)&&i.endPrefixMapping(c)}function c(e,t,i,s,r){if(/^(?:script|textarea)$/i.test(i)){var n=e.indexOf("</"+i+">",t),a=e.substring(t+1,n);if(/[&<]/.test(a))return/^script$/i.test(i)?(r.characters(a,0,a.length),n):(a=a.replace(/&#?\w+;/g,s),r.characters(a,0,a.length),n)}return t+1}function h(e,t,i,s){var r=s[i];return null==r&&((r=e.lastIndexOf("</"+i+">"))<t&&(r=e.lastIndexOf("</"+i)),s[i]=r),r<t}function d(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function p(e,t,i,s){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(i.comment(e,t+4,r-t-4),r+3):(s.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,r-t-9),i.endCDATA(),r+3}var n=function(e,t){var i,s=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);i=r.exec(e);)if(s.push(i),i[1])return s}(e,t),a=n.length;if(a>1&&/!doctype/i.test(n[0][0])){var o=n[1][0],l=!1,u=!1;a>3&&(/^public$/i.test(n[2][0])?(l=n[3][0],u=a>4&&n[4][0]):/^system$/i.test(n[2][0])&&(u=n[3][0]));var c=n[a-1];return i.startDTD(o,l,u),i.endDTD(),c.index+c[0].length}return-1}function m(e,t,i){var s=e.indexOf("?>",t);if(s){var r=e.substring(t,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,i.processingInstruction(r[1],r[2]),s+2):-1}return-1}function g(){this.attributeNames={}}return r.prototype=new Error,r.prototype.name=r.name,n.prototype={parse:function(e,t,i){var s=this.domBuilder;s.startDocument(),d(t,t={}),a(e,t,i,s,this.errorHandler),s.endDocument()}},g.prototype={setTagName:function(e){if(!s.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!s.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},vi.XMLReader=n,vi.ParseError=r,vi}(),r=t.DOMImplementation,n=e.NAMESPACE,a=s.ParseError,o=s.XMLReader;function l(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function u(e){this.options=e||{locator:{}}}function c(e,t,i){if(!e){if(t instanceof h)return t;e=t}var s={},r=e instanceof Function;function n(t){var n=e[t];!n&&r&&(n=2==e.length?function(i){e(t,i)}:e),s[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+p(i))}||function(){}}return i=i||{},n("warning"),n("error"),n("fatalError"),s}function h(){this.cdata=!1}function d(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function p(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function g(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}return u.prototype.parseFromString=function(e,t){var s=this.options,r=new o,a=s.domBuilder||new h,u=s.errorHandler,d=s.locator,p=s.xmlns||{},m=/\/x?html?$/.test(t),g=m?i.HTML_ENTITIES:i.XML_ENTITIES;d&&a.setDocumentLocator(d),r.errorHandler=c(u,a,d),r.domBuilder=s.domBuilder||a,m&&(p[""]=n.HTML),p.xml=p.xml||n.XML;var f=s.normalizeLineEndings||l;return e&&"string"==typeof e?r.parse(f(e),p,g):r.errorHandler.error("invalid doc source"),a.doc},h.prototype={startDocument:function(){this.doc=(new r).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,s){var r=this.doc,n=r.createElementNS(e,i||t),a=s.length;g(this,n),this.currentElement=n,this.locator&&d(this.locator,n);for(var o=0;o<a;o++){e=s.getURI(o);var l=s.getValue(o),u=(i=s.getQName(o),r.createAttributeNS(e,i));this.locator&&d(s.getLocator(o),u),u.value=u.nodeValue=l,n.setAttributeNode(u)}},endElement:function(e,t,i){var s=this.currentElement;s.tagName,this.currentElement=s.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&d(this.locator,i),g(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=m.apply(this,arguments)){if(this.cdata)var s=this.doc.createCDATASection(e);else s=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(e)&&this.doc.appendChild(s),this.locator&&d(this.locator,s)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=m.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&d(this.locator,s),g(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var s=this.doc.implementation;if(s&&s.createDocumentType){var r=s.createDocumentType(e,t,i);this.locator&&d(this.locator,r),g(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,p(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,p(this.locator))},fatalError:function(e){throw new a(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null}}),yi.__DOMHandler=h,yi.normalizeLineEndings=l,yi.DOMParser=u,yi}var Ti=function(){if(fi)return li;fi=1;var e=di();return li.DOMImplementation=e.DOMImplementation,li.XMLSerializer=e.XMLSerializer,li.DOMParser=bi().DOMParser,li}();const Si=e=>!!e&&"object"==typeof e,wi=(...e)=>e.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(i=>{Array.isArray(e[i])&&Array.isArray(t[i])?e[i]=e[i].concat(t[i]):Si(e[i])&&Si(t[i])?e[i]=wi(e[i],t[i]):e[i]=t[i]}),e),{}),Ci=e=>Object.keys(e).map(t=>e[t]),Ei=e=>e.reduce((e,t)=>e.concat(t),[]),ki=e=>{if(!e.length)return[];const t=[];for(let i=0;i<e.length;i++)t.push(e[i]);return t};const xi=({baseUrl:e="",source:t="",range:i="",indexRange:s=""})=>{const r={uri:t,resolvedUri:kt(e||"",t)};if(i||s){const e=(i||s).split("-");let t,n=be.BigInt?be.BigInt(e[0]):parseInt(e[0],10),a=be.BigInt?be.BigInt(e[1]):parseInt(e[1],10);n<Number.MAX_SAFE_INTEGER&&"bigint"==typeof n&&(n=Number(n)),a<Number.MAX_SAFE_INTEGER&&"bigint"==typeof a&&(a=Number(a)),t="bigint"==typeof a||"bigint"==typeof n?be.BigInt(a)-be.BigInt(n)+be.BigInt(1):a-n+1,"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),r.byterange={length:t,offset:n}}return r},Ii=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),Ai={static(e){const{duration:t,timescale:i=1,sourceDuration:s,periodDuration:r}=e,n=Ii(e.endNumber),a=t/i;return"number"==typeof n?{start:0,end:n}:"number"==typeof r?{start:0,end:r/a}:{start:0,end:s/a}},dynamic(e){const{NOW:t,clientOffset:i,availabilityStartTime:s,timescale:r=1,duration:n,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,u=Ii(e.endNumber),c=(t+i)/1e3,h=s+a,d=c+o-h,p=Math.ceil(d*r/n),m=Math.floor((c-h-l)*r/n),g=Math.floor((c-h)*r/n);return{start:Math.max(0,m),end:"number"==typeof u?u:Math.min(p,g)}}},Di=e=>{const{type:t,duration:i,timescale:s=1,periodDuration:r,sourceDuration:n}=e,{start:a,end:o}=Ai[t](e),l=((e,t)=>{const i=[];for(let s=e;s<t;s++)i.push(s);return i})(a,o).map((e=>t=>{const{duration:i,timescale:s=1,periodStart:r,startNumber:n=1}=e;return{number:n+t,duration:i/s,timeline:r,time:t*i}})(e));if("static"===t){const e=l.length-1,t="number"==typeof r?r:n;l[e].duration=t-i/s*e}return l},Pi=e=>{const{baseUrl:t,initialization:i={},sourceDuration:s,indexRange:r="",periodStart:n,presentationTime:a,number:o=0,duration:l}=e;if(!t)throw new Error("NO_BASE_URL");const u=xi({baseUrl:t,source:i.sourceURL,range:i.range}),c=xi({baseUrl:t,source:t,indexRange:r});if(c.map=u,l){const t=Di(e);t.length&&(c.duration=t[0].duration,c.timeline=t[0].timeline)}else s&&(c.duration=s,c.timeline=n);return c.presentationTime=a||n,c.number=o,[c]},Mi=(e,t,i)=>{const s=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,n=e.timeline||0,a=e.sidx.byterange,o=a.offset+a.length,l=t.timescale,u=t.references.filter(e=>1!==e.referenceType),c=[],h=e.endList?"static":"dynamic",d=e.sidx.timeline;let p,m=d,g=e.mediaSequence||0;p="bigint"==typeof t.firstOffset?be.BigInt(o)+t.firstOffset:o+t.firstOffset;for(let e=0;e<u.length;e++){const a=t.references[e],o=a.referencedSize,u=a.subsegmentDuration;let f;f="bigint"==typeof p?p+be.BigInt(o)-be.BigInt(1):p+o-1;const y=Pi({baseUrl:i,timescale:l,timeline:n,periodStart:d,presentationTime:m,number:g,duration:u,sourceDuration:r,indexRange:`${p}-${f}`,type:h})[0];s&&(y.map=s),c.push(y),p+="bigint"==typeof p?be.BigInt(o):o,m+=u/l,g++}return e.segments=c,e},Li=["AUDIO","SUBTITLES"],Oi=1/60,Ni=e=>(e=>Ci(e.reduce((e,t)=>(t.forEach(t=>{e[(({timeline:e})=>e)(t)]=t}),e),{})))(e).sort((e,t)=>e.timeline>t.timeline?1:-1),Ri=e=>{let t=[];return function(e,t,i){t.forEach(function(t){for(var s in e.mediaGroups[t])for(var r in e.mediaGroups[t][s]){var n=e.mediaGroups[t][s][r];i(n)}})}(e,Li,(e,i,s,r)=>{t=t.concat(e.playlists||[])}),t},Ui=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,i)=>{t.number=e.mediaSequence+i})},Fi=e=>e&&e.uri+"-"+(e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?be.BigInt(e.offset)+be.BigInt(e.length)-be.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`})(e.byterange),Bi=e=>{const t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{});let i=[];return Object.values(t).forEach(e=>{const t=Ci(e.reduce((e,t)=>{const i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[i].segments.push(...t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));i=i.concat(t)}),i.map(e=>(e.discontinuityStarts=(e=>e.reduce((e,t,i)=>(t.discontinuity&&e.push(i),e),[]))(e.segments||[]),e))},qi=(e,t)=>{const i=Fi(e.sidx),s=i&&t[i]&&t[i].sidx;return s&&Mi(e,s,e.sidx.resolvedUri),e},ji=(e,t={})=>{if(!Object.keys(t).length)return e;for(const i in e)e[i]=qi(e[i],t);return e},$i=({attributes:e,segments:t,sidx:i,discontinuityStarts:s})=>{const r={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:s,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(r.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(r.contentProtection=e.contentProtection),e.serviceLocation&&(r.attributes.serviceLocation=e.serviceLocation),i&&(r.sidx=i),r},Hi=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,Vi=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,zi=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,Wi=e=>e?Object.keys(e).reduce((t,i)=>{const s=e[i];return t.concat(s.playlists)},[]):[],Gi=({dashPlaylists:e,locations:t,contentSteering:i,sidxMapping:s={},previousManifest:r,eventStream:n})=>{if(!e.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:u}=e[0].attributes,c=Bi(e.filter(Hi)).map($i),h=Bi(e.filter(Vi)),d=Bi(e.filter(zi)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),m={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:ji(c,s)};u>=0&&(m.minimumUpdatePeriod=1e3*u),t&&(m.locations=t),i&&(m.contentSteering=i),"dynamic"===o&&(m.suggestedPresentationDelay=l),n&&n.length>0&&(m.eventStream=n);const g=0===m.playlists.length,f=h.length?((e,t={},i=!1)=>{let s;const r=e.reduce((e,r)=>{const n=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"";let o=r.attributes.label||"main";if(a&&!r.attributes.label){const e=n?` (${n})`:"";o=`${r.attributes.lang}${e}`}e[o]||(e[o]={language:a,autoselect:!0,default:"main"===n,playlists:[],uri:""});const l=qi((({attributes:e,segments:t,sidx:i,mediaSequence:s,discontinuitySequence:r,discontinuityStarts:n},a)=>{const o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:n,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),i&&(o.sidx=i),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o})(r,i),t);return e[o].playlists.push(l),void 0===s&&"main"===n&&(s=r,s.default=!0),e},{});return s||(r[Object.keys(r)[0]].default=!0),r})(h,s,g):null,y=d.length?((e,t={})=>e.reduce((e,i)=>{const s=i.attributes.label||i.attributes.lang||"text",r=i.attributes.lang||"und";return e[s]||(e[s]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),e[s].playlists.push(qi((({attributes:e,segments:t,mediaSequence:i,discontinuityStarts:s,discontinuitySequence:r})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const n={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(n.CODECS=e.codecs);const a={attributes:n,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:s,discontinuitySequence:r,mediaSequence:i,segments:t};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a})(i),t)),e},{}))(d,s):null,_=c.concat(Wi(f),Wi(y)),v=_.map(({timelineStarts:e})=>e);return m.timelineStarts=Ni(v),((e,t)=>{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})})})(_,m.timelineStarts),f&&(m.mediaGroups.AUDIO.audio=f),y&&(m.mediaGroups.SUBTITLES.subs=y),p.length&&(m.mediaGroups["CLOSED-CAPTIONS"].cc=(e=>e.reduce((e,t)=>t?(t.forEach(t=>{const{channel:i,language:s}=t;e[s]={autoselect:!1,default:!1,instreamId:i,language:s},t.hasOwnProperty("aspectRatio")&&(e[s].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[s].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[s]["3D"]=t["3D"])}),e):e,{}))(p)),r?(({oldManifest:e,newManifest:t})=>{const i=e.playlists.concat(Ri(e)),s=t.playlists.concat(Ri(t));return t.timelineStarts=Ni([e.timelineStarts,t.timelineStarts]),(({oldPlaylists:e,newPlaylists:t,timelineStarts:i})=>{t.forEach(t=>{t.discontinuitySequence=i.findIndex(function({timeline:e}){return e===t.timeline});const s=((e,t)=>{for(let i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null})(e,t.attributes.NAME);if(!s)return;if(t.sidx)return;const r=t.segments[0],n=s.segments.findIndex(function(e){return Math.abs(e.presentationTime-r.presentationTime)<Oi});if(-1===n)return Ui({playlist:t,mediaSequence:s.mediaSequence+s.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!s.segments.length&&t.timeline>s.timeline||s.segments.length&&t.timeline>s.segments[s.segments.length-1].timeline)&&t.discontinuitySequence--);s.segments[n].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),Ui({playlist:t,mediaSequence:s.segments[n].number})})})({oldPlaylists:i,newPlaylists:s,timelineStarts:t.timelineStarts}),t})({oldManifest:r,newManifest:m}):m},Xi=(e,t,i)=>{const{NOW:s,clientOffset:r,availabilityStartTime:n,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e,u=(s+r)/1e3+l-(n+o);return Math.ceil((u*a-t)/i)},Zi=(e,t)=>{const{type:i,minimumUpdatePeriod:s=0,media:r="",sourceDuration:n,timescale:a=1,startNumber:o=1,periodStart:l}=e,u=[];let c=-1;for(let h=0;h<t.length;h++){const d=t[h],p=d.d,m=d.r||0,g=d.t||0;let f;if(c<0&&(c=g),g&&g>c&&(c=g),m<0){const o=h+1;f=o===t.length?"dynamic"===i&&s>0&&r.indexOf("$Number$")>0?Xi(e,c,p):(n*a-c)/p:(t[o].t-c)/p}else f=m+1;const y=o+u.length+f;let _=o+u.length;for(;_<y;)u.push({number:_,duration:p/a,time:c,timeline:l}),c+=p,_++}return u},Qi=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Ki=(e,t)=>e.replace(Qi,(e=>(t,i,s,r)=>{if("$$"===t)return"$";if(void 0===e[i])return t;const n=""+e[i];return"RepresentationID"===i?n:(r=s?parseInt(r,10):1,n.length>=r?n:`${new Array(r-n.length+1).join("0")}${n}`)})(t)),Yi=(e,t)=>{const i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:s={sourceURL:"",range:""}}=e,r=xi({baseUrl:e.baseUrl,source:Ki(s.sourceURL,i),range:s.range});return((e,t)=>e.duration||t?e.duration?Di(e):Zi(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}])(e,t).map(t=>{i.Number=t.number,i.Time=t.time;const s=Ki(e.media||"",i),n=e.timescale||1,a=e.presentationTimeOffset||0,o=e.periodStart+(t.time-a)/n;return{uri:s,timeline:t.timeline,duration:t.duration,resolvedUri:kt(e.baseUrl||"",s),map:r,number:t.number,presentationTime:o}})},Ji=(e,t)=>{const{duration:i,segmentUrls:s=[],periodStart:r}=e;if(!i&&!t||i&&t)throw new Error("SEGMENT_TIME_UNSPECIFIED");const n=s.map(t=>((e,t)=>{const{baseUrl:i,initialization:s={}}=e,r=xi({baseUrl:i,source:s.sourceURL,range:s.range}),n=xi({baseUrl:i,source:t.media,range:t.mediaRange});return n.map=r,n})(e,t));let a;return i&&(a=Di(e)),t&&(a=Zi(e,t)),a.map((t,i)=>{if(n[i]){const s=n[i],a=e.timescale||1,o=e.presentationTimeOffset||0;return s.timeline=t.timeline,s.duration=t.duration,s.number=t.number,s.presentationTime=r+(t.time-o)/a,s}}).filter(e=>e)},es=({attributes:e,segmentInfo:t})=>{let i,s;t.template?(s=Yi,i=wi(e,t.template)):t.base?(s=Pi,i=wi(e,t.base)):t.list&&(s=Ji,i=wi(e,t.list));const r={attributes:e};if(!s)return r;const n=s(i,t.segmentTimeline);if(i.duration){const{duration:e,timescale:t=1}=i;i.duration=e/t}else n.length?i.duration=n.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):i.duration=0;return r.attributes=i,r.segments=n,t.base&&i.indexRange&&(r.sidx=n[0],r.segments=[]),r},ts=(e,t)=>ki(e.childNodes).filter(({tagName:e})=>e===t),is=e=>e.textContent.trim(),ss=e=>{const t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;const[i,s,r,n,a,o]=t.slice(1);return 31536e3*parseFloat(i||0)+2592e3*parseFloat(s||0)+86400*parseFloat(r||0)+3600*parseFloat(n||0)+60*parseFloat(a||0)+parseFloat(o||0)},rs={mediaPresentationDuration:e=>ss(e),availabilityStartTime:e=>(e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)))(e)/1e3,minimumUpdatePeriod:e=>ss(e),suggestedPresentationDelay:e=>ss(e),type:e=>e,timeShiftBufferDepth:e=>ss(e),start:e=>ss(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>(e=>parseFloat(e.split("/").reduce((e,t)=>e/t)))(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){const t=parseInt(e,10);return isNaN(t)?ss(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},ns=e=>e&&e.attributes?ki(e.attributes).reduce((e,t)=>{const i=rs[t.name]||rs.DEFAULT;return e[t.name]=i(t.value),e},{}):{},as={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},os=(e,t)=>t.length?Ei(e.map(function(e){return t.map(function(t){const i=is(t),s=kt(e.baseUrl,i),r=wi(ns(t),{baseUrl:s});return s!==i&&!r.serviceLocation&&e.serviceLocation&&(r.serviceLocation=e.serviceLocation),r})})):e,ls=e=>{const t=ts(e,"SegmentTemplate")[0],i=ts(e,"SegmentList")[0],s=i&&ts(i,"SegmentURL").map(e=>wi({tag:"SegmentURL"},ns(e))),r=ts(e,"SegmentBase")[0],n=i||t,a=n&&ts(n,"SegmentTimeline")[0],o=i||r||t,l=o&&ts(o,"Initialization")[0],u=t&&ns(t);u&&l?u.initialization=l&&ns(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const c={template:u,segmentTimeline:a&&ts(a,"S").map(e=>ns(e)),list:i&&wi(ns(i),{segmentUrls:s,initialization:ns(l)}),base:r&&wi(ns(r),{initialization:ns(l)})};return Object.keys(c).forEach(e=>{c[e]||delete c[e]}),c},us=e=>Ei(ts(e.node,"EventStream").map(t=>{const i=ns(t),s=i.schemeIdUri;return ts(t,"Event").map(t=>{const r=ns(t),n=r.presentationTime||0,a=i.timescale||1,o=r.duration||0,l=n/a+e.attributes.start;return{schemeIdUri:s,value:i.value,id:r.id,start:l,end:l+o/a,messageData:is(t)||r.messageData,contentEncoding:i.contentEncoding,presentationTimeOffset:i.presentationTimeOffset||0}})})),cs=(e,t)=>(i,s)=>{const r=os(t,ts(i.node,"BaseURL")),n=wi(e,{periodStart:i.attributes.start});"number"==typeof i.attributes.duration&&(n.periodDuration=i.attributes.duration);const a=ts(i.node,"AdaptationSet"),o=ls(i.node);return Ei(a.map(((e,t,i)=>s=>{const r=ns(s),n=os(t,ts(s,"BaseURL")),a=ts(s,"Role")[0],o={role:ns(a)};let l=wi(e,r,o);const u=ts(s,"Accessibility")[0],c=(e=>"urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{let t,i;return i=e,/^CC\d=/.test(e)?[t,i]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:i}}):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[i,s=""]=e.split("=");t.channel=i,t.language=e,s.split(",").forEach(e=>{const[i,s]=e.split(":");"lang"===i?t.language=s:"er"===i?t.easyReader=Number(s):"war"===i?t.aspectRatio=Number(s):"3D"===i&&(t["3D"]=Number(s))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0)(ns(u));c&&(l=wi(l,{captionServices:c}));const h=ts(s,"Label")[0];if(h&&h.childNodes.length){const e=h.childNodes[0].nodeValue.trim();l=wi(l,{label:e})}const d=(e=>e.reduce((e,t)=>{const i=ns(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const s=as[i.schemeIdUri];if(s){e[s]={attributes:i};const r=ts(t,"cenc:pssh")[0];if(r){const t=is(r);e[s].pssh=t&&It(t)}}return e},{}))(ts(s,"ContentProtection"));Object.keys(d).length&&(l=wi(l,{contentProtection:d}));const p=ls(s),m=ts(s,"Representation"),g=wi(i,p);return Ei(m.map(((e,t,i)=>s=>{const r=ts(s,"BaseURL"),n=os(t,r),a=wi(e,ns(s)),o=ls(s);return n.map(e=>({segmentInfo:wi(i,o),attributes:wi(a,e)}))})(l,n,g)))})(n,r,o)))},hs=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const i=wi({serverURL:is(e[0])},ns(e[0]));return i.queryBeforeStart="true"===i.queryBeforeStart,i},ds=e=>{if(""===e)throw new Error("DASH_EMPTY_MANIFEST");const t=new Ti.DOMParser;let i,s;try{i=t.parseFromString(e,"application/xml"),s=i&&"MPD"===i.documentElement.tagName?i.documentElement:null}catch(e){}if(!s||s&&s.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return s};var ps,ms,gs,fs;const ys=(0,_e.g)(function(){if(fs)return gs;fs=1;var e=function(){if(ms)return ps;ms=1;var e=Math.pow(2,32);return ps={getUint64:function(t){var i,s=new DataView(t.buffer,t.byteOffset,t.byteLength);return s.getBigUint64?(i=s.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(i):i:s.getUint32(0)*e+s.getUint32(4)},MAX_UINT32:e}}().getUint64;return gs=function(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),s={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8)},r=12;0===s.version?(s.earliestPresentationTime=i.getUint32(r),s.firstOffset=i.getUint32(r+4),r+=8):(s.earliestPresentationTime=e(t.subarray(r)),s.firstOffset=e(t.subarray(r+8)),r+=16),r+=2;var n=i.getUint16(r);for(r+=2;n>0;r+=12,n--)s.references.push({referenceType:(128&t[r])>>>7,referencedSize:2147483647&i.getUint32(r),subsegmentDuration:i.getUint32(r+4),startsWithSap:!!(128&t[r+8]),sapType:(112&t[r+8])>>>4,sapDeltaTime:268435455&i.getUint32(r+8)});return s}}());var _s=ei([73,68,51]),vs=function e(t,i){return void 0===i&&(i=0),(t=ei(t)).length-i<10||!oi(t,_s,{offset:i})?i:e(t,i+=function(e,t){void 0===t&&(t=0);var i=(e=ei(e))[t+5],s=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&i)>>4?s+20:s+10}(t,i))},bs=function(e){return"string"==typeof e?ai(e):e},Ts=function e(t,i,s){void 0===s&&(s=!1),i=function(e){return Array.isArray(e)?e.map(function(e){return bs(e)}):[bs(e)]}(i),t=ei(t);var r=[];if(!i.length)return r;for(var n=0;n<t.length;){var a=(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3])>>>0,o=t.subarray(n+4,n+8);if(0===a)break;var l=n+a;if(l>t.length){if(s)break;l=t.length}var u=t.subarray(n+8,l);oi(o,i[0])&&(1===i.length?r.push(u):r.push.apply(r,e(u,i.slice(1),s))),n=l}return r},Ss={EBML:ei([26,69,223,163]),DocType:ei([66,130]),Segment:ei([24,83,128,103]),SegmentInfo:ei([21,73,169,102]),Tracks:ei([22,84,174,107]),Track:ei([174]),TrackNumber:ei([215]),DefaultDuration:ei([35,227,131]),TrackEntry:ei([174]),TrackType:ei([131]),FlagDefault:ei([136]),CodecID:ei([134]),CodecPrivate:ei([99,162]),VideoTrack:ei([224]),AudioTrack:ei([225]),Cluster:ei([31,67,182,117]),Timestamp:ei([231]),TimestampScale:ei([42,215,177]),BlockGroup:ei([160]),BlockDuration:ei([155]),Block:ei([161]),SimpleBlock:ei([163])},ws=[128,64,32,16,8,4,2,1],Cs=function(e,t,i,s){void 0===i&&(i=!0),void 0===s&&(s=!1);var r=function(e){for(var t=1,i=0;i<ws.length&&!(e&ws[i]);i++)t++;return t}(e[t]),n=e.subarray(t,t+r);return i&&((n=Array.prototype.slice.call(e,t,t+r))[0]^=ws[r-1]),{length:r,value:ni(n,{signed:s}),bytes:n}},Es=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?function(e){var t={}.le,i=void 0!==t&&t;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var s=function(e){return Math.ceil(function(e){return e.toString(2).length}(e)/8)}(e=ti(e)),r=new Uint8Array(new ArrayBuffer(s)),n=0;n<s;n++){var a=i?n:Math.abs(n+1-r.length);r[a]=Number(e/ii[n]&ti(255)),e<0&&(r[a]=Math.abs(~r[a]),r[a]-=0===n?1:2)}return r}(t):t},ks=function e(t,i,s){if(s>=i.length)return i.length;var r=Cs(i,s,!1);if(oi(t.bytes,r.bytes))return s;var n=Cs(i,s+r.length);return e(t,i,s+n.length+n.value+r.length)},xs=function e(t,i){i=function(e){return Array.isArray(e)?e.map(function(e){return Es(e)}):[Es(e)]}(i),t=ei(t);var s=[];if(!i.length)return s;for(var r=0;r<t.length;){var n=Cs(t,r,!1),a=Cs(t,r+n.length),o=r+n.length+a.length;127===a.value&&(a.value=ks(n,t,o),a.value!==t.length&&(a.value-=o));var l=o+a.value>t.length?t.length:o+a.value,u=t.subarray(o,l);oi(i[0],n.bytes)&&(1===i.length?s.push(u):s=s.concat(e(u,i.slice(1)))),r+=n.length+a.length+u.length}return s},Is=ei([0,0,0,1]),As=ei([0,0,1]),Ds=ei([0,0,3]),Ps=function(e){for(var t=[],i=1;i<e.length-2;)oi(e.subarray(i,i+3),Ds)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var s=e.length-t.length,r=new Uint8Array(s),n=0;for(i=0;i<s;n++,i++)n===t[0]&&(n++,t.shift()),r[i]=e[n];return r},Ms=function(e,t,i,s){e=ei(e),i=[].concat(i);for(var r,n=0,a=0;n<e.length&&(a<s||r);){var o=void 0;if(oi(e.subarray(n),Is)?o=4:oi(e.subarray(n),As)&&(o=3),o){if(a++,r)return Ps(e.subarray(r,n));var l=void 0;"h264"===t?l=31&e[n+o]:"h265"===t&&(l=e[n+o]>>1&63),-1!==i.indexOf(l)&&(r=n+o),n+=o+("h264"===t?1:2)}else n++}return e.subarray(0,0)},Ls={webm:ei([119,101,98,109]),matroska:ei([109,97,116,114,111,115,107,97]),flac:ei([102,76,97,67]),ogg:ei([79,103,103,83]),ac3:ei([11,119]),riff:ei([82,73,70,70]),avi:ei([65,86,73]),wav:ei([87,65,86,69]),"3gp":ei([102,116,121,112,51,103]),mp4:ei([102,116,121,112]),fmp4:ei([115,116,121,112]),mov:ei([102,116,121,112,113,116]),moov:ei([109,111,111,118]),moof:ei([109,111,111,102])},Os={aac:function(e){var t=vs(e);return oi(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=vs(e);return oi(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=xs(e,[Ss.EBML,Ss.DocType])[0];return oi(t,Ls.webm)},mkv:function(e){var t=xs(e,[Ss.EBML,Ss.DocType])[0];return oi(t,Ls.matroska)},mp4:function(e){return!Os["3gp"](e)&&!Os.mov(e)&&(!(!oi(e,Ls.mp4,{offset:4})&&!oi(e,Ls.fmp4,{offset:4}))||!(!oi(e,Ls.moof,{offset:4})&&!oi(e,Ls.moov,{offset:4}))||void 0)},mov:function(e){return oi(e,Ls.mov,{offset:4})},"3gp":function(e){return oi(e,Ls["3gp"],{offset:4})},ac3:function(e){var t=vs(e);return oi(e,Ls.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=vs(e);return oi(e,Ls.flac,{offset:t})},ogg:function(e){return oi(e,Ls.ogg)},avi:function(e){return oi(e,Ls.riff)&&oi(e,Ls.avi,{offset:8})},wav:function(e){return oi(e,Ls.riff)&&oi(e,Ls.wav,{offset:8})},h264:function(e){return function(e){return Ms(e,"h264",7,3)}(e).length},h265:function(e){return function(e){return Ms(e,"h265",[32,33],3)}(e).length}},Ns=Object.keys(Os).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);Ns.forEach(function(e){var t=Os[e];Os[e]=function(e){return t(ei(e))}});var Rs,Us,Fs=Os,Bs=function(e){e=ei(e);for(var t=0;t<Ns.length;t++){var i=Ns[t];if(Fs[i](e))return i}return""},qs=function(){if(Us)return Rs;Us=1;var e,t,i,s,r,n,a,o=9e4;return r=function(t,i){return e(s(t,i))},n=function(e,s){return t(i(e),s)},a=function(e,t,s){return i(s?e:e-t)},Rs={ONE_SECOND_IN_TS:o,secondsToVideoTs:e=function(e){return e*o},secondsToAudioTs:t=function(e,t){return e*t},videoTsToSeconds:i=function(e){return e/o},audioTsToSeconds:s=function(e,t){return e/t},audioTsToVideoTs:r,videoTsToAudioTs:n,metadataTsToSeconds:a}}(),js="8.22.0";const $s={},Hs=function(e,t){return $s[e]=$s[e]||[],t&&($s[e]=$s[e].concat(t)),$s[e]},Vs=function(e,t){const i=Hs(e).indexOf(t);return!(i<=-1||($s[e]=$s[e].slice(),$s[e].splice(i,1),0))},zs={prefixed:!0},Ws=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],Gs=Ws[0];let Xs;for(let e=0;e<Ws.length;e++)if(Ws[e][1]in Je){Xs=Ws[e];break}if(Xs){for(let e=0;e<Xs.length;e++)zs[Gs[e]]=Xs[e];zs.prefixed=Xs[0]!==Gs[0]}let Zs=[];const Qs=function e(t,i=":",s=""){let r,n="info";function a(...e){r("log",n,e)}return r=((e,t,i)=>(s,r,n)=>{const a=t.levels[r],o=new RegExp(`^(${a})$`);let l=e;if("log"!==s&&n.unshift(s.toUpperCase()+":"),i&&(l=`%c${e}`,n.unshift(i)),n.unshift(l+":"),Zs){Zs.push([].concat(n));const e=Zs.length-1e3;Zs.splice(0,e>0?e:0)}if(!be.console)return;let u=be.console[s];u||"debug"!==s||(u=be.console.info||be.console.log),u&&a&&o.test(s)&&u[Array.isArray(n)?"apply":"call"](be.console,n)})(t,a,s),a.createLogger=(r,n,a)=>{const o=void 0!==n?n:i;return e(`${t} ${o} ${r}`,o,void 0!==a?a:s)},a.createNewLogger=(t,i,s)=>e(t,i,s),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},a.level=e=>{if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);n=e}return n},a.history=()=>Zs?[].concat(Zs):[],a.history.filter=e=>(Zs||[]).filter(t=>new RegExp(`.*${e}.*`).test(t[0])),a.history.clear=()=>{Zs&&(Zs.length=0)},a.history.disable=()=>{null!==Zs&&(Zs.length=0,Zs=null)},a.history.enable=()=>{null===Zs&&(Zs=[])},a.error=(...e)=>r("error",n,e),a.warn=(...e)=>r("warn",n,e),a.debug=(...e)=>r("debug",n,e),a}("VIDEOJS"),Ks=Qs.createLogger,Ys=Object.prototype.toString,Js=function(e){return ir(e)?Object.keys(e):[]};function er(e,t){Js(e).forEach(i=>t(e[i],i))}function tr(e,t,i=0){return Js(e).reduce((i,s)=>t(i,e[s],s),i)}function ir(e){return!!e&&"object"==typeof e}function sr(e){return ir(e)&&"[object Object]"===Ys.call(e)&&e.constructor===Object}function rr(...e){const t={};return e.forEach(e=>{e&&er(e,(e,i)=>{sr(e)?(sr(t[i])||(t[i]={}),t[i]=rr(t[i],e)):t[i]=e})}),t}function nr(e={}){const t=[];for(const i in e)if(e.hasOwnProperty(i)){const s=e[i];t.push(s)}return t}function ar(e,t,i,s=!0){const r=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0}),n={configurable:!0,enumerable:!0,get(){const e=i();return r(e),e}};return s&&(n.set=r),Object.defineProperty(e,t,n)}var or=Object.freeze({__proto__:null,each:er,reduce:tr,isObject:ir,isPlain:sr,merge:rr,values:nr,defineLazyProperty:ar});let lr,ur=!1,cr=null,hr=!1,dr=!1,pr=!1,mr=!1,gr=!1,fr=null,yr=null;const _r=Boolean(be.cast&&be.cast.framework&&be.cast.framework.CastReceiverContext);let vr=null,br=!1,Tr=!1,Sr=!1,wr=!1,Cr=!1,Er=!1,kr=!1;const xr=Boolean(Lr()&&("ontouchstart"in be||be.navigator.maxTouchPoints||be.DocumentTouch&&be.document instanceof be.DocumentTouch)),Ir=be.navigator&&be.navigator.userAgentData;if(Ir&&Ir.platform&&Ir.brands&&(hr="Android"===Ir.platform,pr=Boolean(Ir.brands.find(e=>"Microsoft Edge"===e.brand)),mr=Boolean(Ir.brands.find(e=>"Chromium"===e.brand)),gr=!pr&&mr,fr=yr=(Ir.brands.find(e=>"Chromium"===e.brand)||{}).version||null,Tr="Windows"===Ir.platform),!mr){const e=be.navigator&&be.navigator.userAgent||"";ur=/iPod/i.test(e),cr=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),hr=/Android/i.test(e),lr=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const i=t[1]&&parseFloat(t[1]),s=t[2]&&parseFloat(t[2]);return i&&s?parseFloat(t[1]+"."+t[2]):i||null}(),dr=/Firefox/i.test(e),pr=/Edg/i.test(e),mr=/Chrome/i.test(e)||/CriOS/i.test(e),gr=!pr&&mr,fr=yr=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),vr=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let i=t&&parseFloat(t[1]);return!i&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(i=11),i}(),Cr=/Tizen/i.test(e),Er=/Web0S/i.test(e),kr=Cr||Er,br=/Safari/i.test(e)&&!gr&&!hr&&!pr&&!kr,Tr=/Windows/i.test(e),Sr=/iPad/i.test(e)||br&&xr&&!/iPhone/i.test(e),wr=/iPhone/i.test(e)&&!Sr}const Ar=wr||Sr||ur,Dr=(br||Ar)&&!gr;var Pr=Object.freeze({__proto__:null,get IS_IPOD(){return ur},get IOS_VERSION(){return cr},get IS_ANDROID(){return hr},get ANDROID_VERSION(){return lr},get IS_FIREFOX(){return dr},get IS_EDGE(){return pr},get IS_CHROMIUM(){return mr},get IS_CHROME(){return gr},get CHROMIUM_VERSION(){return fr},get CHROME_VERSION(){return yr},IS_CHROMECAST_RECEIVER:_r,get IE_VERSION(){return vr},get IS_SAFARI(){return br},get IS_WINDOWS(){return Tr},get IS_IPAD(){return Sr},get IS_IPHONE(){return wr},get IS_TIZEN(){return Cr},get IS_WEBOS(){return Er},get IS_SMART_TV(){return kr},TOUCH_ENABLED:xr,IS_IOS:Ar,IS_ANY_SAFARI:Dr});function Mr(e){return"string"==typeof e&&Boolean(e.trim())}function Lr(){return Je===be.document}function Or(e){return ir(e)&&1===e.nodeType}function Nr(){try{return be.parent!==be.self}catch(e){return!0}}function Rr(e){return function(t,i){if(!Mr(t))return Je[e](null);Mr(i)&&(i=Je.querySelector(i));const s=Or(i)?i:Je;return s[e]&&s[e](t)}}function Ur(e="div",t={},i={},s){const r=Je.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){const i=t[e];"textContent"===e?Fr(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)}),Object.getOwnPropertyNames(i).forEach(function(e){r.setAttribute(e,i[e])}),s&&rn(r,s),r}function Fr(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function Br(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function qr(e,t){return function(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}(t),e.classList.contains(t)}function jr(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function $r(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(Qs.warn("removeClass was called with an element that doesn't exist"),null)}function Hr(e,t,i){return"function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,i)),e}function Vr(e,t){Object.getOwnPropertyNames(t).forEach(function(i){const s=t[i];null==s||!1===s?e.removeAttribute(i):e.setAttribute(i,!0===s?"":s)})}function zr(e){const t={},i=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const s=e.attributes;for(let e=s.length-1;e>=0;e--){const r=s[e].name;let n=s[e].value;i.includes(r)&&(n=null!==n),t[r]=n}}return t}function Wr(e,t){return e.getAttribute(t)}function Gr(e,t,i){e.setAttribute(t,i)}function Xr(e,t){e.removeAttribute(t)}function Zr(){Je.body.focus(),Je.onselectstart=function(){return!1}}function Qr(){Je.onselectstart=function(){return!0}}function Kr(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(un(e,"height"))),i.width||(i.width=parseFloat(un(e,"width"))),i}}function Yr(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,i=e.offsetHeight;let s=0,r=0;for(;e.offsetParent&&e!==Je[zs.fullscreenElement];)s+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:s,top:r,width:t,height:i}}function Jr(e,t){const i={x:0,y:0};if(Ar){let t=e;for(;t&&"html"!==t.nodeName.toLowerCase();){const e=un(t,"transform");if(/^matrix/.test(e)){const t=e.slice(7,-1).split(/,\s/).map(Number);i.x+=t[4],i.y+=t[5]}else if(/^matrix3d/.test(e)){const t=e.slice(9,-1).split(/,\s/).map(Number);i.x+=t[12],i.y+=t[13]}if(t.assignedSlot&&t.assignedSlot.parentElement&&be.WebKitCSSMatrix){const e=be.getComputedStyle(t.assignedSlot.parentElement).transform,s=new be.WebKitCSSMatrix(e);i.x+=s.m41,i.y+=s.m42}t=t.parentNode||t.host}}const s={},r=Yr(t.target),n=Yr(e),a=n.width,o=n.height;let l=t.offsetY-(n.top-r.top),u=t.offsetX-(n.left-r.left);return t.changedTouches&&(u=t.changedTouches[0].pageX-n.left,l=t.changedTouches[0].pageY+n.top,Ar&&(u-=i.x,l-=i.y)),s.y=1-Math.max(0,Math.min(1,l/o)),s.x=Math.max(0,Math.min(1,u/a)),s}function en(e){return ir(e)&&3===e.nodeType}function tn(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function sn(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>("function"==typeof e&&(e=e()),Or(e)||en(e)?e:"string"==typeof e&&/\S/.test(e)?Je.createTextNode(e):void 0)).filter(e=>e)}function rn(e,t){return sn(t).forEach(t=>e.appendChild(t)),e}function nn(e,t){return rn(tn(e),t)}function an(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||"mousedown"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}const on=Rr("querySelector"),ln=Rr("querySelectorAll");function un(e,t){if(!e||!t)return"";if("function"==typeof be.getComputedStyle){let i;try{i=be.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}return""}function cn(e){[...Je.styleSheets].forEach(t=>{try{const i=[...t.cssRules].map(e=>e.cssText).join(""),s=Je.createElement("style");s.textContent=i,e.document.head.appendChild(s)}catch(i){const s=Je.createElement("link");s.rel="stylesheet",s.type=t.type,s.media=t.media.mediaText,s.href=t.href,e.document.head.appendChild(s)}})}var hn=Object.freeze({__proto__:null,isReal:Lr,isEl:Or,isInFrame:Nr,createEl:Ur,textContent:Fr,prependTo:Br,hasClass:qr,addClass:jr,removeClass:$r,toggleClass:Hr,setAttributes:Vr,getAttributes:zr,getAttribute:Wr,setAttribute:Gr,removeAttribute:Xr,blockTextSelection:Zr,unblockTextSelection:Qr,getBoundingClientRect:Kr,findPosition:Yr,getPointerPosition:Jr,isTextNode:en,emptyEl:tn,normalizeContent:sn,appendContent:rn,insertContent:nn,isSingleLeftClick:an,$:on,$$:ln,computedStyle:un,copyStyleSheetsToWindow:cn});let dn,pn=!1;const mn=function(){if(!1===dn.options.autoSetup)return;const e=Array.prototype.slice.call(Je.getElementsByTagName("video")),t=Array.prototype.slice.call(Je.getElementsByTagName("audio")),i=Array.prototype.slice.call(Je.getElementsByTagName("video-js")),s=e.concat(t,i);if(s&&s.length>0)for(let e=0,t=s.length;e<t;e++){const t=s[e];if(!t||!t.getAttribute){gn(1);break}void 0===t.player&&null!==t.getAttribute("data-setup")&&dn(t)}else pn||gn(1)};function gn(e,t){Lr()&&(t&&(dn=t),be.setTimeout(mn,e))}function fn(){pn=!0,be.removeEventListener("load",fn)}Lr()&&("complete"===Je.readyState?fn():be.addEventListener("load",fn));const yn=function(e){const t=Je.createElement("style");return t.className=e,t},_n=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var vn=new WeakMap;let bn,Tn=3;function Sn(){return Tn++}function wn(e,t){if(!vn.has(e))return;const i=vn.get(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&vn.delete(e)}function Cn(e,t,i,s){i.forEach(function(i){e(t,i,s)})}function En(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||be.event;e={};const r=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(const t in s)r.includes(t)||"returnValue"===t&&s.preventDefault||(e[t]=s[t]);if(e.target||(e.target=e.srcElement||Je),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){const t=Je.documentElement,i=Je.body;e.pageX=e.clientX+(t&&t.scrollLeft||i&&i.scrollLeft||0)-(t&&t.clientLeft||i&&i.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||i&&i.scrollTop||0)-(t&&t.clientTop||i&&i.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}const kn=["touchstart","touchmove"];function xn(e,t,i){if(Array.isArray(t))return Cn(xn,e,t,i);vn.has(e)||vn.set(e,{});const s=vn.get(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),i.guid||(i.guid=Sn()),s.handlers[t].push(i),s.dispatcher||(s.disabled=!1,s.dispatcher=function(t,i){if(s.disabled)return;t=En(t);const r=s.handlers[t.type];if(r){const s=r.slice(0);for(let r=0,n=s.length;r<n&&!t.isImmediatePropagationStopped();r++)try{s[r].call(e,t,i)}catch(e){Qs.error(e)}}}),1===s.handlers[t].length)if(e.addEventListener){let i=!1;(function(){if("boolean"!=typeof bn){bn=!1;try{const e=Object.defineProperty({},"passive",{get(){bn=!0}});be.addEventListener("test",null,e),be.removeEventListener("test",null,e)}catch(e){}}return bn})()&&kn.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,s.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function In(e,t,i){if(!vn.has(e))return;const s=vn.get(e);if(!s.handlers)return;if(Array.isArray(t))return Cn(In,e,t,i);const r=function(e,t){s.handlers[t]=[],wn(e,t)};if(void 0===t){for(const t in s.handlers)Object.prototype.hasOwnProperty.call(s.handlers||{},t)&&r(e,t);return}const n=s.handlers[t];if(n)if(i){if(i.guid)for(let e=0;e<n.length;e++)n[e].guid===i.guid&&n.splice(e--,1);wn(e,t)}else r(e,t)}function An(e,t,i){const s=vn.has(e)?vn.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=En(t),s.dispatcher&&s.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles)An.call(null,r,t,i);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){vn.has(t.target)||vn.set(t.target,{});const e=vn.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function Dn(e,t,i){if(Array.isArray(t))return Cn(Dn,e,t,i);const s=function(){In(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||Sn(),xn(e,t,s)}function Pn(e,t,i){const s=function(){In(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||Sn(),xn(e,t,s)}var Mn=Object.freeze({__proto__:null,fixEvent:En,on:xn,off:In,trigger:An,one:Dn,any:Pn});const Ln=30,On=function(e,t,i){t.guid||(t.guid=Sn());const s=t.bind(e);return s.guid=i?i+"_"+t.guid:t.guid,s},Nn=function(e,t){let i=be.performance.now();return function(...s){const r=be.performance.now();r-i>=t&&(e(...s),i=r)}},Rn=function(e,t,i,s=be){let r;const n=function(){const n=this,a=arguments;let o=function(){r=null,o=null,i||e.apply(n,a)};!r&&i&&e.apply(n,a),s.clearTimeout(r),r=s.setTimeout(o,t)};return n.cancel=()=>{s.clearTimeout(r),r=null},n};var Un=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Ln,bind_:On,throttle:Nn,debounce:Rn});let Fn;class Bn{on(e,t){const i=this.addEventListener;this.addEventListener=()=>{},xn(this,e,t),this.addEventListener=i}off(e,t){In(this,e,t)}one(e,t){const i=this.addEventListener;this.addEventListener=()=>{},Dn(this,e,t),this.addEventListener=i}any(e,t){const i=this.addEventListener;this.addEventListener=()=>{},Pn(this,e,t),this.addEventListener=i}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=En(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),An(this,e)}queueTrigger(e){Fn||(Fn=new Map);const t=e.type||e;let i=Fn.get(this);i||(i=new Map,Fn.set(this,i));const s=i.get(t);i.delete(t),be.clearTimeout(s);const r=be.setTimeout(()=>{i.delete(t),0===i.size&&(i=null,Fn.delete(this)),this.trigger(e)},0);i.set(t,r)}}Bn.prototype.allowedEvents_={},Bn.prototype.addEventListener=Bn.prototype.on,Bn.prototype.removeEventListener=Bn.prototype.off,Bn.prototype.dispatchEvent=Bn.prototype.trigger;const qn=e=>"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,jn=e=>e instanceof Bn||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>"function"==typeof e[t]),$n=e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,Hn=(e,t,i)=>{if(!e||!e.nodeName&&!jn(e))throw new Error(`Invalid target for ${qn(t)}#${i}; must be a DOM node or evented object.`)},Vn=(e,t,i)=>{if(!$n(e))throw new Error(`Invalid event type for ${qn(t)}#${i}; must be a non-empty string or array.`)},zn=(e,t,i)=>{if("function"!=typeof e)throw new Error(`Invalid listener for ${qn(t)}#${i}; must be a function.`)},Wn=(e,t,i)=>{const s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let r,n,a;return s?(r=e.eventBusEl_,t.length>=3&&t.shift(),[n,a]=t):(r=t[0],n=t[1],a=t[2]),Hn(r,e,i),Vn(n,e,i),zn(a,e,i),a=On(e,a),{isTargetingSelf:s,target:r,type:n,listener:a}},Gn=(e,t,i,s)=>{Hn(e,e,t),e.nodeName?Mn[t](e,i,s):e[t](i,s)},Xn={on(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Wn(this,e,"on");if(Gn(i,"on",s,r),!t){const e=()=>this.off(i,s,r);e.guid=r.guid;const t=()=>this.off("dispose",e);t.guid=r.guid,Gn(this,"on","dispose",e),Gn(i,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Wn(this,e,"one");if(t)Gn(i,"one",s,r);else{const e=(...t)=>{this.off(i,s,e),r.apply(null,t)};e.guid=r.guid,Gn(i,"one",s,e)}},any(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Wn(this,e,"any");if(t)Gn(i,"any",s,r);else{const e=(...t)=>{this.off(i,s,e),r.apply(null,t)};e.guid=r.guid,Gn(i,"any",s,e)}},off(e,t,i){if(!e||$n(e))In(this.eventBusEl_,e,t);else{const s=e,r=t;Hn(s,this,"off"),Vn(r,this,"off"),zn(i,this,"off"),i=On(this,i),this.off("dispose",i),s.nodeName?(In(s,r,i),In(s,"dispose",i)):jn(s)&&(s.off(r,i),s.off("dispose",i))}},trigger(e,t){Hn(this.eventBusEl_,this,"trigger");const i=e&&"string"!=typeof e?e.type:e;if(!$n(i))throw new Error(`Invalid event type for ${qn(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return An(this.eventBusEl_,e,t)}};function Zn(e,t={}){const{eventBusKey:i}=t;if(i){if(!e[i].nodeName)throw new Error(`The eventBusKey "${i}" does not refer to an element.`);e.eventBusEl_=e[i]}else e.eventBusEl_=Ur("span",{className:"vjs-event-bus"});return Object.assign(e,Xn),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&vn.has(e)&&vn.delete(e)}),be.setTimeout(()=>{e.eventBusEl_=null},0)}),e}const Qn={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),er(e,(e,i)=>{this.state[i]!==e&&(t=t||{},t[i]={from:this.state[i],to:e}),this.state[i]=e}),t&&jn(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Kn(e,t){return Object.assign(e,Qn),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&jn(e)&&e.on("statechanged",e.handleStateChanged),e}const Yn=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toLowerCase())},Jn=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},ea=function(e,t){return Jn(e)===Jn(t)};var ta=Object.freeze({__proto__:null,toLowerCase:Yn,toTitleCase:Jn,titleCaseEquals:ea});class ia{constructor(e,t,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=rr({},this.options_),t=this.options_=rr(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${Sn()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(e=>this.addClass(e)),["on","off","one","any","trigger"].forEach(e=>{this[e]=void 0}),!1!==t.evented&&(Zn(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Kn(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return Boolean(this.isDisposed_)}player(){return this.player_}options(e){return e?(this.options_=rr(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,i){return Ur(e,t,i)}localize(e,t,i=e){const s=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),n=r&&r[s],a=s&&s.split("-")[0],o=r&&r[a];let l=i;return n&&n[e]?l=n[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,i){const s=t[i-1];let r=s;return void 0===s&&(r=e),r})),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let i=0;i<e.length;i++)if(t=t.getChild(e[i]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",s=Ur("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),r=Je.createElementNS(i,"svg");r.setAttributeNS(null,"viewBox","0 0 512 512");const n=Je.createElementNS(i,"use");return r.appendChild(n),n.setAttributeNS(null,"href",`#vjs-icon-${e}`),s.appendChild(r),this.iconIsSet_?t.replaceChild(s,t.querySelector(".vjs-icon-placeholder")):t.appendChild(s),this.iconIsSet_=!0,s}addChild(e,t={},i=this.children_.length){let s,r;if("string"==typeof e){r=Jn(e);const i=t.componentClass||r;t.name=r;const n=ia.getComponent(i);if(!n)throw new Error(`Component ${i} does not exist`);if("function"!=typeof n)return null;s=new n(this.player_||this,t)}else s=e;if(s.parentComponent_&&s.parentComponent_.removeChild(s),this.children_.splice(i,0,s),s.parentComponent_=this,"function"==typeof s.id&&(this.childIndex_[s.id()]=s),r=r||s.name&&Jn(s.name()),r&&(this.childNameIndex_[r]=s,this.childNameIndex_[Yn(r)]=s),"function"==typeof s.el&&s.el()){let e=null;this.children_[i+1]&&(this.children_[i+1].el_?e=this.children_[i+1].el_:Or(this.children_[i+1])&&(e=this.children_[i+1])),this.contentEl().insertBefore(s.el(),e)}return s}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let i=this.children_.length-1;i>=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Jn(e.name())]=null,this.childNameIndex_[Yn(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,i=e=>{const i=e.name;let s=e.opts;if(void 0!==t[i]&&(s=t[i]),!1===s)return;!0===s&&(s={}),s.playerOptions=this.options_.playerOptions;const r=this.addChild(i,s);r&&(this[i]=r)};let s;const r=ia.getComponent("Tech");s=Array.isArray(e)?e:Object.keys(e),s.concat(Object.keys(this.options_).filter(function(e){return!s.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(t=>{let i,s;return"string"==typeof t?(i=t,s=e[i]||this.options_[i]||{}):(i=t.name,s=t),{name:i,opts:s}}).filter(e=>{const t=ia.getComponent(e.opts.componentClass||Jn(e.name));return t&&!r.isTech(t)}).forEach(i)}}buildCSSClass(){return""}ready(e,t=!1){if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)}$(e,t){return on(e,t||this.contentEl())}$$(e,t){return ln(e,t||this.contentEl())}hasClass(e){return qr(this.el_,e)}addClass(...e){jr(this.el_,...e)}removeClass(...e){$r(this.el_,...e)}toggleClass(e,t){Hr(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return Wr(this.el_,e)}setAttribute(e,t){Gr(this.el_,e,t)}removeAttribute(e){Xr(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,i){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;const s=this.el_.style[e],r=s.indexOf("px");return-1!==r?parseInt(s.slice(0,r),10):parseInt(this.el_["offset"+Jn(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=un(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const i=`offset${Jn(e)}`;t=this.el_[i]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){const e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&("Tab"===e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e,t=0,i=null;this.on("touchstart",function(s){1===s.touches.length&&(i={pageX:s.touches[0].pageX,pageY:s.touches[0].pageY},t=be.performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(i){const s=t.touches[0].pageX-i.pageX,r=t.touches[0].pageY-i.pageY;Math.sqrt(s*s+r*r)>10&&(e=!1)}});const s=function(){e=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",function(s){i=null,!0===e&&be.performance.now()-t<200&&(s.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=On(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});const i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,t){var i;return e=On(this,e),this.clearTimersOnDispose_(),i=be.setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),be.clearTimeout(e)),e}setInterval(e,t){e=On(this,e),this.clearTimersOnDispose_();const i=be.setInterval(e,t);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),be.clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=On(this,e),t=be.requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=On(this,t);const i=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),be.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([e,t])=>{this[e].forEach((e,i)=>this[t](i))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return Boolean(this.el_.disabled)}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function t(e){const t=be.getComputedStyle(e,null),i=t.getPropertyValue("visibility");return"none"!==t.getPropertyValue("display")&&!["hidden","collapse"].includes(i)}return e||(e=this.el()),!(!function(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;const t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(t.x<0)return!1;if(t.x>(Je.documentElement.clientWidth||be.innerWidth))return!1;if(t.y<0)return!1;if(t.y>(Je.documentElement.clientHeight||be.innerHeight))return!1;let i=Je.elementFromPoint(t.x,t.y);for(;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}}(e)||!function(e){return!!t(e.parentElement)&&!(!t(e)||"0"===e.style.opacity||"0px"===be.getComputedStyle(e).height||"0px"===be.getComputedStyle(e).width)}(e)||e.parentElement&&!(e.tabIndex>=0))}static registerComponent(e,t){if("string"!=typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=ia.getComponent("Tech"),s=i&&i.isTech(t),r=ia===t||ia.prototype.isPrototypeOf(t.prototype);if(s||!r){let t;throw t=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${t}.`)}e=Jn(e),ia.components_||(ia.components_={});const n=ia.getComponent("Player");if("Player"===e&&n&&n.players){const e=n.players,t=Object.keys(e);if(e&&t.length>0)for(let i=0;i<t.length;i++)if(null!==e[t[i]])throw new Error("Can not register Player component after player has been created.")}return ia.components_[e]=t,ia.components_[Yn(e)]=t,t}static getComponent(e){if(e&&ia.components_)return ia.components_[e]}}function sa(e,t,i,s){return function(e,t,i){if("number"!=typeof t||t<0||t>i)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${i}).`)}(e,s,i.length-1),i[s][t]}function ra(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:sa.bind(null,"start",0,e),end:sa.bind(null,"end",1,e)},be.Symbol&&be.Symbol.iterator&&(t[be.Symbol.iterator]=()=>(e||[]).values()),t}function na(e,t){return Array.isArray(e)?ra(e):void 0===e||void 0===t?ra():ra([[e,t]])}ia.registerComponent("Component",ia);const aa=function(e,t){e=e<0?0:e;let i=Math.floor(e%60),s=Math.floor(e/60%60),r=Math.floor(e/3600);const n=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=s=i="-"),r=r>0||a>0?r+":":"",s=((r||n>=10)&&s<10?"0"+s:s)+":",i=i<10?"0"+i:i,r+s+i};let oa=aa;function la(e){oa=e}function ua(){oa=aa}function ca(e,t=e){return oa(e,t)}var ha=Object.freeze({__proto__:null,createTimeRanges:na,createTimeRange:na,setFormatTime:la,resetFormatTime:ua,formatTime:ca});function da(e,t){let i,s,r=0;if(!t)return 0;e&&e.length||(e=na(0,0));for(let n=0;n<e.length;n++)i=e.start(n),s=e.end(n),s>t&&(s=t),r+=s-i;return r/t}function pa(e){if(e instanceof pa)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:ir(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=pa.defaultMessages[this.code]||"")}function ma(e){return null!=e&&"function"==typeof e.then}function ga(e){ma(e)&&e.then(null,e=>{})}pa.prototype.code=0,pa.prototype.message="",pa.prototype.status=null,pa.prototype.metadata=null,pa.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],pa.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},pa.MEDIA_ERR_CUSTOM=0,pa.prototype.MEDIA_ERR_CUSTOM=0,pa.MEDIA_ERR_ABORTED=1,pa.prototype.MEDIA_ERR_ABORTED=1,pa.MEDIA_ERR_NETWORK=2,pa.prototype.MEDIA_ERR_NETWORK=2,pa.MEDIA_ERR_DECODE=3,pa.prototype.MEDIA_ERR_DECODE=3,pa.MEDIA_ERR_SRC_NOT_SUPPORTED=4,pa.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,pa.MEDIA_ERR_ENCRYPTED=5,pa.prototype.MEDIA_ERR_ENCRYPTED=5;const fa=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,i,s)=>(e[i]&&(t[i]=e[i]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})};const ya="vjs-modal-dialog";class _a extends ia{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Ur("div",{className:`${ya}-content`},{role:"document"}),this.descEl_=Ur("p",{className:`${ya}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),Fr(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${ya} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(this.opened_)return void(this.options_.fillAlways&&this.fill());const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){const t=this.closeable_=!!e;let i=this.getChild("closeButton");if(t&&!i){const e=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),i=t.parentNode,s=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),nn(t,e),this.trigger("modalfill"),s?i.insertBefore(t,s):i.appendChild(t);const r=this.getChild("closeButton");r&&i.appendChild(r.el_),this.trigger("aftermodalfill")}empty(){this.trigger("beforemodalempty"),tn(this.contentEl()),this.trigger("modalempty")}content(e){return void 0!==e&&(this.content_=e),this.content_}conditionalFocus_(){const e=Je.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(this.trigger({type:"modalKeydown",originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),"Escape"===e.key&&this.closeable())return e.preventDefault(),void this.close();if("Tab"!==e.key)return;const t=this.focusableEls_(),i=this.el_.querySelector(":focus");let s;for(let e=0;e<t.length;e++)if(i===t[e]){s=e;break}Je.activeElement===this.el_&&(s=0),e.shiftKey&&0===s?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||s!==t.length-1||(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,e=>(e instanceof be.HTMLAnchorElement||e instanceof be.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof be.HTMLInputElement||e instanceof be.HTMLSelectElement||e instanceof be.HTMLTextAreaElement||e instanceof be.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof be.HTMLIFrameElement||e instanceof be.HTMLObjectElement||e instanceof be.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable"))}}_a.prototype.options_={pauseOnOpen:!0,temporary:!0},ia.registerComponent("ModalDialog",_a);class va extends Bn{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},jn(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let i=0,s=this.length;i<s;i++)if(this[i]===e){t=this[i],t.off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}va.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const e in va.prototype.allowedEvents_)va.prototype["on"+e]=null;const ba=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)},Ta=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)};class Sa extends va{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class wa{constructor(e){wa.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let i=0;const s=e.length;this.cues_=e,this.length_=e.length;const r=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<s)for(i=t;i<s;i++)r.call(this,i)}getCueById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}const Ca={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Ea={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},ka={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},xa={disabled:"disabled",hidden:"hidden",showing:"showing"};class Ia extends Bn{constructor(e={}){super();const t={id:e.id||"vjs_track_"+Sn(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const e in t)Object.defineProperty(this,e,{get:()=>t[e],set(){}});Object.defineProperty(this,"label",{get:()=>i,set(e){e!==i&&(i=e,this.trigger("labelchange"))}})}}const Aa=function(e){return new URL(e,Je.baseURI)},Da=function(e){return new URL(e,Je.baseURI).href},Pa=function(e){if("string"==typeof e){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},Ma=function(e,t=be.location){return Aa(e).origin!==t.origin};var La=Object.freeze({__proto__:null,parseUrl:Aa,getAbsoluteURL:Da,getFileExtension:Pa,isCrossOrigin:Ma});const Oa=function(e,t){const i=new be.WebVTT.Parser(be,be.vttjs,be.WebVTT.StringDecoder()),s=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){s.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),s.length>0&&(be.console&&be.console.groupCollapsed&&be.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),s.forEach(e=>Qs.error(e)),be.console&&be.console.groupEnd&&be.console.groupEnd()),i.flush()},Na=function(e,t){const i={uri:e},s=Ma(e);s&&(i.cors=s);const r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),dt(i,On(this,function(e,i,s){if(e)return Qs.error(e,i);t.loaded_=!0,"function"!=typeof be.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],e=>{if("vttjserror"!==e.type)return Oa(s,t);Qs.error(`vttjs failed to load, stopping trying to process ${t.src}`)}):Oa(s,t)}))};class Ra extends Ia{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=rr(e,{kind:ka[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=xa[t.mode]||"disabled";const s=t.default;"metadata"!==t.kind&&"chapters"!==t.kind||(i="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const r=new wa(this.cues_),n=new wa(this.activeCues_);let a=!1;this.timeupdateHandler=On(this,function(e={}){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,a&&(this.trigger("cuechange"),a=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}),this.tech_.one("dispose",()=>{this.stopTracking()}),"disabled"!==i&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>s,set(){}},mode:{get:()=>i,set(e){xa[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Na(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?r:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return n;const e=this.tech_.currentTime(),t=[];for(let i=0,s=this.cues.length;i<s;i++){const s=this.cues[i];s.startTime<=e&&s.endTime>=e&&t.push(s)}if(a=!1,t.length!==this.activeCues_.length)a=!0;else for(let e=0;e<t.length;e++)-1===this.activeCues_.indexOf(t[e])&&(a=!0);return this.activeCues_=t,n.setCues_(this.activeCues_),n},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&Na(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){t=new be.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const i in e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}const i=this.tech_.textTracks();for(let e=0;e<i.length;e++)i[e]!==this&&i[e].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;for(;t--;){const i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}Ra.prototype.allowedEvents_={cuechange:"cuechange"};class Ua extends Ia{constructor(e={}){const t=rr(e,{kind:Ea[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"enabled",{get:()=>i,set(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class Fa extends Ia{constructor(e={}){const t=rr(e,{kind:Ca[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"selected",{get:()=>i,set(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class Ba extends Bn{constructor(e={}){let t;super();const i=new Ra(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get:()=>t},track:{get:()=>i}}),t=Ba.NONE,i.addEventListener("loadeddata",()=>{t=Ba.LOADED,this.trigger({type:"load",target:this})})}}Ba.prototype.allowedEvents_={load:"load"},Ba.NONE=0,Ba.LOADING=1,Ba.LOADED=2,Ba.ERROR=3;const qa={audio:{ListClass:class extends va{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){ba(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&ba(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,ba(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}},TrackClass:Ua,capitalName:"Audio"},video:{ListClass:class extends va{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){Ta(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&Ta(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,Ta(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}},TrackClass:Fa,capitalName:"Video"},text:{ListClass:Sa,TrackClass:Ra,capitalName:"Text"}};Object.keys(qa).forEach(function(e){qa[e].getterName=`${e}Tracks`,qa[e].privateName=`${e}Tracks_`});const ja={remoteText:{ListClass:Sa,TrackClass:Ra,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let i=0,s=this.trackElements_.length;i<s;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t}removeTrackElement_(e){for(let t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},TrackClass:Ba,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},$a=Object.assign({},qa,ja);ja.names=Object.keys(ja),qa.names=Object.keys(qa),$a.names=[].concat(ja.names).concat(qa.names);class Ha extends ia{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),$a.names.forEach(t=>{const i=$a[t];e&&e[i.getterName]&&(this[i.privateName]=e[i.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new $a.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(On(this,function(){const e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return na(0,0)}bufferedPercent(){return da(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(qa.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){(e=[].concat(e)).forEach(e=>{const t=this[`${e}Tracks`]()||[];let i=t.length;for(;i--;){const s=t[i];"text"===e&&this.removeRemoteTextTrack(s),t.removeTrack(s)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;for(;t--;){const i=e[t];this.removeRemoteTextTrack(i)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new pa(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?na(0,0):na()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){qa.names.forEach(e=>{const t=qa[e],i=()=>{this.trigger(`${e}trackchange`)},s=this[t.getterName]();s.addEventListener("removetrack",i),s.addEventListener("addtrack",i),this.on("dispose",()=>{s.removeEventListener("removetrack",i),s.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!be.WebVTT)if(Je.body.contains(this.el())){if(!this.options_["vtt.js"]&&sr(Ct)&&Object.keys(Ct).length>0)return void this.trigger("vttjsloaded");const e=Je.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),be.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),i=t=>e.addTrack(t.track),s=t=>e.removeTrack(t.track);t.on("addtrack",i),t.on("removetrack",s),this.addWebVttScript_();const r=()=>this.trigger("texttrackchange"),n=()=>{r();for(let t=0;t<e.length;t++){const i=e[t];i.removeEventListener("cuechange",r),"showing"===i.mode&&i.addEventListener("cuechange",r)}};n(),e.addEventListener("change",n),e.addEventListener("addtrack",n),e.addEventListener("removetrack",n),this.on("dispose",function(){t.off("addtrack",i),t.off("removetrack",s),e.removeEventListener("change",n),e.removeEventListener("addtrack",n),e.removeEventListener("removetrack",n);for(let t=0;t<e.length;t++)e[t].removeEventListener("cuechange",r)})}addTextTrack(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,i,s,r={}){const n=e.textTracks();r.kind=t,i&&(r.label=i),s&&(r.language=s),r.tech=e;const a=new $a.text.TrackClass(r);return n.addTrack(a),a}(this,e,t,i)}createRemoteTextTrack(e){const t=rr(e,{tech:this});return new ja.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const i=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=Sn();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return Ha.canPlayType(e.type)}static isTech(e){return e.prototype instanceof Ha||e instanceof Ha||e===Ha}static registerTech(e,t){if(Ha.techs_||(Ha.techs_={}),!Ha.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!Ha.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Ha.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Jn(e),Ha.techs_[e]=t,Ha.techs_[Yn(e)]=t,"Tech"!==e&&Ha.defaultTechOrder_.push(e),t}static getTech(e){if(e)return Ha.techs_&&Ha.techs_[e]?Ha.techs_[e]:(e=Jn(e),be&&be.videojs&&be.videojs[e]?(Qs.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),be.videojs[e]):void 0)}}$a.names.forEach(function(e){const t=$a[e];Ha.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Ha.prototype.featuresVolumeControl=!0,Ha.prototype.featuresMuteControl=!0,Ha.prototype.featuresFullscreenResize=!1,Ha.prototype.featuresPlaybackRate=!1,Ha.prototype.featuresProgressEvents=!1,Ha.prototype.featuresSourceset=!1,Ha.prototype.featuresTimeupdateEvents=!1,Ha.prototype.featuresNativeTextTracks=!1,Ha.prototype.featuresVideoFrameCallback=!1,Ha.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){let s=e.sourceHandlers;s||(s=e.sourceHandlers=[]),void 0===i&&(i=s.length),s.splice(i,0,t)},e.canPlayType=function(t){const i=e.sourceHandlers||[];let s;for(let e=0;e<i.length;e++)if(s=i[e].canPlayType(t),s)return s;return""},e.selectSourceHandler=function(t,i){const s=e.sourceHandlers||[];let r;for(let e=0;e<s.length;e++)if(r=s[e].canHandleSource(t,i),r)return s[e];return null},e.canPlaySource=function(t,i){const s=e.selectSourceHandler(t,i);return s?s.canHandleSource(t,i):""},["seekable","seeking","duration"].forEach(function(e){const t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){let i=e.selectSourceHandler(t,this.options_);i||(e.nativeSourceHandler?i=e.nativeSourceHandler:Qs.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=i.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},ia.registerComponent("Tech",Ha),Ha.registerTech("Tech",Ha),Ha.defaultTechOrder_=[];const Va={},za={},Wa={};function Ga(e,t,i){e.setTimeout(()=>Ja(t,Va[t.type],i,e),1)}function Xa(e,t,i,s=null){const r="call"+Jn(i),n=e.reduce(Ya(r),s),a=n===Wa,o=a?null:t[i](n);return function(e,t,i,s){for(let r=e.length-1;r>=0;r--){const n=e[r];n[t]&&n[t](s,i)}}(e,i,o,a),o}const Za={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Qa={setCurrentTime:1,setMuted:1,setVolume:1},Ka={play:1,pause:1};function Ya(e){return(t,i)=>t===Wa?Wa:i[e]?i[e](t):t}function Ja(e={},t=[],i,s,r=[],n=!1){const[a,...o]=t;if("string"==typeof a)Ja(e,Va[a],i,s,r,n);else if(a){const t=function(e,t){const i=za[e.id()];let s=null;if(null==i)return s=t(e),za[e.id()]=[[t,s]],s;for(let e=0;e<i.length;e++){const[r,n]=i[e];r===t&&(s=n)}return null===s&&(s=t(e),i.push([t,s])),s}(s,a);if(!t.setSource)return r.push(t),Ja(e,o,i,s,r,n);t.setSource(Object.assign({},e),function(a,l){if(a)return Ja(e,o,i,s,r,n);r.push(t),Ja(l,e.type===l.type?o:Va[l.type],i,s,r,n)})}else o.length?Ja(e,o,i,s,r,n):n?i(e,r):Ja(e,Va["*"],i,s,r,!0)}const eo={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},to=function(e=""){const t=Pa(e);return eo[t.toLowerCase()]||""},io=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(e){e=io(e),Array.isArray(e)?t=t.concat(e):ir(e)&&t.push(e)}),e=t}else e="string"==typeof e&&e.trim()?[so({src:e})]:ir(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[so(e)]:[];return e};function so(e){if(!e.type){const t=to(e.src);t&&(e.type=t)}return e}const ro=Cr?10009:Er?461:8,no={codes:{play:415,pause:19,ff:417,rw:412,back:ro},names:{415:"play",19:"pause",417:"ff",412:"rw",[ro]:"back"},isEventKey(e,t){return t=t.toLowerCase(),!(!this.names[e.keyCode]||this.names[e.keyCode]!==t)},getEventName(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){const t=this.codes[e.code];return this.names[t]}return null}};class ao extends Bn{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on("modalclose",()=>{this.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0,this.player_.errorDisplay&&this.player_.errorDisplay.on("aftermodalfill",()=>{this.updateFocusableComponents(),this.focusableComponents.length&&(this.focusableComponents.length>1?this.focusableComponents[1].focus():this.focusableComponents[0].focus())}))}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){const t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();const e=t.key.substring(5).toLowerCase();this.move(e)}else if(no.isEventKey(t,"play")||no.isEventKey(t,"pause")||no.isEventKey(t,"ff")||no.isEventKey(t,"rw")){t.preventDefault();const e=no.getEventName(t);this.performMediaAction_(e)}else no.isEventKey(t,"Back")&&e.target&&"function"==typeof e.target.closeable&&e.target.closeable()&&(t.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+5);break;case"rw":this.userSeek_(this.player_.currentTime()-5)}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){const t=e.relatedTarget;let i=null;const s=this.getCurrentComponent(e.target);t&&(i=Boolean(t.closest(".video-js")),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(e.currentTarget.contains(e.relatedTarget)||i)&&t||(s&&"CloseButton"===s.name()?this.refocusComponent():(this.pause(),s&&s.el()&&(this.lastFocusedComponent_=s)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const e=this.player_,t=[];function i(e){for(const s of e)s.hasOwnProperty("el_")&&s.getIsFocusable()&&s.getIsAvailableToBeFocused(s.el())&&t.push(s),s.hasOwnProperty("children_")&&s.children_.length>0&&i(s.children_)}return e.children_.forEach(e=>{if(e.hasOwnProperty("el_")){if(e.getIsFocusable&&e.getIsAvailableToBeFocused&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el()))return void t.push(e);e.hasOwnProperty("children_")&&e.children_.length>0?i(e.children_):e.hasOwnProperty("items")&&e.items.length>0?i(e.items):this.findSuitableDOMChild(e)&&t.push(e)}if("ErrorDisplay"===e.name_&&e.opened_){const i=e.el_.querySelector(".vjs-errors-ok-button-container");i&&i.querySelectorAll("button").forEach((e,i)=>{t.push({name:()=>"ModalButton"+(i+1),el:()=>e,getPositions:()=>{const t=e.getBoundingClientRect();return{boundingClientRect:{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left},center:{x:t.left+t.width/2,y:t.top+t.height/2,width:0,height:0,top:t.top+t.height/2,right:t.left+t.width/2,bottom:t.top+t.height/2,left:t.left+t.width/2}}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:e=>!0,focus:()=>e.focus()})})}}),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){return e.el()?function t(i){if(e.getIsFocusable(i)&&e.getIsAvailableToBeFocused(i))return i;for(let e=0;e<i.children.length;e++){const s=t(i.children[e]);if(s)return s}return null}(e.el()):null}getCurrentComponent(e){this.updateFocusableComponents();const t=e||document.activeElement;if(this.focusableComponents.length)for(const e of this.focusableComponents)if(e.el()===t)return e}add(e){const t=[...this.focusableComponents];e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(e){for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name())return this.focusableComponents.splice(t,1),void this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(e){const t=this.getCurrentComponent();if(!t)return;const i=t.getPositions(),s=this.focusableComponents.filter(s=>s!==t&&this.isInDirection_(i.boundingClientRect,s.getPositions().boundingClientRect,e)),r=this.findBestCandidate_(i.center,s,e);r?this.focus(r):this.trigger({type:"endOfFocusableComponents",direction:e,focusedComponent:t})}findBestCandidate_(e,t,i){let s=1/0,r=null;for(const n of t){const t=n.getPositions().center,a=this.calculateDistance_(e,t,i);a<s&&(s=a,r=n)}return r}isInDirection_(e,t,i){switch(i){case"right":return t.left>=e.right;case"left":return t.right<=e.left;case"down":return t.top>=e.bottom;case"up":return t.bottom<=e.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name())return void this.focus(this.focusableComponents[e])}else this.focus(this.updateFocusableComponents()[0])}focus(e){"object"==typeof e&&(e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus())}calculateDistance_(e,t,i){const s=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);let n;switch(i){case"right":case"left":n=s+100*r;break;case"up":n=2*r+.5*s;break;case"down":n=5*r+s;break;default:n=s+r}return n}searchForTrackSelect_(){const e=this;for(const t of e.updateFocusableComponents())if("TextTrackSelect"===t.constructor.name){e.focus(t);break}}}ia.registerComponent("MediaLoader",class extends ia{constructor(e,t,i){if(super(e,rr({createEl:!1},t),i),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let i=0,s=t.playerOptions.techOrder;i<s.length;i++){const t=Jn(s[i]);let r=Ha.getTech(t);if(t||(r=ia.getComponent(t)),r&&r.isSupported()){e.loadTech_(t);break}}}});class oo extends ia{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},i={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&Qs.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=t.tabIndex;const s=Ur(e,t,i);return this.player_.options_.experimentalSvgIcons||s.appendChild(Ur("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=Ur("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,Fr(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){" "===e.key||"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}ia.registerComponent("ClickableComponent",oo);class lo extends oo{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Ur("div",{className:"vjs-poster"})}crossOrigin(e){if(void 0===e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(Ur("picture",{className:"vjs-poster",tabIndex:-1},{},Ur("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ga(this.player_.play()):this.player_.pause())}}lo.prototype.crossorigin=lo.prototype.crossOrigin,ia.registerComponent("PosterImage",lo);const uo="#222",co="#ccc",ho={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function po(e,t){let i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function mo(e,t,i){try{e.style[t]=i}catch(e){return}}function go(e){return e?`${e}px`:""}ia.registerComponent("TextTrackDisplay",class extends ia{constructor(e,t,i){super(e,t,i);const s=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",e=>this.toggleDisplay(e)),e.on("texttrackchange",e=>this.updateDisplay(e)),e.on("loadedmetadata",e=>{this.updateDisplayOverlay(),this.preselectTrack(e)}),e.ready(On(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",s),e.on("playerresize",s);const t=be.screen.orientation||be,i=be.screen.orientation?"change":"orientationchange";t.addEventListener(i,s),e.on("dispose",()=>t.removeEventListener(i,s));const r=this.options_.playerOptions.tracks||[];for(let e=0;e<r.length;e++)this.player_.addRemoteTextTrack(r[e],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let s,r,n;for(let a=0;a<t.length;a++){const o=t[a];i&&i.enabled&&i.language&&i.language===o.language&&o.kind in e?o.kind===i.kind?n=o:n||(n=o):i&&!i.enabled?(n=null,s=null,r=null):o.default&&("descriptions"!==o.kind||s?o.kind in e&&!r&&(r=o):s=o)}n?n.mode="showing":r?r.mode="showing":s&&(s.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof be.WebVTT&&be.WebVTT.processCues(be,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const t=[];for(let i=0;i<e.length;++i){const s=e[i];"showing"===s.mode&&t.push(s)}return void this.updateForTrack(t)}let i=null,s=null,r=e.length;for(;r--;){const t=e[r];"showing"===t.mode&&("descriptions"===t.kind?i=t:s=t)}if(s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i)),!be.CSS.supports("inset","10px")){const e=this.el_,t=e.querySelectorAll(".vjs-text-track-cue"),i=this.player_.controlBar.el_.getBoundingClientRect().height,s=this.player_.el_.getBoundingClientRect().height;e.style="",mo(e,"position","relative"),mo(e,"height",s-i+"px"),mo(e,"top","unset"),mo(e,"bottom",kr?s+"px":"0px"),t.length>0&&t.forEach(e=>{if(e.style.inset){const t=e.style.inset.split(" ");3===t.length&&Object.assign(e.style,{top:t[0],right:t[1],bottom:t[2],left:"unset"})}})}}updateDisplayOverlay(){if(!this.player_.videoHeight()||!be.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),i=e/t,s=this.player_.videoWidth()/this.player_.videoHeight();let r=0,n=0;Math.abs(i-s)>.1&&(i>s?r=Math.round((e-t*s)/2):n=Math.round((t-e/s)/2)),mo(this.el_,"insetInline",go(r)),mo(this.el_,"insetBlock",go(n))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),i=e.activeCues;let s=i.length;for(;s--;){const e=i[s];if(!e)continue;const r=e.displayState;if(t.color&&(r.firstChild.style.color=t.color),t.textOpacity&&mo(r.firstChild,"color",po(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(r.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&mo(r.firstChild,"backgroundColor",po(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?mo(r,"backgroundColor",po(t.windowColor,t.windowOpacity)):r.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?r.firstChild.style.textShadow=`2px 2px 3px ${uo}, 2px 2px 4px ${uo}, 2px 2px 5px ${uo}`:"raised"===t.edgeStyle?r.firstChild.style.textShadow=`1px 1px ${uo}, 2px 2px ${uo}, 3px 3px ${uo}`:"depressed"===t.edgeStyle?r.firstChild.style.textShadow=`1px 1px ${co}, 0 1px ${co}, -1px -1px ${uo}, 0 -1px ${uo}`:"uniform"===t.edgeStyle&&(r.firstChild.style.textShadow=`0 0 4px ${uo}, 0 0 4px ${uo}, 0 0 4px ${uo}, 0 0 4px ${uo}`)),t.fontPercent&&1!==t.fontPercent){const e=be.parseFloat(r.style.fontSize);r.style.fontSize=e*t.fontPercent+"px",r.style.height="auto",r.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?r.firstChild.style.fontVariant="small-caps":r.firstChild.style.fontFamily=ho[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof be.WebVTT||e.every(e=>!e.activeCues))return;const t=[];for(let i=0;i<e.length;++i){const s=e[i];for(let e=0;e<s.activeCues.length;++e)t.push(s.activeCues[e])}be.WebVTT.processCues(be,t,this.el_);for(let t=0;t<e.length;++t){const i=e[t];for(let e=0;e<i.activeCues.length;++e){const s=i.activeCues[e].displayState;jr(s,"vjs-text-track-cue","vjs-text-track-cue-"+(i.language?i.language:t)),i.language&&Gr(s,"lang",i.language)}this.player_.textTrackSettings&&this.updateDisplayState(i)}}}),ia.registerComponent("LoadingSpinner",class extends ia{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=Ur("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),s=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return s.appendChild(i),s}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});class fo extends oo{createEl(e,t={},i={}){const s=Ur("button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i));return this.player_.options_.experimentalSvgIcons||s.appendChild(Ur("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}addChild(e,t={}){const i=this.constructor.name;return Qs.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),ia.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){" "!==e.key&&"Enter"!==e.key?super.handleKeyDown(e):e.stopPropagation()}}ia.registerComponent("Button",fo);class yo extends fo{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",e=>this.handleMouseDown(e))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return ga(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const i=this.player_.getChild("controlBar"),s=i&&i.getChild("playToggle");if(!s)return void this.player_.tech(!0).focus();const r=()=>s.focus();ma(t)?t.then(r,()=>{}):this.setTimeout(r,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}yo.prototype.controlText_="Play Video",ia.registerComponent("BigPlayButton",yo),ia.registerComponent("CloseButton",class extends fo{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}});class _o extends fo{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",e=>this.handlePlay(e)),this.on(e,"pause",e=>this.handlePause(e)),t.replay&&this.on(e,"ended",e=>this.handleEnded(e))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?ga(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",e=>this.handleSeeked(e))}}_o.prototype.controlText_="Play",ia.registerComponent("PlayToggle",_o);class vo extends ia{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],e=>this.update(e)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),i=Ur("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return t.appendChild(i),this.contentEl_=Ur("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}updateTextNode_(e=0){e=ca(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,Qs.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=Je.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}vo.prototype.labelText_="Time",vo.prototype.controlText_="Time",ia.registerComponent("TimeDisplay",vo);class bo extends vo{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}bo.prototype.labelText_="Current Time",bo.prototype.controlText_="Current Time",ia.registerComponent("CurrentTimeDisplay",bo);class To extends vo{constructor(e,t){super(e,t);const i=e=>this.updateContent(e);this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}To.prototype.labelText_="Duration",To.prototype.controlText_="Duration",ia.registerComponent("DurationDisplay",To),ia.registerComponent("TimeDivider",class extends ia{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e}});class So extends vo{constructor(e,t){super(e,t),this.on(e,"durationchange",e=>this.updateContent(e))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(Ur("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!=typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}So.prototype.labelText_="Remaining Time",So.prototype.controlText_="Remaining Time",ia.registerComponent("RemainingTimeDisplay",So),ia.registerComponent("LiveDisplay",class extends ia{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",e=>this.updateShowing(e))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Ur("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Ur("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(Je.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}});class wo extends fo{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=Ur("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function Co(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}wo.prototype.controlText_="Seek to live, currently playing live",ia.registerComponent("SeekToLive",wo);var Eo=Object.freeze({__proto__:null,clamp:Co});class ko extends ia{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},i={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,t,i)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||gr||e.preventDefault(),Zr(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;Qr(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(Co(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=Jr(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){const t=this.options_.playerOptions.spatialNavigation,i=t&&t.enabled,s=t&&t.horizontalSeek;i?s&&"ArrowLeft"===e.key||!s&&"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):s&&"ArrowRight"===e.key||!s&&"ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):"ArrowUp"===e.key||"ArrowRight"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}ia.registerComponent("Slider",ko);const xo=(e,t)=>Co(e/t*100,0,100).toFixed(2)+"%";ia.registerComponent("LoadProgressBar",class extends ia{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",e=>this.update(e))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=Ur("span",{className:"vjs-control-text"}),i=Ur("span",{textContent:this.localize("Loaded")}),s=Je.createTextNode(": ");return this.percentageEl_=Ur("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(s),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const e=this.player_.liveTracker,t=this.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():this.player_.duration(),s=this.player_.bufferedEnd(),r=this.partEls_,n=xo(s,i);this.percent_!==n&&(this.el_.style.width=n,Fr(this.percentageEl_,n),this.percent_=n);for(let e=0;e<t.length;e++){const i=t.start(e),n=t.end(e);let a=r[e];a||(a=this.el_.appendChild(Ur()),r[e]=a),a.dataset.start===i&&a.dataset.end===n||(a.dataset.start=i,a.dataset.end=n,a.style.left=xo(i,s),a.style.width=xo(n-i,s))}for(let e=r.length;e>t.length;e--)this.el_.removeChild(r[e-1]);r.length=t.length})}}),ia.registerComponent("TimeTooltip",class extends ia{constructor(e,t){super(e,t),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,i){const s=Yr(this.el_),r=Kr(this.player_.el()),n=e.width*t;if(!r||!s)return;let a=e.left-r.left+n,o=e.width-n+(r.right-e.right);o||(o=e.width-n,a=n);let l=s.width/2;a<l?l+=l-a:o<l&&(l=o),l<0?l=0:l>s.width&&(l=s.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(i)}write(e){Fr(this.el_,e)}updateTime(e,t,i,s){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let r;const n=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),i=e-t*e;r=(i<1?"":"-")+ca(i,e)}else r=ca(i,n);this.update(e,t,r),s&&s()})}});class Io extends ia{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){const i=this.getChild("timeTooltip");if(!i)return;const s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,s)}}Io.prototype.options_={children:[]},Ar||hr||Io.prototype.options_.children.push("timeTooltip"),ia.registerComponent("PlayProgressBar",Io);class Ao extends ia{constructor(e,t){super(e,t),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,()=>{this.el_.style.left=e.width*t+"px"})}}Ao.prototype.options_={children:["timeTooltip"]},ia.registerComponent("MouseTimeDisplay",Ao);class Do extends ko{constructor(e,t){(t=rr(Do.prototype.options_,t)).children=[...t.children];const i=e.options_.disableSeekWhileScrubbingOnMobile&&(Ar||hr);(!Ar&&!hr||i)&&t.children.splice(1,0,"mouseTimeDisplay"),super(e,t),this.shouldDisableSeekWhileScrubbingOnMobile_=i,this.pendingSeekTime_=null,this.setEventHandlers_()}setEventHandlers_(){this.update_=On(this,this.update),this.update=Nn(this.update_,Ln),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Je&&"visibilityState"in Je&&this.on(Je,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===Je.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Ln))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===Je.visibilityState)return;const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const e=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),i=this.player_.liveTracker;let s=this.player_.duration();i&&i.isLive()&&(s=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),this.currentTime_===e&&this.duration_===s||(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ca(e,s),ca(s,s)],"{1} of {2}")),this.currentTime_=e,this.duration_=s),this.bar&&this.bar.update(Kr(this.el()),this.getProgress())}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){if(this.pendingSeekTime_)return this.pendingSeekTime_/this.player_.duration();const e=this.getCurrentTime_();let t;const i=this.player_.liveTracker;return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){an(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.shouldDisableSeekWhileScrubbingOnMobile_||this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!an(e)||isNaN(this.player_.duration()))return;let i;t||this.player_.scrubbing()||this.player_.scrubbing(!0);const s=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(s>=.99)return void r.seekToLiveEdge();const e=r.seekableStart(),t=r.liveCurrentTime();if(i=e+s*r.liveWindow(),i>=t&&(i=t),i<=e&&(i=e+.1),i===1/0)return}else i=s*this.player_.duration(),i===this.player_.duration()&&(i-=.1);this.shouldDisableSeekWhileScrubbingOnMobile_?this.pendingSeekTime_=i:this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.pendingSeekTime_&&(this.userSeek_(this.pendingSeekTime_),this.pendingSeekTime_=null),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?ga(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+this.options().stepSeconds)}stepBack(){this.userSeek_(this.player_.currentTime()-this.options().stepSeconds)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(" "===e.key||"Enter"===e.key)e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if("Home"===e.key)e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if("End"===e.key)e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();const i=.1*parseInt(e.key,10);t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else"PageDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-this.options().stepSeconds*this.options().pageMultiplier)):"PageUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+this.options().stepSeconds*this.options().pageMultiplier)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Je&&"visibilityState"in Je&&this.off(Je,"visibilitychange",this.toggleVisibility_),super.dispose()}}Do.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar",stepSeconds:5,pageMultiplier:12},ia.registerComponent("SeekBar",Do);class Po extends ia{constructor(e,t){super(e,t),this.handleMouseMove=Nn(On(this,this.handleMouseMove),Ln),this.throttledHandleMouseSeek=Nn(On(this,this.handleMouseSeek),Ln),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const i=t.getChild("playProgressBar"),s=t.getChild("mouseTimeDisplay");if(!i&&!s)return;const r=t.el(),n=Yr(r);let a=Jr(r,e).x;a=Co(a,0,1),s&&s.update(n,a),i&&i.update(n,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&ga(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}Po.prototype.options_={children:["seekBar"]},ia.registerComponent("ProgressControl",Po);class Mo extends fo{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],e=>this.handlePictureInPictureChange(e)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],e=>this.handlePictureInPictureEnabledChange(e)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){Je.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in be?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof Je.exitPictureInPicture&&super.show()}}Mo.prototype.controlText_="Picture-in-Picture",ia.registerComponent("PictureInPictureToggle",Mo);class Lo extends fo{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",e=>this.handleFullscreenChange(e)),!1===Je[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}Lo.prototype.controlText_="Fullscreen",ia.registerComponent("FullscreenToggle",Lo),ia.registerComponent("VolumeLevel",class extends ia{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}),ia.registerComponent("VolumeLevelTooltip",class extends ia{constructor(e,t){super(e,t),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,i,s){if(!i){const i=Kr(this.el_),s=Kr(this.player_.el()),r=e.width*t;if(!s||!i)return;const n=e.left-s.left+r,a=e.width-r+(s.right-e.right);let o=i.width/2;n<o?o+=o-n:a<o&&(o=a),o<0?o=0:o>i.width&&(o=i.width),this.el_.style.right=`-${o}px`}this.write(`${s}%`)}write(e){Fr(this.el_,e)}updateVolume(e,t,i,s,r){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,i,s.toFixed(0)),r&&r()})}});class Oo extends ia{constructor(e,t){super(e,t),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,i){const s=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,s,()=>{i?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"})}}Oo.prototype.options_={children:["volumeLevelTooltip"]},ia.registerComponent("MouseVolumeLevelDisplay",Oo);class No extends ko{constructor(e,t){super(e,t),this.on("slideractive",e=>this.updateLastVolume_(e)),this.on(e,"volumechange",e=>this.updateARIAAttributes(e)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){an(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const i=this.el(),s=Kr(i),r=this.vertical();let n=Jr(i,e);n=r?n.y:n.x,n=Co(n,0,1),t.update(s,n,r)}an(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}No.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ar||hr||No.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),No.prototype.playerEvent="volumechange",ia.registerComponent("VolumeBar",No);class Ro extends ia{constructor(e,t={}){t.vertical=t.vertical||!1,(void 0===t.volumeBar||sr(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(this,e),this.throttledHandleMouseMove=Nn(On(this,this.handleMouseMove),Ln),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",e=>this.handleMouseDown(e)),this.on("touchstart",e=>this.handleMouseDown(e)),this.on("mousemove",e=>this.handleMouseMove(e)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}Ro.prototype.options_={children:["volumeBar"]},ia.registerComponent("VolumeControl",Ro);class Uo extends fo{constructor(e,t){super(e,t),function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(this,e),this.on(e,["loadstart","volumechange"],e=>this.update(e))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){const e=i<.1?.1:i;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),Ar&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),$r(this.el_,[0,1,2,3].reduce((e,t)=>e+`${t?" ":""}vjs-vol-${t}`,"")),jr(this.el_,`vjs-vol-${t}`)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}Uo.prototype.controlText_="Mute",ia.registerComponent("MuteToggle",Uo);class Fo extends ia{constructor(e,t={}){void 0!==t.inline?t.inline=t.inline:t.inline=!0,(void 0===t.volumeControl||sr(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],e=>this.volumePanelState_(e)),this.on(this.muteToggle,"keyup",e=>this.handleKeyPress(e)),this.on(this.volumeControl,"keyup",e=>this.handleVolumeControlKeyUp(e)),this.on("keydown",e=>this.handleKeyPress(e)),this.on("mouseover",e=>this.handleMouseOver(e)),this.on("mouseout",e=>this.handleMouseOut(e)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){"Escape"===e.key&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),xn(Je,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),In(Je,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){"Escape"===e.key&&this.handleMouseOut()}}Fo.prototype.options_={children:["muteToggle","volumeControl"]},ia.registerComponent("VolumePanel",Fo);class Bo extends fo{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()?i.seekableEnd():this.player_.duration();let r;r=t+this.skipTime<=s?t+this.skipTime:s,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}Bo.prototype.controlText_="Skip Forward",ia.registerComponent("SkipForward",Bo);class qo extends fo{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()&&i.seekableStart();let r;r=s&&t-this.skipTime<=s?s:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}qo.prototype.controlText_="Skip Backward",ia.registerComponent("SkipBackward",qo);class jo extends ia{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",e=>this.handleKeyDown(e)),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof ia&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof ia&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=Ur(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),xn(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||Je.activeElement;if(!this.children().some(e=>e.el()===t)){const e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const i=t.filter(t=>t.el()===e.target)[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}handleKeyDown(e){"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}ia.registerComponent("Menu",jo);class $o extends ia{constructor(e,t={}){super(e,t),this.menuButton_=new fo(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=fo.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const s=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",s),this.on(this.menuButton_,"click",s),this.on(this.menuButton_,"keydown",e=>this.handleKeyDown(e)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),xn(Je,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",e=>this.handleMouseLeave(e)),this.on("keydown",e=>this.handleSubmenuKeyDown(e))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new jo(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=Ur("li",{className:"vjs-menu-title",textContent:Jn(this.options_.title),tabIndex:-1}),i=new ia(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${fo.prototype.buildCSSClass()} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),In(Je,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){"Escape"===e.key||"Tab"===e.key?(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus())):"Up"!==e.key&&("Down"!==e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)||this.buttonPressed_||(e.preventDefault(),this.pressButton())}handleMenuKeyUp(e){"Escape"!==e.key&&"Tab"!==e.key||this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){"Escape"!==e.key&&"Tab"!==e.key||(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Ar&&Nr())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}ia.registerComponent("MenuButton",$o);class Ho extends $o{constructor(e,t){const i=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!i)return;const s=On(this,this.update);i.addEventListener("removetrack",s),i.addEventListener("addtrack",s),i.addEventListener("labelchange",s),this.player_.on("ready",s),this.player_.on("dispose",function(){i.removeEventListener("removetrack",s),i.removeEventListener("addtrack",s),i.removeEventListener("labelchange",s)})}}ia.registerComponent("TrackButton",Ho);class Vo extends oo{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,i){this.nonIconControl=!0;const s=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),i),r=Ur("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?s.appendChild(r):s.replaceChild(r,s.querySelector(".vjs-icon-placeholder")),s}handleKeyDown(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.key)||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}ia.registerComponent("MenuItem",Vo);class zo extends Vo{constructor(e,t){const i=t.track,s=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,super(e,t),this.track=i,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const r=(...e)=>{this.handleTracksChange.apply(this,e)},n=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],r),s.addEventListener("change",r),s.addEventListener("selectedlanguagechange",n),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],r),s.removeEventListener("change",r),s.removeEventListener("selectedlanguagechange",n)}),void 0===s.onchange){let e;this.on(["tap","click"],function(){if("object"!=typeof be.Event)try{e=new be.Event("change")}catch(e){}e||(e=Je.createEvent("Event"),e.initEvent("change",!0,!0)),s.dispatchEvent(e)})}this.handleTracksChange()}handleClick(e){const t=this.track,i=this.player_.textTracks();if(super.handleClick(e),i)for(let e=0;e<i.length;e++){const s=i[e];-1!==this.kinds.indexOf(s.kind)&&(s===t?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}ia.registerComponent("TextTrackMenuItem",zo);class Wo extends zo{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let i=!0;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(this.options_.kinds.indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let i=!0;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}ia.registerComponent("OffTextTrackMenuItem",Wo);class Go extends Ho{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=zo){let i;this.label_&&(i=`${this.label_} off`),e.push(new Wo(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const s=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let i=0;i<s.length;i++){const r=s[i];if(this.kinds_.indexOf(r.kind)>-1){const i=new t(this.player_,{track:r,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});i.addClass(`vjs-${r.kind}-menu-item`),e.push(i)}}return e}}ia.registerComponent("TextTrackButton",Go);class Xo extends Vo{constructor(e,t){const i=t.track,s=t.cue,r=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=s.text,t.selected=s.startTime<=r&&r<s.endTime,super(e,t),this.track=i,this.cue=s}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}ia.registerComponent("ChaptersTrackMenuItem",Xo);class Zo extends Go{constructor(e,t,i){super(e,t,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(e=>{e.selected(this.track_.activeCues[0]===e.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const i=e[t];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Jn(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let i=0,s=t.length;i<s;i++){const s=t[i],r=new Xo(this.player_,{track:this.track_,cue:s});e.push(r)}return e}}Zo.prototype.kind_="chapters",Zo.prototype.controlText_="Chapters",ia.registerComponent("ChaptersButton",Zo);class Qo extends Go{constructor(e,t,i){super(e,t,i),this.setIcon("audio-description");const s=e.textTracks(),r=On(this,this.handleTracksChange);s.addEventListener("change",r),this.on("dispose",function(){s.removeEventListener("change",r)})}handleTracksChange(e){const t=this.player().textTracks();let i=!1;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(s.kind!==this.kind_&&"showing"===s.mode){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}Qo.prototype.kind_="descriptions",Qo.prototype.controlText_="Descriptions",ia.registerComponent("DescriptionsButton",Qo);class Ko extends Go{constructor(e,t,i){super(e,t,i),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}Ko.prototype.kind_="subtitles",Ko.prototype.controlText_="Subtitles",ia.registerComponent("SubtitlesButton",Ko);class Yo extends zo{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}ia.registerComponent("CaptionSettingsMenuItem",Yo);class Jo extends Go{constructor(e,t,i){super(e,t,i),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Yo(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}Jo.prototype.kind_="captions",Jo.prototype.controlText_="Captions",ia.registerComponent("CaptionsButton",Jo);class el extends zo{createEl(e,t,i){const s=super.createEl(e,t,i),r=s.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",s):r.appendChild(Ur("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(Ur("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),s}}ia.registerComponent("SubsCapsMenuItem",el);class tl extends Go{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Jn(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Yo(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,el),e}}tl.prototype.kinds_=["captions","subtitles"],tl.prototype.controlText_="Subtitles",ia.registerComponent("SubsCapsButton",tl);class il extends Vo{constructor(e,t){const i=t.track,s=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,super(e,t),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const r=(...e)=>{this.handleTracksChange.apply(this,e)};s.addEventListener("change",r),this.on("dispose",()=>{s.removeEventListener("change",r)})}createEl(e,t,i){const s=super.createEl(e,t,i),r=s.querySelector(".vjs-menu-item-text");return["main-desc","descriptions"].indexOf(this.options_.track.kind)>=0&&(r.appendChild(Ur("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(Ur("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),s}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const e=this.player_.audioTracks();for(let t=0;t<e.length;t++){const i=e[t];i!==this.track&&(i.enabled=i===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}ia.registerComponent("AudioTrackMenuItem",il);class sl extends Ho{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let i=0;i<t.length;i++){const s=t[i];e.push(new il(this.player_,{track:s,selectable:!0,multiSelectable:!1}))}return e}}sl.prototype.controlText_="Audio Track",ia.registerComponent("AudioTrackButton",sl);class rl extends Vo{constructor(e,t){const i=t.rate,s=parseFloat(i,10);t.label=i,t.selected=s===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=i,this.rate=s,this.on(e,"ratechange",e=>this.update(e))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}rl.prototype.contentElType="button",ia.registerComponent("PlaybackRateMenuItem",rl);class nl extends $o{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",e=>this.updateVisibility(e)),this.on(e,"ratechange",e=>this.updateLabel(e)),this.on(e,"playbackrateschange",e=>this.handlePlaybackRateschange(e))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Ur("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),t=[];for(let i=e.length-1;i>=0;i--)t.push(new rl(this.player(),{rate:e[i]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}nl.prototype.controlText_="Playback Rate",ia.registerComponent("PlaybackRateMenuButton",nl);class al extends ia{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},i={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,i)}}ia.registerComponent("Spacer",al),ia.registerComponent("CustomControlSpacer",class extends al{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}});class ol extends ia{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}ol.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},ia.registerComponent("ControlBar",ol);class ll extends _a{constructor(e,t){super(e,t),this.on(e,"error",e=>{this.open(e)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}ll.prototype.options_=Object.assign({},_a.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),ia.registerComponent("ErrorDisplay",ll);class ul extends ia{constructor(e,t={}){super(e,t),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),Ur("select",{id:this.options_.id},{},this.options_.SelectOptions.map(e=>{const t=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${Sn()}`)+"-"+e[1].replace(/\W+/g,""),i=Ur("option",{id:t,value:this.localize(e[0]),textContent:this.localize(e[1])});return i.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${t}`),i}))}}ia.registerComponent("TextTrackSelect",ul);class cl extends ia{constructor(e,t={}){super(e,t);const i=Ur("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(i);const s=this.options_.selects;for(const t of s){const i=this.options_.selectConfigs[t],s=i.className,r=i.id.replace("%s",this.options_.id_);let n=null;const a=`vjs_select_${Sn()}`;if("colors"===this.options_.type){n=Ur("span",{className:s});const e=Ur("label",{id:r,className:"vjs-label",textContent:this.localize(i.label)});e.setAttribute("for",a),n.appendChild(e)}const o=new ul(e,{SelectOptions:i.options,legendId:this.options_.legendId,id:a,labelId:r});this.addChild(o),"colors"===this.options_.type&&(n.appendChild(o.el()),this.el().appendChild(n))}}createEl(){return Ur("fieldset",{className:this.options_.className})}}ia.registerComponent("TextTrackFieldset",cl);class hl extends ia{constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,s=new cl(e,{id_:i,legendId:`captions-text-legend-${i}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(s);const r=new cl(e,{id_:i,legendId:`captions-background-${i}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(r);const n=new cl(e,{id_:i,legendId:`captions-window-${i}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(n)}createEl(){return Ur("div",{className:"vjs-track-settings-colors"})}}ia.registerComponent("TextTrackSettingsColors",hl);class dl extends ia{constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,s=new cl(e,{id_:i,legendId:`captions-font-size-${i}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(s);const r=new cl(e,{id_:i,legendId:`captions-edge-style-${i}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(r);const n=new cl(e,{id_:i,legendId:`captions-font-family-${i}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(n)}createEl(){return Ur("div",{className:"vjs-track-settings-font"})}}ia.registerComponent("TextTrackSettingsFont",dl);class pl extends ia{constructor(e,t={}){super(e,t);const i=this.localize("restore all settings to the default values"),s=new fo(e,{controlText:i,className:"vjs-default-button"});s.el().classList.remove("vjs-control","vjs-button"),s.el().textContent=this.localize("Reset"),this.addChild(s);const r=new fo(e,{controlText:i,className:"vjs-done-button"});r.el().classList.remove("vjs-control","vjs-button"),r.el().textContent=this.localize("Done"),this.addChild(r)}createEl(){return Ur("div",{className:"vjs-track-settings-controls"})}}ia.registerComponent("TrackSettingsControls",pl);const ml="vjs-text-track-settings",gl=["#000","Black"],fl=["#00F","Blue"],yl=["#0FF","Cyan"],_l=["#0F0","Green"],vl=["#F0F","Magenta"],bl=["#F00","Red"],Tl=["#FFF","White"],Sl=["#FF0","Yellow"],wl=["1","Opaque"],Cl=["0.5","Semi-Transparent"],El=["0","Transparent"],kl={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[gl,Tl,bl,_l,fl,Sl,vl,yl],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[wl,Cl,El],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Tl,gl,bl,_l,fl,Sl,vl,yl],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[wl,Cl],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[El,Cl,wl],className:"vjs-window-opacity vjs-opacity"}};function xl(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}kl.windowColor.options=kl.backgroundColor.options,ia.registerComponent("TextTrackSettings",class extends _a{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=Ur("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){const t=new hl(e,{textTrackComponentid:this.id_,selectConfigs:kl,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);const i=new dl(e,{textTrackComponentid:this.id_,selectConfigs:kl,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(i);const s=new pl(e);this.addChild(s)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),["click","tap"],()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),["click","tap"],()=>{this.setDefaults(),this.updateDisplay()}),er(kl,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return tr(kl,(e,t,i)=>{const s=function(e,t){return xl(e.options[e.options.selectedIndex].value,t)}(this.$(t.selector),t.parser);return void 0!==s&&(e[i]=s),e},{})}setValues(e){er(kl,(t,i)=>{!function(e,t,i){if(t)for(let s=0;s<e.options.length;s++)if(xl(e.options[s].value,i)===t){e.selectedIndex=s;break}}(this.$(t.selector),e[i],t.parser)})}setDefaults(){er(kl,e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(be.localStorage.getItem(ml))}catch(e){Qs.warn(e)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?be.localStorage.setItem(ml,JSON.stringify(e)):be.localStorage.removeItem(ml)}catch(e){Qs.warn(e)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}}),ia.registerComponent("ResizeManager",class extends ia{constructor(e,t){let i=t.ResizeObserver||be.ResizeObserver;null===t.ResizeObserver&&(i=!1),super(e,rr({createEl:!i,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||be.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=Rn(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const e=this.debouncedHandler_;let t=this.unloadListener_=function(){In(this,"resize",e),In(this,"unload",t),t=null};xn(this.el_.contentWindow,"unload",t),xn(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}});const Il={trackingThreshold:20,liveTolerance:15};ia.registerComponent("LiveTracker",class extends ia{constructor(e,t){super(e,rr(Il,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",e=>this.handleDurationchange(e)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(be.performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;const s=this.liveCurrentTime(),r=this.player_.currentTime();let n=this.player_.paused()||this.seekedBehindLive_||Math.abs(s-r)>this.options_.liveTolerance;this.timeupdateSeen_&&s!==1/0||(n=!1),n!==this.behindLiveEdge_&&(this.behindLiveEdge_=n,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Ln),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}),ia.registerComponent("TitleBar",class extends ia{constructor(e,t){super(e,t),this.on("statechanged",e=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Ur("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${Sn()}`}),description:Ur("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${Sn()}`})},Ur("div",{className:"vjs-title-bar"},{},nr(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(e=>{const s=this.state[e],r=this.els[e],n=i[e];tn(r),s&&Fr(r,s),t&&(t.removeAttribute(n),s&&t.setAttribute(n,r.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}});const Al={initialDisplay:4e3,position:[],takeFocus:!1};ia.registerComponent("TransientButton",class extends fo{constructor(e,t){super(e,t=rr(Al,t)),this.controlText(t.controlText),this.hide(),this.on(this.player_,["useractive","userinactive"],e=>{this.removeClass("force-display")})}buildCSSClass(){return`vjs-transient-button focus-visible ${this.options_.position.map(e=>`vjs-${e}`).join(" ")}`}createEl(){const e=Ur("button",{},{type:"button",class:this.buildCSSClass()},Ur("span"));return this.controlTextEl_=e.querySelector("span"),e}show(){super.show(),this.addClass("force-display"),this.options_.takeFocus&&this.el().focus({preventScroll:!0}),this.forceDisplayTimeout=this.player_.setTimeout(()=>{this.removeClass("force-display")},this.options_.initialDisplay)}hide(){this.removeClass("force-display"),super.hide()}dispose(){this.player_.clearTimeout(this.forceDisplayTimeout),super.dispose()}});const Dl=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const i=e.$$("source"),s=[];let r="";if(!i.length)return!1;for(let e=0;e<i.length;e++){const t=i[e].src;t&&-1===s.indexOf(t)&&s.push(t)}return!!s.length&&(1===s.length&&(r=s[0]),e.triggerSourceset(r),!0)},Pl=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=Je.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const i=Je.createDocumentFragment();for(;t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",be.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Ml=(e,t)=>{let i={};for(let s=0;s<e.length&&(i=Object.getOwnPropertyDescriptor(e[s],t),!(i&&i.set&&i.get));s++);return i.enumerable=!0,i.configurable=!0,i},Ll=function(e){const t=e.el();if(t.resetSourceWatch_)return;const i={},s=(e=>Ml([e.el(),be.HTMLMediaElement.prototype,be.Element.prototype,Pl],"innerHTML"))(e),r=i=>(...s)=>{const r=i.apply(t,s);return Dl(e),r};["append","appendChild","insertAdjacentHTML"].forEach(e=>{t[e]&&(i[e]=t[e],t[e]=r(i[e]))}),Object.defineProperty(t,"innerHTML",rr(s,{set:r(s.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(i).forEach(e=>{t[e]=i[e]}),Object.defineProperty(t,"innerHTML",s)},e.one("sourceset",t.resetSourceWatch_)},Ol=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?Da(be.Element.prototype.getAttribute.call(this,"src")):""},set(e){return be.Element.prototype.setAttribute.call(this,"src",e),e}});class Nl extends Ha{constructor(e,t){super(e,t);const i=e.source;let s=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,i&&(this.el_.currentSrc!==i.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const i=[];for(;t--;){const r=e[t];"track"===r.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),this.textTracks().addTrack(r.track),s||this.el_.hasAttribute("crossorigin")||!Ma(r.src)||(s=!0)):i.push(r))}for(let e=0;e<i.length;e++)this.el_.removeChild(i[e])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&s&&Qs.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(xr||wr)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),Nl.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){!function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const i=(e=>Ml([e.el(),be.HTMLMediaElement.prototype,Ol],"src"))(e),s=t.setAttribute,r=t.load;Object.defineProperty(t,"src",rr(i,{set:s=>{const r=i.set.call(t,s);return e.triggerSourceset(t.src),r}})),t.setAttribute=(i,r)=>{const n=s.call(t,i,r);return/src/i.test(i)&&e.triggerSourceset(t.src),n},t.load=()=>{const i=r.call(t);return Dl(e)||(e.triggerSourceset(""),Ll(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):Dl(e)||Ll(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=s,Object.defineProperty(t,"src",i),t.resetSourceWatch_&&t.resetSourceWatch_()}}(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const i=()=>{t=[];for(let i=0;i<e.length;i++){const s=e[i];"metadata"===s.kind&&t.push({track:s,storedMode:s.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const s=()=>{for(let e=0;e<t.length;e++){const i=t[e];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}e.removeEventListener("change",s)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",s),e.addEventListener("change",s)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",s)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach(e=>{this.el()[`${i}Tracks`].removeEventListener(e,this[`${i}TracksListeners_`][e])}),this[`featuresNative${e}Tracks`]=!t,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=qa[e],i=this.el()[t.getterName],s=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!i||!i.addEventListener)return;const r={change:t=>{const i={type:"change",target:s,currentTarget:s,srcElement:s};s.trigger(i),"text"===e&&this[ja.remoteText.getterName]().trigger(i)},addtrack(e){s.addTrack(e.track)},removetrack(e){s.removeTrack(e.track)}},n=function(){const e=[];for(let t=0;t<s.length;t++){let r=!1;for(let e=0;e<i.length;e++)if(i[e]===s[t]){r=!0;break}r||e.push(s[t])}for(;e.length;)s.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=r,Object.keys(r).forEach(e=>{const t=r[e];i.addEventListener(e,t),this.on("dispose",s=>i.removeEventListener(e,t))}),this.on("loadstart",n),this.on("dispose",e=>this.off("loadstart",n))}proxyNativeTracks_(){qa.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),Nl.disposeMediaElement(e),e=t}else{e=Je.createElement("video");const t=rr({},this.options_.tag&&zr(this.options_.tag));xr&&!0===this.options_.nativeControlsForTouch||delete t.controls,Vr(e,Object.assign(t,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Gr(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let i=0;i<t.length;i++){const s=t[i],r=this.options_[s];void 0!==r&&(r?Gr(e,s,s):Xr(e,s),e[s]=r)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1;const t=function(){e=!0};this.on("loadstart",t);const i=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready(function(){this.off("loadstart",t),this.off("loadedmetadata",i),e||this.trigger("loadstart")})}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(e){this.trigger(e)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&Dr?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){Qs(e,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&hr&&gr&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)ga(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}addSourceElement(e,t){if(!e)return Qs.error("Invalid source URL."),!1;const i={src:e};t&&(i.type=t);const s=Ur("source",{},i);return this.el_.appendChild(s),!0}removeSourceElement(e){if(!e)return Qs.error("Source URL is required to remove the source element."),!1;const t=this.el_.querySelectorAll("source");for(const i of t)if(i.src===e)return this.el_.removeChild(i),!0;return Qs.warn(`No matching source element found with src: ${e}`),!1}reset(){Nl.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):super.addTextTrack(e,t,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=Je.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const i=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let i=t.length;for(;i--;)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),be.performance&&(e.creationTime=be.performance.now()),e}}ar(Nl,"TEST_VID",function(){if(!Lr())return;const e=Je.createElement("video"),t=Je.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}),Nl.isSupported=function(){try{Nl.TEST_VID.volume=.5}catch(e){return!1}return!(!Nl.TEST_VID||!Nl.TEST_VID.canPlayType)},Nl.canPlayType=function(e){return Nl.TEST_VID.canPlayType(e)},Nl.canPlaySource=function(e,t){return Nl.canPlayType(e.type)},Nl.canControlVolume=function(){try{const e=Nl.TEST_VID.volume;Nl.TEST_VID.volume=e/2+.1;const t=e!==Nl.TEST_VID.volume;return t&&Ar?(be.setTimeout(()=>{Nl&&Nl.prototype&&(Nl.prototype.featuresVolumeControl=e!==Nl.TEST_VID.volume)}),!1):t}catch(e){return!1}},Nl.canMuteVolume=function(){try{const e=Nl.TEST_VID.muted;return Nl.TEST_VID.muted=!e,Nl.TEST_VID.muted?Gr(Nl.TEST_VID,"muted","muted"):Xr(Nl.TEST_VID,"muted"),e!==Nl.TEST_VID.muted}catch(e){return!1}},Nl.canControlPlaybackRate=function(){if(hr&&gr&&yr<58)return!1;try{const e=Nl.TEST_VID.playbackRate;return Nl.TEST_VID.playbackRate=e/2+.1,e!==Nl.TEST_VID.playbackRate}catch(e){return!1}},Nl.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(Je.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(Je.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(Je.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(Je.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Nl.supportsNativeTextTracks=function(){return Dr||Ar&&gr},Nl.supportsNativeVideoTracks=function(){return!(!Nl.TEST_VID||!Nl.TEST_VID.videoTracks)},Nl.supportsNativeAudioTracks=function(){return!(!Nl.TEST_VID||!Nl.TEST_VID.audioTracks)},Nl.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function([e,t]){ar(Nl.prototype,e,()=>Nl[t](),!0)}),Nl.prototype.featuresVolumeControl=Nl.canControlVolume(),Nl.prototype.movingMediaElementInDOM=!Ar,Nl.prototype.featuresFullscreenResize=!0,Nl.prototype.featuresProgressEvents=!0,Nl.prototype.featuresTimeupdateEvents=!0,Nl.prototype.featuresVideoFrameCallback=!(!Nl.TEST_VID||!Nl.TEST_VID.requestVideoFrameCallback),Nl.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Nl.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let i=t.length;for(;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Nl.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Nl.prototype["set"+Jn(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){Nl.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){Nl.prototype["set"+Jn(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Nl.prototype[e]=function(){return this.el_[e]()}}),Ha.withSourceHandlers(Nl),Nl.nativeSourceHandler={},Nl.nativeSourceHandler.canPlayType=function(e){try{return Nl.TEST_VID.canPlayType(e)}catch(e){return""}},Nl.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Nl.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=Pa(e.src);return Nl.nativeSourceHandler.canPlayType(`video/${t}`)}return""},Nl.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},Nl.nativeSourceHandler.dispose=function(){},Nl.registerSourceHandler(Nl.nativeSourceHandler),Ha.registerTech("Html5",Nl);const Rl=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ul={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Fl=["tiny","xsmall","small","medium","large","xlarge","huge"],Bl={};Fl.forEach(e=>{const t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;Bl[e]=`vjs-layout-${t}`});const ql={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class jl extends ia{constructor(e,t,i){if(e.id=e.id||t.id||`vjs_video_${Sn()}`,(t=Object.assign(jl.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){const i=e.closest("[lang]");i&&(t.language=i.getAttribute("lang"))}if(super(null,t,i),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.boundUpdatePlayerHeightOnAudioOnlyMode_=e=>this.updatePlayerHeightOnAudioOnlyMode_(e),this.isFullscreen_=!1,this.log=Ks(this.id_),this.fsApi_=zs,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&zr(e),this.language(this.options_.language),t.languages){const e={};Object.getOwnPropertyNames(t.languages).forEach(function(i){e[i.toLowerCase()]=t.languages[i]}),this.languages_=e}else this.languages_=jl.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(e=>{if("function"!=typeof this[e])throw new Error(`plugin "${e}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),Zn(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(xn(Je,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const s=rr(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(e=>{this[e](t.plugins[e])}),t.debug&&this.debug(!0),this.options_.playerOptions=s,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const e=(new be.DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <defs>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n <path d="M16 10v28l22-14z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n </symbol>\n <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n </symbol>\n <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n <circle cx="24" cy="24" r="20"></circle>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n </symbol>\n <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n </symbol>\n <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n <path fill="none" d="M-1-3h24v24H-1z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n </symbol>\n <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">\n <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n </symbol>\n </defs>\n</svg>',"image/svg+xml");if(e.querySelector("parsererror"))Qs.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const t=e.documentElement;t.style.display="none",this.el_.appendChild(t),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),t.spatialNavigation&&t.spatialNavigation.enabled&&(this.spatialNavigation=new ao(this),this.addClass("vjs-spatial-navigation-enabled")),xr&&this.addClass("vjs-touch-enabled"),Ar||this.addClass("vjs-workinghover"),jl.players[this.id_]=this;const r=js.split(".")[0];this.addClass(`vjs-v${r}`),this.userActive(!0),this.reportUserActivity(),this.one("play",e=>this.listenForUserActivity_(e)),this.on("keydown",e=>this.handleKeyDown(e)),this.on("languagechange",e=>this.handleLanguagechange(e)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){var e;this.trigger("dispose"),this.off("dispose"),In(Je,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),In(Je,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),jl.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),e=this,za.hasOwnProperty(e.id())&&delete za[e.id()],$a.names.forEach(e=>{const t=this[$a[e].getterName]();t&&t.off&&t.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const s="video-js"===this.tag.tagName.toLowerCase();i?e=this.el_=t.parentNode:s||(e=this.el_=super.createEl("div"));const r=zr(t);if(s){for(e=this.el_=t,t=this.tag=Je.createElement("video");e.children.length;)t.appendChild(e.firstChild);qr(e,"video-js")||jr(e,"video-js"),e.appendChild(t),i=this.playerElIngest_=e,Object.keys(e).forEach(i=>{try{t[i]=e[i]}catch(e){}})}t.setAttribute("tabindex","-1"),r.tabindex="-1",gr&&Tr&&(t.setAttribute("role","application"),r.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in r&&delete r.width,"height"in r&&delete r.height,Object.getOwnPropertyNames(r).forEach(function(i){s&&"class"===i||e.setAttribute(i,r[i]),s&&t.setAttribute(i,r[i])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused");const n=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(e=>Pr[e]).map(e=>"vjs-device-"+e.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...n),!0!==be.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=yn("vjs-styles-dimensions");const e=on(".vjs-styles-defaults"),t=on("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const a=t.getElementsByTagName("a");for(let e=0;e<a.length;e++){const t=a.item(e);jr(t,"vjs-hidden"),t.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(e,t),Br(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if(void 0===e)return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):Qs.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();const s=parseFloat(t);isNaN(s)?Qs.error(`Improper value "${t}" supplied for for ${e}`):(this[i]=s,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,jn(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),((e,t)=>{jn(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))})(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(!0===be.VIDEOJS_NO_DYNAMIC_STYLE){const e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,i=this.tech_&&this.tech_.el();return void(i&&(e>=0&&(i.width=e),t>=0&&(i.height=t)))}let e,t,i,s;i=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const r=i.split(":"),n=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/n:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*n,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),_n(this.styleEl_,`\n .${s} {\n width: ${e}px;\n height: ${t}px;\n }\n\n .${s}.vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ${100*n}%;\n }\n `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const i=Jn(e),s=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Ha.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let r=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(r=!1);const n={source:t,autoplay:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${s}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};$a.names.forEach(e=>{const t=$a[e];n[t.getterName]=this[t.privateName]}),Object.assign(n,this.options_[i]),Object.assign(n,this.options_[s]),Object.assign(n,this.options_[e.toLowerCase()]),this.tag&&(n.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(n.startTime=this.cache_.currentTime);const a=Ha.getTech(e);if(!a)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new a(n),this.tech_.ready(On(this,this.handleTechReady_),!0),function(e,t){e.forEach(function(e){const i=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(e=>i.addCue(e))}),t.textTracks()}(this.textTracksJson_||[],this.tech_),Rl.forEach(e=>{this.on(this.tech_,e,t=>this[`handleTech${Jn(e)}_`](t))}),Object.keys(Ul).forEach(e=>{this.on(this.tech_,e,t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${Ul[e]}_`].bind(this),event:t}):this[`handleTech${Ul[e]}_`](t)})}),this.on(this.tech_,"loadstart",e=>this.handleTechLoadStart_(e)),this.on(this.tech_,"sourceset",e=>this.handleTechSourceset_(e)),this.on(this.tech_,"waiting",e=>this.handleTechWaiting_(e)),this.on(this.tech_,"ended",e=>this.handleTechEnded_(e)),this.on(this.tech_,"seeking",e=>this.handleTechSeeking_(e)),this.on(this.tech_,"play",e=>this.handleTechPlay_(e)),this.on(this.tech_,"pause",e=>this.handleTechPause_(e)),this.on(this.tech_,"durationchange",e=>this.handleTechDurationChange_(e)),this.on(this.tech_,"fullscreenchange",(e,t)=>this.handleTechFullscreenChange_(e,t)),this.on(this.tech_,"fullscreenerror",(e,t)=>this.handleTechFullscreenError_(e,t)),this.on(this.tech_,"enterpictureinpicture",e=>this.handleTechEnterPictureInPicture_(e)),this.on(this.tech_,"leavepictureinpicture",e=>this.handleTechLeavePictureInPicture_(e)),this.on(this.tech_,"error",e=>this.handleTechError_(e)),this.on(this.tech_,"posterchange",e=>this.handleTechPosterChange_(e)),this.on(this.tech_,"textdata",e=>this.handleTechTextData_(e)),this.on(this.tech_,"ratechange",e=>this.handleTechRateChange_(e)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||Br(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){$a.names.forEach(e=>{const t=$a[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=function(e){const t=e.$$("track"),i=Array.prototype.map.call(t,e=>e.track);return Array.prototype.map.call(t,function(e){const t=fa(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(fa))}(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&Qs.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":js}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!=typeof e)return;const t=()=>{const e=this.muted();this.muted(!0);const t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);const i=this.play();if(ma(i))return i.catch(e=>{throw t(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${e||""}`)})};let i;return"any"!==e||this.muted()?i="muted"!==e||this.muted()?this.play():t():(i=this.play(),ma(i)&&(i=i.catch(t))),ma(i)?i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})}):void 0}updateSourceCaches_(e=""){let t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=((e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const i=e.cache_.sources.filter(e=>e.src===t);if(i.length)return i[0].type;const s=e.$$("source");for(let e=0;e<s.length;e++){const i=s[e];if(i.type&&i.src&&i.src===t)return i.type}return to(t)})(this,t)),this.cache_.source=rr({},e,{src:t,type:i});const s=this.cache_.sources.filter(e=>e.src&&e.src===t),r=[],n=this.$$("source"),a=[];for(let e=0;e<n.length;e++){const i=zr(n[e]);r.push(i),i.src&&i.src===t&&a.push(i.src)}a.length&&!s.length?this.cache_.sources=r:s.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e);const i=this.currentSource().src,s=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(s)&&(!this.lastSource_||this.lastSource_.tech!==s&&this.lastSource_.player!==i)&&(t=()=>{}),t(s),e.src||this.tech_.any(["sourceset","loadstart"],e=>{if("sourceset"===e.type)return;const t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?ga(this.play()):this.pause()))}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),t=>t.contains(e.target))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isInPictureInPicture()&&!Je.pictureInPictureElement?this.exitPictureInPicture():this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const i=this.el();let s=Je[this.fsApi_.fullscreenElement]===i;!s&&i.matches&&(s=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(s)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready(function(){if(e in Qa)return function(e,t,i,s){return t[i](e.reduce(Ya(i),s))}(this.middleware_,this.tech_,e,t);if(e in Ka)return Xa(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw Qs(e),e}},!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in Za)return function(e,t,i){return e.reduceRight(Ya(i),t[i]())}(this.middleware_,this.tech_,e);if(e in Ka)return Xa(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Qs(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t;if("TypeError"===t.name)throw Qs(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t;throw Qs(t),t}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=ga){this.playCallbacks_.push(e);const t=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),i=Boolean(Dr||Ar);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&i&&this.load());const s=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===s?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(s)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||na(0,0)}scrubbing(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=na(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=na(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return da(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let i=e.end(e.length-1);return i>t&&(i=t),i}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise((i,s)=>{function r(){t.off("fullscreenerror",a),t.off("fullscreenchange",n)}function n(){r(),i()}function a(e,t){r(),s(t)}t.one("fullscreenchange",n),t.one("fullscreenerror",a);const o=t.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(i,s))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),e}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((t,i)=>{function s(){e.off("fullscreenerror",n),e.off("fullscreenchange",r)}function r(){s(),t()}function n(e,t){s(),i(t)}e.one("fullscreenchange",r),e.one("fullscreenerror",n);const a=e.exitFullscreenHelper_();a&&(a.then(s,s),a.then(t,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=Je[this.fsApi_.exitFullscreen]();return e&&ga(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=Je.documentElement.style.overflow,xn(Je,"keydown",this.boundFullWindowOnEscKey_),Je.documentElement.style.overflow="hidden",jr(Je.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){"Escape"===e.key&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,In(Je,"keydown",this.boundFullWindowOnEscKey_),Je.documentElement.style.overflow=this.docOrigOverflow,$r(Je.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&be.documentPictureInPicture){const e=Je.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(Ur("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),be.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(cn(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:t}),t.addEventListener("pagehide",t=>{const i=t.target.querySelector(".video-js");e.parentNode.replaceChild(i,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in Je&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return be.documentPictureInPicture&&be.documentPictureInPicture.window?(be.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in Je?Je.exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;t&&t.hotkeys&&((e=>{const t=e.tagName.toLowerCase();return!!e.isContentEditable||("input"===t?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type):-1!==["textarea"].indexOf(t))})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e)))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=t=>"f"===e.key.toLowerCase(),muteKey:s=t=>"m"===e.key.toLowerCase(),playPauseKey:r=t=>"k"===e.key.toLowerCase()||" "===e.key.toLowerCase()}=t;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const t=ia.getComponent("FullscreenToggle");!1!==Je[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else s.call(this,e)?(e.preventDefault(),e.stopPropagation(),ia.getComponent("MuteToggle").prototype.handleClick.call(this,e)):r.call(this,e)&&(e.preventDefault(),e.stopPropagation(),ia.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let i=0,s=this.options_.techOrder;i<s.length;i++){const r=s[i];let n=Ha.getTech(r);if(n||(n=ia.getComponent(r)),n){if(n.isSupported()&&(t=n.canPlayType(e),t))return t}else Qs.error(`The "${r}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map(e=>[e,Ha.getTech(e)]).filter(([e,t])=>t?t.isSupported():(Qs.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(e,t,i){let s;return e.some(e=>t.some(t=>{if(s=i(e,t),s)return!0})),s};let s;const r=([e,t],i)=>{if(t.canPlaySource(i,this.options_[e.toLowerCase()]))return{source:i,tech:e}};return s=this.options_.sourceOrder?i(e,t,(e=>(t,i)=>e(i,t))(r)):i(t,e,r),s||!1}handleSrc_(e,t){if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=io(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Ga(this,i[0],(e,s)=>{if(this.middleware_=s,t||(this.cache_.sources=i),this.updateSourceCaches_(e),this.src_(e))return i.length>1?this.handleSrc_(i.slice(1)):(this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void this.triggerReady());!function(e,t){e.forEach(e=>e.setTech&&e.setTech(t))}(s,this.tech_)}),i.length>1){const e=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}else this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(ea(t.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1))}addSourceElement(e,t){return!!this.tech_&&this.tech_.addSourceElement(e,t)}removeSourceElement(e){return!!this.tech_&&this.tech_.removeSourceElement(e)}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){this.paused()?this.doReset_():ga(this.play().then(()=>this.doReset_()))}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),jn(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:i,remainingTimeDisplay:s}=this.controlBar||{},{seekBar:r}=i||{};e&&e.updateContent(),t&&t.updateContent(),s&&s.updateContent(),r&&(r.update(),r.loadProgressBar&&r.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(Hs("beforeerror").forEach(t=>{const i=t(this,e);ir(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:this.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new pa(e),this.addClass("vjs-error"),Qs.error(`(CODE:${this.error_.code} ${pa.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),Hs("error").forEach(e=>e(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,i;const s=On(this,this.reportUserActivity),r=function(t){s(),this.clearInterval(e)};this.on("mousedown",function(){s(),this.clearInterval(e),e=this.setInterval(s,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,s())}),this.on("mouseup",r),this.on("mouseleave",r);const n=this.getChild("controlBar");let a;!n||Ar||hr||(n.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),n.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",s),this.on("keyup",s),this.setInterval(function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);const e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))},250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}updatePlayerHeightOnAudioOnlyMode_(){const e=this.getChild("ControlBar");e&&this.audioOnlyCache_.controlBarHeight!==e.currentHeight()&&(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),i=t&&t.currentHeight();e.forEach(e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=i,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return"boolean"!=typeof e||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),jn(this)&&this.trigger("languagechange"))}languages(){return rr(jl.prototype.options_.languages,this.languages_)}toJSON(){const e=rr(this.options_),t=e.tracks;e.tracks=[];for(let i=0;i<t.length;i++){let s=t[i];s=rr(s),s.player=void 0,e.tracks[i]=s}return e}createModal(e,t){(t=t||{}).content=e||"";const i=new _a(this,t);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let i=0;i<Fl.length;i++){const s=Fl[i];if(t<=this.breakpoints_[s]){if(e===s)return;e&&this.removeClass(Bl[e]),this.addClass(Bl[s]),this.breakpoint_=s;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},ql,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return Bl[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const i=this.crossOrigin();this.reset(),this.cache_.media=rr(e);const{artist:s,artwork:r,description:n,poster:a,src:o,textTracks:l,title:u}=this.cache_.media;!r&&a&&(this.cache_.media.artwork=[{src:a,type:to(a)}]),i&&this.crossOrigin(i),o&&this.src(o),a&&this.poster(a),Array.isArray(l)&&l.forEach(e=>this.addRemoteTextTrack(e,!1)),this.titleBar&&this.titleBar.update({title:u,description:n||s||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),e=>({kind:e.kind,label:e.label,language:e.language,src:e.src}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:to(t.poster)}]),t}return rr(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},i=zr(e),s=i["data-setup"];if(qr(e,"vjs-fill")&&(i.fill=!0),qr(e,"vjs-fluid")&&(i.fluid=!0),null!==s)try{Object.assign(i,JSON.parse(s||"{}"))}catch(e){Qs.error("data-setup",e)}if(Object.assign(t,i),e.hasChildNodes()){const i=e.childNodes;for(let e=0,s=i.length;e<s;e++){const s=i[e],r=s.nodeName.toLowerCase();"source"===r?t.sources.push(zr(s)):"track"===r&&t.tracks.push(zr(s))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(e=>"number"==typeof e)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}$a.names.forEach(function(e){const t=$a[e];jl.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),jl.prototype.crossorigin=jl.prototype.crossOrigin,jl.players={};const $l=be.navigator;jl.prototype.options_={techOrder:Ha.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:$l&&($l.languages&&$l.languages[0]||$l.userLanguage||$l.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1,disableSeekWhileScrubbingOnMobile:!1},Rl.forEach(function(e){jl.prototype[`handleTech${Jn(e)}_`]=function(){return this.trigger(e)}}),ia.registerComponent("Player",jl);const Hl="plugin",Vl="activePlugins_",zl={},Wl=e=>zl.hasOwnProperty(e),Gl=e=>Wl(e)?zl[e]:void 0,Xl=(e,t)=>{e[Vl]=e[Vl]||{},e[Vl][t]=!0},Zl=(e,t,i)=>{const s=(i?"before":"")+"pluginsetup";e.trigger(s,t),e.trigger(s+":"+t.name,t)},Ql=(e,t)=>(t.prototype.name=e,function(...i){Zl(this,{name:e,plugin:t,instance:null},!0);const s=new t(...[this,...i]);return this[e]=()=>s,Zl(this,s.getEventHash()),s});class Kl{constructor(e){if(this.constructor===Kl)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),Zn(this),delete this.trigger,Kn(this,this.constructor.defaultState),Xl(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return An(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){const{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Vl][e]=!1,this.player=this.state=null,t[e]=Ql(e,zl[e])}static isBasic(e){const t="string"==typeof e?Gl(e):e;return"function"==typeof t&&!Kl.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if("string"!=typeof e)throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(Wl(e))Qs.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(jl.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if("function"!=typeof t)throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return zl[e]=t,e!==Hl&&(Kl.isBasic(t)?jl.prototype[e]=function(e,t){const i=function(){Zl(this,{name:e,plugin:t,instance:null},!0);const i=t.apply(this,arguments);return Xl(this,e),Zl(this,{name:e,plugin:t,instance:i}),i};return Object.keys(t).forEach(function(e){i[e]=t[e]}),i}(e,t):jl.prototype[e]=Ql(e,t)),t}static deregisterPlugin(e){if(e===Hl)throw new Error("Cannot de-register base plugin.");Wl(e)&&(delete zl[e],delete jl.prototype[e])}static getPlugins(e=Object.keys(zl)){let t;return e.forEach(e=>{const i=Gl(e);i&&(t=t||{},t[e]=i)}),t}static getPluginVersion(e){const t=Gl(e);return t&&t.VERSION||""}}function Yl(e,t,i,s){return function(e,t){let i=!1;return function(...s){return i||Qs.warn(e),i=!0,t.apply(this,s)}}(`${t} is deprecated and will be removed in ${e}.0; please use ${i} instead.`,s)}Kl.getPlugin=Gl,Kl.BASE_PLUGIN_NAME=Hl,Kl.registerPlugin(Hl,Kl),jl.prototype.usingPlugin=function(e){return!!this[Vl]&&!0===this[Vl][e]},jl.prototype.hasPlugin=function(e){return!!Wl(e)};const Jl=e=>0===e.indexOf("#")?e.slice(1):e;function eu(e,t,i){let s=eu.getPlayer(e);if(s)return t&&Qs.warn(`Player "${e}" is already initialised. Options will not be applied.`),i&&s.ready(i),s;const r="string"==typeof e?on("#"+Jl(e)):e;if(!Or(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const n="getRootNode"in r&&r.getRootNode()instanceof be.ShadowRoot?r.getRootNode():r.ownerDocument.body;r.ownerDocument.defaultView&&n.contains(r)||Qs.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),Hs("beforesetup").forEach(e=>{const i=e(r,rr(t));ir(i)&&!Array.isArray(i)?t=rr(t,i):Qs.error("please return an object in beforesetup hooks")});const a=ia.getComponent("Player");return s=new a(r,t,i),Hs("setup").forEach(e=>e(s)),s}if(eu.hooks_=$s,eu.hooks=Hs,eu.hook=function(e,t){Hs(e,t)},eu.hookOnce=function(e,t){Hs(e,[].concat(t).map(t=>{const i=(...s)=>(Vs(e,i),t(...s));return i}))},eu.removeHook=Vs,!0!==be.VIDEOJS_NO_DYNAMIC_STYLE&&Lr()){let e=on(".vjs-styles-defaults");if(!e){e=yn("vjs-styles-defaults");const t=on("head");t&&t.insertBefore(e,t.firstChild),_n(e,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}gn(1,eu),eu.VERSION=js,eu.options=jl.prototype.options_,eu.getPlayers=()=>jl.players,eu.getPlayer=e=>{const t=jl.players;let i;if("string"==typeof e){const s=Jl(e),r=t[s];if(r)return r;i=on("#"+s)}else i=e;if(Or(i)){const{player:e,playerId:s}=i;if(e||t[s])return e||t[s]}},eu.getAllPlayers=()=>Object.keys(jl.players).map(e=>jl.players[e]).filter(Boolean),eu.players=jl.players,eu.getComponent=ia.getComponent,eu.registerComponent=(e,t)=>(Ha.isTech(t)&&Qs.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),ia.registerComponent.call(ia,e,t)),eu.getTech=Ha.getTech,eu.registerTech=Ha.registerTech,eu.use=function(e,t){Va[e]=Va[e]||[],Va[e].push(t)},Object.defineProperty(eu,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(eu.middleware,"TERMINATOR",{value:Wa,writeable:!1,enumerable:!0}),eu.browser=Pr,eu.obj=or,eu.mergeOptions=Yl(9,"videojs.mergeOptions","videojs.obj.merge",rr),eu.defineLazyProperty=Yl(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",ar),eu.bind=Yl(9,"videojs.bind","native Function.prototype.bind",On),eu.registerPlugin=Kl.registerPlugin,eu.deregisterPlugin=Kl.deregisterPlugin,eu.plugin=(e,t)=>(Qs.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Kl.registerPlugin(e,t)),eu.getPlugins=Kl.getPlugins,eu.getPlugin=Kl.getPlugin,eu.getPluginVersion=Kl.getPluginVersion,eu.addLanguage=function(e,t){return e=(""+e).toLowerCase(),eu.options.languages=rr(eu.options.languages,{[e]:t}),eu.options.languages[e]},eu.log=Qs,eu.createLogger=Ks,eu.time=ha,eu.createTimeRange=Yl(9,"videojs.createTimeRange","videojs.time.createTimeRanges",na),eu.createTimeRanges=Yl(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",na),eu.formatTime=Yl(9,"videojs.formatTime","videojs.time.formatTime",ca),eu.setFormatTime=Yl(9,"videojs.setFormatTime","videojs.time.setFormatTime",la),eu.resetFormatTime=Yl(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",ua),eu.parseUrl=Yl(9,"videojs.parseUrl","videojs.url.parseUrl",Aa),eu.isCrossOrigin=Yl(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Ma),eu.EventTarget=Bn,eu.any=Pn,eu.on=xn,eu.one=Dn,eu.off=In,eu.trigger=An,eu.xhr=dt,eu.TextTrack=Ra,eu.AudioTrack=Ua,eu.VideoTrack=Fa,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{eu[e]=function(){return Qs.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),hn[e].apply(null,arguments)}}),eu.computedStyle=Yl(9,"videojs.computedStyle","videojs.dom.computedStyle",un),eu.dom=hn,eu.fn=Un,eu.num=Eo,eu.str=ta,eu.url=La,eu.Error={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"};class tu{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class iu extends eu.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const i=this.levels_.length;return t=new tu(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let i=0,s=this.length;i<s;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,i=this.length;t<i;t++){const i=this[t];if(i.id===e)return i}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}iu.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const e in iu.prototype.allowedEvents_)iu.prototype["on"+e]=null;var su="4.1.0";const ru=function(e){return function(e){const t=e.qualityLevels,i=new iu,s=function(){i.dispose(),e.qualityLevels=t,e.off("dispose",s)};return e.on("dispose",s),e.qualityLevels=()=>i,e.qualityLevels.VERSION=su,i}(this,eu.obj.merge({},e))};eu.registerPlugin("qualityLevels",ru),ru.VERSION=su;const nu=kt,au=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,ou=e=>eu.log.debug?eu.log.debug.bind(eu,"VHS:",`${e} >`):function(){};function lu(...e){const t=eu.obj||eu;return(t.merge||t.mergeOptions).apply(t,e)}function uu(...e){const t=eu.time||eu;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}const cu=1/30,hu=.1,du=function(e,t){const i=[];let s;if(e&&e.length)for(s=0;s<e.length;s++)t(e.start(s),e.end(s))&&i.push([e.start(s),e.end(s)]);return uu(i)},pu=function(e,t){return du(e,function(e,i){return e-hu<=t&&i+hu>=t})},mu=function(e,t){return du(e,function(e){return e-cu>=t})},gu=e=>{const t=[];if(!e||!e.length)return"";for(let i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")},fu=e=>{const t=[];for(let i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t},yu=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},_u=function(e,t){let i=0;if(!e||!e.length)return i;for(let s=0;s<e.length;s++){const r=e.start(s),n=e.end(s);t>n||(i+=t>r&&t<=n?n-t:n-r)}return i},vu=(e,t)=>{if(!t.preload)return t.duration;let i=0;return(t.parts||[]).forEach(function(e){i+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(i+=e.partTargetDuration)}),i},bu=e=>(e.segments||[]).reduce((e,t,i)=>(t.parts?t.parts.forEach(function(s,r){e.push({duration:s.duration,segmentIndex:i,partIndex:r,part:s,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e),[]),Tu=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Su=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:i}=e;let s=(i||[]).reduce((e,t)=>e+("PART"===t.type?1:0),0);return s+=t&&t.length?t.length:0,s},wu=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const i=Tu(t).length>0;return i&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:i&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},Cu=function(e,t,i){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const s=function(e,t){let i=0,s=t-e.mediaSequence,r=e.segments[s];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;s--;){if(r=e.segments[s],void 0!==r.end)return{result:i+r.end,precise:!0};if(i+=vu(e,r),void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}}(e,t);if(s.precise)return s.result;const r=function(e,t){let i,s=0,r=t-e.mediaSequence;for(;r<e.segments.length;r++){if(i=e.segments[r],void 0!==i.start)return{result:i.start-s,precise:!0};if(s+=vu(e,i),void 0!==i.end)return{result:i.end-s,precise:!0}}return{result:-1,precise:!1}}(e,t);return r.precise?r.result:s.result+i},Eu=function(e,t,i){if(!e)return 0;if("number"!=typeof i&&(i=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return be.Infinity}return Cu(e,t,i)},ku=function({defaultDuration:e,durationList:t,startIndex:i,endIndex:s}){let r=0;if(i>s&&([i,s]=[s,i]),i<0){for(let t=i;t<Math.min(0,s);t++)r+=e;i=0}for(let e=i;e<s;e++)r+=t[e].duration;return r},xu=function(e,t,i,s){if(!e||!e.segments)return null;if(e.endList)return Eu(e);if(null===t)return null;t=t||0;let r=Cu(e,e.mediaSequence+e.segments.length,t);return i&&(r-=s="number"==typeof s?s:wu(null,e)),Math.max(0,r)},Iu=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Au=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Du=function(e){const t=Iu(e);return!e.disabled&&!t},Pu=function(e,t){return t.attributes&&t.attributes[e]},Mu=(e,t)=>{if(1===e.playlists.length)return!0;const i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(e=>!!Du(e)&&(e.attributes.BANDWIDTH||0)<i).length},Lu=(e,t)=>!(!e&&!t||!e&&t||e&&!t||e!==t&&(!e.id||!t.id||e.id!==t.id)&&(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)&&(!e.uri||!t.uri||e.uri!==t.uri)),Ou=function(e,t){const i=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let s=!1;for(const e in i){for(const r in i[e])if(s=t(i[e][r]),s)break;if(s)break}return!!s},Nu=e=>{if(!e||!e.playlists||!e.playlists.length)return Ou(e,e=>e.playlists&&e.playlists.length||e.uri);for(let t=0;t<e.playlists.length;t++){const i=e.playlists[t],s=i.attributes&&i.attributes.CODECS;if(!(s&&s.split(",").every(e=>zt(e))||Ou(e,e=>Lu(i,e))))return!1}return!0};var Ru={liveEdgeDelay:wu,duration:Eu,seekable:function(e,t,i){const s=t||0;let r=xu(e,t,!0,i);return null===r?uu():(r<s&&(r=s),uu(s,r))},getMediaInfoForTime:function({playlist:e,currentTime:t,startingSegmentIndex:i,startingPartIndex:s,startTime:r,exactManifestTimings:n}){let a=t-r;const o=bu(e);let l=0;for(let e=0;e<o.length;e++){const t=o[e];if(i===t.segmentIndex&&("number"!=typeof s||"number"!=typeof t.partIndex||s===t.partIndex)){l=e;break}}if(a<0){if(l>0)for(let t=l-1;t>=0;t--){const i=o[t];if(a+=i.duration,n){if(a<0)continue}else if(a+cu<=0)continue;return{partIndex:i.partIndex,segmentIndex:i.segmentIndex,startTime:r-ku({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:t})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t}}if(l<0){for(let i=l;i<0;i++)if(a-=e.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t};l=0}for(let t=l;t<o.length;t++){const i=o[t];a-=i.duration;const s=i.duration>cu;if(0!==a&&!(s&&a+cu>=0)||t===o.length-1){if(n){if(a>0)continue}else if(a-cu>=0)continue;return{partIndex:i.partIndex,segmentIndex:i.segmentIndex,startTime:r+ku({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:t})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:t}},isEnabled:Du,isDisabled:function(e){return e.disabled},isExcluded:Iu,isIncompatible:Au,playlistEnd:xu,isAes:function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:Pu,estimateSegmentRequestTime:function(e,t,i,s=0){return Pu("BANDWIDTH",i)?(e*i.attributes.BANDWIDTH-8*s)/t:NaN},isLowestEnabledRendition:Mu,isAudioOnly:Nu,playlistMatch:Lu,segmentDurationWithParts:vu};const{log:Uu}=eu,Fu=(e,t)=>`${e}-${t}`,Bu=(e,t,i)=>`placeholder-uri-${e}-${t}-${i}`,qu=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(i=>{if(e.mediaGroups[i])for(const s in e.mediaGroups[i])for(const r in e.mediaGroups[i][s]){const n=e.mediaGroups[i][s][r];t(n,i,s,r)}})},ju=({playlist:e,uri:t,id:i})=>{e.id=i,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},$u=(e,t,i=Bu)=>{e.uri=t;for(let t=0;t<e.playlists.length;t++)if(!e.playlists[t].uri){const i=`placeholder-uri-${t}`;e.playlists[t].uri=i}const s=Nu(e);qu(e,(t,r,n,a)=>{if(!t.playlists||!t.playlists.length){if(s&&"AUDIO"===r&&!t.uri)for(let t=0;t<e.playlists.length;t++){const i=e.playlists[t];if(i.attributes&&i.attributes.AUDIO&&i.attributes.AUDIO===n)return}t.playlists=[Et({},t)]}t.playlists.forEach(function(t,s){const o=i(r,n,a,t),l=Fu(s,o);t.uri?t.resolvedUri=t.resolvedUri||nu(e.uri,t.uri):(t.uri=0===s?o:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),(e=>{let t=e.playlists.length;for(;t--;){const i=e.playlists[t];ju({playlist:i,id:Fu(t,i.uri)}),i.resolvedUri=nu(e.uri,i.uri),e.playlists[i.id]=i,e.playlists[i.uri]=i,i.attributes.BANDWIDTH||Uu.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}})(e),(e=>{qu(e,t=>{t.uri&&(t.resolvedUri=nu(e.uri,t.uri))})})(e)};class Hu{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_)return;if(!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,i=t.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce((e,t)=>(e.set(t.id,t),e),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach((i,s)=>{if(!this.processedDateRanges_.has(s)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),t.push(i),i.class))if(e[i.class]){const t=e[i.class].push(i);i.classListIndex=t-1}else e[i.class]=[i],i.classListIndex=0});for(const i of t){const t=e[i.class]||[];i.endDate?i.endTime=i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&t[i.classListIndex+1]?i.endTime=t[i.classListIndex+1].startTime:i.duration?i.endTime=i.startTime+i.duration:i.plannedDuration?i.endTime=i.startTime+i.plannedDuration:i.endTime=i.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((t,i)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(i)})}}const Vu=({requestType:e,request:t,error:i,parseFailure:s})=>{const r=t.status<200||t.status>299,n=t.status>=400&&t.status<=499,a={uri:t.uri,requestType:e},o=r&&!n||s;if(i&&n)a.error=Et({},i),a.errorType=eu.Error.NetworkRequestFailed;else if(t.aborted)a.errorType=eu.Error.NetworkRequestAborted;else if(t.timedout)a.erroType=eu.Error.NetworkRequestTimeout;else if(o){const e=s?eu.Error.NetworkBodyParserFailed:eu.Error.NetworkBadStatus;a.errorType=e,a.status=t.status,a.headers=t.headers}return a},zu=ou("CodecUtils"),Wu=function(e){const t=e.attributes||{};if(t.CODECS)return Vt(t.CODECS)},Gu=(e,t)=>{const i=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&i.AUDIO&&e.mediaGroups.AUDIO[i.AUDIO]},Xu=function(e){const t={};return e.forEach(({mediaType:e,type:i,details:s})=>{t[e]=t[e]||[],t[e].push(Ht(`${i}${s}`))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return zu(`multiple ${e} codecs found as attributes: ${t[e].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),void(t[e]=null);t[e]=t[e][0]}),t},Zu=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},Qu=function(e,t){const i=t.attributes||{},s=Xu(Wu(t)||[]);if(Gu(e,t)&&!s.audio&&!((e,t)=>{if(!Gu(e,t))return!0;const i=t.attributes||{},s=e.mediaGroups.AUDIO[i.AUDIO];for(const e in s)if(!s[e].uri&&!s[e].playlists)return!0;return!1})(e,t)){const t=Xu(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var s in i){var r=i[s];if(r.default&&r.playlists)return Vt(r.playlists[0].attributes.CODECS)}return null}(e,i.AUDIO)||[]);t.audio&&(s.audio=t.audio)}return s},{EventTarget:Ku}=eu,Yu=(e,t)=>{if(!e)return t;const i=lu(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(let s=0;s<t.parts.length;s++)e.parts&&e.parts[s]&&(i.parts[s]=lu(e.parts[s],t.parts[s]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i},Ju=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=nu(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=nu(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=nu(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=nu(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(e=>{e.resolvedUri||(e.resolvedUri=nu(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(e=>{e.resolvedUri||(e.resolvedUri=nu(t,e.uri))})},ec=function(e){const t=e.segments||[],i=e.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(let e=0;e<i.preloadHints.length;e++)if("MAP"===i.preloadHints[e].type)return t;i.duration=e.targetDuration,i.preload=!0,t.push(i)}return t},tc=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,ic=(e,t,i=tc)=>{const s=lu(e,{}),r=s.playlists[t.id];if(!r)return null;if(i(r,t))return null;t.segments=ec(t);const n=lu(r,t);if(n.preloadSegment&&!t.preloadSegment&&delete n.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}n.segments=((e,t,i)=>{const s=e.slice(),r=t.slice();i=i||0;const n=[];let a;for(let e=0;e<r.length;e++){const t=s[e+i],o=r[e];t?(a=t.map||a,n.push(Yu(t,o))):(a&&!o.map&&(o.map=a),n.push(o))}return n})(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}n.segments.forEach(e=>{Ju(e,n.resolvedUri)});for(let e=0;e<s.playlists.length;e++)s.playlists[e].id===t.id&&(s.playlists[e]=n);return s.playlists[t.id]=n,s.playlists[t.uri]=n,qu(e,(e,i,s,r)=>{if(e.playlists)for(let i=0;i<e.playlists.length;i++)t.id===e.playlists[i].id&&(e.playlists[i]=n)}),s},sc=(e,t)=>{const i=e.segments||[],s=i[i.length-1],r=s&&s.parts&&s.parts[s.parts.length-1],n=r&&r.duration||s&&s.duration;return t&&n?1e3*n:500*(e.partTargetDuration||e.targetDuration||10)},rc=(e,t,i)=>{if(!e)return;const s=[];return e.forEach(e=>{if(!e.attributes)return;const{BANDWIDTH:t,RESOLUTION:i,CODECS:r}=e.attributes;s.push({id:e.id,bandwidth:t,resolution:i,codecs:r})}),{type:t,isLive:i,renditions:s}};class nc extends Ku{constructor(e,t,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=ou("PlaylistLoader");const{withCredentials:s=!1}=i;this.src=e,this.vhs_=t,this.withCredentials=s,this.addDateRangesToTextTrack_=i.addDateRangesToTextTrack;const r=t.options_;this.customTagParsers=r&&r.customTagParsers||[],this.customTagMappers=r&&r.customTagMappers||[],this.llhls=r&&r.llhls,this.dateRangesStorage_=new Hu,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let t=nu(this.main.uri,e.uri);this.llhls&&(t=((e,t)=>{if(t.endList||!t.serverControl)return e;const i={};if(t.serverControl.canBlockReload){const{preloadSegment:e}=t;let s=t.mediaSequence+t.segments.length;if(e){const r=e.parts||[],n=Su(t)-1;n>-1&&n!==r.length-1&&(i._HLS_part=n),(n>-1||r.length)&&s--}i._HLS_msn=s}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){const t=new be.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){i.hasOwnProperty(e)&&t.searchParams.set(e,i[e])}),e=t.toString()}return e})(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials,requestType:"hls-playlist"},(e,t)=>{if(this.request)return e?this.playlistRequestError(this.request,this.media(),"HAVE_METADATA"):void this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})})}playlistRequestError(e,t,i){const{uri:s,id:r}=t;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[r],status:e.status,message:`HLS playlist request error at URL: ${s}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:Vu({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}parseManifest_({url:e,manifestString:t}){try{const i=(({onwarn:e,oninfo:t,manifestString:i,customTagParsers:s=[],customTagMappers:r=[],llhls:n})=>{const a=new Ut;e&&a.on("warn",e),t&&a.on("info",t),s.forEach(e=>a.addParser(e)),r.forEach(e=>a.addTagMapper(e)),a.push(i),a.end();const o=a.manifest;if(n||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){o.hasOwnProperty(e)&&delete o[e]}),o.segments&&o.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!o.targetDuration){let t=10;o.segments&&o.segments.length&&(t=o.segments.reduce((e,t)=>Math.max(e,t.duration),0)),e&&e({message:`manifest has no targetDuration defaulting to ${t}`}),o.targetDuration=t}const l=Tu(o);if(l.length&&!o.partTargetDuration){const t=l.reduce((e,t)=>Math.max(e,t.duration),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${t}`}),Uu.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=t}return o})({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls});return i.playlists&&i.playlists.length?(this.excludeAudioOnlyVariants(i.playlists),i):i}catch(e){this.error=e,this.error.metadata={errorType:eu.Error.StreamingHlsPlaylistParserError,error:e}}}excludeAudioOnlyVariants(e){const t=e=>{const t=e.attributes||{},{width:i,height:s}=t.RESOLUTION||{};if(i&&s)return!0;const r=Wu(e)||[],n=Xu(r);return Boolean(n.video)};e.some(t)&&e.forEach(e=>{t(e)||(e.excludeUntil=1/0)})}haveMetadata({playlistString:e,playlistObject:t,url:i,id:s}){this.request=null,this.state="HAVE_METADATA";const r={playlistInfo:{type:"media",uri:i}};this.trigger({type:"playlistparsestart",metadata:r});const n=t||this.parseManifest_({url:i,manifestString:e});n.lastRequest=Date.now(),ju({playlist:n,uri:i,id:s});const a=ic(this.main,n);this.targetDuration=n.partTargetDuration||n.targetDuration,this.pendingMedia_=null,a?(this.main=a,this.media_=this.main.playlists[s]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(sc(this.media(),!!a)),r.parsedPlaylist=rc(this.main.playlists,r.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:r}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),be.clearTimeout(this.mediaUpdateTimeout),be.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new Hu,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(be.clearTimeout(this.finalRenditionTimeout),t){const t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=be.setTimeout(this.media.bind(this,e,!1),t))}const i=this.state,s=!this.media_||e.id!==this.media_.id,r=this.main.playlists[e.id];if(r&&r.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(s&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(sc(e,!0)),!s)return;if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e;const n={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:n}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,s)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=au(e.resolvedUri,s),t)return this.playlistRequestError(this.request,e,i);this.trigger({type:"playlistrequestcomplete",metadata:n}),this.haveMetadata({playlistString:s.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}pause(){this.mediaUpdateTimeout&&(be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;return void(this.mediaUpdateTimeout=be.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},e))}this.started?t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=be.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=be.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);const e={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:e}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,i)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:i.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:i.responseText,code:2,metadata:Vu({requestType:i.requestType,request:i,error:t})},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:e}),this.src=au(this.src,i),this.trigger({type:"playlistparsestart",metadata:e});const s=this.parseManifest_({manifestString:i.responseText,url:this.src});e.parsedPlaylist=rc(s.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(s)})}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,$u(this.main,this.srcUri()),e.playlists.forEach(e=>{e.segments=ec(e),e.segments.forEach(t=>{Ju(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||be.location.href;this.main=((e,t)=>{const i=Fu(0,t),s={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:be.location.href,resolvedUri:be.location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return s.playlists[i]=s.playlists[0],s.playlists[t]=s.playlists[0],s})(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const i=this.main,s=e.ID;let r=i.playlists.length;for(;r--;){const n=i.playlists[r];if(n.attributes["PATHWAY-ID"]===s){const a=n.resolvedUri,o=n.id;if(t){const t=this.createCloneURI_(n.resolvedUri,e),a=Fu(s,t),o=this.createCloneAttributes_(s,n.attributes),l=this.createClonePlaylist_(n,a,e,o);i.playlists[r]=l,i.playlists[a]=l,i.playlists[t]=l}else i.playlists.splice(r,1);delete i.playlists[o],delete i.playlists[a]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const i=this.main,s=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{if(i.mediaGroups[e]&&i.mediaGroups[e][s])for(const t in i.mediaGroups[e])if(t===s){for(const s in i.mediaGroups[e][t])i.mediaGroups[e][t][s].playlists.forEach((e,t)=>{const s=i.playlists[e.id],r=s.id,n=s.resolvedUri;delete i.playlists[r],delete i.playlists[n]});delete i.mediaGroups[e][t]}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const i=this.main,s=i.playlists.length,r=this.createCloneURI_(t.resolvedUri,e),n=Fu(e.ID,r),a=this.createCloneAttributes_(e.ID,t.attributes),o=this.createClonePlaylist_(t,n,e,a);i.playlists[s]=o,i.playlists[n]=o,i.playlists[r]=o,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,i=e["BASE-ID"],s=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{if(s.mediaGroups[r]&&!s.mediaGroups[r][t])for(const n in s.mediaGroups[r])if(n===i){s.mediaGroups[r][t]={};for(const i in s.mediaGroups[r][n]){const a=s.mediaGroups[r][n][i];s.mediaGroups[r][t][i]=Et({},a);const o=s.mediaGroups[r][t][i],l=this.createCloneURI_(a.resolvedUri,e);o.resolvedUri=l,o.uri=l,o.playlists=[],a.playlists.forEach((n,a)=>{const l=s.playlists[n.id],u=Bu(r,t,i),c=Fu(t,u);if(l&&!s.playlists[c]){const t=this.createClonePlaylist_(l,c,e),i=t.resolvedUri;s.playlists[c]=t,s.playlists[i]=t}o.playlists[a]=this.createClonePlaylist_(n,c,e)})}}})}createClonePlaylist_(e,t,i,s){const r=this.createCloneURI_(e.resolvedUri,i),n={resolvedUri:r,uri:r,id:t};return e.segments&&(n.segments=[]),s&&(n.attributes=s),lu(e,n)}createCloneURI_(e,t){const i=new URL(e);i.hostname=t["URI-REPLACEMENT"].HOST;const s=t["URI-REPLACEMENT"].PARAMS;for(const e of Object.keys(s))i.searchParams.set(e,s[e]);return i.href}createCloneAttributes_(e,t){const i={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(s=>{t[s]&&(i[s]=e)}),i}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const s=e.contentProtection[i].attributes.keyId;s&&t.add(s.toLowerCase())}return t}}}const ac=function(e,t,i,s){const r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),s(t,e)},oc=function(){const e=function e(t,i){t=lu({timeout:45e3},t);const s=e.beforeRequest||eu.Vhs.xhr.beforeRequest,r=e._requestCallbackSet||eu.Vhs.xhr._requestCallbackSet||new Set,n=e._responseCallbackSet||eu.Vhs.xhr._responseCallbackSet;s&&"function"==typeof s&&(eu.log.warn("beforeRequest is deprecated, use onRequest instead."),r.add(s));const a=!0===eu.Vhs.xhr.original?eu.xhr:eu.Vhs.xhr,o=((e,t)=>{if(!e||!e.size)return;let i=t;return e.forEach(e=>{i=e(i)}),i})(r,t);r.delete(s);const l=a(o||t,function(e,t){return((e,t,i,s)=>{e&&e.size&&e.forEach(e=>{e(t,i,s)})})(n,l,e,t),ac(l,e,t,i)}),u=l.abort;return l.abort=function(){return l.aborted=!0,u.apply(l,arguments)},l.uri=t.uri,l.requestType=t.requestType,l.requestTime=Date.now(),l};return e.original=!0,e},lc=function(e){const t={};return e.byterange&&(t.Range=function(e){let t;const i=e.offset;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?be.BigInt(e.offset)+be.BigInt(e.length)-be.BigInt(1):e.offset+e.length-1,"bytes="+i+"-"+t}(e.byterange)),t},uc=function(e,t){return e.start(t)+"-"+e.end(t)},cc=function(e,t){const i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},hc=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},dc=function(e){const t={};return Object.keys(e).forEach(i=>{const s=e[i];Jt(s)?t[i]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[i]=s}),t},pc=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},mc=function(e){return e.resolvedUri},gc=e=>{const t=Array.prototype.slice.call(e),i=16;let s,r,n="";for(let e=0;e<t.length/i;e++)s=t.slice(e*i,e*i+i).map(cc).join(""),r=t.slice(e*i,e*i+i).map(hc).join(""),n+=s+" "+r+"\n";return n};var fc=Object.freeze({__proto__:null,createTransferableMessage:dc,initSegmentId:pc,segmentKeyId:mc,hexDump:gc,tagDump:({bytes:e})=>gc(e),textRanges:e=>{let t,i="";for(t=0;t<e.length;t++)i+=uc(e,t)+" ";return i}});const yc=({programTime:e,playlist:t,retryCount:i=2,seekTo:s,pauseAfterSeek:r=!0,tech:n,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(void 0===e||!t||!s)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!n.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!(e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0})(t))return a({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const o=((e,t)=>{let i;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;let s=t.segments[0];if(i<new Date(s.dateTimeObject))return null;for(let e=0;e<t.segments.length-1&&(s=t.segments[e],!(i<new Date(t.segments[e+1].dateTimeObject)));e++);const r=t.segments[t.segments.length-1],n=r.dateTimeObject,a=r.videoTimingInfo?(e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds)(r.videoTimingInfo):r.duration+.25*r.duration;return i>new Date(n.getTime()+1e3*a)?null:(i>new Date(n)&&(s=r),{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:Ru.duration(t,t.mediaSequence+t.segments.indexOf(s)),type:s.videoTimingInfo?"accurate":"estimate"})})(e,t);if(!o)return a({message:`${e} was not found in the stream`});const l=o.segment,u=((e,t)=>{let i,s;try{i=new Date(e),s=new Date(t)}catch(e){}const r=i.getTime();return(s.getTime()-r)/1e3})(l.dateTimeObject,e);if("estimate"===o.type)return 0===i?a({message:`${e} is not buffered yet. Try again`}):(s(o.estimatedStart+u),void n.one("seeked",()=>{yc({programTime:e,playlist:t,retryCount:i-1,seekTo:s,pauseAfterSeek:r,tech:n,callback:a})}));const c=l.start+u;n.one("seeked",()=>a(null,n.currentTime())),r&&n.pause(),s(c)},_c=(e,t)=>{if(4===e.readyState)return t()},{EventTarget:vc}=eu,bc=function(e,t){if(!tc(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let i=0;i<e.segments.length;i++){const s=e.segments[i],r=t.segments[i];if(s.uri!==r.uri)return!1;if(!s.byterange&&!r.byterange)continue;const n=s.byterange,a=r.byterange;if(n&&!a||!n&&a)return!1;if(n.offset!==a.offset||n.length!==a.length)return!1}return!0},Tc=(e,t,i,s)=>`placeholder-uri-${e}-${t}-${s.attributes.NAME||i}`,Sc=(e,t)=>(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,wc=(e,t)=>{const i={};for(const s in e){const r=e[s].sidx;if(r){const e=Fi(r);if(!t[e])break;const s=t[e].sidxInfo;Sc(s,r)&&(i[e]=t[e])}}return i};class Cc extends vc{constructor(e,t,i={},s){super(),this.isPaused_=!0,this.mainPlaylistLoader_=s||this,s||(this.isMain_=!0);const{withCredentials:r=!1}=i;if(this.vhs_=t,this.withCredentials=r,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=ou("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}get isPaused(){return this.isPaused_}requestErrored_(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2,metadata:e.metadata}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,i){const s=e.sidx&&Fi(e.sidx);if(!e.sidx||!s||this.mainPlaylistLoader_.sidxMapping_[s])return be.clearTimeout(this.mediaRequest_),void(this.mediaRequest_=be.setTimeout(()=>i(!1),0));const r=au(e.sidx.resolvedUri),n=(r,n)=>{if(this.requestErrored_(r,n,t))return;const a=this.mainPlaylistLoader_.sidxMapping_,{requestType:o}=n;let l;try{l=ys(ei(n.response).subarray(8))}catch(e){return e.metadata=Vu({requestType:o,request:n,parseFailure:!0}),void this.requestErrored_(e,n,t)}return a[s]={sidxInfo:e.sidx,sidx:l},Mi(e,l,e.sidx.resolvedUri),i(!0)};this.request=((e,t,i,s)=>{let r,n=[],a=!1;const o=function(e,t,s,r){return t.abort(),a=!0,i(e,t,s,r)},l=function(e,t){if(a)return;if(e)return e.metadata=Vu({requestType:s,request:t,error:e}),o(e,t,"",n);const i=t.responseText.substring(n&&n.byteLength||0,t.responseText.length);if(n=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e}),t.length<=1)return ei(t[0]);var s=t.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0),r=new Uint8Array(s),n=0;return t.forEach(function(e){e=ei(e),r.set(e,n),n+=e.byteLength}),r}(n,ai(i,!0)),r=r||vs(n),n.length<10||r&&n.length<r+2)return _c(t,()=>o(e,t,"",n));const l=Bs(n);return"ts"===l&&n.length<188||!l&&n.length<376?_c(t,()=>o(e,t,"",n)):o(null,t,l,n)},u={uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function({total:t,loaded:i}){return ac(e,null,{statusCode:e.status},l)})}},c=t(u,function(e,t){return ac(c,e,t,l)});return c})(r,this.vhs_.xhr,(t,i,s,a)=>{if(t)return n(t,i);if(!s||"mp4"!==s){const t=s||"unknown";return n({status:i.status,message:`Unsupported ${t} container type for sidx segment at URL: ${r}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},i)}const{offset:o,length:l}=e.sidx.byterange;if(a.length>=l+o)return n(t,{response:a.subarray(o,o+l),status:i.status,uri:i.uri});this.request=this.vhs_.xhr({uri:r,responseType:"arraybuffer",requestType:"dash-sidx",headers:lc({byterange:e.sidx.byterange})},n)},"dash-sidx")}dispose(){this.isPaused_=!0,this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},be.clearTimeout(this.minimumUpdatePeriodTimeout_),be.clearTimeout(this.mediaRequest_),be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,i=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,be.clearTimeout(this.mediaRequest_),this.mediaRequest_=null,this.refreshMedia_(t.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.isPaused_=!0,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(be.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){this.isPaused_=!1,be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const e=t?t.targetDuration/2*1e3:5e3;return void(this.mediaUpdateTimeout=be.setTimeout(()=>this.load(),e))}this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){if(this.started=!0,!this.isMain_)return be.clearTimeout(this.mediaRequest_),void(this.mediaRequest_=be.setTimeout(()=>this.haveMain_(),0));this.requestMain_((e,t)=>{this.haveMain_(),this.hasPendingRequest()||this.media_||this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){const t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(i,s)=>{if(i){const{requestType:e}=s;i.metadata=Vu({requestType:e,request:s,error:i})}if(this.requestErrored_(i,s))return void("HAVE_NOTHING"===this.state&&(this.started=!1));this.trigger({type:"manifestrequestcomplete",metadata:t});const r=s.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=s.responseText,s.responseHeaders&&s.responseHeaders.date?this.mainLoaded_=Date.parse(s.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=au(this.mainPlaylistLoader_.srcUrl,s),r?(this.handleMain_(),void this.syncClientServerClock_(()=>e(s,r))):e(s,r)})}syncClientServerClock_(e){const t=(e=>(e=>{const t=ts(e,"UTCTiming")[0];if(!t)return null;const i=ns(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return i})(ds(e)))(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:nu(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(i,s)=>{if(!this.request)return;if(i){const{requestType:t}=s;return this.error.metadata=Vu({requestType:t,request:s,error:i}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}let r;r="HEAD"===t.method?s.responseHeaders&&s.responseHeaders.date?Date.parse(s.responseHeaders.date):this.mainLoaded_:Date.parse(s.responseText),this.mainPlaylistLoader_.clientOffset_=r-Date.now(),e()}))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){be.clearTimeout(this.mediaRequest_),this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main,t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};let i;this.trigger({type:"manifestparsestart",metadata:t});try{i=(({mainXml:e,srcUrl:t,clientOffset:i,sidxMapping:s,previousManifest:r})=>{const n=((e,t={})=>{const i=((e,t={})=>{const{manifestUri:i="",NOW:s=Date.now(),clientOffset:r=0,eventHandler:n=function(){}}=t,a=ts(e,"Period");if(!a.length)throw new Error("INVALID_NUMBER_OF_PERIOD");const o=ts(e,"Location"),l=ns(e),u=os([{baseUrl:i}],ts(e,"BaseURL")),c=ts(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=s,l.clientOffset=r,o.length&&(l.locations=o.map(is));const h=[];return a.forEach((e,t)=>{const i=ns(e),s=h[t-1];i.start=(({attributes:e,priorPeriodAttributes:t,mpdType:i})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==i?null:0)({attributes:i,priorPeriodAttributes:s?s.attributes:null,mpdType:l.type}),h.push({node:e,attributes:i})}),{locations:l.locations,contentSteeringInfo:hs(c,n),representationInfo:Ei(h.map(cs(l,u))),eventStream:Ei(h.map(us))}})(ds(e),t),s=(e=>e.map(es))(i.representationInfo);return Gi({dashPlaylists:s,locations:i.locations,contentSteering:i.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:i.eventStream})})(e,{manifestUri:t,clientOffset:i,sidxMapping:s,previousManifest:r});return $u(n,t,Tc),n})({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e})}catch(e){this.error=e,this.error.metadata={errorType:eu.Error.StreamingDashManifestParserError,error:e},this.trigger("error")}e&&(i=((e,t,i)=>{let s=!0,r=lu(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let e=0;e<t.playlists.length;e++){const n=t.playlists[e];if(n.sidx){const e=Fi(n.sidx);i&&i[e]&&i[e].sidx&&Mi(n,i[e].sidx,n.sidx.resolvedUri)}const a=ic(r,n,bc);a&&(r=a,s=!1)}return qu(t,(e,t,i,n)=>{if(e.playlists&&e.playlists.length){const a=e.playlists[0].id,o=ic(r,e.playlists[0],bc);o&&(r=o,n in r.mediaGroups[t][i]||(r.mediaGroups[t][i][n]=e),r.mediaGroups[t][i][n].playlists[0]=r.playlists[a],s=!1)}}),((e,t)=>{qu(e,(i,s,r,n)=>{t.mediaGroups[s][r]&&n in t.mediaGroups[s][r]||delete e.mediaGroups[s][r][n]})})(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(s=!1),s?null:r})(e,i,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=i||e;const s=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(s&&s!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=s),(!e||i&&i.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(i),i){const{duration:e,endList:s}=i,r=[];i.playlists.forEach(e=>{r.push({id:e.id,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS})});const n={duration:e,isLive:!s,renditions:r};t.parsedManifest=n,this.trigger({type:"manifestparsecomplete",metadata:t})}return Boolean(i)}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(be.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`):this.createMUPTimeout_(t)}createMUPTimeout_(e){const t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=be.setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=((e,t)=>{let i=wc(e.playlists,t);return qu(e,(e,s,r,n)=>{if(e.playlists&&e.playlists.length){const s=e.playlists;i=lu(i,wc(s,t))}}),i})(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,e=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const t=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==t[e];if(i?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const e=()=>{this.media().endList||(this.mediaUpdateTimeout=be.setTimeout(()=>{this.trigger("mediaupdatetimeout"),e()},sc(this.media(),Boolean(i))))};e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const e=this.mainPlaylistLoader_.main.eventStream.map(e=>({cueTime:e.start,frames:[{data:e.messageData}]}));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const s=e.contentProtection[i].attributes["cenc:default_KID"];s&&t.add(s.replace(/-/g,"").toLowerCase())}return t}}}var Ec={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const kc=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},xc=function(e){return function(){const t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(t){const i=new BlobBuilder;return i.append(e),URL.createObjectURL(i.getBlob())}}(e),i=kc(new Worker(t));i.objURL=t;const s=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(t),s.call(this)},i}},Ic=function(e){return`var browserWorkerPolyFill = ${kc.toString()};\nbrowserWorkerPolyFill(self);\n`+e},Ac=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Dc=Ic(Ac(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=function(){this.init=function(){var e={};this.on=function(t,i){e[t]||(e[t]=[]),e[t]=e[t].concat(i)},this.off=function(t,i){var s;return!!e[t]&&(s=e[t].indexOf(i),e[t]=e[t].slice(),e[t].splice(s,1),s>-1)},this.trigger=function(t){var i,s,r,n;if(i=e[t])if(2===arguments.length)for(r=i.length,s=0;s<r;++s)i[s].call(this,arguments[1]);else{for(n=[],s=arguments.length,s=1;s<arguments.length;++s)n.push(arguments[s]);for(r=i.length,s=0;s<r;++s)i[s].apply(this,n)}},this.dispose=function(){e={}}}};t.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var i,s,r,n,a,o,l,u,c,h,d,p,m,g,f,y,_,v,b,T,S,w,C,E,k,x,I,A,D,P,M,L,O,N,R,U,F,B,q,j,$=t,H=Math.pow(2,32),V={getUint64:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength);return i.getBigUint64?(t=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:i.getUint32(0)*H+i.getUint32(4)},MAX_UINT32:H},z=V.MAX_UINT32;!function(){var e;if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in w)w.hasOwnProperty(e)&&(w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),k=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),E=new Uint8Array([0,0,0,1]),x=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),I=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:x,audio:I},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0]),L=new Uint8Array([0,0,0,0,0,0,0,0]),O=L,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=L,D=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),i=function(e){var t,i,s=[],r=0;for(t=1;t<arguments.length;t++)s.push(arguments[t]);for(t=s.length;t--;)r+=s[t].byteLength;for(i=new Uint8Array(r+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(e,4),t=0,r=8;t<s.length;t++)i.set(s[t],r),r+=s[t].byteLength;return i},s=function(){return i(w.dinf,i(w.dref,M))},r=function(e){return i(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},f=function(e){return i(w.hdlr,A[e])},g=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),i(w.mdhd,t)},m=function(e){return i(w.mdia,g(e),f(e.type),o(e))},a=function(e){return i(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},o=function(e){return i(w.minf,"video"===e.type?i(w.vmhd,D):i(w.smhd,P),s(),_(e))},l=function(e,t){for(var s=[],r=t.length;r--;)s[r]=b(t[r]);return i.apply(null,[w.moof,a(e)].concat(s))},u=function(e){for(var t=e.length,s=[];t--;)s[t]=d(e[t]);return i.apply(null,[w.moov,h(4294967295)].concat(s).concat(c(e)))},c=function(e){for(var t=e.length,s=[];t--;)s[t]=T(e[t]);return i.apply(null,[w.mvex].concat(s))},h=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return i(w.mvhd,t)},y=function(e){var t,s,r=e.samples||[],n=new Uint8Array(4+r.length);for(s=0;s<r.length;s++)t=r[s].flags,n[s+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return i(w.sdtp,n)},_=function(e){return i(w.stbl,v(e),i(w.stts,R),i(w.stsc,O),i(w.stsz,N),i(w.stco,L))},v=function(e){return i(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?U(e):F(e))},U=function(e){var t,s,r=e.sps||[],n=e.pps||[],a=[],o=[];for(t=0;t<r.length;t++)a.push((65280&r[t].byteLength)>>>8),a.push(255&r[t].byteLength),a=a.concat(Array.prototype.slice.call(r[t]));for(t=0;t<n.length;t++)o.push((65280&n[t].byteLength)>>>8),o.push(255&n[t].byteLength),o=o.concat(Array.prototype.slice.call(n[t]));if(s=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i(w.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],a,[n.length],o))),i(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];s.push(i(w.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return i.apply(null,s)},F=function(e){return i(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},p=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return i(w.tkhd,t)},b=function(e){var t,s,r,n,a,o;return t=i(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/z),o=Math.floor(e.baseMediaDecodeTime%z),s=i(w.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),"audio"===e.type?(r=S(e,92),i(w.traf,t,s,r)):(n=y(e),r=S(e,n.length+92),i(w.traf,t,s,r,n))},d=function(e){return e.duration=e.duration||4294967295,i(w.trak,p(e),m(e))},T=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),i(w.trex,t)},j=function(e,t){var i=0,s=0,r=0,n=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(s=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(n=8)),[0,0,i|s|r|n,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},q=function(e,t){var s,r,n,a,o,l;for(t+=20+16*(a=e.samples||[]).length,n=j(a,t),(r=new Uint8Array(n.length+16*a.length)).set(n),s=n.length,l=0;l<a.length;l++)o=a[l],r[s++]=(4278190080&o.duration)>>>24,r[s++]=(16711680&o.duration)>>>16,r[s++]=(65280&o.duration)>>>8,r[s++]=255&o.duration,r[s++]=(4278190080&o.size)>>>24,r[s++]=(16711680&o.size)>>>16,r[s++]=(65280&o.size)>>>8,r[s++]=255&o.size,r[s++]=o.flags.isLeading<<2|o.flags.dependsOn,r[s++]=o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,r[s++]=61440&o.flags.degradationPriority,r[s++]=15&o.flags.degradationPriority,r[s++]=(4278190080&o.compositionTimeOffset)>>>24,r[s++]=(16711680&o.compositionTimeOffset)>>>16,r[s++]=(65280&o.compositionTimeOffset)>>>8,r[s++]=255&o.compositionTimeOffset;return i(w.trun,r)},B=function(e,t){var s,r,n,a,o,l;for(t+=20+8*(a=e.samples||[]).length,n=j(a,t),(s=new Uint8Array(n.length+8*a.length)).set(n),r=n.length,l=0;l<a.length;l++)o=a[l],s[r++]=(4278190080&o.duration)>>>24,s[r++]=(16711680&o.duration)>>>16,s[r++]=(65280&o.duration)>>>8,s[r++]=255&o.duration,s[r++]=(4278190080&o.size)>>>24,s[r++]=(16711680&o.size)>>>16,s[r++]=(65280&o.size)>>>8,s[r++]=255&o.size;return i(w.trun,s)},S=function(e,t){return"audio"===e.type?B(e,t):q(e,t)};var W,G,X,Z,Q,K,Y,J,ee={ftyp:n=function(){return i(w.ftyp,C,E,C,k)},mdat:function(e){return i(w.mdat,e)},moof:l,moov:u,initSegment:function(e){var t,i=n(),s=u(e);return(t=new Uint8Array(i.byteLength+s.byteLength)).set(i),t.set(s,i.byteLength),t}},te=function(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},ie={groupNalsIntoFrames:function(e){var t,i,s=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,s.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(i=e[t]).nalUnitType?(s.length&&(s.duration=i.dts-s.dts,r.byteLength+=s.byteLength,r.nalCount+=s.length,r.duration+=s.duration,r.push(s)),(s=[i]).byteLength=i.data.byteLength,s.pts=i.pts,s.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(s.keyFrame=!0),s.duration=i.dts-s.dts,s.byteLength+=i.data.byteLength,s.push(i));return r.length&&(!s.duration||s.duration<=0)&&(s.duration=r[r.length-1].duration),r.byteLength+=s.byteLength,r.nalCount+=s.length,r.duration+=s.duration,r.push(s),r},groupFramesIntoGops:function(e){var t,i,s=[],r=[];for(s.byteLength=0,s.nalCount=0,s.duration=0,s.pts=e[0].pts,s.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(i=e[t]).keyFrame?(s.length&&(r.push(s),r.byteLength+=s.byteLength,r.nalCount+=s.nalCount,r.duration+=s.duration),(s=[i]).nalCount=i.length,s.byteLength=i.byteLength,s.pts=i.pts,s.dts=i.dts,s.duration=i.duration):(s.duration+=i.duration,s.nalCount+=i.length,s.byteLength+=i.byteLength,s.push(i));return r.length&&s.duration<=0&&(s.duration=r[r.length-1].duration),r.byteLength+=s.byteLength,r.nalCount+=s.nalCount,r.duration+=s.duration,r.push(s),r},extendFirstKeyFrame:function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:function(e,t){var i,s,r,n,a,o=t||0,l=[];for(i=0;i<e.length;i++)for(n=e[i],s=0;s<n.length;s++)a=n[s],o+=(r=te(a,o)).size,l.push(r);return l},concatenateNalData:function(e){var t,i,s,r,n,a,o=0,l=e.byteLength,u=e.nalCount,c=new Uint8Array(l+4*u),h=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],i=0;i<r.length;i++)for(n=r[i],s=0;s<n.length;s++)a=n[s],h.setUint32(o,a.data.byteLength),o+=4,c.set(a.data,o),o+=a.data.byteLength;return c},generateSampleTableForFrame:function(e,t){var i,s=[];return i=te(e,t||0),s.push(i),s},concatenateNalDataForFrame:function(e){var t,i,s=0,r=e.byteLength,n=e.length,a=new Uint8Array(r+4*n),o=new DataView(a.buffer);for(t=0;t<e.length;t++)i=e[t],o.setUint32(s,i.data.byteLength),s+=4,a.set(i.data,s),s+=i.data.byteLength;return a}},se=[33,16,5,32,164,27],re=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ne=function(e){for(var t=[];e--;)t.push(0);return t},ae=9e4;K=function(e,t){return G(Q(e,t))},Y=function(e,t){return X(Z(e),t)},J=function(e,t,i){return Z(i?e:e-t)};var oe={ONE_SECOND_IN_TS:ae,secondsToVideoTs:G=function(e){return e*ae},secondsToAudioTs:X=function(e,t){return e*t},videoTsToSeconds:Z=function(e){return e/ae},audioTsToSeconds:Q=function(e,t){return e/t},audioTsToVideoTs:K,videoTsToAudioTs:Y,metadataTsToSeconds:J},le=oe,ue={prefixWithSilence:function(e,t,i,s){var r,n,a,o,l=0,u=0,c=0,h=0;if(t.length&&(r=le.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(le.ONE_SECOND_IN_TS/(e.samplerate/1024)),i&&s&&(u=r-Math.max(i,s),h=(c=Math.floor(u/l))*l),!(c<1||h>le.ONE_SECOND_IN_TS/2))){for((n=function(){if(!W){var e={96e3:[se,[227,64],ne(154),[56]],88200:[se,[231],ne(170),[56]],64e3:[se,[248,192],ne(240),[56]],48e3:[se,[255,192],ne(268),[55,148,128],ne(54),[112]],44100:[se,[255,192],ne(268),[55,163,128],ne(84),[112]],32e3:[se,[255,192],ne(268),[55,234],ne(226),[112]],24e3:[se,[255,192],ne(268),[55,255,128],ne(268),[111,112],ne(126),[224]],16e3:[se,[255,192],ne(268),[55,255,128],ne(268),[111,255],ne(269),[223,108],ne(195),[1,192]],12e3:[re,ne(268),[3,127,248],ne(268),[6,255,240],ne(268),[13,255,224],ne(268),[27,253,128],ne(259),[56]],11025:[re,ne(268),[3,127,248],ne(268),[6,255,240],ne(268),[13,255,224],ne(268),[27,255,192],ne(268),[55,175,128],ne(108),[112]],8e3:[re,ne(268),[3,121,16],ne(47),[7]]};W=function(e){return Object.keys(e).reduce(function(t,i){return t[i]=new Uint8Array(e[i].reduce(function(e,t){return e.concat(t)},[])),t},{})}(e)}return W}()[e.samplerate])||(n=t[0].data),a=0;a<c;a++)o=t[0],t.splice(0,0,{data:n,dts:o.dts-l,pts:o.pts-l});return e.baseMediaDecodeTime-=Math.floor(le.videoTsToAudioTs(h,e.samplerate)),h}},trimAdtsFramesByEarliestDts:function(e,t,i){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},generateSampleTable:function(e){var t,i,s=[];for(t=0;t<e.length;t++)i=e[t],s.push({size:i.data.byteLength,duration:1024});return s},concatenateFrameData:function(e){var t,i,s=0,r=new Uint8Array(function(e){var t,i=0;for(t=0;t<e.length;t++)i+=e[t].data.byteLength;return i}(e));for(t=0;t<e.length;t++)i=e[t],r.set(i.data,s),s+=i.data.byteLength;return r}},ce=oe.ONE_SECOND_IN_TS,he={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var i,s=e.minSegmentDts;return t||(s-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=s,i=Math.max(0,i),"audio"===e.type&&(i*=e.samplerate/ce,i=Math.floor(i)),i},collectDtsInfo:function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}},de={parseSei:function(e){for(var t=0,i={payloadType:-1,payloadSize:0},s=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)s+=255,t++;for(s+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===s){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=s,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}i.payload=void 0}t+=r,s=0,r=0}return i},parseUserData:function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var i,s,r,n,a=[];if(!(64&t[0]))return a;for(s=31&t[0],i=0;i<s;i++)n={type:3&t[2+(r=3*i)],pts:e},4&t[r+2]&&(n.ccData=t[r+3]<<8|t[r+4],a.push(n));return a},discardEmulationPreventionBytes:function(e){for(var t,i,s=e.byteLength,r=[],n=1;n<s-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return e;t=s-r.length,i=new Uint8Array(t);var a=0;for(n=0;n<t;a++,n++)a===r[0]&&(a++,r.shift()),i[n]=e[a];return i},USER_DATA_REGISTERED_ITU_T_T35:4},pe=$,me=de,ge=function(e){e=e||{},ge.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Ee(0,0),new Ee(0,1),new Ee(1,0),new Ee(1,1)],this.parse708captions_&&(this.cc708Stream_=new be({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};ge.prototype=new pe,ge.prototype.push=function(e){var t,i,s;if("sei_rbsp"===e.nalUnitType&&(t=me.parseSei(e.escapedRBSP)).payload&&t.payloadType===me.USER_DATA_REGISTERED_ITU_T_T35&&(i=me.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));s=me.parseCaptionPackets(e.pts,i),this.captionPackets_=this.captionPackets_.concat(s),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},ge.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},ge.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},ge.prototype.flush=function(){return this.flushStream("flush")},ge.prototype.partialFlush=function(){return this.flushStream("partialFlush")},ge.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},ge.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},ge.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},ge.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},ge.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},ge.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var fe={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},ye=function(e){return 32<=e&&e<=127||160<=e&&e<=255},_e=function(e){this.windowNum=e,this.reset()};_e.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},_e.prototype.getText=function(){return this.rows.join("\n")},_e.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},_e.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},_e.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},_e.prototype.addText=function(e){this.rows[this.rowIdx]+=e},_e.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var ve=function(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new _e(-1),this.windows=[],this.stream=i,"string"==typeof t&&this.createTextDecoder(t)};ve.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new _e(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},ve.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},ve.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var be=function(e){e=e||{},be.prototype.init.call(this);var t,i=this,s=e.captionServices||{},r={};Object.keys(s).forEach(e=>{t=s[e],/^SERVICE/.test(e)&&(r[e]=t.encoding)}),this.serviceEncodings=r,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};be.prototype=new pe,be.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},be.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,s=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(s)},be.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,s=null,r=0,n=t[r++];for(e.seq=n>>6,e.sizeCode=63&n;r<t.length;r++)s=31&(n=t[r++]),7==(i=n>>5)&&s>0&&(i=n=t[r++]),this.pushServiceBlock(i,r,s),s>0&&(r+=s-1)},be.prototype.pushServiceBlock=function(e,t,i){var s,r=t,n=this.current708Packet.data,a=this.services[e];for(a||(a=this.initService(e,r));r<t+i&&r<n.length;r++)s=n[r],ye(s)?r=this.handleText(r,a):24===s?r=this.multiByteCharacter(r,a):16===s?r=this.extendedCommands(r,a):128<=s&&s<=135?r=this.setCurrentWindow(r,a):152<=s&&s<=159?r=this.defineWindow(r,a):136===s?r=this.clearWindows(r,a):140===s?r=this.deleteWindows(r,a):137===s?r=this.displayWindows(r,a):138===s?r=this.hideWindows(r,a):139===s?r=this.toggleWindows(r,a):151===s?r=this.setWindowAttributes(r,a):144===s?r=this.setPenAttributes(r,a):145===s?r=this.setPenColor(r,a):146===s?r=this.setPenLocation(r,a):143===s?a=this.reset(r,a):8===s?a.currentWindow.backspace():12===s?a.currentWindow.clearText():13===s?a.currentWindow.pendingNewLine=!0:14===s?a.currentWindow.clearText():141===s&&r++},be.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data[++e];return ye(i)&&(e=this.handleText(e,t,{isExtended:!0})),e},be.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},be.prototype.initService=function(e,t){var i,s,r=this;return(i="SERVICE"+e)in this.serviceEncodings&&(s=this.serviceEncodings[i]),this.services[e]=new ve(e,s,r),this.services[e].init(this.getPts(t),function(t){r.flushDisplayed(t,r.services[e])}),this.services[e]},be.prototype.handleText=function(e,t,i){var s,r,n=i&&i.isExtended,a=i&&i.isMultiByte,o=this.current708Packet.data,l=n?4096:0,u=o[e],c=o[e+1],h=t.currentWindow;if(a?(r=[u,c],e++):r=[u],t.textDecoder_&&!n)s=t.textDecoder_.decode(new Uint8Array(r));else if(a){const e=function(e){return e.map(e=>("0"+(255&e).toString(16)).slice(-2)).join("")}(r);s=String.fromCharCode(parseInt(e,16))}else s=function(e){var t=fe[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)}(l|u);return h.pendingNewLine&&!h.isEmpty()&&h.newLine(this.getPts(e)),h.pendingNewLine=!1,h.addText(s),e},be.prototype.multiByteCharacter=function(e,t){var i=this.current708Packet.data,s=i[e+1],r=i[e+2];return ye(s)&&ye(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},be.prototype.setCurrentWindow=function(e,t){var i=7&this.current708Packet.data[e];return t.setCurrentWindow(i),e},be.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,s=i[e],r=7&s;t.setCurrentWindow(r);var n=t.currentWindow;return s=i[++e],n.visible=(32&s)>>5,n.rowLock=(16&s)>>4,n.columnLock=(8&s)>>3,n.priority=7&s,s=i[++e],n.relativePositioning=(128&s)>>7,n.anchorVertical=127&s,s=i[++e],n.anchorHorizontal=s,s=i[++e],n.anchorPoint=(240&s)>>4,n.rowCount=15&s,s=i[++e],n.columnCount=63&s,s=i[++e],n.windowStyle=(56&s)>>3,n.penStyle=7&s,n.virtualRowCount=n.rowCount+1,e},be.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.winAttr;return s=i[++e],r.fillOpacity=(192&s)>>6,r.fillRed=(48&s)>>4,r.fillGreen=(12&s)>>2,r.fillBlue=3&s,s=i[++e],r.borderType=(192&s)>>6,r.borderRed=(48&s)>>4,r.borderGreen=(12&s)>>2,r.borderBlue=3&s,s=i[++e],r.borderType+=(128&s)>>5,r.wordWrap=(64&s)>>6,r.printDirection=(48&s)>>4,r.scrollDirection=(12&s)>>2,r.justify=3&s,s=i[++e],r.effectSpeed=(240&s)>>4,r.effectDirection=(12&s)>>2,r.displayEffect=3&s,e},be.prototype.flushDisplayed=function(e,t){for(var i=[],s=0;s<8;s++)t.windows[s].visible&&!t.windows[s].isEmpty()&&i.push(t.windows[s].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},be.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},be.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=1);return e},be.prototype.hideWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=0);return e},be.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible^=1);return e},be.prototype.clearWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].clearText();return e},be.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].reset();return e},be.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.penAttr;return s=i[++e],r.textTag=(240&s)>>4,r.offset=(12&s)>>2,r.penSize=3&s,s=i[++e],r.italics=(128&s)>>7,r.underline=(64&s)>>6,r.edgeType=(56&s)>>3,r.fontStyle=7&s,e},be.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.penColor;return s=i[++e],r.fgOpacity=(192&s)>>6,r.fgRed=(48&s)>>4,r.fgGreen=(12&s)>>2,r.fgBlue=3&s,s=i[++e],r.bgOpacity=(192&s)>>6,r.bgRed=(48&s)>>4,r.bgGreen=(12&s)>>2,r.bgBlue=3&s,s=i[++e],r.edgeRed=(48&s)>>4,r.edgeGreen=(12&s)>>2,r.edgeBlue=3&s,e},be.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,s=i[++e],r.row=15&s,s=i[++e],r.column=63&s,e},be.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var Te={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Se=function(e){return null===e?"":(e=Te[e]||e,String.fromCharCode(e))},we=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ce=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},Ee=function(e,t){Ee.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,s,r,n;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),s=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Ce();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ce();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ce()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(s,r))n=Se((s=(3&s)<<8)|r),this[this.mode_](e.pts,n),this.column_++;else if(this.isExtCharacter(s,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),n=Se((s=(3&s)<<8)|r),this[this.mode_](e.pts,n),this.column_++;else if(this.isMidRowCode(s,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~r||this.addFormatting(e.pts,["i"]),1&~r||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(s,r)){const e=3&r;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(s,r)){var a=we.indexOf(7968&t);if("rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&a>=0&&a<=14&&(this.clearFormatting(e.pts),this.row_=a),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),!(16&~t)){const e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(r)&&(14&~r||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(s)&&(0===r&&(r=null),n=Se(s),n+=Se(r),this[this.mode_](e.pts,n),this.column_+=n.length)}else this.lastControlCode_=null}};Ee.prototype=new pe,Ee.prototype.flushDisplayed=function(e){const t=e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},i=[];this.displayed_.forEach((e,s)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(e){t(s)}e.text.length&&i.push({text:e.text,line:s+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(s)}),i.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:i,stream:this.name_})},Ee.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ce(),this.nonDisplayed_=Ce(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Ee.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ee.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Ee.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Ee.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Ee.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Ee.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Ee.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Ee.prototype.isNormalChar=function(e){return e>=32&&e<=127},Ee.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ce(),this.displayed_=Ce()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Ee.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)},Ee.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},Ee.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_].text;i+=t,this.nonDisplayed_[this.row_].text=i},Ee.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i},Ee.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},Ee.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i};var ke={CaptionStream:ge,Cea608Stream:Ee,Cea708Stream:be},xe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ie=$,Ae="shared",De=function(e,t){var i=1;for(e>t&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},Pe=function(e){var t,i;Pe.prototype.init.call(this),this.type_=e||Ae,this.push=function(e){"metadata"!==e.type?this.type_!==Ae&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=De(e.dts,i),e.pts=De(e.pts,i),t=e.dts,this.trigger("data",e)):this.trigger("data",e)},this.flush=function(){i=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Pe.prototype=new Ie;var Me,Le={TimestampRolloverStream:Pe,handleRollover:De},Oe=(e,t,i)=>{if(!e)return-1;for(var s=i;s<e.length;s++)if(e[s]===t)return s;return-1},Ne=function(e,t,i){var s,r="";for(s=t;s<i;s++)r+="%"+("00"+e[s].toString(16)).slice(-2);return r},Re=function(e,t,i){return decodeURIComponent(Ne(e,t,i))},Ue=function(e,t,i){return unescape(Ne(e,t,i))},Fe=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Be={APIC:function(e){var t,i,s=1;3===e.data[0]&&((t=Oe(e.data,0,s))<0||(e.mimeType=Ue(e.data,s,t),s=t+1,e.pictureType=e.data[s],s++,(i=Oe(e.data,0,s))<0||(e.description=Re(e.data,s,i),s=i+1,"--\x3e"===e.mimeType?e.url=Ue(e.data,s,e.data.length):e.pictureData=e.data.subarray(s,e.data.length))))},"T*":function(e){3===e.data[0]&&(e.value=Re(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;3===e.data[0]&&-1!==(t=Oe(e.data,0,1))&&(e.description=Re(e.data,1,t),e.value=Re(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=Ue(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;3===e.data[0]&&-1!==(t=Oe(e.data,0,1))&&(e.description=Re(e.data,1,t),e.url=Ue(e.data,t+1,e.data.length).replace(/\0.*$/,""))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=Ue(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},qe={parseId3Frames:function(e){var t,i=10,s=0,r=[];if(!(e.length<10||e[0]!=="I".charCodeAt(0)||e[1]!=="D".charCodeAt(0)||e[2]!=="3".charCodeAt(0))){s=Fe(e.subarray(6,10)),s+=10,64&e[5]&&(i+=4,i+=Fe(e.subarray(10,14)),s-=Fe(e.subarray(16,20)));do{if((t=Fe(e.subarray(i+4,i+8)))<1)break;var n={id:String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]),data:e.subarray(i+10,i+t+10)};n.key=n.id,Be[n.id]?Be[n.id](n):"T"===n.id[0]?Be["T*"](n):"W"===n.id[0]&&Be["W*"](n),r.push(n),i+=10,i+=t}while(i<s);return r}},parseSyncSafeInteger:Fe,frameParsers:Be},je=xe,$e=qe;(Me=function(e){var t,i={descriptor:e&&e.descriptor},s=0,r=[],n=0;if(Me.prototype.init.call(this),this.dispatchType=je.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(t=0;t<i.descriptor.length;t++)this.dispatchType+=("00"+i.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,i,a,o,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(n=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),n+=e.data.byteLength,1===r.length&&(s=$e.parseSyncSafeInteger(e.data.subarray(6,10)),s+=10),!(n<s)){for(t={data:new Uint8Array(s),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<s;)t.data.set(r[0].data.subarray(0,s-l),l),l+=r[0].data.byteLength,n-=r[0].data.byteLength,r.shift();i=10,64&t.data[5]&&(i+=4,i+=$e.parseSyncSafeInteger(t.data.subarray(10,14)),s-=$e.parseSyncSafeInteger(t.data.subarray(16,20)));do{if((a=$e.parseSyncSafeInteger(t.data.subarray(i+4,i+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((o={id:String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),data:t.data.subarray(i+10,i+a+10)}).key=o.id,$e.frameParsers[o.id]?$e.frameParsers[o.id](o):"T"===o.id[0]?$e.frameParsers["T*"](o):"W"===o.id[0]&&$e.frameParsers["W*"](o),"com.apple.streaming.transportStreamTimestamp"===o.owner){var u=o.data,c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;c*=4,c+=3&u[7],o.timeStamp=c,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),i+=10,i+=a}while(i<s);this.trigger("data",t)}}}).prototype=new $;var He,Ve,ze,We=Me,Ge=$,Xe=ke,Ze=xe,Qe=Le.TimestampRolloverStream,Ke=188;(He=function(){var e=new Uint8Array(Ke),t=0;He.prototype.init.call(this),this.push=function(i){var s,r=0,n=Ke;for(t?((s=new Uint8Array(i.byteLength+t)).set(e.subarray(0,t)),s.set(i,t),t=0):s=i;n<s.byteLength;)71!==s[r]||71!==s[n]?(r++,n++):(this.trigger("data",s.subarray(r,n)),r+=Ke,n+=Ke);r<s.byteLength&&(e.set(s.subarray(r),0),t=s.byteLength-r)},this.flush=function(){t===Ke&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new Ge,Ve=function(){var e,t,i,s;Ve.prototype.init.call(this),s=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,s){var r=0;s.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===s.type?t(e.subarray(r),s):i(e.subarray(r),s)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],s.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=s.pmtPid},i=function(e,t){var i,r;if(1&e[5]){for(s.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<i;){var n=e[r],a=(31&e[r+1])<<8|e[r+2];n===Ze.H264_STREAM_TYPE&&null===s.programMapTable.video?s.programMapTable.video=a:n===Ze.ADTS_STREAM_TYPE&&null===s.programMapTable.audio?s.programMapTable.audio=a:n===Ze.METADATA_STREAM_TYPE&&(s.programMapTable["timed-metadata"][a]=n),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=s.programMapTable}},this.push=function(t){var i={},s=4;if(i.payloadUnitStartIndicator=!!(64&t[1]),i.pid=31&t[1],i.pid<<=8,i.pid|=t[2],(48&t[3])>>>4>1&&(s+=t[s]+1),0===i.pid)i.type="pat",e(t.subarray(s),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(s),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,s,i]):this.processPes_(t,s,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=Ze.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=Ze.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},Ve.prototype=new Ge,Ve.STREAM_TYPES={h264:27,adts:15},ze=function(){var e,t=this,i=!1,s={data:[],size:0},r={data:[],size:0},n={data:[],size:0},a=function(e,i,s){var r,n=new Uint8Array(e.size),a={type:i},o=0,l=0,u=!1;if(e.data.length&&!(e.size<9)){for(a.trackId=e.data[0].pid,o=0;o<e.data.length;o++)r=e.data[o],n.set(r.data,l),l+=r.data.byteLength;(function(e,t){var i;const s=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===s&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=!!(4&e[6]),192&(i=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))})(n,a),u="video"===i||a.packetLength<=e.size,(s||u)&&(e.size=0,e.data.length=0),u&&t.trigger("data",a)}};ze.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case Ze.H264_STREAM_TYPE:e=s,t="video";break;case Ze.ADTS_STREAM_TYPE:e=r,t="audio";break;case Ze.METADATA_STREAM_TYPE:e=n,t="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&a(e,t,!0),e.data.push(o),e.size+=o.data.byteLength},pmt:function(){var s={type:"metadata",tracks:[]};null!==(e=o.programMapTable).video&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),i=!0,t.trigger("data",s)}})[o.type]()},this.reset=function(){s.size=0,s.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){a(s,"video"),a(r,"audio"),a(n,"timed-metadata")},this.flush=function(){if(!i&&e){var s={type:"metadata",tracks:[]};null!==e.video&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",s)}i=!1,this.flushStreams_(),this.trigger("done")}},ze.prototype=new Ge;var Ye={PAT_PID:0,MP2T_PACKET_LENGTH:Ke,TransportPacketStream:He,TransportParseStream:Ve,ElementaryStream:ze,TimestampRolloverStream:Qe,CaptionStream:Xe.CaptionStream,Cea608Stream:Xe.Cea608Stream,Cea708Stream:Xe.Cea708Stream,MetadataStream:We};for(var Je in Ze)Ze.hasOwnProperty(Je)&&(Ye[Je]=Ze[Je]);var et,tt=Ye,it=$,st=oe.ONE_SECOND_IN_TS,rt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(et=function(e){var t,i=0;et.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts skiping bytes ${e} to ${t} in frame ${i} outside syncword`})},this.push=function(s){var r,n,a,o,l,u=0;if(e||(i=0),"audio"===s.type){var c;for(t&&t.length?(a=t,(t=new Uint8Array(a.byteLength+s.data.byteLength)).set(a),t.set(s.data,a.byteLength)):t=s.data;u+7<t.length;)if(255===t[u]&&240==(246&t[u+1])){if("number"==typeof c&&(this.skipWarn_(c,u),c=null),n=2*(1&~t[u+1]),r=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,l=(o=1024*(1+(3&t[u+6])))*st/rt[(60&t[u+2])>>>2],t.byteLength-u<r)break;this.trigger("data",{pts:s.pts+i*l,dts:s.dts+i*l,sampleCount:o,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:rt[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+n,u+r)}),i++,u+=r}else"number"!=typeof c&&(c=u),u++;"number"==typeof c&&(this.skipWarn_(c,u),c=null),t=t.subarray(u)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new it;var nt,at,ot,lt=et,ut=$,ct=function(e){var t=e.byteLength,i=0,s=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+s},this.loadWord=function(){var r=e.byteLength-t,n=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw new Error("no bytes available");n.set(e.subarray(r,r+a)),i=new DataView(n.buffer).getUint32(0),s=8*a,t-=a},this.skipBits=function(e){var r;s>e?(i<<=e,s-=e):(e-=s,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),i<<=e,s-=e)},this.readBits=function(e){var r=Math.min(s,e),n=i>>>32-r;return(s-=r)>0?i<<=r:t>0&&this.loadWord(),(r=e-r)>0?n<<r|this.readBits(r):n},this.skipLeadingZeros=function(){var e;for(e=0;e<s;++e)if(i&2147483648>>>e)return i<<=e,s-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(at=function(){var e,t,i=0;at.prototype.init.call(this),this.push=function(s){var r;t?((r=new Uint8Array(t.byteLength+s.data.byteLength)).set(t),r.set(s.data,t.byteLength),t=r):t=s.data;for(var n=t.byteLength;i<n-3;i++)if(1===t[i+2]){e=i+5;break}for(;e<n;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}i+3!==e-2&&this.trigger("data",t.subarray(i+3,e-2));do{e++}while(1!==t[e]&&e<n);i=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(i+3,e-2)),i=e-2,e+=3;break;default:e+=3}t=t.subarray(i),e-=i,i=0},this.reset=function(){t=null,i=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(i+3)),t=null,i=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new ut,ot={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},nt=function(){var e,t,i,s,r,n,a,o=new at;nt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,s=e.dts,o.push(e))},o.on("data",function(a){var o={trackId:t,pts:i,dts:s,data:a,nalUnitTypeCode:31&a[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(a.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(a.subarray(1)),o.config=n(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)}),o.on("done",function(){e.trigger("done")}),o.on("partialdone",function(){e.trigger("partialdone")}),o.on("reset",function(){e.trigger("reset")}),o.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},a=function(e,t){var i,s=8,r=8;for(i=0;i<e;i++)0!==r&&(r=(s+t.readExpGolomb()+256)%256),s=0===r?s:r},r=function(e){for(var t,i,s=e.byteLength,r=[],n=1;n<s-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return e;t=s-r.length,i=new Uint8Array(t);var a=0;for(n=0;n<t;a++,n++)a===r[0]&&(a++,r.shift()),i[n]=e[a];return i},n=function(e){var t,i,s,r,n,o,l,u,c,h,d,p,m=0,g=0,f=0,y=0,_=[1,1];if(i=(t=new ct(e)).readUnsignedByte(),r=t.readUnsignedByte(),s=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),ot[i]&&(3===(n=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(d=3!==n?8:12,p=0;p<d;p++)t.readBoolean()&&a(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),p=0;p<l;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),0===(h=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),f=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:_=[1,1];break;case 2:_=[12,11];break;case 3:_=[10,11];break;case 4:_=[16,11];break;case 5:_=[40,33];break;case 6:_=[24,11];break;case 7:_=[20,11];break;case 8:_=[32,11];break;case 9:_=[80,33];break;case 10:_=[18,11];break;case 11:_=[15,11];break;case 12:_=[64,33];break;case 13:_=[160,99];break;case 14:_=[4,3];break;case 15:_=[3,2];break;case 16:_=[2,1];break;case 255:_=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}_&&(_[0],_[1])}return{profileIdc:i,levelIdc:s,profileCompatibility:r,width:16*(u+1)-2*m-2*g,height:(2-h)*(c+1)*16-2*f-2*y,sarRatio:_}}},nt.prototype=new ut;var ht,dt={H264Stream:nt},pt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],mt=function(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return i=i>=0?i:0,(16&e[t+5])>>4?i+20:i+10},gt=function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=mt(e,t),gt(e,t))},ft=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},yt=function(e,t,i){return unescape(function(e,t,i){var s,r="";for(s=t;s<i;s++)r+="%"+("00"+e[s].toString(16)).slice(-2);return r}(e,t,i))},_t={isLikelyAacData:function(e){var t=gt(e,0);return e.length>=t+2&&!(255&~e[t])&&!(240&~e[t+1])&&16==(22&e[t+1])},parseId3TagSize:mt,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,s=e[t+4]<<3;return 6144&e[t+3]|s|i},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&!(240&~e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return pt[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,i,s;t=10,64&e[5]&&(t+=4,t+=ft(e.subarray(10,14)));do{if((i=ft(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){s=e.subarray(t+10,t+i+10);for(var r=0;r<s.byteLength;r++)if(0===s[r]){if("com.apple.streaming.transportStreamTimestamp"===yt(s,0,r)){var n=s.subarray(r+1),a=(1&n[3])<<30|n[4]<<22|n[5]<<14|n[6]<<6|n[7]>>>2;return(a*=4)+(3&n[7])}break}}t+=10,t+=i}while(t<e.byteLength);return null}},vt=_t;(ht=function(){var e=new Uint8Array,t=0;ht.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(i){var s,r,n,a,o=0,l=0;for(e.length?(a=e.length,(e=new Uint8Array(i.byteLength+a)).set(e.subarray(0,a)),e.set(i,a)):e=i;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255&~e[l]||240&~e[l+1])l++;else{if(e.length-l<7)break;if(l+(o=vt.parseAdtsSize(e,l))>e.length)break;n={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",n),l+=o}else{if(e.length-l<10)break;if(l+(o=vt.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}s=e.length-l,e=s>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new $;var bt,Tt,St,wt,Ct=$,Et=ee,kt=ie,xt=ue,It=he,At=tt,Dt=oe,Pt=lt,Mt=dt.H264Stream,Lt=ht,Ot=_t.isLikelyAacData,Nt=oe.ONE_SECOND_IN_TS,Rt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ut=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ft=function(e,t){t.stream=e,this.trigger("log",t)},Bt=function(e,t){for(var i=Object.keys(t),s=0;s<i.length;s++){var r=i[s];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",Ft.bind(e,r))}},qt=function(e,t){var i;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0},jt=function(e,t,i,s,r,n){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(s-t),pts:e+(r-i)},prependedContentDuration:n,baseMediaDecodeTime:e}};Tt=function(e,t){var i,s=[],r=0,n=0,a=1/0;i=(t=t||{}).firstSequenceNumber||0,Tt.prototype.init.call(this),this.push=function(t){It.collectDtsInfo(e,t),e&&Rt.forEach(function(i){e[i]=t[i]}),s.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){n=e},this.flush=function(){var o,l,u,c,h,d,p;0!==s.length?(o=xt.trimAdtsFramesByEarliestDts(s,e,r),e.baseMediaDecodeTime=It.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=xt.prefixWithSilence(e,o,n,a),e.samples=xt.generateSampleTable(o),u=Et.mdat(xt.concatenateFrameData(o)),s=[],l=Et.moof(i,[e]),c=new Uint8Array(l.byteLength+u.byteLength),i++,c.set(l),c.set(u,l.byteLength),It.clearDtsInfo(e),h=Math.ceil(1024*Nt/e.samplerate),o.length&&(d=o.length*h,this.trigger("segmentTimingInfo",jt(Dt.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+d,o[0].pts+d,p||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+d})),this.trigger("data",{track:e,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){It.clearDtsInfo(e),s=[],this.trigger("reset")}},Tt.prototype=new Ct,bt=function(e,t){var i,s,r,n=[],a=[];i=(t=t||{}).firstSequenceNumber||0,bt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){It.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||s||(s=t.config,e.sps=[t.data],Ut.forEach(function(t){e[t]=s[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),n.push(t)},this.flush=function(){for(var s,r,o,l,u,c,h,d,p=0;n.length&&"access_unit_delimiter_rbsp"!==n[0].nalUnitType;)n.shift();if(0===n.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(s=kt.groupNalsIntoFrames(n),(o=kt.groupFramesIntoGops(s))[0][0].keyFrame||((r=this.getGopForFusion_(n[0],e))?(p=r.duration,o.unshift(r),o.byteLength+=r.byteLength,o.nalCount+=r.nalCount,o.pts=r.pts,o.dts=r.dts,o.duration+=r.duration):o=kt.extendFirstKeyFrame(o)),a.length){var m;if(!(m=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),n=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");It.clearDtsInfo(e),o=m}It.collectDtsInfo(e,o),e.samples=kt.generateSampleTable(o),u=Et.mdat(kt.concatenateNalData(o)),e.baseMediaDecodeTime=It.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),h=o[0],d=o[o.length-1],this.trigger("segmentTimingInfo",jt(e.baseMediaDecodeTime,h.dts,h.pts,d.dts+d.duration,d.pts+d.duration,p)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),n=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=Et.moof(i,[e]),c=new Uint8Array(l.byteLength+u.byteLength),i++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),n=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){It.clearDtsInfo(e),s=void 0,r=void 0},this.getGopForFusion_=function(t){var i,s,r,n,a,o=1/0;for(a=0;a<this.gopCache_.length;a++)r=(n=this.gopCache_[a]).gop,e.pps&&qt(e.pps[0],n.pps[0])&&e.sps&&qt(e.sps[0],n.sps[0])&&(r.dts<e.timelineStartInfo.dts||(i=t.dts-r.dts-r.duration)>=-1e4&&i<=45e3&&(!s||o>i)&&(s=n,o=i));return s?s.gop:null},this.alignGopsAtStart_=function(e){var t,i,s,r,n,o,l,u;for(n=e.byteLength,o=e.nalCount,l=e.duration,t=i=0;t<a.length&&i<e.length&&(s=a[t],r=e[i],s.pts!==r.pts);)r.pts>s.pts?t++:(i++,n-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===i?e:i===e.length?null:((u=e.slice(i)).byteLength=n,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,i,s,r,n,o,l;for(t=a.length-1,i=e.length-1,n=null,o=!1;t>=0&&i>=0;){if(s=a[t],r=e[i],s.pts===r.pts){o=!0;break}s.pts>r.pts?t--:(t===a.length-1&&(n=i),i--)}if(!o&&null===n)return null;if(0===(l=o?i:n))return e;var u=e.slice(l),c=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){a=e}},bt.prototype=new Ct,wt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,wt.prototype.init.call(this),this.push=function(e){return e.content||e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},wt.prototype=new Ct,wt.prototype.flush=function(e){var t,i,s,r,n=0,a={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Ut.forEach(function(e){a.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,Rt.forEach(function(e){a.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,s=Et.initSegment(this.pendingTracks),a.initSegment=new Uint8Array(s.byteLength),a.initSegment.set(s),a.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)a.data.set(this.pendingBoxes[r],n),n+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=Dt.metadataTsToSeconds(t.startPts,o,this.keepOriginalTimestamps),t.endTime=Dt.metadataTsToSeconds(t.endPts,o,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(i=this.pendingMetadata[r]).cueTime=Dt.metadataTsToSeconds(i.pts,o,this.keepOriginalTimestamps),a.metadata.push(i);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),r=0;r<a.captions.length;r++)t=a.captions[r],this.trigger("caption",t);for(r=0;r<a.metadata.length;r++)i=a.metadata[r],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},wt.prototype.setRemux=function(e){this.remuxTracks=e},St=function(e){var t,i,s=this,r=!0;St.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new At.MetadataStream,r.aacStream=new Lt,r.audioTimestampRolloverStream=new At.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new At.TimestampRolloverStream("timed-metadata"),r.adtsStream=new Pt,r.coalesceStream=new wt(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",function(e){r.aacStream.setTimestamp(e.timeStamp)}),r.aacStream.on("data",function(n){"timed-metadata"!==n.type&&"audio"!==n.type||r.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:s.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Tt(i,e),r.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),s.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Bt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new At.MetadataStream,r.packetStream=new At.TransportPacketStream,r.parseStream=new At.TransportParseStream,r.elementaryStream=new At.ElementaryStream,r.timestampRolloverStream=new At.TimestampRolloverStream,r.adtsStream=new Pt,r.h264Stream=new Mt,r.captionStream=new At.CaptionStream(e),r.coalesceStream=new wt(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(n){var a;if("metadata"===n.type){for(a=n.tracks.length;a--;)t||"video"!==n.tracks[a].type?i||"audio"!==n.tracks[a].type||((i=n.tracks[a]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime):(t=n.tracks[a]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new bt(t,e),r.videoSegmentStream.on("log",s.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-s.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",s.trigger.bind(s,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",s.trigger.bind(s,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Tt(i,e),r.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),s.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(e){e.dispatchType=r.metadataStream.dispatchType,s.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Bt(this,r)},this.setBaseMediaDecodeTime=function(s){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=s),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,It.clearDtsInfo(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,It.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var i=this.transmuxPipeline_;e.remux=t,i&&i.coalesceStream&&i.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(i){i.stream=e,t.trigger("log",i)}},this.push=function(e){if(r){var t=Ot(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},St.prototype=new Ct;var $t,Ht,Vt,zt,Wt,Gt,Xt,Zt={Transmuxer:St},Qt=function(e){return e>>>0},Kt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),(t+=String.fromCharCode(e[2]))+String.fromCharCode(e[3])},Yt=Qt,Jt=Kt,ei=function(e,t){var i,s,r,n,a,o=[];if(!t.length)return null;for(i=0;i<e.byteLength;)s=Yt(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]),r=Jt(e.subarray(i+4,i+8)),n=s>1?i+s:e.byteLength,r===t[0]&&(1===t.length?o.push(e.subarray(i+8,n)):(a=ei(e.subarray(i+8,n),t.slice(1))).length&&(o=o.concat(a))),i=n;return o},ti=ei,ii=Qt,si=V.getUint64,ri=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=si(e.subarray(4)):t.baseMediaDecodeTime=ii(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},ni=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),s={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&s.flags[2],n=2&s.flags[2],a=8&s.flags[2],o=16&s.flags[2],l=32&s.flags[2],u=65536&s.flags[0],c=131072&s.flags[0];return t=8,r&&(t+=4,s.baseDataOffset=i.getUint32(12),t+=4),n&&(s.sampleDescriptionIndex=i.getUint32(t),t+=4),a&&(s.defaultSampleDuration=i.getUint32(t),t+=4),o&&(s.defaultSampleSize=i.getUint32(t),t+=4),l&&(s.defaultSampleFlags=i.getUint32(t)),u&&(s.durationIsEmpty=!0),!r&&c&&(s.baseDataOffsetIsMoof=!0),s},ai=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},oi=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},s=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],n=4&i.flags[2],a=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],c=s.getUint32(4),h=8;for(r&&(i.dataOffset=s.getInt32(h),h+=4),n&&c&&(t={flags:ai(e.subarray(h,h+4))},h+=4,a&&(t.duration=s.getUint32(h),h+=4),o&&(t.size=s.getUint32(h),h+=4),u&&(1===i.version?t.compositionTimeOffset=s.getInt32(h):t.compositionTimeOffset=s.getUint32(h),h+=4),i.samples.push(t),c--);c--;)t={},a&&(t.duration=s.getUint32(h),h+=4),o&&(t.size=s.getUint32(h),h+=4),l&&(t.flags=ai(e.subarray(h,h+4)),h+=4),u&&(1===i.version?t.compositionTimeOffset=s.getInt32(h):t.compositionTimeOffset=s.getUint32(h),h+=4),i.samples.push(t);return i},li={tfdt:ri,trun:oi},ui={parseTfdt:li.tfdt,parseTrun:li.trun},ci=function(e){for(var t=0,i=String.fromCharCode(e[t]),s="";"\0"!==i;)s+=i,t++,i=String.fromCharCode(e[t]);return s+i},hi=V.getUint64,di=function(e){return void 0!==e||null!==e},pi={parseEmsgBox:function(e){var t,i,s,r,n,a,o,l=4,u=e[0];if(0===u)l+=(t=ci(e.subarray(l))).length,l+=(i=ci(e.subarray(l))).length,s=(c=new DataView(e.buffer)).getUint32(l),l+=4,n=c.getUint32(l),l+=4,a=c.getUint32(l),l+=4,o=c.getUint32(l),l+=4;else if(1===u){var c;s=(c=new DataView(e.buffer)).getUint32(l),l+=4,r=hi(e.subarray(l)),l+=8,a=c.getUint32(l),l+=4,o=c.getUint32(l),l+=4,l+=(t=ci(e.subarray(l))).length,l+=(i=ci(e.subarray(l))).length}var h={scheme_id_uri:t,value:i,timescale:s||1,presentation_time:r,presentation_time_delta:n,event_duration:a,id:o,message_data:new Uint8Array(e.subarray(l,e.byteLength))};return function(e,t){var i="\0"!==t.scheme_id_uri,s=0===e&&di(t.presentation_time_delta)&&i,r=1===e&&di(t.presentation_time)&&i;return!(e>1)&&s||r}(u,h)?h:void 0},scaleTime:function(e,t,i,s){return e||0===e?e/t:s+i/t}},mi="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},gi=Qt,fi=function(e){return("00"+e.toString(16)).slice(-2)},yi=ti,_i=Kt,vi=pi,bi=ni,Ti=oi,Si=ri,wi=V.getUint64,Ci=mi,Ei=qe.parseId3Frames;$t=function(e){return yi(e,["moov","trak"]).reduce(function(e,t){var i,s,r,n,a;return(i=yi(t,["tkhd"])[0])?(s=i[0],n=gi(i[r=0===s?12:20]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3]),(a=yi(t,["mdia","mdhd"])[0])?(r=0===(s=a[0])?12:20,e[n]=gi(a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3]),e):null):null},{})},Ht=function(e,t){var i=yi(t,["moof","traf"]).reduce(function(t,i){var s,r=yi(i,["tfhd"])[0],n=gi(r[4]<<24|r[5]<<16|r[6]<<8|r[7]),a=e[n]||9e4,o=yi(i,["tfdt"])[0],l=new DataView(o.buffer,o.byteOffset,o.byteLength);let u;return"bigint"==typeof(s=1===o[0]?wi(o.subarray(4,12)):l.getUint32(4))?u=s/Ci.BigInt(a):"number"!=typeof s||isNaN(s)||(u=s/a),u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),u<t&&(t=u),t},1/0);return"bigint"==typeof i||isFinite(i)?i:0},Vt=function(e,t){var i,s=yi(t,["moof","traf"]),r=0,n=0;if(s&&s.length){var a=yi(s[0],["tfhd"])[0],o=yi(s[0],["trun"])[0],l=yi(s[0],["tfdt"])[0];if(a&&(i=bi(a).trackId),l&&(r=Si(l).baseMediaDecodeTime),o){var u=Ti(o);u.samples&&u.samples.length&&(n=u.samples[0].compositionTimeOffset||0)}}var c=e[i]||9e4;"bigint"==typeof r&&(n=Ci.BigInt(n),c=Ci.BigInt(c));var h=(r+n)/c;return"bigint"==typeof h&&h<Number.MAX_SAFE_INTEGER&&(h=Number(h)),h},zt=function(e){var t=yi(e,["moov","trak"]),i=[];return t.forEach(function(e){var t=yi(e,["mdia","hdlr"]),s=yi(e,["tkhd"]);t.forEach(function(e,t){var r,n,a=_i(e.subarray(8,12)),o=s[t];"vide"===a&&(n=0===(r=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0)?r.getUint32(12):r.getUint32(20),i.push(n))})}),i},Gt=function(e){var t=0===e[0]?12:20;return gi(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Wt=function(e){var t=yi(e,["moov","trak"]),i=[];return t.forEach(function(e){var t,s,r={},n=yi(e,["tkhd"])[0];n&&(s=(t=new DataView(n.buffer,n.byteOffset,n.byteLength)).getUint8(0),r.id=0===s?t.getUint32(12):t.getUint32(20));var a=yi(e,["mdia","hdlr"])[0];if(a){var o=_i(a.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=yi(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=_i(u.subarray(4,8));var c,h=yi(u,[r.codec])[0];h&&(/^[asm]vc[1-9]$/i.test(r.codec)?(c=h.subarray(78),"avcC"===_i(c.subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=fi(c[9]),r.codec+=fi(c[10]),r.codec+=fi(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=h.subarray(28),"esds"===_i(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+fi(c[19]),r.codec+="."+fi(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var d=yi(e,["mdia","mdhd"])[0];d&&(r.timescale=Gt(d)),i.push(r)}),i},Xt=function(e,t=0){return yi(e,["emsg"]).map(e=>{var i=vi.parseEmsgBox(new Uint8Array(e)),s=Ei(i.message_data);return{cueTime:vi.scaleTime(i.presentation_time,i.timescale,i.presentation_time_delta,t),duration:vi.scaleTime(i.event_duration,i.timescale),frames:s}})};var ki={findBox:yi,parseType:_i,timescale:$t,startTime:Ht,compositionStartTime:Vt,videoTrackIds:zt,tracks:Wt,getTimescaleFromMediaHeader:Gt,getEmsgID3:Xt};const{parseTrun:xi}=ui,{findBox:Ii}=ki;var Ai=mi,Di={getMdatTrafPairs:function(e){var t=Ii(e,["moof","traf"]),i=Ii(e,["mdat"]),s=[];return i.forEach(function(e,i){var r=t[i];s.push({mdat:e,traf:r})}),s},parseSamples:function(e,t,i){var s=t,r=i.defaultSampleDuration||0,n=i.defaultSampleSize||0,a=i.trackId,o=[];return e.forEach(function(e){var t=xi(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=n),e.trackId=a,e.dts=s,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof s?(e.pts=s+Ai.BigInt(e.compositionTimeOffset),s+=Ai.BigInt(e.duration)):(e.pts=s+e.compositionTimeOffset,s+=e.duration)}),o=o.concat(t)}),o}},Pi=de.discardEmulationPreventionBytes,Mi=ke.CaptionStream,Li=ti,Oi=ri,Ni=ni,{getMdatTrafPairs:Ri,parseSamples:Ui}=Di,Fi=function(e,t){for(var i=e,s=0;s<t.length;s++){var r=t[s];if(i<r.size)return r;i-=r.size}return null},Bi=function(){var e,t,i,s,r,n,a=!1;this.isInitialized=function(){return a},this.init=function(t){e=new Mi,a=!0,n=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/s,e.endTime=e.endPts/s,r.captions.push(e),r.captionStreams[e.stream]=!0}),e.on("log",function(e){r.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||i===e[0]&&s===t[i])},this.parse=function(e,n,a){var o;if(!this.isInitialized())return null;if(!n||!a)return null;if(this.isNewInit(n,a))i=n[0],s=a[i];else if(null===i||!s)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,n,a)}return(o=function(e,t,i){if(null===t)return null;var s=function(e,t){var i={};return Ri(e).forEach(function(e){var s,r=e.mdat,n=e.traf,a=Li(n,["tfhd"]),o=Ni(a[0]),l=o.trackId,u=Li(n,["tfdt"]),c=u.length>0?Oi(u[0]).baseMediaDecodeTime:0,h=Li(n,["trun"]);t===l&&h.length>0&&(s=function(e,t,i){var s,r,n,a,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=n)if(n=o.getUint32(r),r+=4,!(n<=0))switch(31&e[r]){case 6:var u=e.subarray(r+1,r+1+n),c=Fi(r,t);if(s={nalUnitType:"sei_rbsp",size:n,data:u,escapedRBSP:Pi(u),trackId:i},c)s.pts=c.pts,s.dts=c.dts,a=c;else{if(!a){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+i+". See mux.js#223."});break}s.pts=a.pts,s.dts=a.dts}l.seiNals.push(s)}return l}(r,Ui(h,c,o),l),i[l]||(i[l]={seiNals:[],logs:[]}),i[l].seiNals=i[l].seiNals.concat(s.seiNals),i[l].logs=i[l].logs.concat(s.logs))}),i}(e,t)[t]||{};return{seiNals:s.seiNals,logs:s.logs,timescale:i}}(e,i,s))&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;n?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=null,s=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()};const{parseTfdt:qi}=ui,ji=ti,{getTimescaleFromMediaHeader:$i}=ki,{parseSamples:Hi,getMdatTrafPairs:Vi}=Di;var zi=function(){let e=9e4;this.init=function(t){const i=ji(t,["moov","trak","mdia","mdhd"])[0];i&&(e=$i(i))},this.parseSegment=function(t){const i=[],s=Vi(t);let r=0;return s.forEach(function(t){const s=t.mdat,n=t.traf,a=ji(n,["tfdt"])[0],o=ji(n,["tfhd"])[0],l=ji(n,["trun"]);if(a){const e=qi(a);r=e.baseMediaDecodeTime}if(l.length&&o){const t=Hi(l,r,o);let n=0;t.forEach(function(t){const r=new TextDecoder("utf-8"),a=s.slice(n,n+t.size);ji(a,["vtte"])[0]||ji(a,["vttc"]).forEach(function(s){const n=ji(s,["payl"])[0],a=ji(s,["sttg"])[0],o=t.pts/e,l=(t.pts+t.duration)/e;let u,c;if(n)try{u=r.decode(n)}catch(e){console.error(e)}if(a)try{c=r.decode(a)}catch(e){console.error(e)}t.duration&&u&&i.push({cueText:u,start:o,end:l,settings:c})}),n+=t.size})}}),i}},Wi=xe,Gi=function(e){var t=31&e[1];return(t<<=8)|e[2]},Xi=function(e){return!!(64&e[1])},Zi=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Qi=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Ki={parseType:function(e,t){var i=Gi(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=Xi(e),i=4+Zi(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=Xi(e),s=4+Zi(e);if(i&&(s+=e[s]+1),1&e[s+5]){var r;r=3+((15&e[s+1])<<8|e[s+2])-4;for(var n=12+((15&e[s+10])<<8|e[s+11]);n<r;){var a=s+n;t[(31&e[a+1])<<8|e[a+2]]=e[a],n+=5+((15&e[a+3])<<8|e[a+4])}return t}},parsePayloadUnitStartIndicator:Xi,parsePesType:function(e,t){switch(t[Gi(e)]){case Wi.H264_STREAM_TYPE:return"video";case Wi.ADTS_STREAM_TYPE:return"audio";case Wi.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!Xi(e))return null;var t=4+Zi(e);if(t>=e.byteLength)return null;var i,s=null;return 192&(i=e[t+7])&&((s={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,s.pts*=4,s.pts+=(6&e[t+13])>>>1,s.dts=s.pts,64&i&&(s.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,s.dts*=4,s.dts+=(6&e[t+18])>>>1)),s},videoPacketContainsKeyFrame:function(e){for(var t=4+Zi(e),i=e.subarray(t),s=0,r=0,n=!1;r<i.byteLength-3;r++)if(1===i[r+2]){s=r+5;break}for(;s<i.byteLength;)switch(i[s]){case 0:if(0!==i[s-1]){s+=2;break}if(0!==i[s-2]){s++;break}r+3!==s-2&&"slice_layer_without_partitioning_rbsp_idr"===Qi(31&i[r+3])&&(n=!0);do{s++}while(1!==i[s]&&s<i.length);r=s-2,s+=3;break;case 1:if(0!==i[s-1]||0!==i[s-2]){s+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Qi(31&i[r+3])&&(n=!0),r=s-2,s+=3;break;default:s+=3}return i=i.subarray(r),s-=r,r=0,i&&i.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Qi(31&i[r+3])&&(n=!0),n}},Yi=xe,Ji=Le.handleRollover,es={};es.ts=Ki,es.aac=_t;var ts=oe.ONE_SECOND_IN_TS,is=188,ss=71,rs=function(e,t,i){for(var s,r,n,a,o=0,l=is,u=!1;l<=e.byteLength;)if(e[o]!==ss||e[l]!==ss&&l!==e.byteLength)o++,l++;else{if(s=e.subarray(o,l),"pes"===es.ts.parseType(s,t.pid)&&(r=es.ts.parsePesType(s,t.table),n=es.ts.parsePayloadUnitStartIndicator(s),"audio"===r&&n&&(a=es.ts.parsePesTime(s))&&(a.type="audio",i.audio.push(a),u=!0)),u)break;o+=is,l+=is}for(o=(l=e.byteLength)-is,u=!1;o>=0;)if(e[o]!==ss||e[l]!==ss&&l!==e.byteLength)o--,l--;else{if(s=e.subarray(o,l),"pes"===es.ts.parseType(s,t.pid)&&(r=es.ts.parsePesType(s,t.table),n=es.ts.parsePayloadUnitStartIndicator(s),"audio"===r&&n&&(a=es.ts.parsePesTime(s))&&(a.type="audio",i.audio.push(a),u=!0)),u)break;o-=is,l-=is}},ns=function(e,t,i){for(var s,r,n,a,o,l,u,c=0,h=is,d=!1,p={data:[],size:0};h<e.byteLength;)if(e[c]!==ss||e[h]!==ss)c++,h++;else{if(s=e.subarray(c,h),"pes"===es.ts.parseType(s,t.pid)&&(r=es.ts.parsePesType(s,t.table),n=es.ts.parsePayloadUnitStartIndicator(s),"video"===r&&(n&&!d&&(a=es.ts.parsePesTime(s))&&(a.type="video",i.video.push(a),d=!0),!i.firstKeyFrame))){if(n&&0!==p.size){for(o=new Uint8Array(p.size),l=0;p.data.length;)u=p.data.shift(),o.set(u,l),l+=u.byteLength;if(es.ts.videoPacketContainsKeyFrame(o)){var m=es.ts.parsePesTime(o);m?(i.firstKeyFrame=m,i.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(s),p.size+=s.byteLength}if(d&&i.firstKeyFrame)break;c+=is,h+=is}for(c=(h=e.byteLength)-is,d=!1;c>=0;)if(e[c]!==ss||e[h]!==ss)c--,h--;else{if(s=e.subarray(c,h),"pes"===es.ts.parseType(s,t.pid)&&(r=es.ts.parsePesType(s,t.table),n=es.ts.parsePayloadUnitStartIndicator(s),"video"===r&&n&&(a=es.ts.parsePesTime(s))&&(a.type="video",i.video.push(a),d=!0)),d)break;c-=is,h-=is}},as=function(e,t){var i;return(i=es.aac.isLikelyAacData(e)?function(e){for(var t,i=!1,s=0,r=null,n=null,a=0,o=0;e.length-o>=3;){switch(es.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){i=!0;break}if((a=es.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===n&&(t=e.subarray(o,o+a),n=es.aac.parseAacTimestamp(t)),o+=a;break;case"audio":if(e.length-o<7){i=!0;break}if((a=es.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+a),r=es.aac.parseSampleRate(t)),s++,o+=a;break;default:o++}if(i)return null}if(null===r||null===n)return null;var l=ts/r;return{audio:[{type:"audio",dts:n,pts:n},{type:"audio",dts:n+1024*s*l,pts:n+1024*s*l}]}}(e):function(e){var t={pid:null,table:null},i={};for(var s in function(e,t){for(var i,s=0,r=is;r<e.byteLength;)if(e[s]!==ss||e[r]!==ss)s++,r++;else{switch(i=e.subarray(s,r),es.ts.parseType(i,t.pid)){case"pat":t.pid=es.ts.parsePat(i);break;case"pmt":var n=es.ts.parsePmt(i);t.table=t.table||{},Object.keys(n).forEach(function(e){t.table[e]=n[e]})}s+=is,r+=is}}(e,t),t.table)if(t.table.hasOwnProperty(s))switch(t.table[s]){case Yi.H264_STREAM_TYPE:i.video=[],ns(e,t,i),0===i.video.length&&delete i.video;break;case Yi.ADTS_STREAM_TYPE:i.audio=[],rs(e,t,i),0===i.audio.length&&delete i.audio}return i}(e))&&(i.audio||i.video)?(function(e,t){if(e.audio&&e.audio.length){var i=t;(void 0===i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach(function(e){e.dts=Ji(e.dts,i),e.pts=Ji(e.pts,i),e.dtsTime=e.dts/ts,e.ptsTime=e.pts/ts})}if(e.video&&e.video.length){var s=t;if((void 0===s||isNaN(s))&&(s=e.video[0].dts),e.video.forEach(function(e){e.dts=Ji(e.dts,s),e.pts=Ji(e.pts,s),e.dtsTime=e.dts/ts,e.ptsTime=e.pts/ts}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=Ji(r.dts,s),r.pts=Ji(r.pts,s),r.dtsTime=r.dts/ts,r.ptsTime=r.pts/ts}}}(i,t),i):null};class os{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Zt.Transmuxer(this.options),function(e,t){t.on("data",function(t){const i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};const s=t.data;t.data=s.buffer,e.postMessage({action:"data",segment:t,byteOffset:s.byteOffset,byteLength:s.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){const i={start:{decode:oe.videoTsToSeconds(t.start.dts),presentation:oe.videoTsToSeconds(t.start.pts)},end:{decode:oe.videoTsToSeconds(t.end.dts),presentation:oe.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:oe.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=oe.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})}),t.on("audioSegmentTimingInfo",function(t){const i={start:{decode:oe.videoTsToSeconds(t.start.dts),presentation:oe.videoTsToSeconds(t.start.pts)},end:{decode:oe.videoTsToSeconds(t.end.dts),presentation:oe.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:oe.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=oe.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:oe.videoTsToSeconds(t.start),end:oe.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:oe.videoTsToSeconds(t.start),end:oe.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})}(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new Bi,this.captionParser.init());const t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],logs:i&&i.logs||[],data:t.buffer},[t.buffer])}initMp4WebVttParser(e){this.webVttParser||(this.webVttParser=new zi);const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.webVttParser.init(t)}getMp4WebVttText(e){this.webVttParser||(this.webVttParser=new zi);const t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.webVttParser.parseSegment(t);this.self.postMessage({action:"getMp4WebVttText",mp4VttCues:i||[],data:t.buffer},[t.buffer])}probeMp4StartTime({timescales:e,data:t}){const i=ki.startTime(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:t},[t.buffer])}probeMp4Tracks({data:e}){const t=ki.tracks(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){const i=ki.getEmsgID3(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:i,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){const i="number"!=typeof t||isNaN(t)?void 0:t*oe.ONE_SECOND_IN_TS,s=as(e,i);let r=null;s&&(r={hasVideo:s.video&&2===s.video.length||!1,hasAudio:s.audio&&2===s.audio.length||!1},r.hasVideo&&(r.videoStart=s.video[0].ptsTime),r.hasAudio&&(r.audioStart=s.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:r,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){const t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(oe.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(oe.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new os(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new os(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}));var Pc=xc(Dc);const Mc=e=>{const{transmuxer:t,bytes:i,audioAppendStart:s,gopsToAlignWith:r,remux:n,onData:a,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:u,onVideoSegmentTimingInfo:c,onAudioSegmentTimingInfo:h,onId3:d,onCaptions:p,onDone:m,onEndedTimeline:g,onTransmuxerLog:f,isEndOfTimeline:y,segment:_,triggerSegmentEventFn:v}=e,b={buffer:[]};let T=y;if(t.onmessage=i=>{t.currentTransmux===e&&("data"===i.data.action&&((e,t,i)=>{const{type:s,initSegment:r,captions:n,captionStreams:a,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:u}=e.data.segment;t.buffer.push({captions:n,captionStreams:a,metadata:o});const c=e.data.segment.boxes||{data:e.data.segment.data},h={type:s,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};void 0!==l&&(h.videoFrameDtsTime=l),void 0!==u&&(h.videoFramePtsTime=u),i(h)})(i,b,a),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&((e,t)=>{t.gopInfo=e.data.gopInfo})(i,b),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&u(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&c(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&h(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&d([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&p(i.data.caption),"endedtimeline"===i.data.action&&(T=!1,g()),"log"===i.data.action&&f(i.data.log),"transmuxed"===i.data.type&&(T||(t.onmessage=null,(({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)})({transmuxedData:b,callback:m}),Lc(t))))},t.onerror=()=>{const e={message:"Received an error message from the transmuxer worker",metadata:{errorType:eu.Error.StreamingFailedToTransmuxSegment,segmentInfo:dh({segment:_})}};m(null,e)},s&&t.postMessage({action:"setAudioAppendStart",appendStart:s}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==n&&t.postMessage({action:"setRemux",remux:n}),i.byteLength){const e=i instanceof ArrayBuffer?i:i.buffer,s=i instanceof ArrayBuffer?0:i.byteOffset;v({type:"segmenttransmuxingstart",segment:_}),t.postMessage({action:"push",data:e,byteOffset:s,byteLength:i.byteLength},[e])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Lc=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():Mc(e.currentTransmux))},Oc=(e,t)=>{e.postMessage({action:t}),Lc(e)};var Nc=e=>{((e,t)=>{if(!t.currentTransmux)return t.currentTransmux=e,void Oc(t,e);t.transmuxQueue.push(Oc.bind(null,t,e))})("reset",e)};const Rc=function(e){const t=e.transmuxer,i=e.endAction||e.action,s=e.callback,r=Et({},e,{endAction:null,transmuxer:null,callback:null}),n=r=>{r.data.action===i&&(t.removeEventListener("message",n),r.data.data&&(r.data.data=new Uint8Array(r.data.data,e.byteOffset||0,e.byteLength||r.data.data.byteLength),e.data&&(e.data=r.data.data)),s(r.data))};if(t.addEventListener("message",n),e.data){const i=e.data instanceof ArrayBuffer;r.byteOffset=i?0:e.data.byteOffset,r.byteLength=e.data.byteLength;const s=[i?e.data:e.data.buffer];t.postMessage(r,s)}else t.postMessage(r)},Uc=-101,Fc=-102,Bc="wvtt",qc=e=>{e.forEach(e=>{e.abort()})},jc=(e,t)=>{const{requestType:i}=t,s=Vu({requestType:i,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Uc,xhr:t,metadata:s}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Fc,xhr:t,metadata:s}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:2,xhr:t,metadata:s}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:2,xhr:t,metadata:s}:null},$c=(e,t,i,s)=>(r,n)=>{const a=n.response,o=jc(r,n);if(o)return i(o,e);if(16!==a.byteLength)return i({status:n.status,message:"Invalid HLS key at URL: "+n.uri,code:2,xhr:n},e);const l=new DataView(a),u=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=u;const c={uri:n.uri};return s({type:"segmentkeyloadcomplete",segment:e,keyInfo:c}),i(null,e)},Hc=(e,t)=>{const i=Bs(e.map.bytes);if("mp4"!==i){const s=e.map.resolvedUri||e.map.uri,r=i||"unknown";return t({internal:!0,message:`Found unsupported ${r} container for initialization segment at URL: ${s}`,code:2,metadata:{mediaType:r}})}Rc({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:i,data:s})=>(e.map.bytes=s,i.forEach(function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale),"text"===t.type&&((e,t)=>{t===Bc&&e.transmuxer.postMessage({action:"initMp4WebVttParser",data:e.map.bytes})})(e,t.codec))}),t(null))})},Vc=({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{let m=new Uint8Array(t);if(function(e){return Ts(e,["moof"]).length>0}(m)){e.isFmp4=!0;const{tracks:r}=e.map;if(r.text&&(!r.audio||!r.video))return c(e,{data:m,type:"text"}),void((e,t,i)=>{t===Bc&&Rc({action:"getMp4WebVttText",data:e.bytes,transmuxer:e.transmuxer,callback:({data:t,mp4VttCues:s})=>{e.bytes=t,i(null,e,{mp4VttCues:s})}})})(e,r.text.codec,h);const n={isFmp4:!0,hasVideo:!!r.video,hasAudio:!!r.audio};r.audio&&r.audio.codec&&"enca"!==r.audio.codec&&(n.audioCodec=r.audio.codec),r.video&&r.video.codec&&"encv"!==r.video.codec&&(n.videoCodec=r.video.codec),r.video&&r.audio&&(n.isMuxed=!0),i(e,n);const l=(t,i)=>{c(e,{data:m,type:n.hasAudio&&!n.isMuxed?"audio":"video"}),i&&i.length&&a(e,i),t&&t.length&&o(e,t),h(null,e,{})};return void Rc({action:"probeMp4StartTime",timescales:e.map.timescales,data:m,transmuxer:e.transmuxer,callback:({data:i,startTime:a})=>{t=i.buffer,e.bytes=m=i,n.hasAudio&&!n.isMuxed&&s(e,"audio","start",a),n.hasVideo&&s(e,"video","start",a),Rc({action:"probeEmsgID3",data:m,transmuxer:e.transmuxer,offset:a,callback:({emsgData:i,id3Frames:s})=>{t=i.buffer,e.bytes=m=i,r.video&&i.byteLength&&e.transmuxer?Rc({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:m,timescales:e.map.timescales,trackIds:[r.video.id],callback:i=>{t=i.data.buffer,e.bytes=m=i.data,i.logs.forEach(function(e){d(lu(e,{stream:"mp4CaptionParser"}))}),l(i.captions,s)}}):l(void 0,s)}})}})}if(e.transmuxer){if(void 0===e.container&&(e.container=Bs(m)),"ts"!==e.container&&"aac"!==e.container)return i(e,{hasAudio:!1,hasVideo:!1}),void h(null,e,{});(({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{const m=e.map&&e.map.tracks||{},g=Boolean(m.audio&&m.video);let f=s.bind(null,e,"audio","start");const y=s.bind(null,e,"audio","end");let _=s.bind(null,e,"video","start");const v=s.bind(null,e,"video","end"),b=()=>(e=>{if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Mc(e);e.transmuxer.transmuxQueue.push(e)})({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:g,onData:t=>{t.type="combined"===t.type?"video":t.type,c(e,t)},onTrackInfo:t=>{i&&(g&&(t.isMuxed=!0),i(e,t))},onAudioTimingInfo:e=>{f&&void 0!==e.start&&(f(e.start),f=null),y&&void 0!==e.end&&y(e.end)},onVideoTimingInfo:e=>{_&&void 0!==e.start&&(_(e.start),_=null),v&&void 0!==e.end&&v(e.end)},onVideoSegmentTimingInfo:t=>{const i={pts:{start:t.start.presentation,end:t.end.presentation},dts:{start:t.start.decode,end:t.end.decode}};p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:i}),r(t)},onAudioSegmentTimingInfo:t=>{const i={pts:{start:t.start.pts,end:t.end.pts},dts:{start:t.start.dts,end:t.end.dts}};p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:i}),n(t)},onId3:(t,i)=>{a(e,t,i)},onCaptions:t=>{o(e,[t])},isEndOfTimeline:l,onEndedTimeline:()=>{u()},onTransmuxerLog:d,onDone:(t,i)=>{h&&(t.type="combined"===t.type?"video":t.type,p({type:"segmenttransmuxingcomplete",segment:e}),h(i,e,t))},segment:e,triggerSegmentEventFn:p});Rc({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:s=>{e.bytes=t=s.data;const r=s.result;r&&(i(e,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:g}),i=null),b()}})})({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})}else h(null,e,{})},zc=function({id:e,key:t,encryptedBytes:i,decryptionWorker:s,segment:r,doneFn:n},a){const o=t=>{if(t.data.source===e){s.removeEventListener("message",o);const e=t.data.decrypted;a(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};let l;s.onerror=()=>{const e="An error occurred in the decryption worker",t=dh({segment:r}),i={message:e,metadata:{error:new Error(e),errorType:eu.Error.StreamingFailedToDecryptSegment,segmentInfo:t,keyInfo:{uri:r.key.resolvedUri||r.map.key.resolvedUri}}};n(i,r)},s.addEventListener("message",o),l=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),s.postMessage(dc({source:e,encrypted:i,key:l,iv:t.iv}),[i.buffer,l.buffer])},Wc=({xhr:e,xhrOptions:t,decryptionWorker:i,segment:s,abortFn:r,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:p,dataFn:m,doneFn:g,onTransmuxerLog:f,triggerSegmentEventFn:y})=>{const _=[],v=(({activeXhrs:e,decryptionWorker:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{let m=0,g=!1;return(f,y)=>{if(!g){if(f)return g=!0,qc(e),h(f,y);if(m+=1,m===e.length){const m=function(){if(y.encryptedBytes)return(({decryptionWorker:e,segment:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{p({type:"segmentdecryptionstart"}),zc({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:h},e=>{t.bytes=e,p({type:"segmentdecryptioncomplete",segment:t}),Vc({segment:t,bytes:t.bytes,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})})})({decryptionWorker:t,segment:y,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p});Vc({segment:y,bytes:y.bytes,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})};if(y.endOfAllRequests=Date.now(),y.map&&y.map.encryptedBytes&&!y.map.bytes)return p({type:"segmentdecryptionstart",segment:y}),zc({decryptionWorker:t,id:y.requestId+"-init",encryptedBytes:y.map.encryptedBytes,key:y.map.key,segment:y,doneFn:h},t=>{y.map.bytes=t,p({type:"segmentdecryptioncomplete",segment:y}),Hc(y,t=>{if(t)return qc(e),h(t,y);m()})});m()}}}})({activeXhrs:_,decryptionWorker:i,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:p,dataFn:m,doneFn:g,onTransmuxerLog:f,triggerSegmentEventFn:y});if(s.key&&!s.key.bytes){const i=[s.key];s.map&&!s.map.bytes&&s.map.key&&s.map.key.resolvedUri===s.key.resolvedUri&&i.push(s.map.key);const r=lu(t,{uri:s.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),n=$c(s,i,v,y);y({type:"segmentkeyloadstart",segment:s,keyInfo:{uri:s.key.resolvedUri}});const a=e(r,n);_.push(a)}if(s.map&&!s.map.bytes){if(s.map.key&&(!s.key||s.key.resolvedUri!==s.map.key.resolvedUri)){const i=lu(t,{uri:s.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),r=$c(s,[s.map.key],v,y);y({type:"segmentkeyloadstart",segment:s,keyInfo:{uri:s.map.key.resolvedUri}});const n=e(i,r);_.push(n)}const i=lu(t,{uri:s.map.resolvedUri,responseType:"arraybuffer",headers:lc(s.map),requestType:"segment-media-initialization"}),r=(({segment:e,finishProcessingFn:t,triggerSegmentEventFn:i})=>(s,r)=>{const n=jc(s,r);if(n)return t(n,e);const a=new Uint8Array(r.response);if(i({type:"segmentloaded",segment:e}),e.map.key)return e.map.encryptedBytes=a,t(null,e);e.map.bytes=a,Hc(e,function(i){if(i)return i.xhr=r,i.status=r.status,t(i,e);t(null,e)})})({segment:s,finishProcessingFn:v,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:s});const n=e(i,r);_.push(n)}const b=lu(t,{uri:s.part&&s.part.resolvedUri||s.resolvedUri,responseType:"arraybuffer",headers:lc(s),requestType:"segment"}),T=(({segment:e,finishProcessingFn:t,responseType:i,triggerSegmentEventFn:s})=>(r,n)=>{const a=jc(r,n);if(a)return t(a,e);s({type:"segmentloaded",segment:e});const o="arraybuffer"!==i&&n.responseText?(e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer})(n.responseText.substring(e.lastReachedChar||0)):n.response;return e.stats=(e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}))(n),e.key?e.encryptedBytes=new Uint8Array(o):e.bytes=new Uint8Array(o),t(null,e)})({segment:s,finishProcessingFn:v,responseType:b.responseType,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:s});const S=e(b,T);S.addEventListener("progress",(({segment:e,progressFn:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c})=>i=>{if(!i.target.aborted)return e.stats=lu(e.stats,(e=>{const t=e.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i})(i)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(i,e)})({segment:s,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:p,dataFn:m})),_.push(S);const w={};return _.forEach(e=>{e.addEventListener("loadend",(({loadendState:e,abortFn:t})=>i=>{i.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)})({loadendState:w,abortFn:r}))}),()=>qc(_)},Gc=ou("PlaylistSelector"),Xc=function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},Zc=function(e,t){if(!e)return"";const i=be.getComputedStyle(e);return i?i[t]:""},Qc=function(e,t){const i=e.slice();e.sort(function(e,s){const r=t(e,s);return 0===r?i.indexOf(e)-i.indexOf(s):r})},Kc=function(e,t){let i,s;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||be.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||be.Number.MAX_VALUE,i-s};let Yc=function(e){const{main:t,bandwidth:i,playerWidth:s,playerHeight:r,playerObjectFit:n,limitRenditionByPlayerDimensions:a,playlistController:o}=e;if(!t)return;const l={bandwidth:i,width:s,height:r,limitRenditionByPlayerDimensions:a};let u=t.playlists;Ru.isAudioOnly(t)&&(u=o.getAudioTrackPlaylists_(),l.audioOnly=!0);let c=u.map(e=>{let t;const i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,s=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||be.Number.MAX_VALUE,{bandwidth:t,width:i,height:s,playlist:e}});Qc(c,(e,t)=>e.bandwidth-t.bandwidth),c=c.filter(e=>!Ru.isIncompatible(e.playlist));let h=c.filter(e=>Ru.isEnabled(e.playlist));h.length||(h=c.filter(e=>!Ru.isDisabled(e.playlist)));const d=h.filter(e=>e.bandwidth*Ec.BANDWIDTH_VARIANCE<i);let p=d[d.length-1];const m=d.filter(e=>e.bandwidth===p.bandwidth)[0];if(!1===a){const e=m||h[0]||c[0];if(e&&e.playlist){let t="sortedPlaylistReps";return m&&(t="bandwidthBestRep"),h[0]&&(t="enabledPlaylistReps"),Gc(`choosing ${Xc(e)} using ${t} with options`,l),e.playlist}return Gc("could not choose a playlist with options",l),null}const g=d.filter(e=>e.width&&e.height);Qc(g,(e,t)=>e.width-t.width);const f=g.filter(e=>e.width===s&&e.height===r);p=f[f.length-1];const y=f.filter(e=>e.bandwidth===p.bandwidth)[0];let _,v,b,T;if(y||(_=g.filter(e=>"cover"===n?e.width>s&&e.height>r:e.width>s||e.height>r),v=_.filter(e=>e.width===_[0].width&&e.height===_[0].height),p=v[v.length-1],b=v.filter(e=>e.bandwidth===p.bandwidth)[0]),o.leastPixelDiffSelector){const e=g.map(e=>(e.pixelDiff=Math.abs(e.width-s)+Math.abs(e.height-r),e));Qc(e,(e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff),T=e[0]}const S=T||b||y||m||h[0]||c[0];if(S&&S.playlist){let e="sortedPlaylistReps";return T?e="leastPixelDiffRep":b?e="resolutionPlusOneRep":y?e="resolutionBestRep":m?e="bandwidthBestRep":h[0]&&(e="enabledPlaylistReps"),Gc(`choosing ${Xc(S)} using ${e} with options`,l),S.playlist}return Gc("could not choose a playlist with options",l),null};const Jc=function(){let e=this.useDevicePixelRatio&&be.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),Yc({main:this.playlists.main,bandwidth:this.systemBandwidth,playerWidth:parseInt(Zc(this.tech_.el(),"width"),10)*e,playerHeight:parseInt(Zc(this.tech_.el(),"height"),10)*e,playerObjectFit:this.usePlayerObjectFit?Zc(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})};function eh(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch(e){return""}}const th={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},ih=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),sh=(e,t,i)=>{e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,eu.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},rh=function(e,t,i){let s,r;if(i&&i.cues)for(s=i.cues.length;s--;)r=i.cues[s],r.startTime>=e&&r.endTime<=t&&i.removeCue(r)},nh=e=>"number"==typeof e&&isFinite(e),ah=1/60,oh=e=>{const{startOfSegment:t,duration:i,segment:s,part:r,playlist:{mediaSequence:n,id:a,segments:o=[]},mediaIndex:l,partIndex:u,timeline:c}=e,h=o.length-1;let d="mediaIndex/partIndex increment";e.getMediaInfoForTime?d=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(d="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(d+=` with independent ${e.independent}`);const p="number"==typeof u,m=e.segment.uri?"segment":"pre-segment",g=p?Su({preloadSegment:s})-1:0;return`${m} [${n+l}/${n+h}]`+(p?` part [${u}/${g}]`:"")+` segment start/end [${s.start} => ${s.end}]`+(p?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${t}]`+` duration [${i}]`+` timeline [${c}]`+` selected by [${d}]`+` playlist [${a}]`},lh=e=>`${e}TimingInfo`,uh=({timelineChangeController:e,currentTimeline:t,segmentTimeline:i,loaderType:s,audioDisabled:r})=>{if(t===i)return!1;if("audio"===s){const t=e.lastTimelineChange({type:"main"});return!t||t.to!==i}if("main"===s&&r){const t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==i}return!1},ch=e=>{const t=e.pendingSegment_;if(t&&uh({timelineChangeController:e.timelineChangeController_,currentTimeline:e.currentTimeline_,segmentTimeline:t.timeline,loaderType:e.loaderType_,audioDisabled:e.audioDisabled_})&&(e=>{if(!e)return!1;const t=e.pendingTimelineChange({type:"audio"}),i=e.pendingTimelineChange({type:"main"}),s=t&&i,r=s&&t.to!==i.to;return!(!s||-1===t.from||-1===i.from||!r)})(e.timelineChangeController_)){if((e=>{const t=e.timelineChangeController_.pendingTimelineChange({type:"audio"}),i=e.timelineChangeController_.pendingTimelineChange({type:"main"});return t&&i&&t.to<i.to})(e))return void e.timelineChangeController_.trigger("audioTimelineBehind");e.timelineChangeController_.trigger("fixBadTimelineChange")}},hh=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+cu,dh=({type:e,segment:t})=>{if(!t)return;const i=Boolean(t.key||t.map&&t.map.ke),s=Boolean(t.map&&!t.map.bytes),r=void 0===t.startOfSegment?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:r,duration:t.duration,isEncrypted:i,isMediaInitialization:s}};class ph extends eu.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=ou(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)}),this.sourceUpdater_.on("codecschange",e=>{this.trigger(Et({type:"codecschange"},e))}),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)}),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",e=>{this.trigger(Et({type:"timelinechange"},e)),this.hasEnoughInfoToLoad_()?this.processLoadQueue_():ch(this),this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return(e=>{const t=new Pc;t.currentTransmux=null,t.transmuxQueue=[];const i=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)),t.postMessage({action:"init",options:e}),t})({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&be.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if("WAITING"!==this.state)return this.pendingSegment_&&(this.pendingSegment_=null),void this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,be.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&Nc(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return uu();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:i,isMuxed:s}=e;if(i&&t&&!this.audioDisabled_&&!s)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const i=pc(e);let s=this.initSegments_[i];return t&&!s&&e.bytes&&(this.initSegments_[i]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),s||e}segmentKey(e,t=!1){if(!e)return null;const i=mc(e);let s=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!s&&e.bytes&&(this.keyCache_[i]=s={resolvedUri:e.resolvedUri,bytes:e.bytes});const r={resolvedUri:(s||e).resolvedUri};return s&&(r.bytes=s.bytes),r}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;if(this.playlist_&&this.playlist_.endList&&e.endList&&this.playlist_.uri===e.uri)return;const i=this.playlist_,s=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_(`playlist update [${r} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:\ncurrentTime: ${this.currentTime_()}\nbufferedEnd: ${yu(this.buffered_())}\n`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri)return null!==this.mediaIndex&&(e.endList||"number"!=typeof e.partTargetDuration?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");const n=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${n}]`),null!==this.mediaIndex)if(this.mediaIndex-=n,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){const e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}s&&(s.mediaIndex-=n,s.mediaIndex<0?(s.mediaIndex=null,s.partIndex=null):(s.mediaIndex>=0&&(s.segment=e.segments[s.mediaIndex]),s.partIndex>=0&&s.segment.parts&&(s.part=s.segment.parts[s.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(be.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&Nc(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;"hls"===this.sourceType_&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,i=()=>{},s=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let r=1;const n=()=>{r--,0===r&&i()};!s&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,n)),(s||"main"===this.loaderType_)&&(this.gopBuffer_=((e,t,i,s)=>{const r=Math.ceil((t-s)*qs.ONE_SECOND_IN_TS),n=Math.ceil((i-s)*qs.ONE_SECOND_IN_TS),a=e.slice();let o=e.length;for(;o--&&!(e[o].pts<=n););if(-1===o)return a;let l=o+1;for(;l--&&!(e[l].pts<=r););return l=Math.max(l,0),a.splice(l,o-l+1),a})(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,n));for(const i in this.inbandTextTracks_)rh(e,t,this.inbandTextTracks_[i]);rh(e,t,this.segmentMetadataTrack_),n()}monitorBuffer_(){this.checkBufferTimeout_&&be.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=be.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&be.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=be.setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();if(!e)return;const t={segmentInfo:dh({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,i=this.partIndex){if(!t||!this.mediaSource_)return!1;const s="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,n=!s||!s.parts||i+1===s.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&n}chooseNextRequest_(){const e=this.buffered_(),t=yu(e)||0,i=_u(e,this.currentTime_()),s=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),n=this.playlist_.segments;if(!n.length||s||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const a={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(a.isSyncRequest)a.mediaIndex=function(e,t,i){t=t||[];const s=[];let r=0;for(let n=0;n<t.length;n++){const a=t[n];if(e===a.timeline&&(s.push(n),r+=a.duration,r>i))return n}return 0===s.length?0:s[s.length-1]}(this.currentTimeline_,n,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${a.mediaIndex}`);else if(null!==this.mediaIndex){const e=n[this.mediaIndex],i="number"==typeof this.partIndex?this.partIndex:-1;a.startOfSegment=e.end?e.end:t,e.parts&&e.parts[i+1]?(a.mediaIndex=this.mediaIndex,a.partIndex=i+1):a.mediaIndex=this.mediaIndex+1}else{let e,i,s;const r=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:\nFor TargetTime: ${r}.\nCurrentTime: ${this.currentTime_()}\nBufferedEnd: ${t}\nFetch At Buffer: ${this.fetchAtBuffer_}\n`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const t=this.getSyncInfoFromMediaSequenceSync_(r);if(!t){const e="No sync info found while using media sequence sync";return this.error({message:e,metadata:{errorType:eu.Error.StreamingFailedToSelectNextSegment,error:new Error(e)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${t.start} --\x3e ${t.end})`),e=t.segmentIndex,i=t.partIndex,s=t.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const t=Ru.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:r,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});e=t.segmentIndex,i=t.partIndex,s=t.startTime}a.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${r}`:`currentTime ${r}`,a.mediaIndex=e,a.startOfSegment=s,a.partIndex=i,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${a.mediaIndex} `)}const o=n[a.mediaIndex];let l=o&&"number"==typeof a.partIndex&&o.parts&&o.parts[a.partIndex];if(!o||"number"==typeof a.partIndex&&!l)return null;"number"!=typeof a.partIndex&&o.parts&&(a.partIndex=0,l=o.parts[0]);const u=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&l&&!u&&!l.independent)if(0===a.partIndex){const e=n[a.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(a.mediaIndex-=1,a.partIndex=e.parts.length-1,a.independent="previous segment")}else o.parts[a.partIndex-1].independent&&(a.partIndex-=1,a.independent="previous part");const c=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return a.mediaIndex>=n.length-1&&c&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,a.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(a))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;const t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);const i=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!i)return null;if(!i.isAppended)return i;const s=this.mediaSequenceSync_.getSyncInfoForTime(i.end);return s?(s.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),s):null}generateSegmentInfo_(e){const{independent:t,playlist:i,mediaIndex:s,startOfSegment:r,isSyncRequest:n,partIndex:a,forceTimestampOffset:o,getMediaInfoForTime:l}=e,u=i.segments[s],c="number"==typeof a&&u.parts[a],h={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||u.resolvedUri,mediaIndex:s,partIndex:c?a:null,isSyncRequest:n,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:c&&c.duration||u.duration,segment:u,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},d=void 0!==o?o:this.isPendingTimestampOffset_;h.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:d});const p=yu(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(h.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(h.gopsToAlignWith=((e,t,i)=>{if(null==t||!e.length)return[];const s=Math.ceil((t-i+3)*qs.ONE_SECOND_IN_TS);let r;for(r=0;r<e.length&&!(e[r].pts>s);r++);return e.slice(r)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),h}timestampOffsetForSegment_(e){return(({segmentTimeline:e,currentTimeline:t,startOfSegment:i,buffered:s,overrideCheck:r})=>r||e!==t?e<t?i:s.length?s.end(s.length-1):i:null)(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),i=e.bandwidth,s=this.pendingSegment_.duration,r=Ru.estimateSegmentRequestTime(s,i,this.playlist_,e.bytesReceived),n=function(e,t,i=1){return((e.length?e.end(e.length-1):0)-t)/i}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(r<=n)return;const a=function(e){const{main:t,currentTime:i,bandwidth:s,duration:r,segmentDuration:n,timeUntilRebuffer:a,currentTimeline:o,syncController:l}=e,u=t.playlists.filter(e=>!Ru.isIncompatible(e));let c=u.filter(Ru.isEnabled);c.length||(c=u.filter(e=>!Ru.isDisabled(e)));const h=c.filter(Ru.hasAttribute.bind(null,"BANDWIDTH")).map(e=>{const t=l.getSyncPoint(e,r,o,i)?1:2;return{playlist:e,rebufferingImpact:Ru.estimateSegmentRequestTime(n,s,e)*t-a}}),d=h.filter(e=>e.rebufferingImpact<=0);return Qc(d,(e,t)=>Kc(t.playlist,e.playlist)),d.length?d[0]:(Qc(h,(e,t)=>e.rebufferingImpact-t.rebufferingImpact),h[0]||null)}({main:this.vhs_.playlists.main,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:s,timeUntilRebuffer:n,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!a)return;const o=r-n-a.rebufferingImpact;let l=.5;n<=cu&&(l=1),!a.playlist||a.playlist.uri===this.playlist_.uri||o<l||(this.bandwidth=a.playlist.attributes.BANDWIDTH*Ec.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${oh(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}handleTrackInfo_(e,t){const{hasAudio:i,hasVideo:s}=t,r={segmentInfo:dh({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:i,hasVideo:s}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:r}),this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;const i=Object.keys(e).sort(),s=Object.keys(t).sort();if(i.length!==s.length)return!1;for(let r=0;r<i.length;r++){const n=i[r];if(n!==s[r])return!1;if(e[n]!==t[n])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)))}handleTimingInfo_(e,t,i,s){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const r=this.pendingSegment_,n=lh(t);r[n]=r[n]||{},r[n][i]=s,this.logger_(`timinginfo: ${t} - ${i} - ${s}`),this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));const i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),s={};t.forEach(e=>{s[e.stream]=s[e.stream]||{startTime:1/0,captions:[],endTime:0};const t=s[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)}),Object.keys(s).forEach(e=>{const{startTime:t,endTime:r,captions:n}=s[e],a=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${r} for ${e}`),function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"});let s=i;/^cc708_/.test(i)&&(s="SERVICE"+i.split("_")[1]);const r=t.textTracks().getTrackById(s);if(r)e[i]=r;else{let r=i,n=i,a=!1;const o=(t.options_.vhs&&t.options_.vhs.captionServices||{})[s];o&&(r=o.label,n=o.language,a=o.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:s,default:a,label:r,language:n},!1).track}}}(a,this.vhs_.tech_,e),rh(t,r,a[e]),function({inbandTextTracks:e,captionArray:t,timestampOffset:i}){if(!t)return;const s=be.WebKitDataCue||be.VTTCue;t.forEach(t=>{const r=t.stream;t.content?t.content.forEach(n=>{const a=new s(t.startTime+i,t.endTime+i,n.text);a.line=n.line,a.align="left",a.position=n.position,a.positionAlign="line-left",e[r].addCue(a)}):e[r].addCue(new s(t.startTime+i,t.endTime+i,t.text))})}({captionArray:n,inbandTextTracks:a,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,i){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(i,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i)))}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(e=>e())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(e=>e())}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&uh({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:i,hasVideo:s,isMuxed:r}=t;return!(s&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo||uh({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return ch(this),void this.callQueue_.push(this.handleData_.bind(this,e,t));const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[lh(t.type)].start;else{const e=this.getCurrentMediaInfo_(),t="main"===this.loaderType_&&e&&e.hasVideo;let s;t&&(s=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:t,firstVideoFrameTimeForData:s,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});const e=this.chooseNextRequest_();if(e.mediaIndex!==i.mediaIndex||e.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}updateAppendInitSegmentStatus(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:i,playlist:s}){if(i){const e=pc(i);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=s,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i},s){const r=this.sourceUpdater_.audioBuffered(),n=this.sourceUpdater_.videoBuffered();r.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+fu(r).join(", ")),n.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+fu(n).join(", "));const a=r.length?r.start(0):0,o=r.length?r.end(r.length-1):0,l=n.length?n.start(0):0,u=n.length?n.end(n.length-1):0;if(o-a<=1&&u-l<=1)return this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${i.byteLength}, audio buffer: ${fu(r).join(", ")}, video buffer: ${fu(n).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:t,bytes:i}));const c=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${c}`),this.remove(0,c,()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=be.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},1e3)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:i},s){s&&(22!==s.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",s),this.error({message:`${t} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:eu.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i}))}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:i,data:s,bytes:r}){if(!r){const e=[s];let t=s.byteLength;i&&(e.unshift(i),t+=i.byteLength),r=(e=>{let t,i=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(e=>{t.set(e,i),i+=e.byteLength})),t})({bytes:t,segments:e})}const n={segmentInfo:dh({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:n}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:r},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:r}))}handleSegmentTimingInfo_(e,t,i){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const s=this.pendingSegment_.segment,r=`${e}TimingInfo`;s[r]||(s[r]={}),s[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,s[r].transmuxedPresentationStart=i.start.presentation,s[r].transmuxedDecodeStart=i.start.decode,s[r].transmuxedPresentationEnd=i.end.presentation,s[r].transmuxedDecodeEnd=i.end.decode,s[r].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,t){const{type:i,data:s}=t;if(!s||!s.byteLength)return;if("audio"===i&&this.audioDisabled_)return;const r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:s})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_())return ch(this),void this.loadQueue_.push(()=>{const t=Et({},e,{forceTimestampOffset:!0});Et(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const t=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),s=null!==this.mediaIndex,r=e.timeline!==this.currentTimeline_&&e.timeline>0,n=i||s&&r;this.logger_(`Requesting\n${eh(e.uri)}\n${oh(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Wc({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:n,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:i,stream:s})=>{this.logger_(`${oh(e)} logged from transmuxer stream ${s} as a ${i}: ${t}`)},triggerSegmentEventFn:({type:e,segment:t,keyInfo:i,trackInfo:s,timingInfo:r})=>{const n={segmentInfo:dh({segment:t})};i&&(n.keyInfo=i),s&&(n.trackInfo=s),r&&(n.timingInfo=r),this.trigger({type:e,metadata:n})}})}trimBackBuffer_(e){const t=((e,t,i)=>{let s=t-Ec.BACK_BUFFER_LENGTH;e.length&&(s=Math.max(s,e.start(0)));const r=t-i;return Math.min(r,s)})(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,i=e.part,s=e.segment.key||e.segment.map&&e.segment.map.key,r=e.segment.map&&!e.segment.map.bytes,n={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:s,isMediaInitialization:r},a=e.playlist.segments[e.mediaIndex-1];if(a&&a.timeline===t.timeline&&(a.videoTimingInfo?n.baseStartTime=a.videoTimingInfo.transmuxedDecodeEnd:a.audioTimingInfo&&(n.baseStartTime=a.audioTimingInfo.transmuxedDecodeEnd)),t.key){const i=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=i}return t.map&&(n.map=this.initSegmentForMap(t.map)),n}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<ah)return void this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${ah}`);const i={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:i}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,i){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return;if(t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Fc)return;return this.pause(),e.code===Uc?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const s=this.pendingSegment_;this.saveBandwidthRelatedStats_(s.duration,t.stats),s.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=((e,t,i)=>{if(!t.length)return e;if(i)return t.slice();const s=t[0].pts;let r=0;for(;r<e.length&&!(e[r].pts>=s);r++);return e.slice(0,r).concat(t)})(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(s)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:i,firstVideoFrameTimeForData:s,currentVideoTimestampOffset:r,useVideoTimingInfo:n,videoTimingInfo:a,audioTimingInfo:o}){if(void 0!==e)return e;if(!n)return o.start;const l=t.segments[i-1];return 0!==i&&l&&void 0!==l.start&&l.end===s+r?a.start:s}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");const{hasAudio:i,hasVideo:s,isMuxed:r}=t,n="main"===this.loaderType_&&s,a=!this.audioDisabled_&&i&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);n&&e.waitingOnAppends++,a&&e.waitingOnAppends++,n&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=((e,t,i)=>"main"===e&&t&&i?i.hasAudio||i.hasVideo?t.hasVideo&&!i.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&i.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null)(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const t=this.getMediaInfo_(),i="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;i&&(e.timingInfo.end="number"==typeof i.end?i.end:i.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_){const e={segmentInfo:dh({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:e})}if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=((e,t)=>{if("hls"!==t)return null;const i=(e=>{let t=0;return["video","audio"].forEach(function(i){const s=e[`${i}TimingInfo`];if(!s)return;const{start:r,end:n}=s;let a;"bigint"==typeof r||"bigint"==typeof n?a=be.BigInt(n)-be.BigInt(r):"number"==typeof r&&"number"==typeof n&&(a=n-r),void 0!==a&&a>t&&(t=a)}),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t})({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!i)return null;const s=e.playlist.targetDuration,r=hh({segmentDuration:i,maxDuration:2*s}),n=hh({segmentDuration:i,maxDuration:s}),a=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${i} when the reported duration is ${e.duration} and the target duration is ${s}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return r||n?{severity:r?"warn":"info",message:a}:null})(e,this.sourceType_);if(t&&("warn"===t.severity?eu.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${oh(e)}`);this.logger_(`Appended ${oh(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const i=e.segment,s=e.part,r=i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration,n=s&&s.end&&this.currentTime_()-s.end>3*e.playlist.partTargetDuration;if(r||n)return this.logger_(`bad ${r?"segment":"part"} ${oh(e)}`),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<ah)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${ah}`);const t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,s=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(s-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,i=t.start,s=t.end;if(!nh(i)||!nh(s))return;rh(i,s,this.segmentMetadataTrack_);const r=be.WebKitDataCue||be.VTTCue,n={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:s},a=new r(i,s,JSON.stringify(n));a.value=n,this.segmentMetadataTrack_.addCue(a)}}function mh(){}const gh=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},fh=["video","audio"],yh=(e,t)=>{const i=t[`${e}Buffer`];return i&&i.updating||t.queuePending[e]},_h=(e,t)=>{if(0===t.queue.length)return;let i=0,s=t.queue[i];if("mediaSource"!==s.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!yh(e,t)){if(s.type!==e){if(i=((e,t)=>{for(let i=0;i<t.length;i++){const s=t[i];if("mediaSource"===s.type)return null;if(s.type===e)return i}return null})(e,t.queue),null===i)return;s=t.queue[i]}return t.queue.splice(i,1),t.queuePending[e]=s,s.action(e,t),s.doneFn?void 0:(t.queuePending[e]=null,void _h(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),s.action(t),s.doneFn&&s.doneFn(),_h("audio",t),_h("video",t))},vh=(e,t)=>{const i=t[`${e}Buffer`],s=gh(e);i&&(i.removeEventListener("updateend",t[`on${s}UpdateEnd_`]),i.removeEventListener("error",t[`on${s}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},bh=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),Th=(e,t,i)=>(s,r)=>{const n=r[`${s}Buffer`];if(bh(r.mediaSource,n)){r.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${s}Buffer`);try{n.appendBuffer(e)}catch(e){r.logger_(`Error with code ${e.code} `+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${s}Buffer`),r.queuePending[s]=null,i(e)}}},Sh=(e,t)=>(i,s)=>{const r=s[`${i}Buffer`];if(bh(s.mediaSource,r)){s.logger_(`Removing ${e} to ${t} from ${i}Buffer`);try{r.remove(e,t)}catch(r){s.logger_(`Remove ${e} to ${t} from ${i}Buffer failed`)}}},wh=e=>(t,i)=>{const s=i[`${t}Buffer`];bh(i.mediaSource,s)&&(i.logger_(`Setting ${t}timestampOffset to ${e}`),s.timestampOffset=e)},Ch=e=>(t,i)=>{e()},Eh=e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(e){eu.log.warn("Failed to call media source endOfStream",e)}}},kh=e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(e){eu.log.warn("Failed to set media source duration",e)}},xh=(e,t)=>i=>{const s=gh(e),r=Wt(t);i.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const n=i.mediaSource.addSourceBuffer(r);n.addEventListener("updateend",i[`on${s}UpdateEnd_`]),n.addEventListener("error",i[`on${s}Error_`]),i.codecs[e]=t,i[`${e}Buffer`]=n},Ih=e=>t=>{const i=t[`${e}Buffer`];if(vh(e,t),bh(t.mediaSource,i)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(i)}catch(t){eu.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,t)}}},Ah=e=>(t,i)=>{const s=i[`${t}Buffer`],r=Wt(e);if(!bh(i.mediaSource,s))return;const n=e.substring(0,e.indexOf(".")),a=i.codecs[t];if(a.substring(0,a.indexOf("."))===n)return;const o={codecsChangeInfo:{from:a,to:e}};i.trigger({type:"codecschange",metadata:o}),i.logger_(`changing ${t}Buffer codec from ${a} to ${e}`);try{s.changeType(r),i.codecs[t]=e}catch(e){o.errorType=eu.Error.StreamingCodecsChangeError,o.error=e,e.metadata=o,i.error_=e,i.trigger("error"),eu.log.warn(`Failed to changeType on ${t}Buffer`,e)}},Dh=({type:e,sourceUpdater:t,action:i,doneFn:s,name:r})=>{t.queue.push({type:e,action:i,doneFn:s,name:r}),_h(e,t)},Ph=(e,t)=>i=>{const s=function(e){if(0===e.length)return"Buffered Ranges are empty";let t="Buffered Ranges: \n";for(let i=0;i<e.length;i++){const s=e.start(i),r=e.end(i);t+=`${s} --\x3e ${r}. Duration (${r-s})\n`}return t}(t[`${e}Buffered`]());if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,s),t.queuePending[e]){const i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[`${e}Error_`])}_h(e,t)};class Mh extends eu.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>_h("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=ou("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=Ph("video",this),this.onAudioUpdateEnd_=Ph("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){Dh({type:"mediaSource",sourceUpdater:this,action:xh(e,t),name:"addSourceBuffer"})}abort(e){Dh({type:e,sourceUpdater:this,action:(e,t)=>{if("open"!==t.mediaSource.readyState)return;const i=t[`${e}Buffer`];if(bh(t.mediaSource,i)){t.logger_(`calling abort on ${e}Buffer`);try{i.abort()}catch(t){eu.log.warn(`Failed to abort on ${e}Buffer`,t)}}},name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?Dh({type:"mediaSource",sourceUpdater:this,action:Ih(e),name:"removeSourceBuffer"}):eu.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!eu.browser.IS_FIREFOX&&be.MediaSource&&be.MediaSource.prototype&&"function"==typeof be.MediaSource.prototype.removeSourceBuffer}static canChangeType(){return be.SourceBuffer&&be.SourceBuffer.prototype&&"function"==typeof be.SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?Dh({type:e,sourceUpdater:this,action:Ah(t),name:"changeType"}):eu.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(t=>{const i=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,i);this.canChangeType()&&this.changeType(t,i)})}appendBuffer(e,t){const{segmentInfo:i,type:s,bytes:r}=e;if(this.processedAppend_=!0,"audio"===s&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${r.length} until video append`);if(Dh({type:s,sourceUpdater:this,action:Th(r,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===s){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach(e=>{this.appendBuffer.apply(this,e)})}}audioBuffered(){return bh(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:uu()}videoBuffered(){return bh(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:uu()}buffered(){const e=bh(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=bh(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){let i=null,s=null,r=0;const n=[],a=[];if(!(e&&e.length&&t&&t.length))return uu();let o=e.length;for(;o--;)n.push({time:e.start(o),type:"start"}),n.push({time:e.end(o),type:"end"});for(o=t.length;o--;)n.push({time:t.start(o),type:"start"}),n.push({time:t.end(o),type:"end"});for(n.sort(function(e,t){return e.time-t.time}),o=0;o<n.length;o++)"start"===n[o].type?(r++,2===r&&(i=n[o].time)):"end"===n[o].type&&(r--,1===r&&(s=n[o].time)),null!==i&&null!==s&&(a.push([i,s]),i=null,s=null);return uu(a)}(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=mh){Dh({type:"mediaSource",sourceUpdater:this,action:kh(e),name:"duration",doneFn:t})}endOfStream(e=null,t=mh){"string"!=typeof e&&(e=void 0),Dh({type:"mediaSource",sourceUpdater:this,action:Eh(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,i=mh){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Dh({type:"audio",sourceUpdater:this,action:Sh(e,t),doneFn:i,name:"remove"}):i()}removeVideo(e,t,i=mh){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Dh({type:"video",sourceUpdater:this,action:Sh(e,t),doneFn:i,name:"remove"}):i()}updating(){return!(!yh("audio",this)&&!yh("video",this))}audioTimestampOffset(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Dh({type:"audio",sourceUpdater:this,action:wh(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(Dh({type:"video",sourceUpdater:this,action:wh(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&Dh({type:"audio",sourceUpdater:this,action:Ch(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&Dh({type:"video",sourceUpdater:this,action:Ch(e),name:"callback"})}dispose(){this.trigger("dispose"),fh.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>vh(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const Lh=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),Oh=new Uint8Array("\n\n".split("").map(e=>e.charCodeAt(0)));class Nh extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Rh extends ph{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return uu();const e=this.subtitlesTrack_.cues;return uu([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const i=pc(e);let s=this.initSegments_[i];if(t&&!s&&e.bytes){const t=Oh.byteLength+e.bytes.byteLength,r=new Uint8Array(t);r.set(e.bytes),r.set(Oh,e.bytes.byteLength),this.initSegments_[i]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:r}}return s||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){rh(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){const e=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};return this.syncController_.one("timestampoffset",e),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,i){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Uc&&this.handleTimeout_(),e.code===Fc?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const s=this.pendingSegment_,r=i.mp4VttCues&&i.mp4VttCues.length;r&&(s.mp4VttCues=i.mp4VttCues),this.saveBandwidthRelatedStats_(s.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const n=s.segment;if(n.map&&(n.map.bytes=t.map.bytes),s.bytes=t.bytes,"function"!=typeof be.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,i),()=>this.stopForError({message:"Error loading vtt.js"}));n.requested=!0;try{this.parseVTTCues_(s)}catch(e){return void this.stopForError({message:e.message,metadata:{errorType:eu.Error.StreamingVttParserError,error:e}})}if(r||this.updateTimeMapping_(s,this.syncController_.timelines[s.timeline],this.playlist_),s.cues.length?s.timingInfo={start:s.cues[0].startTime,end:s.cues[s.cues.length-1].endTime}:s.timingInfo={start:s.startOfSegment,end:s.startOfSegment+s.duration},s.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");s.byteLength=s.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,s.cues.forEach(e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new be.VTTCue(e.startTime,e.endTime,e.text):e)}),function(e){const t=e.cues;if(!t)return;const i={};for(let s=t.length-1;s>=0;s--){const r=t[s],n=`${r.startTime}-${r.endTime}-${r.text}`;i[n]?e.removeCue(r):i[n]=r}}(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(e,t){const i=e&&"vtt"===e.type,s=t&&"text"===t.type;i&&s&&super.handleData_(e,t)}updateTimingInfoEnd_(){}parseMp4VttCues_(e){const t=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();e.mp4VttCues.forEach(i=>{const s=i.start+t,r=i.end+t,n=new be.VTTCue(s,r,i.cueText);i.settings&&i.settings.split(" ").forEach(e=>{const t=e.split(":"),i=t[0],s=t[1];n[i]=isNaN(s)?s:Number(s)}),e.cues.push(n)})}parseVTTCues_(e){let t,i=!1;if("function"!=typeof be.WebVTT)throw new Nh;if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},e.mp4VttCues)return void this.parseMp4VttCues_(e);"function"==typeof be.TextDecoder?t=new be.TextDecoder("utf8"):(t=be.WebVTT.StringDecoder(),i=!0);const s=new be.WebVTT.Parser(be,be.vttjs,t);if(s.oncue=e.cues.push.bind(e.cues),s.ontimestampmap=t=>{e.timestampmap=t},s.onparsingerror=e=>{eu.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;i&&(t=Lh(t)),s.parse(t)}let r=e.bytes;i&&(r=Lh(r)),s.parse(r),s.flush()}updateTimeMapping_(e,t,i){const s=e.segment;if(!t)return;if(!e.cues.length)return void(s.empty=!0);const{MPEGTS:r,LOCAL:n}=e.timestampmap,a=r/qs.ONE_SECOND_IN_TS-n+t.mapping;if(e.cues.forEach(e=>{const i=e.endTime-e.startTime,s=this.handleRollover_(e.startTime+a,t.time);e.startTime=Math.max(s,0),e.endTime=Math.max(s+i,0)}),!i.syncInfo){const t=e.cues[0].startTime,r=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(t,r-s.duration)}}}handleRollover_(e,t){if(null===t)return e;let i=e*qs.ONE_SECOND_IN_TS;const s=t*qs.ONE_SECOND_IN_TS;let r;for(r=s<i?-8589934592:8589934592;Math.abs(i-s)>4294967296;)i+=r;return i/qs.ONE_SECOND_IN_TS}}const Uh=function(e,t){const i=e.cues;for(let e=0;e<i.length;e++){const s=i[e];if(t>=s.adStartTime&&t<=s.adEndTime)return s}return null};class Fh{constructor({start:e,end:t,segmentIndex:i,partIndex:s=null,appended:r=!1}){this.start_=e,this.end_=t,this.segmentIndex_=i,this.partIndex_=s,this.appended_=r}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class Bh{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(e=>e.resetAppendedStatus())}}class qh{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(e=>e.resetAppendStatus())}update(e,t){const{mediaSequence:i,segments:s}=e;if(this.isReliable_=this.isReliablePlaylist_(i,s),this.isReliable_)return this.updateStorage_(s,i,this.calculateBaseTime_(i,s,t))}getSyncInfoForTime(e){for(const{segmentSyncInfo:t,partsSyncInfo:i}of this.storage_.values())if(i.length){for(const t of i)if(t.isInRange(e))return t}else if(t.isInRange(e))return t;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}updateStorage_(e,t,i){const s=new Map;let r="\n",n=i,a=t;this.start_=n,e.forEach((e,t)=>{const i=this.storage_.get(a),o=n,l=o+e.duration,u=Boolean(i&&i.segmentSyncInfo&&i.segmentSyncInfo.isAppended),c=new Fh({start:o,end:l,appended:u,segmentIndex:t});e.syncInfo=c;let h=n;const d=(e.parts||[]).map((e,s)=>{const n=h,o=h+e.duration,l=Boolean(i&&i.partsSyncInfo&&i.partsSyncInfo[s]&&i.partsSyncInfo[s].isAppended),u=new Fh({start:n,end:o,appended:l,segmentIndex:t,partIndex:s});return h=o,r+=`Media Sequence: ${a}.${s} | Range: ${n} --\x3e ${o} | Appended: ${l}\n`,e.syncInfo=u,u});s.set(a,new Bh(c,d)),r+=`${eh(e.resolvedUri)} | Media Sequence: ${a} | Range: ${o} --\x3e ${l} | Appended: ${u}\n`,a++,n=l}),this.end_=n,this.storage_=s,this.diagnostics_=r}calculateBaseTime_(e,t,i){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;const s=Math.min(...this.storage_.keys());if(e<s){const i=s-e;let r=this.storage_.get(s).segmentSyncInfo.start;for(let e=0;e<i;e++)r-=t[e].duration;return r}return i}isReliablePlaylist_(e,t){return null!=e&&Array.isArray(t)&&t.length}}class jh extends qh{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t,i){if(!this.storage_.size){const t=this.parent_.getSyncInfoForMediaSequence(e);return t?t.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t,i)}}const $h=[{name:"VOD",run:(e,t,i,s,r)=>i!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(e,t,i,s,r,n)=>{const a=e.getMediaSequenceSync(n);if(!a)return null;if(!a.isReliable)return null;const o=a.getSyncInfoForTime(r);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}},{name:"ProgramDateTime",run:(e,t,i,s,r)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let n=null,a=null;const o=bu(t);r=r||0;for(let i=0;i<o.length;i++){const s=o[t.endList||0===r?i:o.length-(i+1)],l=s.segment,u=e.timelineToDatetimeMappings[l.timeline];if(!u||!l.dateTimeObject)continue;let c=l.dateTimeObject.getTime()/1e3+u;if(l.parts&&"number"==typeof s.partIndex)for(let e=0;e<s.partIndex;e++)c+=l.parts[e].duration;const h=Math.abs(r-c);if(null!==a&&(0===h||a<h))break;a=h,n={time:c,segmentIndex:s.segmentIndex,partIndex:s.partIndex}}return n}},{name:"Segment",run:(e,t,i,s,r)=>{let n=null,a=null;r=r||0;const o=bu(t);for(let e=0;e<o.length;e++){const i=o[t.endList||0===r?e:o.length-(e+1)],l=i.segment,u=i.part&&i.part.start||l&&l.start;if(l.timeline===s&&void 0!==u){const e=Math.abs(r-u);if(null!==a&&a<e)break;(!n||null===a||a>=e)&&(a=e,n={time:u,segmentIndex:i.segmentIndex,partIndex:i.partIndex})}}return n}},{name:"Discontinuity",run:(e,t,i,s,r)=>{let n=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length){let i=null;for(let s=0;s<t.discontinuityStarts.length;s++){const a=t.discontinuityStarts[s],o=t.discontinuitySequence+s+1,l=e.discontinuities[o];if(l){const e=Math.abs(r-l.time);if(null!==i&&i<e)break;(!n||null===i||i>=e)&&(i=e,n={time:l.time,segmentIndex:a,partIndex:null})}}}return n}},{name:"Playlist",run:(e,t,i,s,r)=>t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}];class Hh extends eu.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const t=new qh,i=new jh(t),s=new jh(t);this.mediaSequenceStorage_={main:t,audio:i,vtt:s},this.logger_=ou("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,i,s,r){if(t!==1/0)return $h.find(({name:e})=>"VOD"===e).run(this,e,t);const n=this.runStrategies_(e,t,i,s,r);if(!n.length)return null;for(const t of n){const{syncPoint:i,strategy:r}=t,{segmentIndex:n,time:a}=i;if(n<0)continue;const o=a,l=o+e.segments[n].duration;if(this.logger_(`Strategy: ${r}. Current time: ${s}. selected segment: ${n}. Time: [${o} -> ${l}]}`),s>=o&&s<l)return this.logger_("Found sync point with exact match: ",i),i}return this.selectSyncPoint_(n,{key:"time",value:s})}getExpiredTime(e,t){if(!e||!e.segments)return null;const i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;const s=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return s.segmentIndex>0&&(s.time*=-1),Math.abs(s.time+ku({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:s.segmentIndex,endIndex:0}))}runStrategies_(e,t,i,s,r){const n=[];for(let a=0;a<$h.length;a++){const o=$h[a],l=o.run(this,e,t,i,s,r);l&&(l.strategy=o.name,n.push({strategy:o.name,syncPoint:l}))}return n}selectSyncPoint_(e,t){let i=e[0].syncPoint,s=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy;for(let n=1;n<e.length;n++){const a=Math.abs(e[n].syncPoint[t.key]-t.value);a<s&&(s=a,i=e[n].syncPoint,r=e[n].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${r}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+("number"==typeof i.partIndex?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpiredSegmentInfo(e,t){const i=t.mediaSequence-e.mediaSequence;if(i>86400)eu.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);else for(let s=i-1;s>=0;s--){const i=e.segments[s];if(i&&void 0!==i.start){t.syncInfo={mediaSequence:e.mediaSequence+s,time:i.start},this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),s=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:s.start}));const r=s.dateTimeObject;s.discontinuity&&t&&r&&(this.timelineToDatetimeMappings[s.timeline]=-r.getTime()/1e3)}timestampOffsetForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].time}mappingForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,i){const s=e.segment,r=e.part;let n,a,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${o.time}] [mapping: ${o.mapping}]`)),n=e.startOfSegment,a=t.end+o.mapping;else{if(!o)return!1;n=t.start+o.mapping,a=t.end+o.mapping}return r&&(r.start=n,r.end=a),(!s.start||n<s.start)&&(s.start=n),s.end=a,!0}saveDiscontinuitySyncInfo_(e){const t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let s=0;s<t.discontinuityStarts.length;s++){const r=t.discontinuityStarts[s],n=t.discontinuitySequence+s+1,a=r-e.mediaIndex,o=Math.abs(a);if(!this.discontinuities[n]||this.discontinuities[n].accuracy>o){let s;s=a<0?i.start-ku({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+ku({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[n]={time:s,accuracy:o}}}}dispose(){this.trigger("dispose"),this.off()}}class Vh extends eu.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:i}){return"number"==typeof t&&"number"==typeof i&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:i}){if("number"==typeof t&&"number"==typeof i){this.lastTimelineChanges_[e]={type:e,from:t,to:i},delete this.pendingTimelineChanges_[e];const s={timelineChangeInfo:{from:t,to:i}};this.trigger({type:"timelinechange",metadata:s})}return this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const zh=Ic(Ac(function(){var e=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,s=0;s<i;++s)t[s].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),n=t.length,a=0;a<n;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();let t=null;class i{constructor(e){let i,s,r;t||(t=function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],s=t[4],r=i[4];let n,a,o;const l=[],u=[];let c,h,d,p,m,g;for(n=0;n<256;n++)u[(l[n]=n<<1^283*(n>>7))^n]=n;for(a=o=0;!s[a];a^=c||1,o=u[o]||1)for(p=o^o<<1^o<<2^o<<3^o<<4,p=p>>8^255&p^99,s[a]=p,r[p]=a,d=l[h=l[c=l[a]]],g=16843009*d^65537*h^257*c^16843008*a,m=257*l[p]^16843008*p,n=0;n<4;n++)t[n][a]=m=m<<24^m>>>8,i[n][p]=g=g<<24^g>>>8;for(n=0;n<5;n++)t[n]=t[n].slice(0),i[n]=i[n].slice(0);return e}()),this._tables=[[t[0][0].slice(),t[0][1].slice(),t[0][2].slice(),t[0][3].slice(),t[0][4].slice()],[t[1][0].slice(),t[1][1].slice(),t[1][2].slice(),t[1][3].slice(),t[1][4].slice()]];const n=this._tables[0][4],a=this._tables[1],o=e.length;let l=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");const u=e.slice(0),c=[];for(this._key=[u,c],i=o;i<4*o+28;i++)r=u[i-1],(i%o===0||8===o&&i%o===4)&&(r=n[r>>>24]<<24^n[r>>16&255]<<16^n[r>>8&255]<<8^n[255&r],i%o===0&&(r=r<<8^r>>>24^l<<24,l=l<<1^283*(l>>7))),u[i]=u[i-o]^r;for(s=0;i;s++,i--)r=u[3&s?i:i-4],c[s]=i<=4||s<4?r:a[0][n[r>>>24]]^a[1][n[r>>16&255]]^a[2][n[r>>8&255]]^a[3][n[255&r]]}decrypt(e,t,i,s,r,n){const a=this._key[1];let o,l,u,c=e^a[0],h=s^a[1],d=i^a[2],p=t^a[3];const m=a.length/4-2;let g,f=4;const y=this._tables[1],_=y[0],v=y[1],b=y[2],T=y[3],S=y[4];for(g=0;g<m;g++)o=_[c>>>24]^v[h>>16&255]^b[d>>8&255]^T[255&p]^a[f],l=_[h>>>24]^v[d>>16&255]^b[p>>8&255]^T[255&c]^a[f+1],u=_[d>>>24]^v[p>>16&255]^b[c>>8&255]^T[255&h]^a[f+2],p=_[p>>>24]^v[c>>16&255]^b[h>>8&255]^T[255&d]^a[f+3],f+=4,c=o,h=l,d=u;for(g=0;g<4;g++)r[(3&-g)+n]=S[c>>>24]<<24^S[h>>16&255]<<16^S[d>>8&255]<<8^S[255&p]^a[f++],o=c,c=h,h=d,d=p,p=o}}class s extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const r=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},n=function(e,t,s){const n=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),a=new i(Array.prototype.slice.call(t)),o=new Uint8Array(e.byteLength),l=new Int32Array(o.buffer);let u,c,h,d,p,m,g,f,y;for(u=s[0],c=s[1],h=s[2],d=s[3],y=0;y<n.length;y+=4)p=r(n[y]),m=r(n[y+1]),g=r(n[y+2]),f=r(n[y+3]),a.decrypt(p,m,g,f,l,y),l[y]=r(l[y]^u),l[y+1]=r(l[y+1]^c),l[y+2]=r(l[y+2]^h),l[y+3]=r(l[y+3]^d),u=p,c=m,h=g,d=f;return o};class a{constructor(e,t,i,n){const o=a.STEP,l=new Int32Array(e.buffer),u=new Uint8Array(e.byteLength);let c=0;for(this.asyncStream_=new s,this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+o),t,i,u)),c=o;c<l.length;c+=o)i=new Uint32Array([r(l[c-4]),r(l[c-3]),r(l[c-2]),r(l[c-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+o),t,i,u));this.asyncStream_.push(function(){n(null,function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}(u))})}static get STEP(){return 32e3}decryptChunk_(e,t,i,s){return function(){const r=n(e,t,i);s.set(r,e.byteOffset)}}}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=("undefined"!=typeof window?window:void 0!==o?o:"undefined"!=typeof self?self:{}).BigInt||Number;l("0x1"),l("0x100"),l("0x10000"),l("0x1000000"),l("0x100000000"),l("0x10000000000"),l("0x1000000000000"),l("0x100000000000000"),l("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();self.onmessage=function(e){const t=e.data,i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),s=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new a(i,s,r,function(e,i){self.postMessage(function(e){const t={};return Object.keys(e).forEach(i=>{const s=e[i];!function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer}(s)?t[i]=s:t[i]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}}),t}({source:t.source,decrypted:i}),[i.buffer])})}}));var Wh=xc(zh);const Gh=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Xh=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Zh=(e,t)=>{t.activePlaylistLoader=e,e.load()},Qh={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:i},excludePlaylist:s}=t,r=i.activeTrack(),n=i.activeGroup(),a=(n.filter(e=>e.default)[0]||n[0]).id,o=i.tracks[a];if(r!==o){eu.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const e in i.tracks)i.tracks[e].enabled=i.tracks[e]===o;i.onTrackChanged()}else s({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:i}}=t;eu.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const s=i.activeTrack();s&&(s.mode="disabled"),i.onTrackChanged()}},Kh={AUDIO:(e,t,i)=>{if(!t)return;const{tech:s,requestOptions:r,segmentLoaders:{[e]:n}}=i;t.on("loadedmetadata",()=>{const e=t.media();n.playlist(e,r),(!s.paused()||e.endList&&"none"!==s.preload())&&n.load()}),t.on("loadedplaylist",()=>{n.playlist(t.media(),r),s.paused()||n.load()}),t.on("error",Qh[e](e,i))},SUBTITLES:(e,t,i)=>{const{tech:s,requestOptions:r,segmentLoaders:{[e]:n},mediaTypes:{[e]:a}}=i;t.on("loadedmetadata",()=>{const e=t.media();n.playlist(e,r),n.track(a.activeTrack()),(!s.paused()||e.endList&&"none"!==s.preload())&&n.load()}),t.on("loadedplaylist",()=>{n.playlist(t.media(),r),s.paused()||n.load()}),t.on("error",Qh[e](e,i))}},Yh={AUDIO:(e,t)=>{const{vhs:i,sourceType:s,segmentLoaders:{[e]:r},requestOptions:n,main:{mediaGroups:a},mediaTypes:{[e]:{groups:o,tracks:l,logger_:u}},mainPlaylistLoader:c}=t,h=Nu(c.main);a[e]&&0!==Object.keys(a[e]).length||(a[e]={main:{default:{default:!0}}},h&&(a[e].main.default.playlists=c.main.playlists));for(const r in a[e]){o[r]||(o[r]=[]);for(const d in a[e][r]){let p,m=a[e][r][d];if(h?(u(`AUDIO group '${r}' label '${d}' is a main playlist`),m.isMainPlaylist=!0,p=null):p="vhs-json"===s&&m.playlists?new nc(m.playlists[0],i,n):m.resolvedUri?new nc(m.resolvedUri,i,n):m.playlists&&"dash"===s?new Cc(m.playlists[0],i,n,c):null,m=lu({id:d,playlistLoader:p},m),Kh[e](e,m.playlistLoader,t),o[r].push(m),void 0===l[d]){const e=new eu.AudioTrack({id:d,kind:Gh(m),enabled:!1,language:m.language,default:m.default,label:d});l[d]=e}}}r.on("error",Qh[e](e,t))},SUBTITLES:(e,t)=>{const{tech:i,vhs:s,sourceType:r,segmentLoaders:{[e]:n},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[e]:{groups:l,tracks:u}},mainPlaylistLoader:c}=t;for(const n in o[e]){l[n]||(l[n]=[]);for(const h in o[e][n]){if(!s.options_.useForcedSubtitles&&o[e][n][h].forced)continue;let d,p=o[e][n][h];if("hls"===r)d=new nc(p.resolvedUri,s,a);else if("dash"===r){if(!p.playlists.filter(e=>e.excludeUntil!==1/0).length)return;d=new Cc(p.playlists[0],s,a,c)}else"vhs-json"===r&&(d=new nc(p.playlists?p.playlists[0]:p.resolvedUri,s,a));if(p=lu({id:h,playlistLoader:d},p),Kh[e](e,p.playlistLoader,t),l[n].push(p),void 0===u[h]){const e=i.addRemoteTextTrack({id:h,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:h},!1).track;u[h]=e}}}n.on("error",Qh[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:i,main:{mediaGroups:s},mediaTypes:{[e]:{groups:r,tracks:n}}}=t;for(const t in s[e]){r[t]||(r[t]=[]);for(const a in s[e][t]){const o=s[e][t][a];if(!/^(?:CC|SERVICE)/.test(o.instreamId))continue;const l=i.options_.vhs&&i.options_.vhs.captionServices||{};let u={label:a,language:o.language,instreamId:o.instreamId,default:o.default&&o.autoselect};if(l[u.instreamId]&&(u=lu(u,l[u.instreamId])),void 0===u.default&&delete u.default,r[t].push(lu({id:a},o)),void 0===n[a]){const e=i.addRemoteTextTrack({id:u.instreamId,kind:"captions",default:u.default,language:u.language,label:u.label},!1).track;n[a]=e}}}}},Jh=(e,t)=>{for(let i=0;i<e.length;i++){if(Lu(t,e[i]))return!0;if(e[i].playlists&&Jh(e[i].playlists,t))return!0}return!1},ed={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if(i[e].enabled)return i[e];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if("showing"===i[e].mode||"hidden"===i[e].mode)return i[e];return null}};class td{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=nu(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(e=>[e.ID,e])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class id extends eu.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new td,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=ou("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const i=t.serverUri||t.serverURL;if(!i)return this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),void this.trigger("error");i.startsWith("data:")?this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1)):(this.steeringManifest.reloadUri=nu(e,i),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const i=e?t:this.getRequestURI(t);if(!i)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();const s={contentSteeringInfo:{uri:i}};this.trigger({type:"contentsteeringloadstart",metadata:s}),this.request_=this.xhr_({uri:i,requestType:"content-steering-manifest"},(e,t)=>{if(e){if(410===t.status)return this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),void this.excludedSteeringManifestURLs.add(i);if(429===t.status){const i=t.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${i} seconds.`),void this.startTTLTimeout_(parseInt(i,10))}return this.logger_(`manifest failed to load ${e}.`),void this.startTTLTimeout_()}let r;this.trigger({type:"contentsteeringloadcomplete",metadata:s});try{r=JSON.parse(this.request_.responseText)}catch(e){const t={errorType:eu.Error.StreamingContentSteeringParserError,error:e};this.trigger({type:"error",metadata:t})}this.assignSteeringProperties_(r);const n={contentSteeringInfo:s.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:n}),this.startTTLTimeout_()})}setProxyServerUrl_(e){const t=new be.URL(e),i=new be.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const t=JSON.parse(be.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new be.URL(e),i=this.getPathway(),s=this.getBandwidth_();if(i){const e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,i)}if(s){const e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,s)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const t=(e=>{for(const t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){const i=this.setProxyServerUrl_(e);if(!t(i))return i}const i=this.setSteeringParams_(e);return t(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=be.setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){be.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new td}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(nu(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let sd;const rd=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],nd=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]};class ad extends eu.EventTarget{constructor(e){super(),this.fastQualityChange_=(e=>{let t=null;return(...i)=>{clearTimeout(t),t=setTimeout(()=>{e.apply(null,i)},100)}})(this.fastQualityChange_.bind(this));const{src:t,withCredentials:i,tech:s,bandwidth:r,externVhs:n,useCueTags:a,playlistExclusionDuration:o,enableLowInitialPlaylist:l,sourceType:u,cacheEncryptionKeys:c,bufferBasedABR:h,leastPixelDiffSelector:d,captionServices:p,experimentalUseMMS:m}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:g}=e;null==g&&(g=1/0),sd=n,this.bufferBasedABR=Boolean(h),this.leastPixelDiffSelector=Boolean(d),this.withCredentials=i,this.tech_=s,this.vhs_=s.vhs,this.player_=e.player_,this.sourceType_=u,this.useCueTags_=a,this.playlistExclusionDuration=o,this.maxPlaylistRetries=g,this.enableLowInitialPlaylist=l,this.usingManagedMediaSource_=!1,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:g,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=(()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:mh,activeTrack:mh,getActiveGroup:mh,onGroupChanged:mh,onTrackChanged:mh,lastTrack_:null,logger_:ou(`MediaGroups[${t}]`)}}),e})(),m&&be.ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new be.ManagedMediaSource,this.usingManagedMediaSource_=!0,eu.log("Using ManagedMediaSource")):be.MediaSource&&(this.mediaSource=new be.MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.load=this.load.bind(this),this.pause=this.pause.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.mediaSource.addEventListener("startstreaming",this.load),this.mediaSource.addEventListener("endstreaming",this.pause),this.seekable_=uu(),this.hasPlayed_=!1,this.syncController_=new Hh(e),this.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.segmentMetadataTrack_.mode="hidden",this.decrypter_=new Wh,this.sourceUpdater_=new Mh(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Vh,this.keyStatusMap_=new Map;const f={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:p,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:r,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:c,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new Cc(t,this.vhs_,lu(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new nc(t,this.vhs_,lu(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new ph(lu(f,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new ph(lu(f,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new Rh(lu(f,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((e,t)=>{function i(){s.off("vttjserror",r),e()}function r(){s.off("vttjsloaded",i),t()}s.one("vttjsloaded",i),s.one("vttjserror",r),s.addWebVttScript_()})}),e),this.contentSteeringController_=new id(this.vhs_.xhr,()=>this.mainSegmentLoader_.bandwidth),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),rd.forEach(e=>{this[e+"_"]=nd.bind(this,e)}),this.logger_=ou("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const y="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(y,()=>{const e=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,i){const s=this.media(),r=s&&(s.id||s.uri),n=e&&(e.id||e.uri);if(r&&r!==n){this.logger_(`switch media ${r} -> ${n} from ${t}`);const i={renditionInfo:{id:n,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t};this.trigger({type:"renditionselected",metadata:i}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})}this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{const t=this.mediaTypes_[e],i=t?t.activeGroup():null,s=this.contentSteeringController_.getPathway();if(i&&s){const t=(i.length?i[0].playlists:i.playlists).filter(e=>e.attributes.serviceLocation===s);t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=be.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(be.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const i=e.mediaGroups.AUDIO,s=Object.keys(i);let r;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)r=this.mediaTypes_.AUDIO.activeTrack();else{const e=i.main||s.length&&i[s[0]];for(const t in e)if(e[t].default){r={label:t};break}}if(!r)return t;const n=[];for(const t in i)if(i[t][r.label]){const s=i[t][r.label];if(s.playlists&&s.playlists.length)n.push.apply(n,s.playlists);else if(s.uri)n.push(s);else if(e.playlists.length)for(let i=0;i<e.playlists.length;i++){const s=e.playlists[i];s.attributes&&s.attributes.AUDIO&&s.attributes.AUDIO===t&&n.push(s)}}return n.length?n:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;Mu(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),(e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{Yh[t](t,e)});const{mediaTypes:t,mainPlaylistLoader:i,tech:s,vhs:r,segmentLoaders:{AUDIO:n,main:a}}=e;["AUDIO","SUBTITLES"].forEach(i=>{t[i].activeGroup=((e,t)=>i=>{const{mainPlaylistLoader:s,mediaTypes:{[e]:{groups:r}}}=t,n=s.media();if(!n)return null;let a=null;n.attributes[e]&&(a=r[n.attributes[e]]);const o=Object.keys(r);if(!a)if("AUDIO"===e&&o.length>1&&Nu(t.main))for(let e=0;e<o.length;e++){const t=r[o[e]];if(Jh(t,n)){a=t;break}}else r.main?a=r.main:1===o.length&&(a=r[o[0]]);return void 0===i?a:null!==i&&a&&a.filter(e=>e.id===i.id)[0]||null})(i,e),t[i].activeTrack=ed[i](i,e),t[i].onGroupChanged=((e,t)=>()=>{const{segmentLoaders:{[e]:i,main:s},mediaTypes:{[e]:r}}=t,n=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;a&&l&&a.id===l.id||(r.lastGroup_=a,r.lastTrack_=n,Xh(i,r),a&&!a.isMainPlaylist&&(a.playlistLoader?(i.resyncLoader(),Zh(a.playlistLoader,r)):o&&s.resetEverything()))})(i,e),t[i].onGroupChanging=((e,t)=>()=>{const{segmentLoaders:{[e]:i},mediaTypes:{[e]:s}}=t;s.lastGroup_=null,i.abort(),i.pause()})(i,e),t[i].onTrackChanged=((e,t)=>()=>{const{mainPlaylistLoader:i,segmentLoaders:{[e]:s,main:r},mediaTypes:{[e]:n}}=t,a=n.activeTrack(),o=n.getActiveGroup(),l=n.activePlaylistLoader,u=n.lastTrack_;if((!u||!a||u.id!==a.id)&&(n.lastGroup_=o,n.lastTrack_=a,Xh(s,n),o)){if(o.isMainPlaylist){if(!a||!u||a.id===u.id)return;const e=t.vhs.playlistController_,s=e.selectPlaylist();if(e.media()===s)return;return n.logger_(`track change. Switching main audio from ${u.id} to ${a.id}`),i.pause(),r.resetEverything(),void e.fastQualityChange_(s)}if("AUDIO"===e){if(!o.playlistLoader)return r.setAudio(!0),void r.resetEverything();s.setAudio(!0),r.setAudio(!1)}l!==o.playlistLoader?(s.track&&s.track(a),s.resetEverything(),Zh(o.playlistLoader,n)):Zh(o.playlistLoader,n)}})(i,e),t[i].getActiveGroup=((e,{mediaTypes:t})=>()=>{const i=t[e].activeTrack();return i?t[e].activeGroup(i):null})(i,e)});const o=t.AUDIO.activeGroup();if(o){const e=(o.filter(e=>e.default)[0]||o[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),n.setAudio(!0)):a.setAudio(!0)}i.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanged())}),i.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanging())});const l=()=>{t.AUDIO.onTrackChanged(),s.trigger({type:"usage",name:"vhs-audio-change"})};s.audioTracks().addEventListener("change",l),s.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",()=>{s.audioTracks().removeEventListener("change",l),s.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),s.clearTracks("audio");for(const e in t.AUDIO.tracks)s.audioTracks().addTrack(t.AUDIO.tracks[e])})({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t))return;if(this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial"),"vhs-json"!==this.sourceType_||!this.initialMedia_.segments)return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;Mu(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.isPaused&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(e=>{this.mainPlaylistLoader_.on(e,e=>{this.player_.trigger(Et({},e))})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const i=e.mediaGroups||{};let s=!0;const r=Object.keys(i.AUDIO);for(const e in i.AUDIO)for(const t in i.AUDIO[e])i.AUDIO[e][t].uri||(s=!1);s&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),sd.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),r.length&&Object.keys(i.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),s=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function({currentPlaylist:e,buffered:t,currentTime:i,nextPlaylist:s,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:a,bufferBasedABR:o,log:l}){if(!s)return eu.log.warn("We received no playlist to switch to. Please check your stream."),!1;const u=`allowing switch ${e&&e.id||"null"} -> ${s.id}`;if(!e)return l(`${u} as current playlist is not set`),!0;if(s.id===e.id)return!1;const c=Boolean(pu(t,i).length);if(!e.endList)return c||"number"!=typeof e.partTargetDuration?(l(`${u} as current playlist is live`),!0):(l(`not ${u} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const h=_u(t,i),d=o?Ec.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Ec.MAX_BUFFER_LOW_WATER_LINE;if(a<d)return l(`${u} as duration < max low water line (${a} < ${d})`),!0;const p=s.attributes.BANDWIDTH,m=e.attributes.BANDWIDTH;if(p<m&&(!o||h<n)){let e=`${u} as next bandwidth < current bandwidth (${p} < ${m})`;return o&&(e+=` and forwardBuffer < bufferHighWaterLine (${h} < ${n})`),l(e),!0}if((!o||p>m)&&h>=r){let e=`${u} as forwardBuffer >= bufferLowWaterLine (${h} >= ${r})`;return o&&(e+=` and next bandwidth > current bandwidth (${p} > ${m})`),l(e),!0}return l(`not ${u} as no switching criteria met`),!1}({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:s,bufferHighWaterLine:r,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.timelineChangeController_.on("audioTimelineBehind",()=>{const e=this.audioSegmentLoader_.pendingSegment_;if(!e||!e.segment||!e.segment.syncInfo)return;const t=e.segment.syncInfo.end+.01;this.tech_.setCurrentTime(t)}),this.timelineChangeController_.on("fixBadTimelineChange",()=>{this.logger_("Fix bad timeline change. Restarting al segment loaders..."),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}),this.mainSegmentLoader_.on("earlyabort",e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(e=>{this.mainSegmentLoader_.on(e,e=>{this.player_.trigger(Et({},e))}),this.audioSegmentLoader_.on(e,e=>{this.player_.trigger(Et({},e))}),this.subtitleSegmentLoader_.on(e,e=>{this.player_.trigger(Et({},e))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}pause(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const i=t.end(0);let s=i;if(e.start){const r=e.start.timeOffset;s=r<0?Math.max(i+r,t.start(0)):Math.min(i,r)}this.trigger("firstplay"),this.tech_.setCurrentTime(s)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,e=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;const i=sd.Playlist.playlistEnd(e,t),s=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return i-s<=hu;const n=r.end(r.length-1);return n-s<=hu&&i-n<=hu}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const s=this.mainPlaylistLoader_.main.playlists,r=s.filter(Du),n=1===r.length&&r[0]===e;if(1===s.length&&i!==1/0)return eu.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(n);if(n){if(this.main().contentSteering){const t=this.pathwayAttribute_(e),i=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),void setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(t)},i)}let t=!1;s.forEach(i=>{if(i===e)return;const s=i.excludeUntil;void 0!==s&&s!==1/0&&(t=!0,delete i.excludeUntil)}),t&&(eu.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let a;a=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*i,e.excludeUntil=a,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const o=this.selectPlaylist();if(!o)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");const l=t.internal?this.logger_:eu.log.warn,u=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${u} Switching to playlist ${o.id}.`),o.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),o.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const c=o.targetDuration/2*1e3||5e3,h="number"==typeof o.lastRequest&&Date.now()-o.lastRequest<=c;return this.switchMedia_(o,"exclude",n||h)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const i=[],s="all"===e;(s||"main"===e)&&i.push(this.mainPlaylistLoader_);const r=[];(s||"audio"===e)&&r.push("AUDIO"),(s||"subtitle"===e)&&(r.push("CLOSED-CAPTIONS"),r.push("SUBTITLES")),r.forEach(e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)}),["main","audio","subtitle"].forEach(t=>{const s=this[`${t}SegmentLoader_`];!s||e!==t&&"all"!==e||i.push(s)}),i.forEach(e=>t.forEach(t=>{"function"==typeof e[t]&&e[t]()}))}setCurrentTime(e){const t=pu(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:sd.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}getSeekableRange_(e,t){const i=e.media();if(!i)return null;const s=this.syncController_.getMediaSequenceSync(t);if(s&&s.isReliable){const e=s.start,t=s.end;if(!isFinite(e)||!isFinite(t))return null;const r=sd.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i);return uu([[e,Math.max(e,t-r)]])}const r=this.syncController_.getExpiredTime(i,this.duration());if(null===r)return null;const n=sd.Playlist.seekable(i,r,sd.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i));return n.length?n:null}computeFinalSeekable_(e,t){if(!t)return e;const i=e.start(0),s=e.end(0),r=t.start(0),n=t.end(0);return r>s||i>n?e:uu([[Math.max(i,r),Math.min(s,n)]])}onSyncInfoUpdate_(){if(!this.mainPlaylistLoader_)return;const e=this.getSeekableRange_(this.mainPlaylistLoader_,"main");if(!e)return;let t;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,"audio"),!t))return;const i=this.seekable_;if(this.seekable_=this.computeFinalSeekable_(e,t),!this.seekable_)return;if(i&&i.length&&this.seekable_.length&&i.start(0)===this.seekable_.start(0)&&i.end(0)===this.seekable_.end(0))return;this.logger_(`seekable updated [${gu(this.seekable_)}]`);const s={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:s}),this.tech_.trigger("seekablechanged")}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){const e=this.seekable();if(!e.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1)))}const t=this.tech_.buffered();let i=sd.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(i=Math.max(i,t.end(t.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const t=this.mediaTypes_[e].groups;for(const e in t)t[e].forEach(e=>{e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=Qu(this.main(),t),s={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(s.video=i.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(s.video+=`,${i.audio||e.main.audioCodec||Zt}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(s.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||Zt,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!s.audio&&!s.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const n=(e,t)=>e?Gt(t,this.usingManagedMediaSource_):Xt(t),a={};let o;if(["video","audio"].forEach(function(t){if(s.hasOwnProperty(t)&&!n(e[t].isFmp4,s[t])){const i=e[t].isFmp4?"browser":"muxer";a[i]=a[i]||[],a[i].push(s[t]),"audio"===t&&(o=i)}}),r&&o&&t.attributes.AUDIO){const e=t.attributes.AUDIO;this.main().playlists.forEach(i=>{(i.attributes&&i.attributes.AUDIO)===e&&i!==t&&(i.excludeUntil=1/0)}),this.logger_(`excluding audio group ${e} as ${o} does not support codec(s): "${s.audio}"`)}if(Object.keys(a).length){const e=Object.keys(a).reduce((e,t)=>(e&&(e+=", "),e+`${t} does not support codec(s): "${a[t].join(",")}"`),"")+".";return void this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0})}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach(t=>{const i=(Vt(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(Vt(s[t]||"")[0]||{}).type;i&&r&&i.toLowerCase()!==r.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${s[t]}"`)}),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return s}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())return;if(!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach(i=>{const s=e[i];if(-1!==t.indexOf(s.id))return;t.push(s.id);const r=Qu(this.main,s),n=[];!r.audio||Xt(r.audio)||Gt(r.audio,this.usingManagedMediaSource_)||n.push(`audio codec ${r.audio}`),!r.video||Xt(r.video)||Gt(r.video,this.usingManagedMediaSource_)||n.push(`video codec ${r.video}`),r.text&&"stpp.ttml.im1t"===r.text&&n.push(`text codec ${r.text}`),n.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id} for unsupported: ${n.join(", ")}`))})}excludeIncompatibleVariants_(e){const t=[],i=this.main().playlists,s=Xu(Vt(e)),r=Zu(s),n=s.video&&Vt(s.video)[0]||null,a=s.audio&&Vt(s.audio)[0]||null;Object.keys(i).forEach(e=>{const s=i[e];if(-1!==t.indexOf(s.id)||s.excludeUntil===1/0)return;t.push(s.id);const o=[],l=Qu(this.mainPlaylistLoader_.main,s),u=Zu(l);if(l.audio||l.video){if(u!==r&&o.push(`codec count "${u}" !== "${r}"`),!this.sourceUpdater_.canChangeType()){const e=l.video&&Vt(l.video)[0]||null,t=l.audio&&Vt(l.audio)[0]||null;e&&n&&e.type.toLowerCase()!==n.type.toLowerCase()&&o.push(`video codec "${e.type}" !== "${n.type}"`),t&&a&&t.type.toLowerCase()!==a.type.toLowerCase()&&o.push(`audio codec "${t.type}" !== "${a.type}"`)}o.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id}: ${o.join(" && ")}`))}})}updateAdCues_(e){let t=0;const i=this.seekable();i.length&&(t=i.start(0)),function(e,t,i=0){if(!e.segments)return;let s,r=i;for(let i=0;i<e.segments.length;i++){const n=e.segments[i];if(s||(s=Uh(t,r+n.duration/2)),s){if("cueIn"in n){s.endTime=r,s.adEndTime=r,r+=n.duration,s=null;continue}if(r<s.endTime){r+=n.duration;continue}s.endTime+=n.duration}else if("cueOut"in n&&(s=new be.VTTCue(r,r+n.duration,n.cueOut),s.adStartTime=r,s.adEndTime=r+parseFloat(n.cueOut),t.addCue(s)),"cueOutCont"in n){const[e,i]=n.cueOutCont.split("/").map(parseFloat);s=new be.VTTCue(r,r+n.duration,""),s.adStartTime=r-e,s.adEndTime=s.adStartTime+i,t.addCue(s)}r+=n.duration}}(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=Ec.GOAL_BUFFER_LENGTH,i=Ec.GOAL_BUFFER_LENGTH_RATE,s=Math.max(t,Ec.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,s)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=Ec.BUFFER_LOW_WATER_LINE,i=Ec.BUFFER_LOW_WATER_LINE_RATE,s=Math.max(t,Ec.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,Ec.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?r:s)}bufferHighWaterLine(){return Ec.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){sh(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:e,dateRanges:t})=>{const i=e.metadataTrack_;if(!i)return;const s=be.WebKitDataCue||be.VTTCue;t.forEach(e=>{for(const t of Object.keys(e)){if(ih.has(t))continue;const r=new s(e.startTime,e.endTime,"");r.id=e.id,r.type="com.apple.quicktime.HLS",r.value={key:th[t],data:e[t]},"scte35Out"!==t&&"scte35In"!==t||(r.value.data=new Uint8Array(r.value.data.match(/[\da-f]{2}/gi)).buffer),i.addCue(r)}e.processDateRange()})})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,i){const s=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();sh(this.inbandTextTracks_,e,this.tech_),(({inbandTextTracks:e,metadataArray:t,timestampOffset:i,videoDuration:s})=>{if(!t)return;const r=be.WebKitDataCue||be.VTTCue,n=e.metadataTrack_;if(!n)return;if(t.forEach(e=>{const t=e.cueTime+i;!("number"!=typeof t||be.isNaN(t)||t<0)&&t<1/0&&e.frames&&e.frames.length&&e.frames.forEach(e=>{const i=new r(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,function(e){Object.defineProperties(e.frame,{id:{get:()=>(eu.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(eu.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(eu.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})}(i),n.addCue(i)})}),!n.cues||!n.cues.length)return;const a=n.cues,o=[];for(let e=0;e<a.length;e++)a[e]&&o.push(a[e]);const l=o.reduce((e,t)=>{const i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),u=Object.keys(l).sort((e,t)=>Number(e)-Number(t));u.forEach((e,t)=>{const i=l[e],r=isFinite(s)?s:e,n=Number(u[t+1])||r;i.forEach(e=>{e.endTime=n})})})({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:s,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart?this.contentSteeringController_.requestSteeringManifest(!0):this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.contentSteeringController_.on(e,e=>{this.trigger(Et({},e))})}),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const t=this.contentSteeringController_.getAvailablePathways(),i=[];for(const s of e.playlists){const e=s.attributes.serviceLocation;if(e&&(i.push(e),!t.has(e)))return!0}return!(i.length||!t.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const t=this.main().playlists,i=new Set;let s=!1;Object.keys(t).forEach(r=>{const n=t[r],a=this.pathwayAttribute_(n),o=a&&e!==a;n.excludeUntil===1/0&&"content-steering"===n.lastExcludeReason_&&!o&&(delete n.excludeUntil,delete n.lastExcludeReason_,s=!0);const l=!n.excludeUntil&&n.excludeUntil!==1/0;!i.has(n.id)&&o&&l&&(i.add(n.id),n.excludeUntil=1/0,n.lastExcludeReason_="content-steering",this.logger_(`excluding ${n.id} for ${n.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(t=>{const i=this.mediaTypes_[t];if(i.activePlaylistLoader){const t=i.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(s=!0)}}),s&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main().playlists,t=this.contentSteeringController_.currentPathwayClones,i=this.contentSteeringController_.nextPathwayClones;if(t&&t.size||i&&i.size){for(const[e,s]of t.entries())i.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(s),this.contentSteeringController_.excludePathway(e));for(const[s,r]of i.entries()){const i=t.get(s);i?this.equalPathwayClones_(i,r)||(this.mainPlaylistLoader_.updateOrDeleteClone(r,!0),this.contentSteeringController_.addAvailablePathway(s)):(e.filter(e=>e.attributes["PATHWAY-ID"]===r["BASE-ID"]).forEach(e=>{this.mainPlaylistLoader_.addClonePathway(r,e)}),this.contentSteeringController_.addAvailablePathway(s))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...i])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,s=t["URI-REPLACEMENT"].PARAMS;for(const e in i)if(i[e]!==s[e])return!1;for(const e in s)if(i[e]!==s[e])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(i=>{const s=this.mainPlaylistLoader_.getKeyIdSet(i);s&&s.size&&s.forEach(s=>{const r="usable",n=this.keyStatusMap_.has(s)&&this.keyStatusMap_.get(s)===r,a=i.lastExcludeReason_===t&&i.excludeUntil===1/0;n?n&&a&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${s} is ${r}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==t&&(i.excludeUntil=1/0,i.lastExcludeReason_=t,this.logger_(`excluding playlist ${i.id} because the key ID ${s} doesn't exist in the keyStatusMap or is not ${r}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(e=>{const i=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,s=e.excludeUntil===1/0&&e.lastExcludeReason_===t;i&&s&&(delete e.excludeUntil,eu.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){const i=("string"==typeof e?e:(e=>{const t=new Uint8Array(e);return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")})(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${i} added to the keyStatusMap`),this.keyStatusMap_.set(i,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}class od{constructor(e,t,i){const{playlistController_:s}=e,r=s.fastQualityChange_.bind(s);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=Qu(s.main(),t),this.playlist=t,this.id=i,this.enabled=((e,t,i)=>s=>{const r=e.main.playlists[t],n=Au(r),a=Du(r);if(void 0===s)return a;s?delete r.disabled:r.disabled=!0;const o={renditionInfo:{id:t,bandwidth:r.attributes.BANDWIDTH,resolution:r.attributes.RESOLUTION,codecs:r.attributes.CODECS},cause:"fast-quality"};return s===a||n||(s?(i(r),e.trigger({type:"renditionenabled",metadata:o})):e.trigger({type:"renditiondisabled",metadata:o})),s})(e.playlists,t.id,r)}}const ld=["seeking","seeked","pause","playing","error"];class ud extends eu.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=ou("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),s=()=>this.techWaiting_(),r=()=>this.resetTimeUpdate_(),n=this.playlistController_,a=["main","subtitle","audio"],o={};a.forEach(e=>{o[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},n[`${e}SegmentLoader_`].on("appendsdone",o[e].updateend),n[`${e}SegmentLoader_`].on("playlistupdate",o[e].reset),this.tech_.on(["seeked","seeking"],o[e].reset)});const l=e=>{["main","audio"].forEach(t=>{n[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),l("off"))},this.clearSeekingAppendCheck_=()=>l("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),l("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",s),this.tech_.on(ld,r),this.tech_.on("canplay",i),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",s),this.tech_.off(ld,r),this.tech_.off("canplay",i),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),a.forEach(e=>{n[`${e}SegmentLoader_`].off("appendsdone",o[e].updateend),n[`${e}SegmentLoader_`].off("playlistupdate",o[e].reset),this.tech_.off(["seeked","seeking"],o[e].reset)}),this.checkCurrentTimeTimeout_&&be.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&be.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=be.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){const t=this.playlistController_,i=t[`${e}SegmentLoader_`],s=i.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(let i=0;i<e.length;i++)if(e.start(i)!==t.start(i)||e.end(i)!==t.end(i))return!0;return!1}(this[`${e}Buffered_`],s);if(this[`${e}Buffered_`]=s,r){const i={bufferedRanges:s};return t.trigger({type:"bufferedrangeschanged",metadata:i}),void this.resetSegmentDownloads_(e)}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:fu(s)}),this[`${e}StalledDownloads_`]<10||(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+hu>=t.end(t.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(uu([this.lastRecordedTime,e]));const t={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:t}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const e=this.seekable(),t=this.tech_.currentTime();let i;if(this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(i=e.end(e.length-1)),this.beforeSeekableWindow_(e,t)){const t=e.start(0);i=t+(t===e.end(0)?0:hu)}if(void 0!==i)return this.logger_(`Trying to seek outside of seekable at time ${t} with seekable range ${gu(e)}. Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0;const s=this.playlistController_.sourceUpdater_,r=this.tech_.buffered(),n=s.audioBuffer?s.audioBuffered():null,a=s.videoBuffer?s.videoBuffered():null,o=this.media(),l=o.partTargetDuration?o.partTargetDuration:2*(o.targetDuration-cu),u=[n,a];for(let e=0;e<u.length;e++)if(u[e]&&_u(u[e],t)<l)return!1;const c=mu(r,t);return 0!==c.length&&(i=c.start(0)+hu,this.logger_(`Buffered region starts (${c.start(0)}) just beyond seek point (${t}). Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),i=pu(t,e);return i.length&&e+3<=i.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const i=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${i}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,s=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const r=mu(s,t);return r.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${r.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,i,s=!1){if(!e.length)return!1;let r=e.end(e.length-1)+hu;const n=!i.endList,a="number"==typeof i.partTargetDuration;return n&&(a||s)&&(r=e.end(e.length-1)+3*i.targetDuration),t>r}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:i}){if(!e)return;let s;if(e.length&&t.length){const r=pu(e,i-3),n=pu(e,i),a=pu(t,i);a.length&&!n.length&&r.length&&(s={start:r.end(0),end:a.end(0)})}else mu(e,i).length||(s=this.gapFromVideoUnderflow_(e,i));return!!s&&(this.logger_(`Encountered a gap in video from ${s.start} to ${s.end}. Seeking to current time ${i}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),i=this.tech_.currentTime(),s=mu(t,i);if(this.resetTimeUpdate_(),0===s.length||i!==e)return;this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",s.start(0)),this.tech_.setCurrentTime(s.start(0)+cu);const r={gapInfo:{from:i,to:s.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:r}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,t){const i=function(e){if(e.length<2)return uu();const t=[];for(let i=1;i<e.length;i++){const s=e.end(i-1),r=e.start(i);t.push([s,r])}return uu(t)}(e);for(let e=0;e<i.length;e++){const s=i.start(e),r=i.end(e);if(t-s<4&&t-s>2)return{start:s,end:r}}return null}}const cd={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},hd=function(e,t){let i=0,s=0;const r=lu(cd,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const n=function(){s&&e.currentTime(s)},a=function(t){null!=t&&(s=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",n),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},o=function(){if(Date.now()-i<1e3*r.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(r.getSource&&"function"==typeof r.getSource)return i=Date.now(),r.getSource.call(e,a);eu.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},l=function(){e.off("loadedmetadata",n),e.off("error",o),e.off("dispose",l)};e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=function(t){l(),hd(e,t)}};var dd="3.17.0";const pd={PlaylistLoader:nc,Playlist:Ru,utils:fc,STANDARD_PLAYLIST_SELECTOR:Jc,INITIAL_PLAYLIST_SELECTOR:function(){const e=this.playlists.main.playlists.filter(Ru.isEnabled);return Qc(e,(e,t)=>Kc(e,t)),e.filter(e=>!!Qu(this.playlists.main,e).video)[0]||null},lastBandwidthSelector:Jc,movingAverageBandwidthSelector:function(e){let t=-1,i=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let s=this.useDevicePixelRatio&&be.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(s=this.customPixelRatio),t<0&&(t=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(t=e*this.systemBandwidth+(1-e)*t,i=this.systemBandwidth),Yc({main:this.playlists.main,bandwidth:t,playerWidth:parseInt(Zc(this.tech_.el(),"width"),10)*s,playerHeight:parseInt(Zc(this.tech_.el(),"height"),10)*s,playerObjectFit:this.usePlayerObjectFit?Zc(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})}},comparePlaylistBandwidth:Kc,comparePlaylistResolution:function(e,t){let i,s;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||be.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||be.Number.MAX_VALUE,i===s&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-s},xhr:oc()};Object.keys(Ec).forEach(e=>{Object.defineProperty(pd,e,{get:()=>(eu.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),Ec[e]),set(t){eu.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0?eu.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):Ec[e]=t}})});const md="videojs-vhs",gd=function(e,t){const i=t.media();let s=-1;for(let t=0;t<e.length;t++)if(e[t].id===i.id){s=t;break}e.selectedIndex_=s,e.trigger({selectedIndex:s,type:"change"})};pd.canPlaySource=function(){return eu.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const fd=()=>{if(!be.localStorage)return null;const e=be.localStorage.getItem(md);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},yd=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},_d=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},vd=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},bd=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};pd.supportsNativeHls=function(){if(!Je||!Je.createElement)return!1;const e=Je.createElement("video");return!!eu.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),pd.supportsNativeDash=!!(Je&&Je.createElement&&eu.getTech("Html5").isSupported())&&/maybe|probably/i.test(Je.createElement("video").canPlayType("application/dash+xml")),pd.supportsTypeNatively=e=>"hls"===e?pd.supportsNativeHls:"dash"===e&&pd.supportsNativeDash,pd.isSupported=function(){return eu.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},pd.xhr.onRequest=function(e){yd(pd.xhr,e)},pd.xhr.onResponse=function(e){_d(pd.xhr,e)},pd.xhr.offRequest=function(e){vd(pd.xhr,e)},pd.xhr.offResponse=function(e){bd(pd.xhr,e)};const Td=eu.getComponent("Component");class Sd extends Td{constructor(e,t,i){if(super(t,i.vhs),"number"==typeof i.initialBandwidth&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=ou("VhsHandler"),t.options_&&t.options_.playerId){const e=eu.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(Je,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],e=>{const t=Je.fullscreenElement||Je.webkitFullscreenElement||Je.mozFullScreenElement||Je.msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=lu(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.usePlayerObjectFit=this.options_.usePlayerObjectFit||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=void 0===this.options_.useNetworkInformationApi||this.options_.useNetworkInformationApi,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const e=fd();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Ec.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Ec.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","usePlayerObjectFit","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(e=>{void 0!==this.source_[e]&&(this.options_[e]=this.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio,this.usePlayerObjectFit=this.options_.usePlayerObjectFit;const t=this.options_.customPixelRatio;"number"==typeof t&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=(e=>0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e)(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=pd,this.options_.sourceType=Yt(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.options_.player_=this.player_,this.playlistController_=new ad(this.options_);const i=lu({liveRangeSafeTimeDelta:hu},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new ud(i),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{const e=eu.players[this.tech_.options_.playerId];let t=this.playlistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});const s=this.options_.bufferBasedABR?pd.movingAverageBandwidthSelector(.55):pd.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.playlistController_.selectInitialPlaylist=pd.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth;const t=be.navigator.connection||be.navigator.mozConnection||be.navigator.webkitConnection,i=1e7;if(this.options_.useNetworkInformationApi&&t){const s=1e3*t.downlink*1e3;e=s>=i&&e>=i?Math.max(e,s):s}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const e=1/(this.bandwidth||1);let t;return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set(){eu.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>fu(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>fu(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&(e=>{if(!be.localStorage)return!1;let t=fd();t=t?lu(t,e):e;try{be.localStorage.setItem(md,JSON.stringify(t))}catch(e){return!1}})({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{!function(e){e.representations=()=>{const t=e.playlistController_.main(),i=Nu(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter(e=>!Au(e)).map((t,i)=>new od(e,t,t.id)):[]}}(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=be.URL.createObjectURL(this.playlistController_.mediaSource),(eu.browser.IS_ANY_SAFARI||eu.browser.IS_IOS)&&this.options_.overrideNative&&"hls"===this.options_.sourceType&&"function"==typeof this.tech_.addSourceElement?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),(({player:e,sourceKeySystems:t,audioMedia:i,mainPlaylists:s})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=((e,t)=>e.reduce((e,i)=>{if(!i.contentProtection)return e;const s=t.reduce((e,t)=>{const s=i.contentProtection[t];return s&&s.pssh&&(e[t]={pssh:s.pssh}),e},{});return Object.keys(s).length&&e.push(s),e},[]))(i?s.concat([i]):s,Object.keys(t)),n=[],a=[];return r.forEach(t=>{a.push(new Promise((t,i)=>{e.tech_.one("keysessioncreated",t)})),n.push(new Promise((i,s)=>{e.eme.initializeMediaKeys({keySystems:t},e=>{e?s(e):i()})}))}),Promise.race([Promise.all(n),Promise.race(a)])})({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=(({player:e,sourceKeySystems:t,media:i,audioMedia:s})=>{const r=((e,t,i)=>{if(!e)return e;let s={};t&&t.attributes&&t.attributes.CODECS&&(s=Xu(Vt(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(s.audio=i.attributes.CODECS);const r=Wt(s.video),n=Wt(s.audio),a={};for(const i in e)a[i]={},n&&(a[i].audioContentType=n),r&&(a[i].videoContentType=r),t.contentProtection&&t.contentProtection[i]&&t.contentProtection[i].pssh&&(a[i].pssh=t.contentProtection[i].pssh),"string"==typeof e[i]&&(a[i].url=e[i]);return lu(e,a)})(t,i,s);return!(!r||(e.currentSource().keySystems=r,r&&!e.eme&&(eu.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1)))})({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=eu.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{!function(e,t){t.representations().forEach(t=>{e.addQualityLevel(t)}),gd(e,t.playlists)}(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{gd(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":dd,"mux.js":"7.1.0","mpd-parser":"1.3.1","m3u8-parser":"7.2.0","aes-decrypter":"4.0.2"}}version(){return this.constructor.version()}canChangeType(){return Mh.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&be.URL.revokeObjectURL&&(be.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return(({playlist:e,time:t,callback:i})=>{if(!i)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===t)return i({message:"getProgramTime: playlist and time must be provided"});const s=((e,t)=>{if(!t||!t.segments||0===t.segments.length)return null;let i,s=0;for(let r=0;r<t.segments.length&&(i=t.segments[r],s=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:s+i.duration,!(e<=s));r++);const r=t.segments[t.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>s){if(e>s+.25*r.duration)return null;i=r}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:s-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}})(t,e);if(!s)return i({message:"valid programTime was not found"});if("estimate"===s.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});const r={mediaSeconds:t},n=((e,t)=>{if(!t.dateTimeObject)return null;const i=t.videoTimingInfo.transmuxerPrependedSeconds,s=e-(t.videoTimingInfo.transmuxedPresentationStart+i);return new Date(t.dateTimeObject.getTime()+1e3*s)})(t,s.segment);return n&&(r.programDateTime=n.toISOString()),i(null,r)})({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,i=!0,s=2){return yc({programTime:e,playlist:this.playlistController_.media(),retryCount:s,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{yd(this.xhr,e)},this.xhr.onResponse=e=>{_d(this.xhr,e)},this.xhr.offRequest=e=>{vd(this.xhr,e)},this.xhr.offResponse=e=>{bd(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.playlistController_.on(e,e=>{this.player_.trigger(Et({},e))})}),["gapjumped","playedrangeschanged"].forEach(e=>{this.playbackWatcher_.on(e,e=>{this.player_.trigger(Et({},e))})})}}const wd={name:"videojs-http-streaming",VERSION:dd,canHandleSource(e,t={}){const i=lu(eu.options,t);return!(!i.vhs.experimentalUseMMS&&!Gt("avc1.4d400d,mp4a.40.2",!1))&&wd.canPlayType(e.type,i)},handleSource(e,t,i={}){const s=lu(eu.options,i);return t.vhs=new Sd(e,t,s),t.vhs.xhr=oc(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const i=Yt(e);if(!i)return"";const s=wd.getOverrideNative(t);return!pd.supportsTypeNatively(i)||s?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,i=!(eu.browser.IS_ANY_SAFARI||eu.browser.IS_IOS),{overrideNative:s=i}=t;return s}};Gt("avc1.4d400d,mp4a.40.2",!0)&&eu.getTech("Html5").registerSourceHandler(wd,0),eu.VhsHandler=Sd,eu.VhsSourceHandler=wd,eu.Vhs=pd,eu.use||eu.registerComponent("Vhs",pd),eu.options.vhs=eu.options.vhs||{},eu.getPlugin&&eu.getPlugin("reloadSourceOnError")||eu.registerPlugin("reloadSourceOnError",function(e){hd(this,e)});let Cd=class extends q.A{constructor(){super(),this._controllerConfigs={autoplay:!1,autoSetup:!1,controls:!1,defaultVolume:.3,disablePictureInPicture:!0,enableDocumentPictureInPicture:!1,enableSmoothSeeking:!0,html5:{nativeAudioTracks:!1,nativeVideoTracks:!1,vhs:{llhls:!0,overrideNative:!0}},inactivityTimeout:0,liveTracker:{liveTolerance:10,trackingThreshold:15},loop:!1,muted:!1,nativeControlsForTouch:!1,normalizeAutoplay:!0,preload:"auto"},this._prevPlayingState=!1,this._retryCount=0,this._qualityLevels=[],this.autoplay=!1,this.currentMetadata=null,this.element=null,this.isLive=!1,this.mimeType=null,this.sensorModel=null,this.started=!1,this.state="not-ready",this.waitingTimestamp=null,this._initController=async()=>{if(!this._controller&&this.playerUrl)try{const e={...this._controllerConfigs};this.element=document.createElement("video"),eu.log.level("off"),this._controller=eu(this.element,e),this._controller.muted(this.muted),this._controller.loop(this.loop),this._controller.playbackRate(this.rate),this._controller.qualityLevels().on("addqualitylevel",e=>this._handleQualityLevel(e)),this._controller.ready(this._handleReady),this._controller.one("play",this._handleFirstPlay),this._controller.on("canplay",this._handleCanPlay),this._controller.on("durationchange",this._handleDurationChange),this._controller.on("ended",this._handleEnded),this._controller.on("error",this._handleError),this._controller.on("loadeddata",this._handleDataLoaded),this._controller.on("loadedmetadata",this._handleLoadedMetadata),this._controller.on("loadstart",this._handleLoadStart),this._controller.on("play",this._handlePlay),this._controller.on("playing",this._handlePlaying),this._controller.on("stalled",this._handleStalled),this._controller.on("timeupdate",this._handleTimeUpdate),this._controller.on("waiting",this._handleWaiting),this._controller.on("xhr-hooks-ready",this._handleXHRhooksReady),this._controller?.liveTracker.on("seekableendchange",()=>this.notifyChange("livestreamStatus")),this._controller?.liveTracker.on("liveedgechange",()=>this.notifyChange("livestreamStatus"))}catch(e){l.A.getLogger(this).error("Unable to initialize the player."),this._controller&&this._controller.dispose()}},this._handleQualityLevel=e=>{if(!e?.qualityLevel)return;const t=e.qualityLevel;this._qualityLevels.push(t),t?.enabled&&(this._set("videoWidth",t?.width??0),this._set("videoHeight",t?.height??0))},this._handleReady=()=>{this.state="ready"},this._handleFirstPlay=()=>{this._set("started",!0)},this._handleCanPlay=async()=>{if(this._prevPlayingState="playing"===this.state,this.state="can-play",this.autoplay&&!this.started)try{this.muted=!0,await this.play()}catch(e){l.A.getLogger(this).info("Unable to auto start playback. Blocked by the browser.")}},this._handleCueChange=()=>{if(!this.subtitleTrack?.activeCues?.length)return;const e=this.subtitleTrack?.activeCues,t=function(e,t=1e4){if(!e||!e.length)return[];let i=[],s=[];for(let t=0;t<e.length;t++){const s=e[t],r=s?.text?JSON.parse(s.text):null;"EsriVideoServer"===r?.source&&(i=[...r.data])}const r=i.find(e=>e.tagId===t);return Array.isArray(r?.value)&&(s=[...r.value]),s}(e);if(!t?.length)return;const i=new Map;for(const e of t)Array.isArray(e.value)?90064===e.tagId?i.set(e.tagId,e):e.value.forEach(e=>{i.set(e.tagId,e)}):i.set(e.tagId,e);i.set(he,{name:"Video Width",tagId:he,value:this._controller?.videoWidth()}),i.set(de,{name:"Video Height",tagId:de,value:this._controller?.videoHeight()}),this.currentMetadata=new Map(i)},this._handleDataLoaded=()=>{this._set("videoWidth",this._controller?.videoWidth()),this._set("videoHeight",this._controller?.videoHeight())},this._handleDurationChange=()=>{0!==this._controller?.duration()&&(this.notifyChange("duration"),this.isLive=this._controller?.duration()===1/0||!1,this._setLivestreamStatus(),this.started&&this._controller?.duration()===this._controller?.currentTime()&&this._controller?.trigger("ended"))},this._handleEnded=()=>{this._controller?.ended()&&this.notifyChange("ended")},this._handleError=()=>{const e=this._controller?.error()??null;if("number"==typeof e?.code&&e?.code<3&&0===this._retryCount)this._retryCount++,setTimeout(()=>{this._controller?.src({type:this.mimeType,src:this.playerUrl}),this._controller?.load()},2e3);else{const t=new o.A("Media Error",e?.message??"");l.A.getLogger(this).error(t),this.reset()}},this._handleLoadStart=()=>{this.state="can-play"},this._handleLoadedMetadata=()=>{this.state="can-play",this.notifyChange("buffered"),this.notifyChange("subtitleTrack")},this._handlePlay=()=>{this.notifyChange("ended")},this._handlePlaying=()=>{this.state="playing",this._retryCount=0,this.notifyChange("ended")},this._handleStalled=()=>{l.A.getLogger(this).warn("Playback is stalled and awaiting data")},this._handleTimeUpdate=()=>{this._setLivestreamStatus(),this.notifyChange("currentTime"),this.notifyChange("buffered"),this.notifyChange("bufferedPercent"),this._set("videoWidth",this._controller?.videoWidth()),this._set("videoHeight",this._controller?.videoHeight())},this._handleWaiting=()=>{this.waitingTimestamp=this._controller?.currentTime(),this.state="waiting"},this._handleXHRhooksReady=()=>{this._controller?.tech(!0)?.vhs.xhr.onRequest(e=>(e.xhr=new X,e))},this._updateSensorModel=()=>{this.currentMetadata?.size&&(this.sensorModel?this.sensorModel.updateSensorModel(this.currentMetadata):this.sensorModel=new ge({videoMetadata:this.currentMetadata}))},this._setLivestreamStatus=()=>{if(!this.isLive)return void(this.livestreamStatus=null);this._controller?.liveTracker.isTracking()||this._controller?.liveTracker.startTracking();const e={atLiveEdge:this._controller?.liveTracker.atLiveEdge()??null,behindLiveEdge:this._controller?.liveTracker.behindLiveEdge()??null,liveCurrentTime:this._controller?.liveTracker?.liveCurrentTime()??null,liveWindow:this._controller?.liveTracker?.liveWindow()??null,pastSeekEnd:this._controller?.liveTracker?.pastSeekEnd()??null,seekableEnd:this._controller?.liveTracker?.seekableEnd()??null,seekableStart:this._controller?.liveTracker?.seekableStart()??null};this.livestreamStatus={...e},this.notifyChange("livestreamStatus"),this._controller?.liveTracker.handlePlay(),this._controller?.liveTracker.handleFirstTimeupdate()}}initialize(){this.addHandles([(0,d.wB)(()=>this.playerUrl,e=>{e&&this._initController().then(()=>{this.mimeType=function(e){if(!e)return re;const t=e.match(/\.(\w{3,4})(?:$|\?)/i);if(!t)return re;switch(t[1].toLowerCase()){case"mp4":return"video/mp4";case"webm":return"video/webm";default:return re}}(e),this._controller?.src({src:this.playerUrl,type:this.mimeType})})},d.Vh),(0,d.wB)(()=>this.subtitleTrack,()=>{this.subtitleTrack&&(this.subtitleTrack.mode="showing")},d.Vh),(0,d.wB)(()=>this.isLive,e=>{e&&this._controller?.liveTracker.startTracking()}),(0,d.wB)(()=>this.currentMetadata,()=>this._updateSensorModel())]),this.addHandles((0,d.on)(()=>this.subtitleTrack,"cuechange",this._handleCueChange),d.Vh)}destroy(){this.removeAllHandles(),this._controller?.dispose()}get buffered(){return this._controller?.bufferedEnd()??0}get bufferedPercent(){return this._controller?.bufferedPercent()??0}get crossOrigin(){return this._controller?.crossOrigin()??this._get("crossOrigin")}set crossOrigin(e){this._controller?.crossOrigin(e),this._set("crossOrigin",e)}get currentTime(){return this._controller?.currentTime()??0}get duration(){return this._controller?.duration()??0}get ended(){return this._controller?.ended()??this._get("ended")??!0}set ended(e){this._controller?.trigger("ended"),this._set("ended",e)}get loop(){return this._controller?.loop()??this._get("loop")??!1}set loop(e){this._controller?.loop(e),this._set("loop",e)}get muted(){return this._controller?.muted()??this._get("muted")??!1}set muted(e){this._controller?.muted(e),this._set("muted",e)}get playerUrl(){return this._controller?.src()||""}set playerUrl(e){this._set("playerUrl",e)}get playing(){return!this.ended&&("can-play"===this.state?this._prevPlayingState:"playing"===this.state)}get playsInline(){const e=this._controller?.playsinline();return e??this._get("playsInline")??!1}set playsInline(e){this._controller?.playsinline(e),this._set("playsInline",e)}get rate(){return this._controller?.playbackRate()??this._get("rate")??1}set rate(e){this._controller?.playbackRate(e),this._set("rate",e)}get subtitleTrack(){const e=this._controller?.textTracks();return e?.length?Array.from(e).find(e=>"subtitles"===e.kind):null}get volume(){return this._controller?.volume()??0}set volume(e){const t=(0,u.qE)(e,0,1);isNaN(t)||this._controller?.volume(t)}get waiting(){return!(this.waitingTimestamp||this.waitingTimestamp!==this.currentTime&&(this.waitingTimestamp=null,1))}pause(){this._controller?.pause(),this.state="paused"}async play(){try{!this.started&&this.isLive&&this._controller?.muted(!0),await(this._controller?.play()),this.state="playing"}catch(e){}}reset(){this._controller&&(this._prevPlayingState=!1,this._retryCount=0,this._set("started",!1),this.setCurrentTime(0),this.notifyChange("buffered"),this.notifyChange("currentTime"),this.notifyChange("duration"),this.notifyChange("waiting"),this._controller?.trigger("can-play"),this.autoplay||this._controller?.pause())}seekToLiveEdge(){this.isLive?"playing"===this.state&&this._controller?.liveTracker.isTracking()&&this._controller?.liveTracker.seekToLiveEdge():l.A.getLogger(this).info("seekToLiveEdge method is only available for livestream playback.")}setCurrentTime(e){const t=(0,u.qE)(e,0,this.duration);this._controller?.currentTime(t),this.notifyChange("currentTime")}};(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"autoplay",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"buffered",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"bufferedPercent",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"crossOrigin",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"currentTime",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"currentMetadata",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"duration",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"element",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"ended",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"isLive",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"livestreamStatus",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"loop",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"mimeType",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"muted",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"playerUrl",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"playing",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"playsInline",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"rate",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"sensorModel",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"started",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"state",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"subtitleTrack",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"videoHeight",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"videoWidth",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"volume",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"waiting",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"waitingTimestamp",void 0),Cd=(0,s.Cg)([(0,f.$)("esri.layers.video.VideoController")],Cd);var Ed=i(40863),kd=i(58592),xd=i(94985),Id=i(31593),Ad=i(53930),Dd=i(20378),Pd=i(73838);function Md(e,t){return{ignoreOrigin:this.originIdOf(t)<3}}let Ld=[];const Od=new r.A([255,127,0]),Nd=new r.A([0,0,0,.05]),Rd=new Ad.A({angle:0,color:Od,size:10,style:"cross"}),Ud=new xd.A({color:Nd,outline:new Id.A({color:Od,width:2})}),Fd=new Id.A({color:Od,width:1}),Bd=new Ad.A({angle:0,color:Od,outline:{color:[255,255,255],width:1.33},size:10,style:"circle"}),qd=new Id.A({color:Od,width:1}),jd={types:{base:Dd.A,key:"type",typeMap:{"simple-marker":Ad.A,"picture-marker":kd.A,cim:Ed.A}},json:{name:"drawingInfo.sensorSymbol",write:{writer:Pd.M9,overridePolicy:Md}}};function $d(e,t){return{type:t,json:{name:e,write:{overridePolicy:Md}}}}let Hd=class extends((0,S.dM)((0,k.j)((0,T.b)((0,C.q)((0,E.A)((0,c.P)((0,w.d)(b.A)))))))){constructor(e){super(e),this.capabilities=null,this.codecs=null,this.connectionInfo=null,this.controller=new Cd,this.copyright=null,this.created=null,this.customParameters=null,this.description=null,this.elevationSource=null,this.frame=null,this.frameCenterSymbol=Rd.clone(),this.frameCount=null,this.frameEffect=null,this.frameOpacity=1,this.frameOutlineSymbol=Ud.clone(),this.fullExtent=null,this.initialExtent=null,this.layerId=null,this.operationalLayerType="ArcGISVideoLayer",this.playbackInfo=null,this.posterUrl=null,this.qualities=null,this.sensorSymbolOrientation={source:"platformHeading",symbolOffset:0},this.sensorSymbol=Bd.clone(),this.sensorSightLineSymbol=Fd.clone(),this.sensorTrailSymbol=qd.clone(),this.serviceItemId=null,this.sourceJSON=null,this.sourceQuality=null,this.sourceType=null,this.spatialReference=v.A.WGS84,this.start=0,this.telemetryDisplay=new B,this.type="video",this.url=null,this.version=null,this.videoLayersInfo=null}initialize(){this.addHandles([(0,d.wB)(()=>this.metadata,()=>{this.notifyChange("telemetry"),this.notifyChange("groundControlPoints"),this.notifyChange("frameHorizonPoints")}),(0,d.wB)(()=>this.telemetry?.sensorLocation,e=>this._setSensorTrail(e),d.Vh)]),(0,d.C_)(()=>this.loaded&&"can-play"===this.state&&this.duration>0).then(()=>{this.start>=0&&this.start<=this.duration&&this.setCurrentTime(this.start)})}destroy(){this.removeAllHandles(),this.controller&&this.controller.destroy()}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Video Service"],supportsData:!1},e).catch(h.QP).then(()=>this._fetchService(t));return this.addResolvingPromise(i),Promise.resolve(this)}get autoplay(){return this.controller?.autoplay??!1}set autoplay(e){this.controller.autoplay=e}get buffered(){return this.controller.buffered}readCapabilitiesFromService(e,t){return(0,O.d)(t)}readConnectionInfo(e,t){const i=Object.values(t.connectionUrl);return i?.length&&(this.controller.playerUrl=i[0]),t.connectionUrl}get currentTime(){return this.controller.currentTime}get duration(){return this.controller.duration}get ended(){return this.controller.ended}get frameHorizonPoints(){return e=this.metadata,e?.size?e.get(90063)?.value??null:null;var e}get groundControlPoints(){return e=this.metadata,e?.size?e.get(90064)?.value??null??null:null;var e}get isLive(){return this.controller?.isLive??!1}get livestreamStatus(){return this.controller?.livestreamStatus}get loop(){return this.controller.loop}set loop(e){this.controller.loop=e}get metadata(){return this.controller?.currentMetadata}get mimeType(){return this.controller?.mimeType}get muted(){return this.controller.muted}set muted(e){this.controller.muted=e}get parsedUrl(){return(0,A.h)(this)}get playbackRate(){return this.controller.rate}set playbackRate(e){this.controller.rate=e}get playerUrl(){return this.controller.playerUrl}get playing(){return this.controller.playing}get started(){return this.controller?.started??!1}get state(){return this.controller.state}get telemetry(){return function(e){if(!e?.size)return new U;const t=function(e){if(!e?.size)return null;if(e.has(90061)){const t=e.get(90061)?.value;if(t)return N.A.fromJSON(t.geometry)}return e.has(ae)&&e.has(ne)?new N.A({x:e.get(ae)?.value,y:e.get(ne)?.value,z:e.get(oe)?.value}):null}(e),i=function(e){return function(e){return e&&e.has(90050)&&e.has(90051)?new N.A({x:e.get(90051).value,y:e.get(90050).value,z:e.get(10078)?.value??e.get(ce)?.value}):null}(e)??function(e){return e&&e.has(le)&&e.has(ue)?new N.A({x:e.get(ue)?.value,y:e.get(le)?.value,z:e.get(ce)?.value}):null}(e)}(e),s=function(e){if(!e)return null;const t=e.get(90060)?.value;return t?R.A.fromJSON(t.geometry):function(e){if(!(e.has(90052)&&e.has(90053)&&e.has(90054)&&e.has(90055)&&e.has(90056)&&e.has(90057)&&e.has(90058)&&e.has(90059)))return null;const t=[e.get(90053)?.value,e.get(90052)?.value],i=[e.get(90055)?.value,e.get(90054)?.value],s=[e.get(90057)?.value,e.get(90056)?.value],r=[e.get(90059)?.value,e.get(90058)?.value];return new R.A({rings:[[t,i,s,r]]})}(e)??function(e){if(!(e.has(10026)&&e.has(10027)&&e.has(10028)&&e.has(10029)&&e.has(10030)&&e.has(10031)&&e.has(10032)&&e.has(10033)&&e.has(le)&&e.has(ue)))return null;const t=e.get(le)?.value,i=e.get(ue)?.value,s=t+e.get(10026)?.value,r=i+e.get(10027)?.value,n=t+e.get(10028)?.value,a=i+e.get(10029)?.value,o=t+e.get(10030)?.value,l=i+e.get(10031)?.value,u=t+e.get(10032)?.value,c=i+e.get(10033)?.value;return new R.A({rings:[[[r,s],[a,n],[l,o],[c,u]]]})}(e)}(e),r=function(e,t){if(!e||!t)return null;const i=[e.x,e.y,e.z??0],s=[t.x,t.y,t.z??0];return new _.A({paths:[[i,s]]})}(t,i);return new U({frameCenter:i,frameOutline:s,lineOfSight:r,sensorLocation:t})}(this.metadata)}readTitleFromService(e,{name:t}){return this.url?(0,x.yG)(this.url,t):t}get videoElement(){return this.controller?.element}get videoHeight(){return this.controller?.videoHeight}readLayerInfosFromService(e,t){return function(e){const t=e?.layers;return t?.length?t.map(e=>({layerId:e.id,posterUrl:e.poster,sourceType:e.serviceType,title:e.name,type:e.type||"Video Layer"})):[]}(t)}get videoTimeExtent(){return(0,a.Lx)(l.A.getLogger(this),"videoTimeExtent",{replacement:"fullTimeExtent",version:"4.33",warnOnce:!0}),this.fullTimeExtent}get videoWidth(){return this.controller?.videoWidth}get volume(){return this.controller?.volume??0}set volume(e){this.controller.volume=e}get waiting(){return this.controller.waiting}play(){this.controller.play()}pause(){this.controller.pause()}reset(){Ld=[],this.controller.reset()}setCurrentTime(e){if(this.duration<0)return;const t=(0,u.qE)(e,0,this.duration);this.controller.setCurrentTime(t)}toGround(e,t){return this.controller?.sensorModel?.metadataSupportsTransforms?this.controller.sensorModel.transformImageToGeo(e,t):null}toVideo(e){if(!this.controller?.sensorModel?.metadataSupportsTransforms)return null;const t=this.controller.sensorModel.transformGeoToImage(e.x,e.y,e.z);return{x:t[0],y:t[1]}}updateTelemetryColor(e){this.frameCenterSymbol=pe(this.frameCenterSymbol,e)??Rd,this.frameOutlineSymbol=pe(this.frameOutlineSymbol,e,Nd)??Ud,this.sensorSightLineSymbol=pe(this.sensorSightLineSymbol,e)??Fd,this.sensorTrailSymbol=pe(this.sensorTrailSymbol,e)??qd,this.sensorSymbol=pe(this.sensorSymbol,e)??Bd}write(e,t){return null==this.layerId?(t?.messages?.push(new o.A("layer:unsupported",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' cannot be saved to a web map, web scene, or portal item. The ArcGIS server version must be greater than 11.2.`)),null):super.write(e,t)}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:i}=await(0,n.A)(this.url,{query:{f:"json",...this.parsedUrl.query,...this.customParameters},signal:e});if(i&&(this.url=this.url.replace(/^http:/i,"https:")),!t?.currentVersion)return t.currentVersion="11.2",this.sourceJSON=t,void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});if(this.layerId??=t.layers?.[0]?.id??null,null==this.layerId)throw new o.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");const{data:s}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters},signal:e});this.sourceJSON={...t,...s},this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl})}_setSensorTrail(e){if(!e)return;const t=function(e,t){const i=[...t],s=i.findIndex(t=>t.equals(e));return s>-1&&i.splice(s),i.push(e),i}(e,Ld);Ld=[...t];const i=Ld.map(e=>e.toArray()),s=new _.A({hasZ:e.hasZ,paths:[i]});this.telemetry.sensorTrail=s.clone()}};(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],Hd.prototype,"autoplay",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"buffered",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"cameraInfo",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],Hd.prototype,"capabilities",void 0),(0,s.Cg)([(0,g.w)("service","capabilities",["supportsAppend","supportsCoverageQuery","supportsExportClip","supportsExportFrameset","supportsMensuration","supportsPreviews","supportsUpdate"])],Hd.prototype,"readCapabilitiesFromService",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"codecs",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"connectionInfo",void 0),(0,s.Cg)([(0,g.w)("connectionInfo",["connectionUrl"])],Hd.prototype,"readConnectionInfo",null),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"controller",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],Hd.prototype,"copyright",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:Date})],Hd.prototype,"created",void 0),(0,s.Cg)([(0,p.MZ)({type:Number})],Hd.prototype,"currentTime",null),(0,s.Cg)([(0,p.MZ)({json:{write:!1}})],Hd.prototype,"customParameters",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],Hd.prototype,"description",void 0),(0,s.Cg)([(0,p.MZ)({type:Number})],Hd.prototype,"duration",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"elevationSource",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean})],Hd.prototype,"ended",null),(0,s.Cg)([(0,p.MZ)({type:V})],Hd.prototype,"frame",void 0),(0,s.Cg)([(0,p.MZ)($d("drawingInfo.frameCenterSymbol",Ad.A))],Hd.prototype,"frameCenterSymbol",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:m.jz})],Hd.prototype,"frameCount",void 0),(0,s.Cg)([(0,p.MZ)(S.LF)],Hd.prototype,"frameEffect",void 0),(0,s.Cg)([(0,p.MZ)(I.ke)],Hd.prototype,"frameOpacity",void 0),(0,s.Cg)([(0,p.MZ)($d("drawingInfo.frameOutlineSymbol",xd.A))],Hd.prototype,"frameOutlineSymbol",void 0),(0,s.Cg)([(0,p.MZ)({type:y.A})],Hd.prototype,"fullExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"frameHorizonPoints",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:{reader:function(e){const{duration:t,end:i,start:s,timezone:r="UTC"}=e||{};return"number"!=typeof t?null:new W({duration:t||null,end:"number"==typeof i?new Date(i):null,start:"number"==typeof s?new Date(s):null,timezone:r})},source:"time"}},type:W})],Hd.prototype,"fullTimeExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"groundControlPoints",null),(0,s.Cg)([(0,p.MZ)(I.id)],Hd.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({type:y.A})],Hd.prototype,"initialExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"isLive",null),(0,s.Cg)([(0,p.MZ)({type:m.jz,json:{read:!1,origins:{service:{read:{source:"id"}}}}})],Hd.prototype,"layerId",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"livestreamStatus",null),(0,s.Cg)([(0,p.MZ)({type:Boolean})],Hd.prototype,"loop",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"metadata",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"mimeType",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],Hd.prototype,"muted",null),(0,s.Cg)([(0,p.MZ)({type:["ArcGISVideoLayer"]})],Hd.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"parsedUrl",null),(0,s.Cg)([(0,p.MZ)({type:L})],Hd.prototype,"playbackInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:Number})],Hd.prototype,"playbackRate",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:String})],Hd.prototype,"playerUrl",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"playing",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:{source:"poster"}}})],Hd.prototype,"posterUrl",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"qualities",void 0),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"sensorSymbolOrientation",void 0),(0,s.Cg)([(0,p.MZ)(jd)],Hd.prototype,"sensorSymbol",void 0),(0,s.Cg)([(0,p.MZ)($d("drawingInfo.sensorSightLineSymbol",Id.A))],Hd.prototype,"sensorSightLineSymbol",void 0),(0,s.Cg)([(0,p.MZ)($d("drawingInfo.sensorTrailSymbol",Id.A))],Hd.prototype,"sensorTrailSymbol",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"serviceItemId",void 0),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"sourceQuality",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{name:"serviceType"}})],Hd.prototype,"sourceType",void 0),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Hd.prototype,"start",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"started",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:String})],Hd.prototype,"state",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:U})],Hd.prototype,"telemetry",null),(0,s.Cg)([(0,p.MZ)({type:B,nonNullable:!0,json:{write:{ignoreOrigin:!0}}})],Hd.prototype,"telemetryDisplay",void 0),(0,s.Cg)([(0,g.w)("service","title",["name"])],Hd.prototype,"readTitleFromService",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)((0,A.b)())],Hd.prototype,"url",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:Number,json:{read:{source:"currentVersion"}}})],Hd.prototype,"version",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"videoElement",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"videoHeight",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],Hd.prototype,"videoLayersInfo",void 0),(0,s.Cg)([(0,g.w)("service","videoLayersInfo",["id","name","poster","serviceType","type"])],Hd.prototype,"readLayerInfosFromService",null),(0,s.Cg)([(0,p.MZ)({type:W,readOnly:!0})],Hd.prototype,"videoTimeExtent",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"videoWidth",null),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"volume",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"waiting",null),Hd=(0,s.Cg)([(0,f.$)("esri.layers.VideoLayer")],Hd);const Vd=Hd},92071:(e,t,i)=>{i.d(t,{P:()=>_,L:()=>v});var s=i(31635),r=i(65008),n=i(76953),a=i(4718),o=i(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(o.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,i=this._originStores[0];i&&i.forEach((e,i)=>{t.set(i,(0,a.o8)(e),0)});for(let i=2;i<o.AU;i++){const s=this._originStores[i];s&&s.forEach((s,r)=>{e&&e.has(r)||t.set(r,(0,a.o8)(s),i)})}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=7){let s=this._originStores[i];if(s||(s=new Map,this._originStores[i]=s),s.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=i){const s=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),s!==t}return!1}delete(e,t=7){const i=this._originStores[t];if(!i)return;const s=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return s}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],s=i?.get(e),r=this._values.get(e);return this._values.set(e,s),this._propertyOriginMap.set(e,t),r!==s}originOf(e){return this._propertyOriginMap.get(e)||0}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var u=i(45917),c=i(88620),h=i(40608);const d=e=>{const t=e;let i=class extends t{constructor(...e){super(...e);const t=(0,c.oY)(this),i=t.store,s=new l;t.store=s,(0,n.k)(t,i,s)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const i=p(this),s=(0,o.aB)(t);if("string"==typeof e)return i.get(e,s);const r={};return e.forEach(e=>{r[e]=i.get(e,s)}),r}originOf(e){return(0,o.OL)(this.originIdOf(e))}originIdOf(e){return p(this).originOf(e)}revert(e,t){const i=p(this),s=(0,o.aB)(t),r=(0,c.oY)(this);let n;n="string"==typeof e?"*"===e?i.keys(s):[e]:e,n.forEach(e=>{r.invalidate(e),i.revert(e,s),r.commit(e)})}};return i=(0,s.Cg)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],i),i};function p(e){return(0,c.oY)(e).store}d(r.A);var m=i(16649),g=i(49422);const f=e=>{const t=e;let i=class extends t{constructor(...e){super(...e)}clear(e,t="user"){(0,c.oY)(this).clearOrigin(e,(0,o.aB)(t))}write(e,t){return(0,g.M)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,c.oY)(this).setAtOrigin(e,t,(0,o.aB)(i))}removeOrigin(e){const t=y(this),i=(0,o.aB)(e),s=t.keys(i);for(const e of s)t.originOf(e)===i&&t.set(e,t.get(e,i),7)}updateOrigin(e,t){const i=y(this),s=(0,o.aB)(t),r=(0,m.Jt)(this,e);for(let t=s+1;t<o.AU;++t)i.delete(e,t);i.set(e,r,s)}toJSON(e){return this.write({},e)}};return i=(0,s.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],i),i.prototype.toJSON.isDefaultToJSON=!0,i};function y(e){return(0,c.oY)(e).store}const _=e=>{const t=f(d(e));let i=class extends t{constructor(...e){super(...e)}};return i=(0,s.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport")],i),i},v=_(r.A)},98764:(e,t,i)=>{i.d(t,{Y0:()=>u,lO:()=>c});var s=i(73941),r=i(16930),n=i(21325);const a=new r.A(s.fv),o=new r.A(s.FY),l=new r.A(s.LJ),u=new r.A(s.Ro);function c(e){const t=h.get(e);if(t)return t;let i=a;if(e)if(e===o)i=o;else if(e===l)i=l;else{const t=e.wkid,s=e.latestWkid;if(null!=t||null!=s)(0,n.tl)(t)||(0,n.tl)(s)?i=o:((0,n.ZL)(t)||(0,n.ZL)(s))&&(i=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?i=o:e===p&&(i=l)}}}return h.set(e,i),i}const h=new Map,d=o.wkt.toUpperCase(),p=l.wkt.toUpperCase()}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7732],{4146:(e,t,i)=>{i.d(t,{A:()=>v});var s=i(31635),r=i(78888),n=i(49186),a=i(65529),o=i(4902),l=i(92474),u=i(53966),c=i(74887),h=i(84952),d=i(10107),p=(i(44208),i(87811),i(40608)),m=i(5443),g=i(16930),f=i(92602),y=i(79677);let _=0,v=class extends((0,a.Zt)((0,o.sA)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+_++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:s}=await i.e(5613).then(i.bind(i,45613));try{return await s(t)}catch(e){const i=t?.portalItem,s=i?.id||"unset",r=i?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"groundLayers"in e&&e.groundLayers.includes(t)?e.groundLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,s.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,s.Cg)([(0,d.MZ)({type:m.A})],v.prototype,"fullExtent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,s.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,s.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,s.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"spatialReference",void 0),(0,s.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,s.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,s.Cg)([(0,d.MZ)({type:y.A})],v.prototype,"visibilityTimeExtent",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,s.Cg)([(0,p.$)("esri.layers.Layer")],v)},4197:(e,t,i)=>{i.d(t,{Vj:()=>u,cj:()=>l,jh:()=>n,l5:()=>o,xm:()=>a});var s=i(34275),r=i(9093);function n(e){return e<=s.y9?new Array(e).fill(0):new Float64Array(e)}function a(e){return((0,s.iu)(e)?e.byteLength/8:e.length)<=s.y9?Array.from(e):new Float64Array(e)}function o(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function l(e){return[...e]}function u(e){const t=(0,r.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},4902:(e,t,i)=>{i.d(t,{PH:()=>o,sA:()=>a});var s=i(31635),r=i(40608);let n=0;const a=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return i=(0,s.Cg)([(0,r.$)("esri.core.Identifiable")],i),i},o=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return i=(0,s.Cg)([(0,r.$)("esri.core.Identifiable.NumericIdentifiable")],i),i};a(class{})},8303:(e,t,i)=>{i.d(t,{A:()=>S});var s=i(31635),r=i(92602),n=i(70333),a=i(78888),o=i(60999),l=i(49186),u=i(53966),c=i(97768),h=i(74887),d=i(84952),p=i(10107),m=(i(44208),i(87811),i(36005)),g=i(40608),f=i(43937),y=i(77548),_=i(20655),v=i(80812),b=i(41318),T=i(10407);const S=e=>{const t=e;let S=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new v.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:s}=await i.e(1204).then(i.bind(i,41204));return(0,h.Te)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:s},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=!n.id?.findCredential(this.url),r=e===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,s);let a,o;if(r)a=i.portal.url;else try{a=await(0,y.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!a||!(0,d.b8)(a,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(n.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,u=!1,c=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(r?await i.reload():(i=new v.default({id:e,portal:{url:a}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,s)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,T.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const s=`${i.owningSystemUrl}/sharing/rest`,r=_.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(s))return r.user;const l=`${s}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,s=this.portalItem?.id&&(this.portalItem.portal||_.A.getDefault());return i&&s&&!(0,d.ut)(s.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s.Cg)([(0,p.MZ)({type:v.default})],S.prototype,"portalItem",null),(0,s.Cg)([(0,m.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,s.Cg)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,s.Cg)([(0,p.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,s.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],S),S},w={credential:null,user:null}},9093:(e,t,i)=>{function s(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>s,zK:()=>n});const n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:r,create:s,fromValues:function(e,t,i,s,r,n,a,o,l,u,c,h,d,p,m,g){return[e,t,i,s,r,n,a,o,l,u,c,h,d,p,m,g]}},Symbol.toStringTag,{value:"Module"}))},11053:(e,t,i)=>{i.d(t,{c:()=>s,g:()=>r});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},18768:(e,t,i)=>{i.d(t,{b:()=>l});var s=i(31635),r=i(53966),n=i(10107),a=(i(44208),i(87811),i(40608)),o=i(60694);const l=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,r.A.getLogger(this)))}};return(0,s.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,s.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,s.Cg)([(0,a.$)("esri.layers.mixins.ArcGISService")],i),i}},20557:(e,t,i)=>{i.d(t,{Fm:()=>l,Hz:()=>p,JQ:()=>d,JZ:()=>b,ND:()=>g,R_:()=>a,U9:()=>h,fu:()=>r,nr:()=>m,oF:()=>n,rq:()=>u,z$:()=>c});const s=[["binary","application/octet-stream","bin",""]];function r(e,t){return null!=y(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const i=u(t,e.supportedFormats??[]);return null!=i&&e.editFormats.includes(i)}function a(e,t){return _(function(e,t){const i=e.toLowerCase();return f(t).find(e=>v(e)===i)}(e,t))}function o(e,t){return _(y(e,t))}function l(e,t){return v(function(e,t){return f(t).find(t=>_(t)===e)}(e,t))}function u(e,t){return o(e.name,t)??a(e.type,t)}function c(e,t,i){return a(e,i)??o(t,i)}function h({supportedFormats:e}){return c("model/gltf-binary","glb",e)}function d(e){const t=h(e);return null!=t&&e.editFormats.includes(t)}function p(e){if(!e)return null;const t=h(e),i=function({supportedFormats:e}){return c("model/gltf+json","gltf",e)}(e);let s=null;for(const r of e.queryFormats){if(r===t)return r;r===i&&(s=r)}return s}function m({supportedFormats:e}){return c("application/esri3do-SR_world","wld",e)}function g({supportedFormats:e}){return c("application/esri3do-SR_prj","prj",e)}function f(e){return[...s,...e]}function y(e,t){const i=e.toLowerCase();return f(t).find(e=>function(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}(e).some(e=>i.endsWith(e)))}function _(e){return e?.[0]}function v(e){return e?.[1].toLowerCase()}function b(e){return e.tables?.find(e=>"assetMaps"===e.role)}},22453:(e,t,i)=>{i.d(t,{S:()=>m,d:()=>E});var s=i(44208),r=i(60694),n=i(20557);function a(e,t,i){return!!l(e,t,i)}function o(e,t,i){return l(e,t,i)}function l(e,t,i){return e&&e.hasOwnProperty(t)?e[t]:i}const u={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function c(e){const t=e?.supportedSpatialAggregationStatistics?.map(e=>e.toLowerCase());return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function h(e,t){const i=e?.supportedOperationsWithCacheHint?.map(e=>e.toLowerCase());return!!i?.includes(t.toLowerCase())}function d(e){const t=e?.supportedStatisticTypes?.map(e=>e.toLowerCase());return{count:!!t?.includes("count"),sum:!!t?.includes("sum"),min:!!t?.includes("min"),max:!!t?.includes("max"),avg:!!t?.includes("avg"),var:!!t?.includes("var"),stddev:!!t?.includes("stddev"),percentileContinuous:!!t?.includes("percentile_cont"),percentileDiscrete:!!t?.includes("percentile_disc"),envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function p(e){const t=e?.supportedNormalizationTypes?.map(e=>e.toLowerCase());return{field:!!t?.includes("field"),log:!!t?.includes("log"),naturalLog:!!t?.includes("naturallog"),percentOfTotal:!!t?.includes("percentoftotal"),squareRoot:!!t?.includes("squareroot")}}function m(e,t){return{analytics:g(e),attachment:f(e),data:y(e),metadata:_(e),operations:v(e.capabilities,e,t),query:b(e,t),queryAttributeBins:w(e),queryRelated:T(e),queryTopFeatures:S(e),editing:C(e)}}function g(e){return{supportsCacheHint:h(e.advancedQueryCapabilities,"queryAnalytics")}}function f(e){const t=e.attachmentProperties,i={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:h(e.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:a(e.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:a(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach(e=>{const t=u[e.name];t&&(i[t]=!!e.isEnabled)}),i}function y(e){return{isVersioned:a(e,"isDataVersioned",!1),isBranchVersioned:a(e,"isDataBranchVersioned",!1),supportsAttachment:a(e,"hasAttachments",!1),supportsM:a(e,"hasM",!1),supportsZ:a(e,"hasZ",!1)}}function _(e){return{supportsAdvancedFieldProperties:a(e,"supportsFieldDescriptionProperty",!1)}}function v(e,t,i){const s=e?.toLowerCase().split(",").map(e=>e.trim())??[],n=i?(0,r.qg)(i):null,o=s.includes("MapServer"===n?.serverType?"data":"query"),l=s.includes("editing")&&!t.datesInUnknownTimezone&&!(!0===t.uniqueIdInfo?.OIDFieldContainsHashValue);let u=l&&s.includes("create"),c=l&&s.includes("delete"),h=l&&s.includes("update");const d=s.includes("changetracking"),p=t.advancedQueryCapabilities;return l&&!(u||c||h)&&(u=c=h=!0),{supportsCalculate:a(t,"supportsCalculate",!1),supportsTruncate:a(t,"supportsTruncate",!1),supportsValidateSql:a(t,"supportsValidateSql",!1),supportsAdd:u,supportsDelete:c,supportsEditing:l,supportsChangeTracking:d,supportsQuery:o,supportsQueryAnalytics:a(p,"supportsQueryAnalytic",!1),supportsQueryAttachments:a(p,"supportsQueryAttachments",!1),supportsQueryBins:a(p,"supportsQueryBins",!1)||!!t.queryBinsCapabilities,supportsQueryTopFeatures:a(p,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:a(t,"supportsAttachmentsResizing",!1),supportsSync:s.includes("sync"),supportsUpdate:h,supportsExceedsLimitStatistics:a(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:a(t,"supportsAsyncConvert3D",!1)}}function b(e,t){const i=e.advancedQueryCapabilities,l=e.ownershipBasedAccessControlForFeatures,u=e.archivingInfo,d=e.currentVersion,p=t?.includes("MapServer"),m=!p||d>=(0,s.A)("mapserver-pbf-version-support"),g=(0,r.Wo)(t),f=new Set((e.supportedQueryFormats??"").split(",").map(e=>e.toLowerCase().trim()));return{maxRecordCount:o(e,"maxRecordCount",void 0),maxRecordCountFactor:o(e,"maxRecordCountFactor",void 0),maxUniqueIDCount:o(e,"maxUniqueIDCount",void 0),standardMaxRecordCount:o(e,"standardMaxRecordCount",void 0),supportedSpatialAggregationStatistics:c(i),supportsCacheHint:a(i,"supportsQueryWithCacheHint",!1)||h(i,"query"),supportsCentroid:a(i,"supportsReturningGeometryCentroid",!1),supportsCentroidOnDegeneratedQuantizedGeometry:g||null==t,supportsCompactGeometry:g,supportsCurrentUser:a(i,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:a(i,"supportsDefaultSR",!1),supportsDegeneratedQuantizedGeometry:a(i,"supportsDegeneratedQuantizedGeometry",!1),supportsDisjointSpatialRelationship:a(i,"supportsDisjointSpatialRel",!1),supportsDistance:a(i,"supportsQueryWithDistance",!1),supportsDistinct:a(i,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:a(i,"supportsReturningQueryExtent",!1),supportsFormatPBF:m&&f.has("pbf"),supportsFullTextSearch:a(i,"supportsFullTextSearch",!1),supportsGeometryProperties:a(i,"supportsReturningGeometryProperties",!1),supportsHavingClause:a(i,"supportsHavingClause",!1),supportsHistoricMoment:a(u,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:a(i,"supportsMaxRecordCountFactor",!1),supportsOrderBy:a(i,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:a(i,"supportsPagination",!1),supportsPaginationOnAggregatedQueries:a(i,"supportsPaginationOnAggregatedQueries",!1),supportsPercentileStatistics:a(i,"supportsPercentileStatistics",!1),supportsQuantization:a(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:a(e,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:a(l,"allowAnonymousToQuery",!0),supportsQueryByOthers:a(l,"allowOthersToQuery",!0),supportsQueryGeometry:a(e,"supportsReturningQueryGeometry",!1),supportsResultType:a(i,"supportsQueryWithResultType",!1),supportsReturnMesh:!!(0,n.Hz)(e.infoFor3D),supportsSpatialAggregationStatistics:a(i,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:a(i,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:a(e,"useStandardizedQueries",!1),supportsStatistics:a(i,"supportsStatistics",e.supportsStatistics),supportsTopFeaturesQuery:a(i,"supportsTopFeaturesQuery",!1),supportsTrueCurve:a(i,"supportsTrueCurve",!1),tileMaxRecordCount:o(e,"tileMaxRecordCount",void 0)}}function T(e){const t=e.advancedQueryCapabilities,i=a(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:a(t,"supportsQueryRelatedPagination",!1),supportsCount:i,supportsOrderBy:i,supportsCacheHint:h(t,"queryRelated")}}function S(e){return{supportsCacheHint:h(e.advancedQueryCapabilities,"queryTopFilter")}}function w(e){const t=e?e.queryBinsCapabilities:void 0;return{supportsDate:a(t,"supportsDateBin",!1),supportsFixedInterval:a(t,"supportsFixedIntervalBin",!1),supportsAutoInterval:a(t,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:a(t,"supportsFixedBoundariesBin",!1),supportsStackBy:a(t,"supportsStackBy",!1),supportsSplitBy:a(t,"supportsSplitBy",!1),supportsSnapToData:a(t,"supportsSnapToData",!1),supportsReturnFullIntervalBin:a(t,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:a(t,"supportsFirstDayOfWeek",!1),supportsNormalization:a(t,"supportsNormalization",!1),supportedStatistics:d(t),supportedNormalizationTypes:p(t)}}function C(e){const t=e.ownershipBasedAccessControlForFeatures,i=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:a(e,"allowGeometryUpdates",!0),supportsGlobalId:a(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:a(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:a(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:a(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:a(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:a(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:a(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:a(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:a(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:a(i,"supportsAsyncApplyEdits",!1),zDefault:o(e,"zDefault",void 0)}}function E(e){return{operations:{supportsAppend:a(e,"supportsAppend",!1),supportsCoverageQuery:e?.playbackInfo?.klv["0601"]??!1,supportsExportClip:a(e,"supportsExportClip",!1),supportsExportFrameset:a(e,"supportsExportFrameset",!1),supportsMensuration:a(e,"supportsMensuration",!1),supportsPreviews:a(e,"supportsPreviews",!1),supportsUpdate:a(e,"supportsUpdate",!1)}}}},25036:(e,t,i)=>{i.d(t,{j:()=>a});var s=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));const a=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,s.Cg)([(0,r.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],i.prototype,"minScale",void 0),(0,s.Cg)([(0,r.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],i.prototype,"maxScale",void 0),(0,s.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"effectiveScaleRange",null),i=(0,s.Cg)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],i),i}},37531:(e,t,i)=>{i.d(t,{dt:()=>d,GG:()=>y,UQ:()=>f,Sx:()=>c});var s=i(68197),r=i(60999),n=(i(44208),i(51850)),a=(i(76369),i(62046)),o=(i(2741),i(78888),i(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new o.q(1e3),new s.A([128,128,128]);var l=i(28975),u=i(33910);function c(e,t){if(!e)return null;let i=null;return(0,u.wk)(e)?i=function(e){const t=e.symbolLayers;if(!t)return null;let i=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(i="water"===e.type?e.color:e.material?e.material.color:null)}),i?new s.A(i):null}(e):(0,u.$y)(e)&&(i="cim"===e.type?(0,a.Nk)(e):e.color?new s.A(e.color):null),i?h(i,t):null}function h(e,t){if(null==t||null==e)return e;const i=e.toRgba();return i[3]=i[3]*t,new s.A(i)}function d(e,t,i){e&&(t||null!=i)&&(t&&(t=new s.A(t)),(0,u.wk)(e)?function(e,t,i){const r=e.symbolLayers;if(!r)return;const n=(e,r=!1)=>{let n=t??e??null;return null!=i?.override&&(!n&&r&&(n=new s.A([255,255,255])),n&&(n.a=i.override)),h(n,i?.add)};r.forEach(e=>{if("water"===e.type)return void(e.color=h(e.color,i?.add));const t=null!=e.material?e.material.color:null,s=n(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.N({color:s}):e.material.color=s,"outline"in e&&e.outline?.color&&null!=i?.add&&(e.outline.color=h(e.outline.color,i.add)),"marker"in e&&null!=e.marker&&(e.marker.color=n(e.marker.color))})}(e,t,i):(0,u.$y)(e)&&function(e,t,i){t=t??e.color,null!=i?.override&&t&&(t.a=i.override),t&&(e.color=h(t,i?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=h(e.outline.color,i?.add))}(e,t,i))}function p(e){for(const t of e)if("number"==typeof t)return t;return null}function m(e,t,i){for(let s=0;s<3;s++){const r=e[s];switch(r){case"symbol-value":{const e=i[s];return null!=e?e/t[s]:1}case"proportional":break;default:if(r&&t[s])return r/t[s]}}return null}function g(e,t,i,s){switch(e){case"proportional":return i*s;case"symbol-value":return null!=t?t:i;default:return e}}async function f(e,t){if(e&&t)return(0,u.wk)(e)?async function(e,t){const s=e.symbolLayers;s&&await(0,r.jJ)(s,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const i=t[2];"number"==typeof i&&(e.size=i)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const i=p(t);null!=i&&(e.size=i)}(e,t);break;case"path":!function(e,t){const i=m(t,n.Un,[e.width,void 0,e.height]);null!=i&&(e.width=g(t[0],e.width,1,i),e.height=g(t[2],e.height,1,i))}(e,t);break;case"object":await async function(e,t){const{resourceSize:s,symbolSize:r}=await async function(e){const{computeObjectLayerResourceSize:t}=await i.e(5404).then(i.bind(i,95404)),s=await t(e,10),{width:r,height:n,depth:a}=e,o=[r,a,n];let l=1;for(let e=0;e<3;e++){const t=o[e];if(null!=t){l=t/s[e];break}}for(let e=0;e<3;e++)null==o[e]&&(o[e]=s[e]*l);return{resourceSize:s,symbolSize:o}}(e),n=m(t,s,r);null!=n&&(e.width=g(t[0],r[0],s[0],n),e.depth=g(t[1],r[1],s[1],n),e.height=g(t[2],r[2],s[2],n))}(e,t)}}(e,t))}(e,t):void((0,u.$y)(e)&&function(e,t){const i=p(t);if(null!=i)switch(e.type){case"simple-marker":e.size=i;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=i,e.height=i*t):(e.width=i*t,e.height=i);break}case"simple-line":e.width=i;break;case"text":e.font.size=i}}(e,t))}function y(e,t,i){if(e&&null!=t)if((0,u.wk)(e)){const s=e.symbolLayers;s&&s.forEach(e=>{if("object"===e.type)switch(i){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else(0,u.$y)(e)&&("simple-marker"!==e.type&&"picture-marker"!==e.type&&"text"!==e.type||(e.angle+=t))}},38954:(e,t,i)=>{i.d(t,{A:()=>m,B:()=>p,C:()=>c,D:()=>h,E:()=>L,F:()=>U,H:()=>B,a:()=>O,b:()=>y,c:()=>a,d:()=>u,e:()=>C,f:()=>l,g:()=>f,h:()=>E,i:()=>o,j:()=>_,k:()=>b,l:()=>n,m:()=>k,n:()=>w,o:()=>I,q:()=>M,r:()=>S,s:()=>v,t:()=>x,u:()=>T,v:()=>A,w:()=>d,x:()=>F,y:()=>q,z:()=>g});var s=i(51850),r=i(34304);function n(e){const t=e[0],i=e[1],s=e[2];return Math.sqrt(t*t+i*i+s*s)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,i,s){return e[0]=t,e[1]=i,e[2]=s,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function h(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function g(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function f(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function y(e,t,i,s){return e[0]=t[0]+i[0]*s,e[1]=t[1]+i[1]*s,e[2]=t[2]+i[2]*s,e}function _(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+s*s+r*r)}function v(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2];return i*i+s*s+r*r}function b(e){const t=e[0],i=e[1],s=e[2];return t*t+i*i+s*s}function T(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const i=t[0],s=t[1],r=t[2];let n=i*i+s*s+r*r;return n>0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function E(e,t,i){const s=t[0],r=t[1],n=t[2],a=i[0],o=i[1],l=i[2];return e[0]=r*l-n*o,e[1]=n*a-s*l,e[2]=s*o-r*a,e}function k(e,t,i,s){const r=t[0],n=t[1],a=t[2];return e[0]=r+s*(i[0]-r),e[1]=n+s*(i[1]-n),e[2]=a+s*(i[2]-a),e}function x(e,t,i){const s=t[0],r=t[1],n=t[2];return e[0]=i[0]*s+i[4]*r+i[8]*n+i[12],e[1]=i[1]*s+i[5]*r+i[9]*n+i[13],e[2]=i[2]*s+i[6]*r+i[10]*n+i[14],e}function I(e,t,i){const s=t[0],r=t[1],n=t[2];return e[0]=s*i[0]+r*i[3]+n*i[6],e[1]=s*i[1]+r*i[4]+n*i[7],e[2]=s*i[2]+r*i[5]+n*i[8],e}function A(e,t,i){const s=i[0],r=i[1],n=i[2],a=i[3],o=t[0],l=t[1],u=t[2],c=r*u-n*l,h=n*o-s*u,d=s*l-r*o,p=r*d-n*h,m=n*c-s*d,g=s*h-r*c,f=2*a;return e[0]=o+c*f+2*p,e[1]=l+h*f+2*m,e[2]=u+d*f+2*g,e}const D=(0,s.vt)(),P=(0,s.vt)();function M(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function L(e,t,i){const s=i[0]-t[0],r=i[1]-t[1],n=i[2]-t[2];let a=s*s+r*r+n*n;return a>0?(a=1/Math.sqrt(a),e[0]=s*a,e[1]=r*a,e[2]=n*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,N=c,R=h,U=_,F=v,B=n,q=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){w(D,e),w(P,t);const i=C(D,P);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,s,r,n){const a=1-n,o=a*a,l=n*n,u=o*a,c=3*n*o,h=3*l*a,d=l*n;return e[0]=t[0]*u+i[0]*c+s[0]*h+r[0]*d,e[1]=t[1]*u+i[1]*c+s[1]*h+r[1]*d,e[2]=t[2]*u+i[2]*c+s[2]*h+r[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:a,cross:E,crossAndNormalize:function(e,t,i){const s=t[0],r=t[1],n=t[2],a=i[0],o=i[1],l=i[2],u=r*l-n*o,c=n*a-s*l,h=s*o-r*a,d=Math.sqrt(u*u+c*c+h*h);return e[0]=u/d,e[1]=c/d,e[2]=h/d,e},direction:L,dist:U,distance:_,div:R,divide:h,dot:C,equals:function(e,t){if(e===t)return!0;const i=e[0],s=e[1],n=e[2],a=t[0],o=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(s-o)<=u*Math.max(1,Math.abs(s),Math.abs(o))&&Math.abs(n-l)<=u*Math.max(1,Math.abs(n),Math.abs(l))},exactEquals:M,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,s,r,n){const a=n*n,o=a*(2*n-3)+1,l=a*(n-2)+n,u=a*(n-1),c=a*(3-2*n);return e[0]=t[0]*o+i[0]*l+s[0]*u+r[0]*c,e[1]=t[1]*o+i[1]*l+s[1]*u+r[1]*c,e[2]=t[2]*o+i[2]*l+s[2]*u+r[2]*c,e},inverse:S,len:B,length:n,lerp:k,max:g,min:m,mul:N,multiply:c,negate:T,normalize:w,random:function(e,t=1){const i=r.Ov,s=2*i()*Math.PI,n=2*i()-1,a=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(s)*a,e[1]=Math.sin(s)*a,e[2]=n*t,e},rotateX:function(e,t,i,s){const r=[],n=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],n[0]=r[0],n[1]=r[1]*Math.cos(s)-r[2]*Math.sin(s),n[2]=r[1]*Math.sin(s)+r[2]*Math.cos(s),e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},rotateY:function(e,t,i,s){const r=[],n=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],n[0]=r[2]*Math.sin(s)+r[0]*Math.cos(s),n[1]=r[1],n[2]=r[2]*Math.cos(s)-r[0]*Math.sin(s),e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},rotateZ:function(e,t,i,s){const r=[],n=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],n[0]=r[0]*Math.cos(s)-r[1]*Math.sin(s),n[1]=r[0]*Math.sin(s)+r[1]*Math.cos(s),n[2]=r[2],e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:f,scaleAndAdd:y,set:o,sign:p,sqrDist:F,sqrLen:q,squaredDistance:v,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:I,transformMat4:x,transformQuat:A},Symbol.toStringTag,{value:"Module"}))},62046:(e,t,i)=>{i.d(t,{Fe:()=>c,Nk:()=>n});var s=i(68197),r=i(93397);function n(e){const t=[];return a((0,r.lW)(e),t),t.length?new s.A((0,r.e6)(t[0])):null}function a(e,t){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;const s="CIMPolygonSymbol"===e.type;if(i?.symbolLayers)for(const e of i.symbolLayers)if(!(e.colorLocked||s&&((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&o(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{a(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":o(t,e.color);break;case"CIMGradientFill":l(t,e);break;case"CIMHatchFill":a(e.lineSymbol,t)}}function o(e,t){for(const i of e)if(i.join(".")===t.join("."))return;e.push(t)}function l(e,t){const i=t.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&u(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":u(e,t.colorRamp)}}function u(e,t){t&&(t.fromColor&&o(e,t.fromColor),t.toColor&&o(e,t.toColor))}function c(e,t,i){t instanceof s.A||(t=new s.A(t));const n=(0,r.lW)(e);n&&h(n,t,i)}function h(e,t,i){if(!e)return;let s;s="CIMTextSymbol"===e.type?e.symbol:e;const n="CIMPolygonSymbol"===s?.type;if(s?.symbolLayers)for(const e of s.symbolLayers){if(e.colorLocked)continue;if(n)if(i){const{layersToColor:t}=i;if(((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))&&"fill"===t||(0,r.jn)(e)&&"outline"===t)continue}else if((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))continue;const s=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=s;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{h(e.symbol,t,i)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=s;break;case"CIMGradientFill":d(e,t);break;case"CIMHatchFill":h(e.lineSymbol,t,i)}}}function d(e,t){const i=e.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&p(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":p(e.colorRamp,t)}}function p(e,t){if(e&&(e.fromColor&&(e.fromColor=t.toArray()),e.toColor)){const i=t.clone();i.a=0,e.toColor=i.toArray()}}},63074:(e,t,i)=>{i.d(t,{LF:()=>c,dM:()=>h,sU:()=>l});var s=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),a=i(89317),o=i(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:a.K}},"portal-item":{read:!0,write:{layerContainerTypes:a.K}}}}},u={read:{reader:o.LF},write:{allowNull:!0,writer:o.M9,layerContainerTypes:a.K}},c={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}},h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,s.Cg)([(0,r.MZ)(l)],i.prototype,"blendMode",void 0),(0,s.Cg)([(0,r.MZ)(c)],i.prototype,"effect",void 0),i=(0,s.Cg)([(0,n.$)("esri.layers.mixins.BlendLayer")],i),i}},69208:(e,t,i)=>{i.d(t,{d:()=>a});var s=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));const a=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,s.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,s.Cg)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],i),i}},70328:(e,t,i)=>{i.d(t,{BI:()=>v,DC:()=>h,Ej:()=>p,Ie:()=>y,Jt:()=>_,Ne:()=>m,RF:()=>c,aI:()=>T,fA:()=>a,gE:()=>l,hZ:()=>f,iT:()=>d,is:()=>b,qv:()=>S,vI:()=>g,vY:()=>o,v_:()=>w,vt:()=>n,w1:()=>u});var s=i(5443),r=(i(19419),i(4197));function n(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,i,s,r,a,o=n()){return o[0]=e,o[1]=t,o[2]=i,o[3]=s,o[4]=r,o[5]=a,o}function o(e,t=n()){return function(e,t,i,s=n()){return f(s,S),function(e,t,i=0,s=t.length/3){let r=e[0],n=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<s;e++)r=Math.min(r,t[i+3*e]),n=Math.min(n,t[i+3*e+1]),a=Math.min(a,t[i+3*e+2]),o=Math.max(o,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=n,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(s,e,t,i),s}(e,0,e.length/3,t)}function l(e,t=(0,r.jh)(24)){const[i,s,n,a,o,l]=e;return t[0]=i,t[1]=s,t[2]=n,t[3]=i,t[4]=s,t[5]=l,t[6]=i,t[7]=o,t[8]=n,t[9]=i,t[10]=o,t[11]=l,t[12]=a,t[13]=s,t[14]=n,t[15]=a,t[16]=s,t[17]=l,t[18]=a,t[19]=o,t[20]=n,t[21]=a,t[22]=o,t[23]=l,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new s.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function p(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function g(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?f(e,S):n(S)}function _(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,i,s,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=s,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function T(e,t,i){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(i){for(let s=0;s<e.length;s++)if(!i(e[s],t[s]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const S=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];n()},73179:(e,t,i)=>{i.d(t,{b:()=>l,h:()=>u});var s=i(4718),r=i(53966),n=i(84952),a=i(60694),o=i(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},n=(0,s.o8)(o.OZ),l=n.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,s,r){(0,a.LS)(this,e,i,t,r)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const i=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:r.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function u(e,t){const{separator:i}=t??{},s=(0,n.An)(e.url);return null!=s&&(null!=e.dynamicDataSource?s.path=(0,n.fj)(s.path,"dynamicLayer"):null!=e.layerId&&(s.path=(0,n.fj)(s.path,i??"",e.layerId.toString()))),s}},73838:(e,t,i)=>{i.d(t,{rS:()=>O,M9:()=>D,oO:()=>P});var s=i(49186),r=i(93637),n=i(77548),a=i(37757),o=i(13313),l=i(97887),u=i(68548),c=i(58592),h=i(75981),d=i(65365),p=i(94985),m=i(31593),g=i(53930),f=i(68249),y=i(68197),_=i(7762),v=(i(44208),i(90629)),b=i(27845),T=i(11506),S=i(39065),w=i(59868),C=i(93470);h.A.fromSimpleMarkerSymbol(w.UK),l.A.fromSimpleLineSymbol(w.A7),d.A.fromSimpleFillSymbol(w.Cx),new u.A({symbolLayers:new _.A([new b.A({material:{color:C.fT},edges:new S.A({size:(0,v.PN)(1),color:new y.A(C.JR)})})])});const E=new l.A({symbolLayers:new _.A([new T.A({material:{color:new y.A([0,0,0])},size:(0,v.PN)(1)})])}),k=new d.A({symbolLayers:new _.A([new b.A({outline:{color:new y.A([0,0,0]),size:(0,v.PN)(1)}})])});var x=i(33910);const I="#useCIMFallbackSymbology()",A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function D(e,t,i,s){const n=L(e,{},{context:s,isLabelSymbol:!1});null!=n&&(0,r.sM)(i,n,t)}function P(e,t,i,s){const r=L(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function M(e){return(0,x.wk)(e)||e instanceof a.A}function L(e,t,i){if(null==e)return null;const{context:r,isLabelSymbol:y}=i,_=r?.origin,v=r?.messages;if("web-scene"===_&&!M(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:r=A.ignoreDrivers,hasLabelingContext:n=A.hasLabelingContext,retainCIM:y=A.retainCIM,cimFallbackEnabled:_=A.cimFallbackEnabled}=t;let v=null;if((0,x.wk)(e))v=e.clone();else if("web-style"===e.type)v=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":v=y?e.clone():h.A.fromCIMSymbol(e);break;case"CIMLineSymbol":_&&(v=E.clone(),t?.logWarning?.(I,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":_&&(v=k.clone(),t?.logWarning?.(I,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!v)return{error:new s.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof m.A)v=l.A.fromSimpleLineSymbol(e);else if(e instanceof g.A)v=h.A.fromSimpleMarkerSymbol(e);else if(e instanceof c.A)v=h.A.fromPictureMarkerSymbol(e);else if(e instanceof p.A)v=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new s.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=n?o.A.fromTextSymbol(e):h.A.fromTextSymbol(e)}return i&&v&&"cim"!==v.type&&(v.id=e.id),!r||"cim"===v.type||v instanceof a.A||v.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:v}}(e,{retainCIM:!0,hasLabelingContext:y});return null!=i.symbol?i.symbol.write(t,r):(v?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:r,error:i.error})),null)}return(0,n.TU)(r?.layer)&&(b=e,"polygon-3d"===b?.type||"line-3d"===b?.type)?(v?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported on layers of type '${r?.layer?.declaredClass}'.`,{symbol:e,context:r})),null):("web-map"===_||"portal-item"===_&&!(0,n.TU)(r?.layer))&&M(e)?(v?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:r})),null):e.write(t,r);var b}function O(e,t){return(0,x.Bu)(e,null,t)}},76369:(e,t,i)=>{i.d(t,{LF:()=>S,M9:()=>w});var s=i(49186),r=i(93637),n=i(40876),a=i(59247),o=i(27865);class l extends SyntaxError{constructor(e,t,i,s){super(e),this.expected=t,this.found=i,this.location=s,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let i=null;const s=e.find(e=>e.source===this.location.source);s&&(i=s.text.split(/\r\n|\n|\r/g));const r=this.location.start,n=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(r):r,a=this.location.source+":"+n.line+":"+n.column;if(i){const e=this.location.end,s="".padEnd(n.line.toString().length," "),o=i[r.line-1],l=(r.line===e.line?e.column:o.length+1)-r.column||1;t+="\n --\x3e "+a+"\n"+s+" |\n"+n.line+" | "+o+"\n"+s+" | "+"".padEnd(r.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+a}return t}static buildMessage(e,t){function i(e){return e.codePointAt(0).toString(16).toUpperCase()}const s=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function r(e){return s?e.replace(s,e=>"\\u{"+i(e)+"}"):e}function n(e){return r(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+i(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+i(e)))}function a(e){return r(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+i(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+i(e)))}const o={literal:e=>'"'+n(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return o[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let i=1;i<t.length;i++)t[i-1]!==t[i]&&(t[e]=t[i],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=c(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new s.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:c(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,o.mj)(t[e].effects,t[e+1].effects))throw new s.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,o.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function c(e){let t;if(!e)return[];try{t=function(e,t){const i={},s=(t=void 0!==t?t:{}).grammarSource,r={start:Te};let n=Te;const a="none",o=")",u=",",c="(",h="%",d="px",p="cm",m="mm",g="in",f="pt",y="pc",_="deg",v="rad",b="grad",T="turn",S="#",w=".",C="e",E=/^[ \t\n\r]/,k=/^[a-z\-]/,x=/^[0-9a-fA-F]/,I=/^[+\-]/,A=/^[0-9]/,D=ye("none"),P=ge("none",!1),M=ge(")",!1),L=ge(",",!1),O=fe([" ","\t","\n","\r"],!1,!1,!1),N=ye("function"),R=ge("(",!1),U=ye("identifier"),F=fe([["a","z"],"-"],!1,!1,!1),B=ye("percentage"),q=ge("%",!1),j=ye("length"),$=ge("px",!1),H=ge("cm",!1),V=ge("mm",!1),z=ge("in",!1),W=ge("pt",!1),G=ge("pc",!1),X=ye("angle"),Z=ge("deg",!1),Q=ge("rad",!1),K=ge("grad",!1),Y=ge("turn",!1),J=ye("number"),ee=ye("color"),te=ge("#",!1),ie=fe([["0","9"],["a","f"],["A","F"]],!1,!1,!1),se=fe(["+","-"],!1,!1,!1),re=fe([["0","9"]],!1,!1,!1),ne=ge(".",!1),ae=ge("e",!1);let oe=0|t.peg$currPos,le=oe;const ue=[{line:1,column:1}];let ce,he=oe,de=t.peg$maxFailExpected||[],pe=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in r))throw new Error("Can't start parsing from rule \""+t.startRule+'".');n=r[t.startRule]}function me(){return e.substring(le,oe)}function ge(e,t){return{type:"literal",text:e,ignoreCase:t}}function fe(e,t,i,s){return{type:"class",parts:e,inverted:t,ignoreCase:i,unicode:s}}function ye(e){return{type:"other",description:e}}function _e(t){let i,s=ue[t];if(s)return s;if(t>=ue.length)i=ue.length-1;else for(i=t;!ue[--i];);for(s=ue[i],s={line:s.line,column:s.column};i<t;)10===e.charCodeAt(i)?(s.line++,s.column=1):s.column++,i++;return ue[t]=s,s}function ve(e,t,i){const r=_e(e),n=_e(t);return{source:s,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function be(e){oe<he||(oe>he&&(he=oe,de=[]),de.push(e))}function Te(){let e;return e=Se(),e===i&&(e=function(){let e,t;if(e=[],t=we(),t!==i)for(;t!==i;)e.push(t),t=we();else e=i;return e}()),e}function Se(){let t,s;return pe++,t=oe,Ee(),e.substr(oe,4)===a?(s=a,oe+=4):(s=i,0===pe&&be(P)),s!==i?(Ee(),le=t,t=[]):(oe=t,t=i),pe--,t===i&&0===pe&&be(D),t}function we(){let t,s,r,n;return t=oe,Ee(),s=function(){let t,s,r;return pe++,t=oe,s=ke(),s!==i?(40===e.charCodeAt(oe)?(r=c,oe++):(r=i,0===pe&&be(R)),r!==i?(le=t,t=s):(oe=t,t=i)):(oe=t,t=i),pe--,t===i&&(s=i,0===pe&&be(N)),t}(),s!==i?(Ee(),r=function(){let t,s,r,n,a,o,l,c;if(t=oe,s=Ce(),s!==i){for(r=[],n=oe,a=Ee(),44===e.charCodeAt(oe)?(o=u,oe++):(o=i,0===pe&&be(L)),o===i&&(o=null),l=Ee(),c=Ce(),c!==i?(a=[a,o,l,c],n=a):(oe=n,n=i);n!==i;)r.push(n),n=oe,a=Ee(),44===e.charCodeAt(oe)?(o=u,oe++):(o=i,0===pe&&be(L)),o===i&&(o=null),l=Ee(),c=Ce(),c!==i?(a=[a,o,l,c],n=a):(oe=n,n=i);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(s,r)}else oe=t,t=i;return t}(),r===i&&(r=null),Ee(),41===e.charCodeAt(oe)?(n=o,oe++):(n=i,0===pe&&be(M)),n!==i?(Ee(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(s,r)):(oe=t,t=i)):(oe=t,t=i),t}function Ce(){let e,t;return e=oe,t=xe(),t===i&&(t=Ie(),t===i&&(t=Ae(),t===i&&(t=function(){let e,t;return pe++,e=oe,Ee(),t=Pe(),t!==i?(le=e,e=function(e){return{value:e,unit:null}}(t)):(oe=e,e=i),pe--,e===i&&0===pe&&be(J),e}()))),t!==i&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===i&&(e=oe,t=De(),t!==i&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Ee(){let t,s;for(pe++,t=[],s=e.charAt(oe),E.test(s)?oe++:(s=i,0===pe&&be(O));s!==i;)t.push(s),s=e.charAt(oe),E.test(s)?oe++:(s=i,0===pe&&be(O));return pe--,t}function ke(){let t,s,r;if(pe++,t=oe,s=[],r=e.charAt(oe),k.test(r)?oe++:(r=i,0===pe&&be(F)),r!==i)for(;r!==i;)s.push(r),r=e.charAt(oe),k.test(r)?oe++:(r=i,0===pe&&be(F));else s=i;return s!==i&&(le=t,s=me()),t=s,pe--,t===i&&(s=i,0===pe&&be(U)),t}function xe(){let t,s,r;return pe++,t=oe,Ee(),s=Pe(),s!==i?(37===e.charCodeAt(oe)?(r=h,oe++):(r=i,0===pe&&be(q)),r!==i?(le=t,t=function(e){return{value:e,unit:"%"}}(s)):(oe=t,t=i)):(oe=t,t=i),pe--,t===i&&0===pe&&be(B),t}function Ie(){let t,s,r;return pe++,t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===d?(r=d,oe+=2):(r=i,0===pe&&be($)),r!==i?(le=t,t=function(e){return{value:e,unit:"px"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===p?(r=p,oe+=2):(r=i,0===pe&&be(H)),r!==i?(le=t,t=function(e){return{value:e,unit:"cm"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===m?(r=m,oe+=2):(r=i,0===pe&&be(V)),r!==i?(le=t,t=function(e){return{value:e,unit:"mm"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===g?(r=g,oe+=2):(r=i,0===pe&&be(z)),r!==i?(le=t,t=function(e){return{value:e,unit:"in"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===f?(r=f,oe+=2):(r=i,0===pe&&be(W)),r!==i?(le=t,t=function(e){return{value:e,unit:"pt"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,Ee(),s=Pe(),s!==i?(e.substr(oe,2)===y?(r=y,oe+=2):(r=i,0===pe&&be(G)),r!==i?(le=t,t=function(e){return{value:e,unit:"pc"}}(s)):(oe=t,t=i)):(oe=t,t=i)))))),pe--,t===i&&0===pe&&be(j),t}function Ae(){let t,s,r;return pe++,t=oe,s=Pe(),s!==i?(e.substr(oe,3)===_?(r=_,oe+=3):(r=i,0===pe&&be(Z)),r!==i?(le=t,t=function(e){return{value:e,unit:"deg"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,s=Pe(),s!==i?(e.substr(oe,3)===v?(r=v,oe+=3):(r=i,0===pe&&be(Q)),r!==i?(le=t,t=function(e){return{value:e,unit:"rad"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,s=Pe(),s!==i?(e.substr(oe,4)===b?(r=b,oe+=4):(r=i,0===pe&&be(K)),r!==i?(le=t,t=function(e){return{value:e,unit:"grad"}}(s)):(oe=t,t=i)):(oe=t,t=i),t===i&&(t=oe,s=Pe(),s!==i?(e.substr(oe,4)===T?(r=T,oe+=4):(r=i,0===pe&&be(Y)),r!==i?(le=t,t=function(e){return{value:e,unit:"turn"}}(s)):(oe=t,t=i)):(oe=t,t=i)))),pe--,t===i&&(s=i,0===pe&&be(X)),t}function De(){let t,s,r,n;if(pe++,t=oe,35===e.charCodeAt(oe)?(s=S,oe++):(s=i,0===pe&&be(te)),s!==i){if(r=[],n=e.charAt(oe),x.test(n)?oe++:(n=i,0===pe&&be(ie)),n!==i)for(;n!==i;)r.push(n),n=e.charAt(oe),x.test(n)?oe++:(n=i,0===pe&&be(ie));else r=i;r!==i?(le=t,t={type:"hex",value:me()}):(oe=t,t=i)}else oe=t,t=i;return t===i&&(t=oe,s=we(),s!==i&&(le=t,s=function(e){return{type:"function",value:e}}(s)),t=s,t===i&&(t=oe,s=ke(),s!==i&&(le=t,s={type:"named",value:me()}),t=s)),pe--,t===i&&(s=i,0===pe&&be(ee)),t}function Pe(){let t,s,r,n,a,o,l,u;for(t=oe,s=e.charAt(oe),I.test(s)?oe++:(s=i,0===pe&&be(se)),s===i&&(s=null),r=oe,n=[],a=e.charAt(oe),A.test(a)?oe++:(a=i,0===pe&&be(re));a!==i;)n.push(a),a=e.charAt(oe),A.test(a)?oe++:(a=i,0===pe&&be(re));if(46===e.charCodeAt(oe)?(a=w,oe++):(a=i,0===pe&&be(ne)),a!==i){if(o=[],l=e.charAt(oe),A.test(l)?oe++:(l=i,0===pe&&be(re)),l!==i)for(;l!==i;)o.push(l),l=e.charAt(oe),A.test(l)?oe++:(l=i,0===pe&&be(re));else o=i;o!==i?(n=[n,a,o],r=n):(oe=r,r=i)}else oe=r,r=i;if(r===i)if(r=[],n=e.charAt(oe),A.test(n)?oe++:(n=i,0===pe&&be(re)),n!==i)for(;n!==i;)r.push(n),n=e.charAt(oe),A.test(n)?oe++:(n=i,0===pe&&be(re));else r=i;if(r!==i){if(n=oe,101===e.charCodeAt(oe)?(a=C,oe++):(a=i,0===pe&&be(ae)),a!==i){if(o=e.charAt(oe),I.test(o)?oe++:(o=i,0===pe&&be(se)),o===i&&(o=null),l=[],u=e.charAt(oe),A.test(u)?oe++:(u=i,0===pe&&be(re)),u!==i)for(;u!==i;)l.push(u),u=e.charAt(oe),A.test(u)?oe++:(u=i,0===pe&&be(re));else l=i;l!==i?(a=[a,o,l],n=a):(oe=n,n=i)}else oe=n,n=i;n===i&&(n=null),le=t,t=parseFloat(me())}else oe=t,t=i;return t}ce=n();const Me=ce!==i&&oe===e.length;function Le(){throw ce!==i&&oe<e.length&&be({type:"end"}),function(e,t,i){return new l(l.buildMessage(e,t),e,t,i)}(de,he<e.length?function(t=oe){const i=e.codePointAt(t);return void 0===i?"":String.fromCodePoint(i)}(he):null,he<e.length?ve(he,he+1):ve(he,he))}return t.peg$library?{peg$result:ce,peg$currPos:oe,peg$FAILED:i,peg$maxFailExpected:de,peg$maxFailPos:he,peg$success:Me,peg$throw:Me?void 0:Le}:Me?ce:void Le()}(e)}catch(t){throw new s.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new a.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new a.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new s.A("effect:type-error",`Expected <angle>, Actual: ${d(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new a.Nd(t)}(e);case"blur":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=y(e.parameters[0]),p(t,e.parameters[0])),new a.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let i=null;for(const r of e.parameters)if("color"===r.type){if(t.length&&Object.freeze(t),i)throw new s.A("effect:type-error","Accepts only one color",{});i=_(r)}else{const e=y(r);if(Object.isFrozen(t))throw new s.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&p(e,r)}if(t.length<2||t.length>3)throw new s.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new a.$b(t[0],t[1],t[2]||0,i||v("black"))}(e);case"bloom":return function(e){let t=1,i=0,s=0;return h(e.parameters,3),e.parameters[0]&&(t=f(e.parameters[0])),e.parameters[1]&&(i=y(e.parameters[1]),p(i,e.parameters[1])),e.parameters[2]&&(s=f(e.parameters[2])),new a.bv(t,i,s)}(e)}}catch(t){throw t.details.filter=e,t}throw new s.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function h(e,t){if(e.length>t)throw new s.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function d(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in g)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function p(e,t){if(e<0)throw new s.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},g={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function f(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new s.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${d(e)}`,{term:e})}(e);const t=e.value;return p(t,e),"%"===e.unit?.01*t:t}function y(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=g[e.unit]))throw new s.A("effect:type-error",`Expected <length>, Actual: ${d(e)}`,{term:e})}(e),e.value*g[e.unit]||0}function _(e){switch(e.colorType){case"hex":return(0,n.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(h(e.parameters,4),b.test(e.name))return[f(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1];if(T.test(e.name))return(0,n.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new s.A("effect:type-error",`Expected <double>, Actual: ${d(e)}`,{term:e})}(e),p(e.value,e),e.value}(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1);throw new s.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,n.V6)(e))throw new s.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,n.c4)(e)}const b=/^rgba?/i,T=/^hsla?/i;function S(e,t,i){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const i of e)t.push({scale:i.scale,value:C(i.value)});return t}return C(e)}(e)}catch(e){i?.messages?.push(e)}return null}function w(e,t,i,s){try{const s=function(e){const t=u(e);return t?(0,o.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,r.sM)(i,s,t)}catch(e){s.messages&&s.messages.push(e)}}function C(e){if(!e?.length)return"";const t=[];for(const i of e){let e=[];switch(i.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[E(i,"amount")];break;case"blur":e=[E(i,"radius","pt")];break;case"hue-rotate":e=[E(i,"angle","deg")];break;case"drop-shadow":e=[E(i,"xoffset","pt"),E(i,"yoffset","pt"),E(i,"blurRadius","pt"),k(i,"color")];break;case"bloom":e=[E(i,"strength"),E(i,"radius","pt"),E(i,"threshold")]}const s=`${i.type}(${e.filter(Boolean).join(" ")})`;u(s),t.push(s)}return t.join(" ")}function E(e,t,i){if(null==e[t])throw new s.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return i?e[t]+i:""+e[t]}function k(e,t){if(null==e[t])throw new s.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const i=e[t];return`rgba(${i[0]||0}, ${i[1]||0}, ${i[2]||0}, ${i[3]/255||0})`}},78553:(e,t,i)=>{i.d(t,{D:()=>n,p:()=>r});var s=i(56507);function r(e){const t=(0,s.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},86875:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Vd});var s=i(31635),r=i(68197),n=i(78888),a=i(51447),o=i(49186),l=i(53966),u=i(34727),c=i(92071),h=i(74887),d=i(36708),p=i(10107),m=i(56507),g=(i(44208),i(87811),i(36005)),f=i(40608),y=i(5443),_=i(82799),v=i(16930),b=i(4146),T=i(18768),S=i(63074),w=i(69208),C=i(16131),E=i(8303),k=i(25036),x=i(60694),I=i(10873),A=i(73179),D=i(69540),P=i(25482);let M=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.framerate=null,this.containerFormat=null,this.gop=null,this.aspectRatio=null,this.klv=null}};(0,s.Cg)([(0,p.MZ)({type:String})],M.prototype,"framerate",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],M.prototype,"containerFormat",void 0),(0,s.Cg)([(0,p.MZ)({type:Number})],M.prototype,"gop",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],M.prototype,"aspectRatio",void 0),(0,s.Cg)([(0,p.MZ)({type:Object})],M.prototype,"klv",void 0),M=(0,s.Cg)([(0,f.$)("esri.layers.support.PlaybackInfo")],M);const L=M;var O=i(22453),N=i(86738),R=i(39829);let U=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.frameCenter=null,this.frameOutline=null,this.lineOfSight=null,this.sensorLocation=null,this.sensorTrail=null}};(0,s.Cg)([(0,p.MZ)({type:N.A})],U.prototype,"frameCenter",void 0),(0,s.Cg)([(0,p.MZ)({type:R.A})],U.prototype,"frameOutline",void 0),(0,s.Cg)([(0,p.MZ)({type:_.A})],U.prototype,"lineOfSight",void 0),(0,s.Cg)([(0,p.MZ)({type:N.A})],U.prototype,"sensorLocation",void 0),(0,s.Cg)([(0,p.MZ)({type:_.A})],U.prototype,"sensorTrail",void 0),U=(0,s.Cg)([(0,f.$)("esri.layers.support.TelemetryData")],U);const F={type:Boolean,json:{write:!0}};let B=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.frame=!1,this.frameCenter=!1,this.frameOutline=!0,this.lineOfSight=!0,this.sensorLocation=!0,this.sensorTrail=!0}};(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"frame",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"frameCenter",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"frameOutline",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"lineOfSight",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"sensorLocation",void 0),(0,s.Cg)([(0,p.MZ)(F)],B.prototype,"sensorTrail",void 0),B=(0,s.Cg)([(0,f.$)("esri.layers.support.TelemetryDisplay")],B);var q=i(65008),j=i(43937);let $=class extends q.A{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,s.Cg)([(0,p.MZ)()],$.prototype,"sourcePoint",void 0),(0,s.Cg)([(0,p.MZ)({type:N.A})],$.prototype,"mapPoint",void 0),$=(0,s.Cg)([(0,f.$)("esri.layers.support.VideoFrame.ControlPoint")],$);let H=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.frame=null,this.controlPoints=null}readControlPoints(e){return e.map(e=>({sourcePoint:{x:e.frameX,y:e.frameY},mapPoint:new N.A(e.point)}))}writeControlPoints(e,t){null!=e&&function(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(e[0])&&(t.controlPoints=e.map(e=>{const t=e.sourcePoint,i=e.mapPoint;return{frameX:t.x,frameY:t.y,point:i.toJSON()}}))}};(0,s.Cg)([(0,p.MZ)({type:String})],H.prototype,"frame",void 0),(0,s.Cg)([(0,p.MZ)({type:[$],json:{write:{allowNull:!1,isRequired:!0}}})],H.prototype,"controlPoints",void 0),(0,s.Cg)([(0,g.w)("controlPoints")],H.prototype,"readControlPoints",null),(0,s.Cg)([(0,j.K)("controlPoints")],H.prototype,"writeControlPoints",null),H=(0,s.Cg)([(0,f.$)("esri.layers.support.VideoFrame")],H);const V=H;let z=class extends((0,D.OU)(P.o)){constructor(e){super(e),this.duration=null,this.end=null,this.start=null,this.timezone="UTC"}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}};(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:{allowNull:!0}}})],z.prototype,"duration",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:{allowNull:!0}}})],z.prototype,"end",void 0),(0,s.Cg)([(0,g.w)("end")],z.prototype,"readEnd",null),(0,s.Cg)([(0,j.K)("end")],z.prototype,"writeEnd",null),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:{allowNull:!0}}})],z.prototype,"start",void 0),(0,s.Cg)([(0,g.w)("start")],z.prototype,"readStart",null),(0,s.Cg)([(0,j.K)("start")],z.prototype,"writeStart",null),(0,s.Cg)([(0,p.MZ)({type:String})],z.prototype,"timezone",void 0),z=(0,s.Cg)([(0,f.$)("esri.layers.support.VideoTimeExtent")],z);const W=z;var G=i(56058);class X extends EventTarget{constructor(){super(...arguments),this._readyState=0,this._responseType="",this.timeout=0,this._withCredentials=!1,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this.onreadystatechange=null,this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this._abortController=null,this._error=null,this._options={},this._response=null,this._sendFlag=!1,this._url=""}get readyState(){return this._readyState}get response(){return""===this.responseType||"text"===this.responseType?this.responseText:this.readyState!==this.DONE||this._error||!this._response?null:this._response.data}get responseText(){return""!==this.responseType&&"text"!==this.responseType&&this._throwDOMException(),this.readyState!==this.DONE?"":this._response?this._response.data:null!=this._error?.raw?"string"==typeof this._error.raw?this._error.raw:JSON.stringify(this._error.raw):""}get responseType(){return this._responseType}set responseType(e){("document"!==e||globalThis instanceof Window)&&(this.readyState!==this.LOADING&&this.readyState!==this.DONE||this._throwDOMException(),this._responseType=e)}get responseURL(){return(this._response||this._error)?.url??""}get responseXML(){return""!==this.responseType&&"document"!==this.responseType&&this._throwDOMException(),this.readyState!==this.DONE?null:this._response?.data??null}get status(){return(this._response||this._error)?.httpStatus??0}get statusText(){return""}get upload(){return console.warn("upload not implemented"),null}get withCredentials(){return this._withCredentials}set withCredentials(e){this.readyState!==this.UNSENT&&this.readyState!==this.OPENED&&this._throwDOMException(),this._withCredentials=e}static{this.UNSENT=0}static{this.OPENED=1}static{this.HEADERS_RECEIVED=2}static{this.LOADING=3}static{this.DONE=4}abort(){this.readyState===this.OPENED&&this._sendFlag||this.readyState===this.HEADERS_RECEIVED||this.readyState===this.LOADING?(this._sendFlag=!1,this._error=null,this._response=null,this._abortController?.abort(),this._updateReadyState(this.DONE),this._dispatchProgressEvent("abort"),this._dispatchProgressEvent("loadend")):this.readyState===this.DONE&&this._updateReadyState(this.UNSENT)}getAllResponseHeaders(){let e="";const t=(this._response||this._error)?.getAllHeaders?.();if(t)for(const[i,s]of t)e+=`${i}: ${s}\r\n`;return e}getResponseHeader(e){return(this._response||this._error)?.getHeader?.(e)??null}open(e,t){switch(this._sendFlag=!1,this._options={},e){case"GET":this._options.method="auto";break;case"POST":this._options.method="post";break;case"HEAD":this._options.method="head";break;case"DELETE":this._options.method="delete";break;case"PUT":this._options.method="put"}this._url=t,this._error=null,this._response=null,this._abortController=new AbortController,this._updateReadyState(this.OPENED)}overrideMimeType(e){throw new Error("overrideMimeType not implemented")}send(e){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._sendFlag=!0,this._updateReadyState(this.LOADING),this._dispatchProgressEvent("loadstart");const t=this._options;e instanceof URLSearchParams?t.body=e.toString():t.body=e,t.responseType=""===this.responseType?"text":"arraybuffer"===this.responseType?"array-buffer":this.responseType,t.signal=this._abortController?.signal,this.timeout&&(t.timeout=this.timeout),this.withCredentials&&(t.withCredentials=!0),(0,n.A)(this._url,t).then(e=>{this._response=e,this._updateReadyState(this.DONE),this._dispatchProgressEvent("load")}).catch(e=>{this._sendFlag&&(this._error=e.details,this._updateReadyState(this.DONE),(0,G.c8)(e)?this._dispatchProgressEvent("timeout"):"AbortError"===e.name?this._dispatchProgressEvent("abort"):this._dispatchProgressEvent("error"))}).finally(()=>{this._sendFlag&&this._dispatchProgressEvent("loadend")})}setRequestHeader(e,t){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._options.headers??={},this._options.headers[e]=t}_dispatchProgressEvent(e){const t=new ProgressEvent(e,{loaded:0,total:0});this.dispatchEvent(t),this[`on${e}`]?.(t)}_throwDOMException(){throw new DOMException("","InvalidStateError")}_updateReadyState(e){if(this._readyState!==e&&(this._readyState=e,e!==this.UNSENT)){const e=new Event("readystatechange");this.dispatchEvent(e),this.onreadystatechange?.(e)}}}var Z=i(29242),Q=i(51850),K=i(77690),Y=i(38954),J=i(98764),ee=i(9762),te=i(79258),ie=i(62046),se=i(37531);const re="application/x-mpegURL",ne=10013,ae=10014,oe=10015,le=10023,ue=10024,ce=10025,he=90001,de=90002;function pe(e,t,i){if(!e)return null;const s=e.clone();switch(s.type){case"simple-fill":(0,se.dt)(s,i),s.outline.color=t;break;case"simple-line":(0,se.dt)(s,t);break;case"simple-marker":(0,se.dt)(s,t),s?.outline?.color&&(s.outline.color=t);break;case"cim":(0,ie.Fe)(s,t)}return s}const me=Math.PI/180;let ge=class extends q.A{constructor(e){super(),this.averageElevation=0,this.imageHeight=0,this.imageWidth=0,this.metadataSupportsTransforms=!1,this.platformHeadingAngle=0,this.platformPitchAngle=0,this.platformRollAngle=0,this.sensorHeadingAngle=0,this.sensorAltitude=0,this.sensorHorizontalFieldOfView=0,this.sensorLatitude=0,this.sensorLongitude=0,this.sensorPitchAngle=0,this.sensorRollAngle=0,this.sensorVerticalFieldOfView=0,this.vttMetadata=new Map,this._createMat3FromValues=e=>{const t=e[0],i=e[1],s=e[2];return(0,Z.fA)(t[0],i[0],s[0],t[1],i[1],s[1],t[2],i[2],s[2])},this._multiplyMat3=(e,t)=>{const i=(0,Z.vt)();return(0,K.lw)(i,e,t),i},this._transposeMat3=e=>{const t=(0,Z.vt)();return(0,K.mg)(t,e),t},this._calculateCameraFovForward=()=>this._createMat3FromValues([[0,0,1],[Math.tan(.5*this.sensorHorizontalFieldOfView*me),0,0],[0,Math.tan(.5*this.sensorVerticalFieldOfView*me),0]]),this._calculateCameraFovReverse=()=>this._createMat3FromValues([[0,1/Math.tan(.5*this.sensorHorizontalFieldOfView*me),0],[0,0,1/Math.tan(.5*this.sensorVerticalFieldOfView*me)],[1,0,0]]),this._calculateCameraLook=()=>this._getRotationMatrixZYX(this.sensorHeadingAngle*me,this.sensorPitchAngle*me,this.sensorRollAngle*me),this._calculateImageDimensionsForward=()=>this._createMat3FromValues([[2/this.imageWidth,0,-1],[0,-2/this.imageHeight,-1],[0,0,1]]),this._calculateImageDimensionsReverse=()=>this._createMat3FromValues([[this.imageWidth/2,0,this.imageWidth/2],[0,-this.imageHeight/2,-this.imageHeight/2],[0,0,1]]),this._calculatePlatformPositionMatrix=()=>{const e=Math.sin(this.sensorLatitude*me),t=Math.cos(this.sensorLatitude*me),i=Math.sin(this.sensorLongitude*me),s=Math.cos(this.sensorLongitude*me);return this._createMat3FromValues([[-e*s,-i,-t*s],[-e*i,s,-t*i],[t,0,-e]])},this._calculatePlatformOrientation=()=>this._getRotationMatrixZYX(this.platformHeadingAngle*me,this.platformPitchAngle*me,this.platformRollAngle*me),this._extractValues=e=>{this.imageWidth=e.get(he)?.value,this.imageHeight=e.get(de)?.value;const t=e.get(10075)?.value;this.sensorAltitude=t??e.get(oe)?.value,this.sensorLatitude=e.get(ne)?.value,this.sensorLongitude=e.get(ae)?.value,this.sensorHeadingAngle=e.get(10018)?.value,this.sensorPitchAngle=e.get(10019)?.value,this.sensorRollAngle=e.get(10020)?.value,this.sensorHorizontalFieldOfView=e.get(10016)?.value,this.sensorVerticalFieldOfView=e.get(10017)?.value,this.platformHeadingAngle=e.get(10005)?.value,this.platformPitchAngle=e.get(10006)?.value,this.platformRollAngle=e.get(10007)?.value,this.averageElevation=e.get(ce)?.value||0},this._getRotationMatrixZYX=(e,t,i)=>{const s=Math.cos(e),r=Math.sin(e),n=Math.cos(t),a=Math.sin(t),o=Math.cos(i),l=Math.sin(i);return this._createMat3FromValues([[s*n,s*a*l-o*r,r*l+s*o*a],[n*r,s*o+r*a*l,o*r*a-s*l],[-a,n*l,n*o]])},this._initCameraSensor=()=>{const e=this._calculateCameraFovForward(),t=this._calculateCameraFovReverse(),i=this._calculateCameraLook(),s=this._calculateImageDimensionsForward(),r=this._calculateImageDimensionsReverse(),n=this._calculatePlatformPositionMatrix(),a=this._calculatePlatformOrientation(),o=this._multiplyMat3(this._multiplyMat3(n,a),i);this._imageToEarthTransform=this._multiplyMat3(this._multiplyMat3(o,e),s);const l=this._multiplyMat3(r,t);this._earthToImageTransform=this._multiplyMat3(l,this._transposeMat3(o)),this._platformPositionEcef=this._projectPointToECEF(this.sensorLongitude,this.sensorLatitude,this.sensorAltitude||this.averageElevation)},this._metadataSupportsTransforms=e=>{if(!e?.size)return!1;const t=e.get(he)?.value??0,i=e.get(de)?.value??0;if(t<=0||i<=0)return!1;const s=e.get(10075)?.value,r=e.get(oe)?.value,n=e.get(ne)?.value,a=e.get(ae)?.value;if(null==s&&null==r||null==n||null==a)return!1;const o=e.get(10005)?.value,l=e.get(10006)?.value,u=e.get(10007)?.value;if(null==o||null==l||null==u)return!1;const c=e.get(10016)?.value,h=e.get(10017)?.value;if(null==c||null==h)return!1;const d=e.get(10018)?.value,p=e.get(10019)?.value,m=e.get(10020)?.value;return null!=d&&null!=p&&null!=m},this._projectPointToECEF=(e,t,i)=>{const s=[];return(0,ee.projectBuffer)([e,t,i],v.A.WGS84,0,s,J.Y0,0),new N.A({x:s[0],y:s[1],z:s[2],spatialReference:J.Y0})},this._projectImageVectorToEllipsoid=(e,t)=>{const i=te.$O.semiMajorAxis+t,s=te.$O.semiMinorAxis+t,r=s/i,n=i/s,{x:a,y:o,z:l}=this._platformPositionEcef,u=l??this.averageElevation,c=(0,Q.fA)(a,o,n*u),h=(0,Y.e)(e,e),d=(0,Y.e)(e,c),p=(0,Y.e)(c,c)-i*i,m=(-d-Math.sqrt(d*d-h*p))/h;if(m<0)return[NaN,NaN,NaN];const g=(0,Q.vt)();return(0,Y.b)(g,c,e,m),g[2]=g[2]*r,g};const t=e?.videoMetadata;this.updateSensorModel(t)}updateSensorModel(e){e?.size&&(this._set("metadataSupportsTransforms",this._metadataSupportsTransforms(e)),this.metadataSupportsTransforms&&(this._extractValues(e),this._initCameraSensor()))}transformGeoToImage(e,t,i){const s=this._platformPositionEcef;if(!s)return[0,0];const{x:r,y:n,z:a}=s,o=(0,Q.fA)(r,n,a),l=this._projectPointToECEF(e,t,i||this.averageElevation),u=(0,Q.vt)(),c=(0,Q.fA)(l.x,l.y,l.z);(0,Y.d)(u,c,o),(0,Y.o)(u,u,this._earthToImageTransform);const h=u[0],d=u[1],p=u[2];let m=(0,Q.fA)(NaN,NaN,NaN);return isNaN(p)||(m=(0,Q.fA)(h/p,d/p,p/p)),[m[0],m[1]]}transformImageToGeo(e,t){const i=(0,Q.fA)(e,t,1),s=(0,Q.vt)();(0,Y.o)(s,i,this._imageToEarthTransform);const r=this._projectImageVectorToEllipsoid(s,this.averageElevation);let n;if(!isNaN(r[0])){const e=[];(0,ee.projectBuffer)([r[0],r[1],r[2]],J.Y0,0,e,v.A.WGS84,0),n=new N.A({x:e[0],y:e[1],z:e[2],spatialReference:v.A.WGS84})}return n}};(0,s.Cg)([(0,p.MZ)()],ge.prototype,"averageElevation",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"imageHeight",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"imageWidth",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],ge.prototype,"metadataSupportsTransforms",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"platformHeadingAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"platformPitchAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"platformRollAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorHeadingAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorAltitude",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorHorizontalFieldOfView",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorLatitude",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorLongitude",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorPitchAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorRollAngle",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"sensorVerticalFieldOfView",void 0),(0,s.Cg)([(0,p.MZ)()],ge.prototype,"vttMetadata",void 0),ge=(0,s.Cg)([(0,f.$)("esri.layers.video.VideoCameraSensorModel")],ge);var fe,ye,_e=i(11053);function ve(){return ye?fe:(ye=1,e="undefined"!=typeof window?window:void 0!==_e.c?_e.c:"undefined"!=typeof self?self:{},fe=e);var e}const be=(0,_e.g)(ve());var Te,Se,we,Ce,Ee,ke,xe,Ie,Ae,De,Pe,Me,Le,Oe,Ne,Re,Ue,Fe,Be,qe,je,$e,He,Ve,ze,We;function Ge(){if(Se)return Te;Se=1;var e=Array.prototype.slice;return Te=function(t,i){"length"in t||(t=[t]),t=e.call(t);for(;t.length;){var s=t.shift(),r=i(s);if(r)return r;s.childNodes&&s.childNodes.length&&(t=e.call(s.childNodes).concat(t))}}}function Xe(){return Ie?xe:(Ie=1,xe=function(e){var t=this,i=e.type;e.target||(e.target=t),t.listeners||(t.listeners={});var s=t.listeners[i];if(s)return s.forEach(function(i){e.currentTarget=t,"function"==typeof i?i(e):i.handleEvent(e)});t.parentNode&&t.parentNode.dispatchEvent(e)})}function Ze(){return De?Ae:(De=1,Ae=function(e,t){var i=this;i.listeners||(i.listeners={}),i.listeners[e]||(i.listeners[e]=[]),-1===i.listeners[e].indexOf(t)&&i.listeners[e].push(t)})}function Qe(){return Me?Pe:(Me=1,Pe=function(e,t){var i=this;if(i.listeners&&i.listeners[e]){var s=i.listeners[e],r=s.indexOf(t);-1!==r&&s.splice(r,1)}})}function Ke(){if(Re)return Ne;Re=1;var e=Ge(),t=Xe(),i=Ze(),s=Qe(),r=function(){if(Oe)return Le;Oe=1;var e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function t(e){switch(e.nodeType){case 3:return a(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return i(e)}}function i(i){var s=[],o=i.tagName;return"http://www.w3.org/1999/xhtml"===i.namespaceURI&&(o=o.toLowerCase()),s.push("<"+o+n(i)+function(e){var t=e.dataset,i=[];for(var s in t)i.push({name:"data-"+s,value:t[s]});return i.length?r(i):""}(i)),e.indexOf(o)>-1?s.push(" />"):(s.push(">"),i.childNodes.length?s.push.apply(s,i.childNodes.map(t)):i.textContent||i.innerText?s.push(a(i.textContent||i.innerText)):i.innerHTML&&s.push(i.innerHTML),s.push("</"+o+">")),s.join("")}function s(e,t){var i=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===i||"boolean"===i||"number"===i)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function r(e){var t=[];return e.forEach(function(e){var i=e.name,s=e.value;"style"===i&&(s=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach(function(i){var s=e[i];i=i.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}),t+=i+":"+s+";"}),t}(s)),t.push(i+'="'+function(e){return a(e).replace(/"/g,"&quot;")}(s)+'"')}),t.length?" "+t.join(" "):""}function n(e){var t=[];for(var i in e)s(e,i)&&t.push({name:i,value:e[i]});for(var n in e._attributes)for(var a in e._attributes[n]){var o=e._attributes[n][a],l=(o.prefix?o.prefix+":":"")+a;t.push({name:l,value:o.value})}return e.className&&t.push({name:"class",value:e.className}),t.length?r(t):""}function a(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}return Le=t}(),n="http://www.w3.org/1999/xhtml";function a(e,t,i){if(!(this instanceof a))return new a(e);var s=void 0===i?n:i||null;this.tagName=s===n?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=s,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}return Ne=a,a.prototype.type="DOMElement",a.prototype.nodeType=1,a.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},a.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[i]=e,e.parentNode=this,t},a.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},a.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=null==t?-1:this.childNodes.indexOf(t);return i>-1?this.childNodes.splice(i,0,e):this.childNodes.push(e),e.parentNode=this,e},a.prototype.setAttributeNS=function(e,t,i){var s=null,r=t,n=t.indexOf(":");n>-1&&(s=t.substr(0,n),r=t.substr(n+1)),"INPUT"===this.tagName&&"type"===t?this.type=i:(this._attributes[e]||(this._attributes[e]={}))[r]={value:i,prefix:s}},a.prototype.getAttributeNS=function(e,t){var i=this._attributes[e],s=i&&i[t]&&i[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof s?null:s},a.prototype.removeAttributeNS=function(e,t){var i=this._attributes[e];i&&delete i[t]},a.prototype.hasAttributeNS=function(e,t){var i=this._attributes[e];return!!i&&t in i},a.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},a.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},a.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},a.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},a.prototype.removeEventListener=s,a.prototype.addEventListener=i,a.prototype.dispatchEvent=t,a.prototype.focus=function(){},a.prototype.toString=function(){return r(this)},a.prototype.getElementsByClassName=function(t){var i=t.split(" "),s=[];return e(this,function(e){if(1===e.nodeType){var t=(e.className||"").split(" ");i.every(function(e){return-1!==t.indexOf(e)})&&s.push(e)}}),s},a.prototype.getElementsByTagName=function(t){t=t.toLowerCase();var i=[];return e(this.childNodes,function(e){1!==e.nodeType||"*"!==t&&e.tagName.toLowerCase()!==t||i.push(e)}),i},a.prototype.contains=function(t){return e(this,function(e){return t===e})||!1},Ne}function Ye(){if(We)return ze;We=1;var e,t=void 0!==_e.c?_e.c:"undefined"!=typeof window?window:{},i=function(){if(Ve)return He;Ve=1;var e=function(){if($e)return je;$e=1;var e=Ge(),t=function(){if(Ce)return we;function e(t,i){if(!(this instanceof e))return new e(t,i);this.data=t,this.nodeValue=t,this.length=t.length,this.ownerDocument=i||null}return Ce=1,we=e,e.prototype.nodeType=8,e.prototype.nodeName="#comment",e.prototype.toString=function(){return"[object Comment]"},we}(),i=function(){if(ke)return Ee;function e(t,i){if(!(this instanceof e))return new e(t);this.data=t||"",this.length=this.data.length,this.ownerDocument=i||null}return ke=1,Ee=e,e.prototype.type="DOMTextNode",e.prototype.nodeType=3,e.prototype.nodeName="#text",e.prototype.toString=function(){return this.data},e.prototype.replaceData=function(e,t,i){var s=this.data,r=s.substring(0,e),n=s.substring(e+t,s.length);this.data=r+i+n,this.length=this.data.length},Ee}(),s=Ke(),r=function(){if(Fe)return Ue;Fe=1;var e=Ke();function t(e){if(!(this instanceof t))return new t;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}return Ue=t,t.prototype.type="DocumentFragment",t.prototype.nodeType=11,t.prototype.nodeName="#document-fragment",t.prototype.appendChild=e.prototype.appendChild,t.prototype.replaceChild=e.prototype.replaceChild,t.prototype.removeChild=e.prototype.removeChild,t.prototype.toString=function(){return this.childNodes.map(function(e){return String(e)}).join("")},Ue}(),n=function(){if(qe)return Be;function e(e){}return qe=1,Be=e,e.prototype.initEvent=function(e,t,i){this.type=e,this.bubbles=t,this.cancelable=i},e.prototype.preventDefault=function(){},Be}(),a=Xe(),o=Ze(),l=Qe();function u(){if(!(this instanceof u))return new u;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}je=u;var c=u.prototype;return c.createTextNode=function(e){return new i(e,this)},c.createElementNS=function(e,t){var i=null===e?null:String(e);return new s(t,this,i)},c.createElement=function(e){return new s(e,this)},c.createDocumentFragment=function(){return new r(this)},c.createEvent=function(e){return new n(e)},c.createComment=function(e){return new t(e,this)},c.getElementById=function(t){return t=String(t),e(this.childNodes,function(e){if(String(e.id)===t)return e})||null},c.getElementsByClassName=s.prototype.getElementsByClassName,c.getElementsByTagName=s.prototype.getElementsByTagName,c.contains=s.prototype.contains,c.removeEventListener=l,c.addEventListener=o,c.dispatchEvent=a,je}();return He=new e}();return"undefined"!=typeof document?e=document:(e=t["__GLOBAL_DOCUMENT_CACHE@4"])||(e=t["__GLOBAL_DOCUMENT_CACHE@4"]=i),ze=e}const Je=(0,_e.g)(Ye());var et,tt,it,st,rt,nt,at,ot,lt,ut,ct={exports:{}},ht={exports:{}};const dt=(0,_e.g)(function(){if(ut)return ct.exports;ut=1;var e=ve(),t=(et||(et=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ht)),ht.exports),i=function(){if(it)return tt;it=1,tt=function(t){if(!t)return!1;var i=e.call(t);return"[object Function]"===i||"function"==typeof t&&"[object RegExp]"!==i||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString;return tt}(),s=function(){if(rt)return st;function e(e,i){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=t(e))||i){s&&(e=s);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return i(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}return rt=1,st=function(){function t(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var i=t.prototype;return i.getIsEnabled=function(){return this.enabled_},i.enable=function(){this.enabled_=!0},i.disable=function(){this.enabled_=!1},i.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},i.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var i=this.typeToInterceptorsMap_.get(e);return!i.has(t)&&(i.add(t),!0)},i.removeInterceptor=function(e,t){var i=this.typeToInterceptorsMap_.get(e);return!(!i||!i.has(t)||(i.delete(t),0))},i.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},i.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},i.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},i.execute=function(t,i){for(var s,r=e(this.getForType(t));!(s=r()).done;){var n=s.value;try{i=n(i)}catch(e){}}return i},t}()}(),r=function(){if(at)return nt;at=1;var e=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var i=e.prototype;return i.getIsEnabled=function(){return this.enabled_},i.enable=function(){this.enabled_=!0},i.disable=function(){this.enabled_=!1},i.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},i.getMaxAttempts=function(){return this.maxAttempts_},i.setMaxAttempts=function(e){this.maxAttempts_=e},i.getDelayFactor=function(){return this.delayFactor_},i.setDelayFactor=function(e){this.delayFactor_=e},i.getFuzzFactor=function(){return this.fuzzFactor_},i.setFuzzFactor=function(e){this.fuzzFactor_=e},i.getInitialDelay=function(){return this.initialDelay_},i.setInitialDelay=function(e){this.initialDelay_=e},i.createRetry=function(e){var i=void 0===e?{}:e,s=i.maxAttempts,r=i.delayFactor,n=i.fuzzFactor,a=i.initialDelay;return new t({maxAttempts:s||this.maxAttempts_,delayFactor:r||this.delayFactor_,fuzzFactor:n||this.fuzzFactor_,initialDelay:a||this.initialDelay_})},e}(),t=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay(),t=this.getCurrentMaxPossibleDelay();return e+Math.random()*(t-e)},e}();return nt=e}();o.httpHandler=function(){if(lt)return ot;lt=1;var e=ve();return ot=function(t,i){return void 0===i&&(i=!1),function(s,r,n){if(s)t(s);else if(r.statusCode>=400&&r.statusCode<=599){var a=n;if(i)if(e.TextDecoder){var o=function(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),s=i[0],r=i[1];return"charset"===s.trim()?r.trim():e},"utf-8")}(r.headers&&r.headers["content-type"]);try{a=new TextDecoder(o).decode(n)}catch(e){}}else a=String.fromCharCode.apply(null,new Uint8Array(n));t({cause:a})}else t(null,n)}}}(),o.requestInterceptorsStorage=new s,o.responseInterceptorsStorage=new s,o.retryManager=new r;var n=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var i=e.indexOf(":"),s=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim();void 0===t[s]?t[s]=r:Array.isArray(t[s])?t[s].push(r):t[s]=[t[s],r]}),t):t};function a(e,s,r){var n=e;return i(s)?(r=s,"string"==typeof e&&(n={uri:e})):n=t({},s,{uri:e}),n.callback=r,n}function o(e,t,i){return l(t=a(e,t,i))}function l(e){if(void 0===e.callback)throw new Error("callback argument missing");if(e.requestType&&o.requestInterceptorsStorage.getIsEnabled()){var t={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},i=o.requestInterceptorsStorage.execute(e.requestType,t);e.uri=i.uri,e.headers=i.headers,e.body=i.body,e.metadata=i.metadata,e.retry=i.retry,e.timeout=i.timeout}var s=!1,r=function(t,i,r){s||(s=!0,e.callback(t,i,r))};function a(){var e=void 0;if(e=p.response?p.response:p.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(p),b)try{e=JSON.parse(e)}catch(e){}return e}function u(t){if(clearTimeout(m),clearTimeout(e.retryTimeout),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,d||!o.retryManager.getIsEnabled()||!e.retry||!e.retry.shouldRetry()){if(e.requestType&&o.responseInterceptorsStorage.getIsEnabled()){var i={headers:T.headers||{},body:T.body,responseUrl:p.responseURL,responseType:p.responseType},s=o.responseInterceptorsStorage.execute(e.requestType,i);T.body=s.body,T.headers=s.headers}return r(t,T)}e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=p,l(e)},e.retry.getCurrentFuzzedDelay())}function c(){if(!d){var t;clearTimeout(m),clearTimeout(e.retryTimeout),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var i=T,s=null;if(0!==t?(i={body:a(),statusCode:t,method:f,headers:{},url:g,rawRequest:p},p.getAllResponseHeaders&&(i.headers=n(p.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),e.requestType&&o.responseInterceptorsStorage.getIsEnabled()){var l={headers:i.headers||{},body:i.body,responseUrl:p.responseURL,responseType:p.responseType},u=o.responseInterceptorsStorage.execute(e.requestType,l);i.body=u.body,i.headers=u.headers}return r(s,i,i.body)}}var h,d,p=e.xhr||null;p||(p=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var m,g=p.url=e.uri||e.url,f=p.method=e.method||"GET",y=e.body||e.data,_=p.headers=e.headers||{},v=!!e.sync,b=!1,T={body:void 0,headers:{},statusCode:0,method:f,url:g,rawRequest:p};if("json"in e&&!1!==e.json&&(b=!0,_.accept||_.Accept||(_.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json"),y=JSON.stringify(!0===e.json?y:e.json))),p.onreadystatechange=function(){4!==p.readyState||o.responseInterceptorsStorage.getIsEnabled()||setTimeout(c,0)},p.onload=c,p.onerror=u,p.onprogress=function(){},p.onabort=function(){d=!0,clearTimeout(e.retryTimeout)},p.ontimeout=u,p.open(f,g,!v,e.username,e.password),v||(p.withCredentials=!!e.withCredentials),!v&&e.timeout>0&&(m=setTimeout(function(){if(!d){d=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",u(e)}},e.timeout)),p.setRequestHeader)for(h in _)_.hasOwnProperty(h)&&p.setRequestHeader(h,_[h]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(p),p.send(y||null),p}return ct.exports=o,ct.exports.default=o,o.XMLHttpRequest=e.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:e.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(e){o["delete"===e?"del":e]=function(t,i,s){return(i=a(t,i,s)).method=e.toUpperCase(),l(i)}}),ct.exports}());var pt,mt,gt,ft,yt,_t,vt,bt={exports:{}};function Tt(){if(mt)return pt;mt=1;var e=Ye(),t=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function i(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,i,s){return 3600*(0|e)+60*(0|t)+(0|i)+(0|s)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function r(){this.values=t(null)}function n(e,t,i,s){var r=s?e.split(s):[e];for(var n in r)if("string"==typeof r[n]){var a=r[n].split(i);2===a.length&&t(a[0].trim(),a[1].trim())}}function a(e,t,a){var o=e;function l(){var t=s(e);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+o);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=l(),u(),"--\x3e"!==e.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);e=e.substr(3),u(),t.endTime=l(),u(),function(e,t){var i=new r;n(e,function(e,t){switch(e){case"region":for(var s=a.length-1;s>=0;s--)if(a[s].id===t){i.set(e,a[s].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),n=r[0];i.integer(e,n),i.percent(e,n)&&i.set("snapToLines",!1),i.alt(e,n,["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start","center","end"]);break;case"position":r=t.split(","),i.percent(e,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(e){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(e){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(e){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}i.prototype=t(Error.prototype),i.prototype.constructor=i,i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var s=0;s<i.length;++s)if(t===i[s]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var o=e.createElement&&e.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},c={v:"title",lang:"lang"},h={rt:"ruby"};function d(e,t){function i(){if(!t)return null;var e=t.match(/^([^<]*)(<[^>]*>?)?/);return function(e){return t=t.substr(e.length),e}(e[1]?e[1]:e[2])}function r(e){return o.innerHTML=e,e=o.textContent,o.textContent="",e}function n(e,t){return!h[t.localName]||h[t.localName]===e.localName}function a(t,i){var s=l[t];if(!s)return null;var r=e.document.createElement(s),n=c[t];return n&&i&&(r[n]=i.trim()),r}for(var d,p=e.document.createElement("div"),m=p,g=[];null!==(d=i());)if("<"!==d[0])m.appendChild(e.document.createTextNode(r(d)));else{if("/"===d[1]){g.length&&g[g.length-1]===d.substr(2).replace(">","")&&(g.pop(),m=m.parentNode);continue}var f,y=s(d.substr(1,d.length-2));if(y){f=e.document.createProcessingInstruction("timestamp",y),m.appendChild(f);continue}var _=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!_)continue;if(!(f=a(_[1],_[3])))continue;if(!n(m,f))continue;if(_[2]){var v=_[2].split(".");v.forEach(function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(u.hasOwnProperty(i)){var s=t?"background-color":"color",r=u[i];f.style[s]=r}}),f.className=v.join(" ")}g.push(_[1]),m.appendChild(f),m=f}return p}var p=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(e){for(var t=0;t<p.length;t++){var i=p[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function g(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function s(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function r(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textContent||t.innerText;if(i){var n=i.match(/^.*(\n|\r)/);return n?(e.length=0,n[0]):i}return"ruby"===t.tagName?r(e):t.childNodes?(s(e,t),r(e)):void 0}for(s(t,e);i=r(t);)for(var n=0;n<i.length;n++)if(m(i.charCodeAt(n)))return"rtl";return"ltr"}function f(){}function y(e,t,i){f.call(this),this.cue=t,this.cueDiv=d(e,t.text);var s={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={direction:g(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(s),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function _(e){var t,i,s,r;if(e.div){i=e.div.offsetHeight,s=e.div.offsetWidth,r=e.div.offsetTop;var n=(n=e.div.childNodes)&&(n=n[0])&&n.getClientRects&&n.getClientRects();e=e.div.getBoundingClientRect(),t=n?Math.max(n[0]&&n[0].height||0,e.height/n.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||i,this.bottom=e.bottom||r+(e.height||i),this.width=e.width||s,this.lineHeight=void 0!==t?t:e.lineHeight}function v(e,t,i,s){var r=new _(t),n=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,s=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&s++;return-1*++s}(n),o=[];if(n.snapToLines){var l;switch(n.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var u=r.lineHeight,c=u*Math.round(a),h=i[l]+u,d=o[0];Math.abs(c)>h&&(c=c<0?-1:1,c*=Math.ceil(h/u)*u),a<0&&(c+=""===n.vertical?i.height:i.width,o=o.reverse()),r.move(d,c)}else{var p=r.lineHeight/i.height*100;switch(n.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(n.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}o=["+y","-x","+x","-y"],r=new _(t)}var m=function(e,t){for(var r,n=new _(e),a=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(i,t[o])||e.within(i)&&e.overlapsAny(s);)e.move(t[o]);if(e.within(i))return e;var l=e.intersectPercentage(i);a>l&&(r=new _(e),a=l),e=new _(n)}return r||n}(r,o);t.move(m.toCSSCompatValues(i))}function b(){}return f.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},f.prototype.formatStyle=function(e,t){return 0===e?0:e+t},y.prototype=t(f.prototype),y.prototype.constructor=y,_.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},_.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},_.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},_.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},_.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},_.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},_.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},_.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,s=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||s,height:e.height||t,bottom:e.bottom||s+(e.height||t),width:e.width||i}},b.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},b.convertCueToDOMTree=function(e,t){return e&&t?d(e,t):null},b.processCues=function(e,t,i){if(!e||!t||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var s=e.document.createElement("div");if(s.style.position="absolute",s.style.left="0",s.style.right="0",s.style.top="0",s.style.bottom="0",s.style.margin="1.5%",i.appendChild(s),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],n=_.getSimpleBoxPosition(s),a={font:Math.round(.05*n.height*100)/100+"px sans-serif"};!function(){for(var i,o,l=0;l<t.length;l++)o=t[l],i=new y(e,o,a),s.appendChild(i.div),v(0,i,n,r),o.displayState=i.div,r.push(_.getSimpleBoxPosition(i))}()}else for(var o=0;o<t.length;o++)s.appendChild(t[o].displayState)},b.Parser=function(e,t,i){i||(i=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},b.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof i))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function o(){for(var e=t.buffer,i=0;i<e.length&&"\r"!==e[i]&&"\n"!==e[i];)++i;var s=e.substr(0,i);return"\r"===e[i]&&++i,"\n"===e[i]&&++i,t.buffer=e.substr(i),s}function l(e){var i=new r;if(n(e,function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var s=t.split(",");if(2!==s.length)break;var n=new r;if(n.percent("x",s[0]),n.percent("y",s[1]),!n.has("x")||!n.has("y"))break;i.set(e+"X",n.get("x")),i.set(e+"Y",n.get("y"));break;case"scroll":i.alt(e,t,["up"])}},/=/,/\s/),i.has("id")){var s=new(t.vttjs.VTTRegion||t.window.VTTRegion);s.width=i.get("width",100),s.lines=i.get("lines",3),s.regionAnchorX=i.get("regionanchorX",0),s.regionAnchorY=i.get("regionanchorY",100),s.viewportAnchorX=i.get("viewportanchorX",0),s.viewportAnchorY=i.get("viewportanchorY",100),s.scroll=i.get("scroll",""),t.onregion&&t.onregion(s),t.regionList.push({id:i.get("id"),region:s})}}function u(e){var i=new r;n(e,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",s(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}function c(e){e.match(/X-TIMESTAMP-MAP/)?n(e,function(e,t){"X-TIMESTAMP-MAP"===e&&u(t)},/=/):n(e,function(e,t){"Region"===e&&l(t)},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var h;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var d=(h=o()).match(/^WEBVTT([ \t].*)?$/);if(!d||!d[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(var p=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:h=o(),t.state){case"HEADER":/:/.test(h)?c(h):h||(t.state="ID");continue;case"NOTE":h||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(h)){t.state="NOTE";break}if(!h)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===h.indexOf("--\x3e")){t.cue.id=h;continue}case"CUE":try{a(h,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var m=-1!==h.indexOf("--\x3e");if(!h||m&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=h.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":h||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new i(i.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},pt=b}function St(){if(ft)return gt;ft=1;var e={"":1,lr:1,rl:1},t={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}function s(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}function r(e,t,r){this.hasBeenReset=!1;var n="",a=!1,o=e,l=t,u=r,c=null,h="",d=!0,p="auto",m="start",g="auto",f="auto",y=100,_="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(e){a=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var t=i(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(e){d=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=s(e);t?(m=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=s(e);t?(f=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return _},set:function(e){var t=s(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");_=t,this.hasBeenReset=!0}}}),this.displayState=void 0}return r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},gt=r}function wt(){if(_t)return yt;_t=1;var e={"":!0,up:!0};function t(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}function i(e){return"number"==typeof e&&e>=0&&e<=100}return yt=function(){var e=100,s=3,r=0,n=100,a=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");s=e}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(e){if(!i(e))throw new Error("RegionAnchorX must be between 0 and 100.");n=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!i(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!i(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!i(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var i=t(e);!1===i?console.warn("Scroll: an invalid or illegal string was specified."):l=i}}})}}const Ct=(0,_e.g)(function(){if(vt)return bt.exports;vt=1;var e=ve(),t=bt.exports={WebVTT:Tt(),VTTCue:St(),VTTRegion:wt()};e.vttjs=t,e.WebVTT=t.WebVTT;var i=t.VTTCue,s=t.VTTRegion,r=e.VTTCue,n=e.VTTRegion;return t.shim=function(){e.VTTCue=i,e.VTTRegion=s},t.restore=function(){e.VTTCue=r,e.VTTRegion=n},e.VTTCue||t.shim(),bt.exports}());function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Et.apply(null,arguments)}var kt=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=be.location&&be.location.href||"");var i=/^\/\//.test(e),s=!be.location&&!/\/\//i.test(e);e=new be.URL(e,be.location||"https://example.com");var r=new URL(t,e);return s?r.href.slice(19):i?r.href.slice(r.protocol.length):r.href},xt=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,s=0;s<i;++s)t[s].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),n=t.length,a=0;a<n;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function It(e){for(var t=function(e){return be.atob?be.atob(e):Buffer.from(e,"base64").toString("binary")}(e),i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}class At extends xt{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}const Dt=String.fromCharCode(9),Pt=function(e){const t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),i={};return t[1]&&(i.length=parseInt(t[1],10)),t[2]&&(i.offset=parseInt(t[2],10)),i},Mt=function(e){const t={};if(!e)return t;const i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let s,r=i.length;for(;r--;)""!==i[r]&&(s=/([^=]*)=(.*)/.exec(i[r]).slice(1),s[0]=s[0].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^['"](.*)['"]$/g,"$1"),t[s[0]]=s[1]);return t},Lt=e=>{const t=e.split("x"),i={};return t[0]&&(i.width=parseInt(t[0],10)),t[1]&&(i.height=parseInt(t[1],10)),i};class Ot extends xt{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,i;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((t,i)=>{const s=i(e);return s===e?t:t.concat([s])},[e]).forEach(e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t)return i={type:"tag",tagType:"inf"},t[1]&&(i.duration=parseFloat(t[1])),t[2]&&(i.title=t[2]),void this.trigger("data",i);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"targetduration"},t[1]&&(i.duration=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"version"},t[1]&&(i.version=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"media-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"playlist-type"},t[1]&&(i.playlistType=t[1]),void this.trigger("data",i);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t)return i=Et(Pt(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",i);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t)return i={type:"tag",tagType:"allow-cache"},t[1]&&(i.allowed=!/NO/.test(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if(i={type:"tag",tagType:"map"},t[1]){const e=Mt(t[1]);e.URI&&(i.uri=e.URI),e.BYTERANGE&&(i.byterange=Pt(e.BYTERANGE))}this.trigger("data",i)}else{if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t)return i={type:"tag",tagType:"stream-inf"},t[1]&&(i.attributes=Mt(t[1]),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=Lt(i.attributes.RESOLUTION)),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return i={type:"tag",tagType:"media"},t[1]&&(i.attributes=Mt(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t)return i={type:"tag",tagType:"program-date-time"},t[1]&&(i.dateTimeString=t[1],i.dateTimeObject=new Date(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t)return i={type:"tag",tagType:"key"},t[1]&&(i.attributes=Mt(t[1]),i.attributes.IV&&("0x"===i.attributes.IV.substring(0,2).toLowerCase()&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void this.trigger("data",i);if(t=/^#EXT-X-START:(.*)$/.exec(e),t)return i={type:"tag",tagType:"start"},t[1]&&(i.attributes=Mt(t[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-out-cont"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-out"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-in"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"skip"},i.attributes=Mt(t[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(Dt)),void this.trigger("data",i);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"part"},i.attributes=Mt(t[1]),["DURATION"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=Pt(i.attributes.BYTERANGE)),void this.trigger("data",i);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"server-control"},i.attributes=Mt(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))}),void this.trigger("data",i);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"part-inf"},i.attributes=Mt(t[1]),["PART-TARGET"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),void this.trigger("data",i);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"preload-hint"},i.attributes=Mt(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(i.attributes.hasOwnProperty(e)){i.attributes[e]=parseInt(i.attributes[e],10);const t="BYTERANGE-LENGTH"===e?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[t]=i.attributes[e],delete i.attributes[e]}}),void this.trigger("data",i);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"rendition-report"},i.attributes=Mt(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseInt(i.attributes[e],10))}),void this.trigger("data",i);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){i={type:"tag",tagType:"daterange"},i.attributes=Mt(t[1]),["ID","CLASS"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=String(i.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=new Date(i.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/i.test(i.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=i.attributes[e].toString(16))});const e=/^X-([A-Z]+-)+[A-Z]+$/;for(const t in i.attributes){if(!e.test(t))continue;const s=/[0-9A-Fa-f]{6}/g.test(i.attributes[t]),r=/^\d+(\.\d+)?$/.test(i.attributes[t]);i.attributes[t]=s?i.attributes[t].toString(16):r?parseFloat(i.attributes[t]):String(i.attributes[t])}return void this.trigger("data",i)}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t)this.trigger("data",{type:"tag",tagType:"independent-segments"});else if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"i-frames-only"});else{if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t)return i={type:"tag",tagType:"content-steering"},i.attributes=Mt(t[1]),void this.trigger("data",i);if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e),t)return i={type:"tag",tagType:"i-frame-playlist"},i.attributes=Mt(t[1]),i.attributes.URI&&(i.uri=i.attributes.URI),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=Lt(i.attributes.RESOLUTION)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),void this.trigger("data",i);if(t=/^#EXT-X-DEFINE:(.*)$/.exec(e),t)return i={type:"tag",tagType:"define"},i.attributes=Mt(t[1]),void this.trigger("data",i);this.trigger("data",{type:"tag",data:e.slice(4)})}}}}else this.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))}addParser({expression:e,customType:t,dataParser:i,segment:s}){"function"!=typeof i&&(i=e=>e),this.customParsers.push(r=>{if(e.exec(r))return this.trigger("data",{type:"custom",data:i(r),customType:t,segment:s}),!0})}addTagMapper({expression:e,map:t}){this.tagMappers.push(i=>e.test(i)?t(i):i)}}const Nt=function(e){const t={};return Object.keys(e).forEach(function(i){t[(e=>e.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()))(i)]=e[i]}),t},Rt=function(e){const{serverControl:t,targetDuration:i,partTargetDuration:s}=e;if(!t)return;const r="#EXT-X-SERVER-CONTROL",n="holdBack",a="partHoldBack",o=i&&3*i,l=s&&2*s;i&&!t.hasOwnProperty(n)&&(t[n]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&t[n]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${t[n]}) to targetDuration * 3 (${o})`}),t[n]=o),s&&!t.hasOwnProperty(a)&&(t[a]=3*s,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`})),s&&t[a]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${l}).`}),t[a]=l)};class Ut extends xt{constructor(e={}){super(),this.lineStream=new At,this.parseStream=new Ot,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const t=this,i=[];let s,r,n={},a=!1;const o=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let u=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let c=0,h=0;const d={};this.on("end",()=>{n.uri||!n.parts&&!n.preloadHints||(!n.map&&s&&(n.map=s),!n.key&&r&&(n.key=r),n.timeline||"number"!=typeof u||(n.timeline=u),this.manifest.preloadSegment=n)}),this.parseStream.on("data",function(e){let p,m;if(t.manifest.definitions)for(const i in t.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${i}}`,t.manifest.definitions[i])),e.attributes)for(const s in e.attributes)"string"==typeof e.attributes[s]&&(e.attributes[s]=e.attributes[s].replace(`{$${i}}`,t.manifest.definitions[i]));({tag(){({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const t={};"length"in e&&(n.byterange=t,t.length=e.length,"offset"in e||(e.offset=c)),"offset"in e&&(n.byterange=t,t.offset=e.offset),c=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.title&&(n.title=e.title),e.duration>0&&(n.duration=e.duration),0===e.duration&&(n.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=i},key(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:It(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence"(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,u=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type"(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map(){s={},e.uri&&(s.uri=e.uri),e.byterange&&(s.byterange=e.byterange),r&&(s.key=r)},"stream-inf"(){this.manifest.playlists=i,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes?(n.attributes||(n.attributes={}),Et(n.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},p=t[e.attributes["GROUP-ID"]],m={default:/yes/i.test(e.attributes.DEFAULT)},m.default?m.autoselect=!0:m.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(m.language=e.attributes.LANGUAGE),e.attributes.URI&&(m.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(m.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(m.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(m.forced=/yes/i.test(e.attributes.FORCED)),p[e.attributes.NAME]=m},discontinuity(){u+=1,n.discontinuity=!0,this.manifest.discontinuityStarts.push(i.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),n.dateTimeString=e.dateTimeString,n.dateTimeObject=e.dateTimeObject;const{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime),this.lastProgramDateTime)},targetduration(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,Rt.call(this,this.manifest))},start(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){n.cueOut=e.data},"cue-out-cont"(){n.cueOutCont=e.data},"cue-in"(){n.cueIn=e.data},skip(){this.manifest.skip=Nt(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){a=!0;const t=this.manifest.segments.length,i=Nt(e.attributes);n.parts=n.parts||[],n.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=h),h=i.byterange.offset+i.byterange.length);const s=n.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${s} for segment #${t}`,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})})},"server-control"(){const t=this.manifest.serverControl=Nt(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Rt.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const t=this.manifest.segments.length,i=Nt(e.attributes),s=i.type&&"PART"===i.type;n.preloadHints=n.preloadHints||[],n.preloadHints.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=s?h:0,s&&(h=i.byterange.offset+i.byterange.length)));const r=n.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${r} for segment #${t}`,e.attributes,["TYPE","URI"]),i.type)for(let e=0;e<n.preloadHints.length-1;e++){const s=n.preloadHints[e];s.type&&s.type===i.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${r} for segment #${t} has the same TYPE ${i.type} as preload hint #${e}`})}},"rendition-report"(){const t=Nt(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);const i=this.manifest.renditionReports.length-1,s=["LAST-MSN","URI"];a&&s.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${i}`,e.attributes,s)},"part-inf"(){this.manifest.partInf=Nt(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Rt.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Nt(e.attributes));const t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,["ID","START-DATE"]);const i=this.manifest.dateRanges[t];i.endDate&&i.startDate&&new Date(i.endDate)<new Date(i.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),i.duration&&i.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),i.plannedDuration&&i.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const s=!!i.endOnNext;if(s&&!i.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),s&&(i.duration||i.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),i.duration&&i.endDate){const e=i.startDate.getTime()+1e3*i.duration;this.manifest.dateRanges[t].endDate=new Date(e)}if(d[i.id]){for(const e in d[i.id])if(i[e]&&JSON.stringify(d[i.id][e])!==JSON.stringify(i[e])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const e=this.manifest.dateRanges.findIndex(e=>e.id===i.id);this.manifest.dateRanges[e]=Et(this.manifest.dateRanges[e],i),d[i.id]=Et(d[i.id],i),this.manifest.dateRanges.pop()}else d[i.id]=i},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=Nt(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const t=(e,t)=>{e in this.manifest.definitions?this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`}):this.manifest.definitions[e]=t};if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});const i=this.params.get(e.attributes.QUERYPARAM);return i?void t(e.attributes.QUERYPARAM,decodeURIComponent(i)):void this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`})}return"NAME"in e.attributes?"IMPORT"in e.attributes?void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in e.attributes&&"string"==typeof e.attributes.VALUE?void t(e.attributes.NAME,e.attributes.VALUE):void this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`}):"IMPORT"in e.attributes?this.mainDefinitions[e.attributes.IMPORT]?void t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]):void this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`}):void this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:u}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}}[e.tagType]||o).call(t)},uri(){n.uri=e.uri,i.push(n),this.manifest.targetDuration&&!("duration"in n)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),n.duration=this.manifest.targetDuration),r&&(n.key=r),n.timeline=u,s&&(n.map=s),h=0,null!==this.lastProgramDateTime&&(n.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*n.duration),n={}},comment(){},custom(){e.segment?(n.custom=n.custom||{},n.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(t)})}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,i){const s=[];i.forEach(function(e){t.hasOwnProperty(e)||s.push(e)}),s.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${s.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var Ft,Bt,qt={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},jt=["video","audio","text"],$t=["Video","Audio","Text"],Ht=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)}):e},Vt=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach(function(e){var t;e=e.trim(),jt.forEach(function(s){var r=qt[s].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=s;var n=e.substring(0,r[1].length),a=e.replace(n,"");i.push({type:n,details:a,mediaType:s})}}),t||i.push({type:e,details:"",mediaType:"unknown"})}),i},zt=function(e){return void 0===e&&(e=""),qt.audio.test(e.trim().toLowerCase())},Wt=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return Ht(e.trim())}),i="video";1===t.length&&zt(t[0])?i="audio":1===t.length&&function(e){return void 0===e&&(e=""),qt.text.test(e.trim().toLowerCase())}(t[0])&&(i="application");var s="mp4";return t.every(function(e){return qt.mp4.test(e)})?s="mp4":t.every(function(e){return qt.webm.test(e)})?s="webm":t.every(function(e){return qt.ogg.test(e)})&&(s="ogg"),i+"/"+s+';codecs="'+e+'"'}},Gt=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),be.MediaSource&&be.MediaSource.isTypeSupported&&be.MediaSource.isTypeSupported(Wt(e))||t&&be.ManagedMediaSource&&be.ManagedMediaSource.isTypeSupported&&be.ManagedMediaSource.isTypeSupported(Wt(e))||!1},Xt=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<$t.length;t++)if(qt["muxer"+$t[t]].test(e))return!0;return!1})},Zt="mp4a.40.2",Qt=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Kt=/^application\/dash\+xml/i,Yt=function(e){return Qt.test(e)?"hls":Kt.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},Jt=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},ei=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||function(e){return Jt(e)}(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},ti=be.BigInt||Number,ii=[ti("0x1"),ti("0x100"),ti("0x10000"),ti("0x1000000"),ti("0x100000000"),ti("0x10000000000"),ti("0x1000000000000"),ti("0x100000000000000"),ti("0x10000000000000000")];Ft=new Uint16Array([65484]),255===(Bt=new Uint8Array(Ft.buffer,Ft.byteOffset,Ft.byteLength))[0]||Bt[0];var si,ri,ni=function(e,t){var i=void 0===t?{}:t,s=i.signed,r=void 0!==s&&s,n=i.le,a=void 0!==n&&n;e=ei(e);var o=a?"reduce":"reduceRight",l=(e[o]?e[o]:Array.prototype[o]).call(e,function(t,i,s){var r=a?s:Math.abs(s+1-e.length);return t+ti(i)*ii[r]},ti(0));if(r){var u=ii[e.length]/ti(2)-ti(1);(l=ti(l))>u&&(l-=u,l-=u,l-=ti(2))}return Number(l)},ai=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),s=0;s<e.length;s++)i[s]=e.charCodeAt(s);return i},oi=function(e,t,i){var s=void 0===i?{}:i,r=s.offset,n=void 0===r?0:r,a=s.mask,o=void 0===a?[]:a;e=ei(e);var l=(t=ei(t)).every?t.every:Array.prototype.every;return t.length&&e.length-n>=t.length&&l.call(t,function(t,i){return t===(o[i]?o[i]&e[n+i]:e[n+i])})},li={},ui={},ci={};function hi(){if(si)return ci;function e(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}si=1;var t=e({HTML:"text/html",isHTML:function(e){return e===t.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i=e({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===i.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return ci.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ci.find=function(e,t,i){if(void 0===i&&(i=Array.prototype),e&&"function"==typeof i.find)return i.find.call(e,t);for(var s=0;s<e.length;s++)if(Object.prototype.hasOwnProperty.call(e,s)){var r=e[s];if(t.call(void 0,r,s,e))return r}},ci.freeze=e,ci.MIME_TYPE=t,ci.NAMESPACE=i,ci}function di(){if(ri)return ui;ri=1;var e=hi(),t=e.find,i=e.NAMESPACE;function s(e){return""!==e}function r(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function n(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(s):[]}(e);return Object.keys(t.reduce(r,{}))}function a(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function o(e,t){var i=e.prototype;if(!(i instanceof t)){function s(){}s.prototype=t.prototype,a(i,s=new s),e.prototype=i=s}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.constructor=e)}var l={},u=l.ELEMENT_NODE=1,c=l.ATTRIBUTE_NODE=2,h=l.TEXT_NODE=3,d=l.CDATA_SECTION_NODE=4,p=l.ENTITY_REFERENCE_NODE=5,m=l.ENTITY_NODE=6,g=l.PROCESSING_INSTRUCTION_NODE=7,f=l.COMMENT_NODE=8,y=l.DOCUMENT_NODE=9,_=l.DOCUMENT_TYPE_NODE=10,v=l.DOCUMENT_FRAGMENT_NODE=11,b=l.NOTATION_NODE=12,T={},S={};T.INDEX_SIZE_ERR=(S[1]="Index size error",1),T.DOMSTRING_SIZE_ERR=(S[2]="DOMString size error",2);var w=T.HIERARCHY_REQUEST_ERR=(S[3]="Hierarchy request error",3);T.WRONG_DOCUMENT_ERR=(S[4]="Wrong document",4),T.INVALID_CHARACTER_ERR=(S[5]="Invalid character",5),T.NO_DATA_ALLOWED_ERR=(S[6]="No data allowed",6),T.NO_MODIFICATION_ALLOWED_ERR=(S[7]="No modification allowed",7);var C=T.NOT_FOUND_ERR=(S[8]="Not found",8);T.NOT_SUPPORTED_ERR=(S[9]="Not supported",9);var E=T.INUSE_ATTRIBUTE_ERR=(S[10]="Attribute in use",10);function k(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,S[e]),this.message=S[e],Error.captureStackTrace&&Error.captureStackTrace(this,k);return i.code=e,t&&(this.message=this.message+": "+t),i}function x(){}function I(e,t){this._node=e,this._refresh=t,A(this)}function A(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var i=e._refresh(e._node);if(ye(e,"length",i.length),!e.$$length||i.length<e.$$length)for(var s=i.length;s in e;s++)Object.prototype.hasOwnProperty.call(e,s)&&delete e[s];a(i,e),e._inc=t}}function D(){}function P(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function M(e,t,i,s){if(s?t[P(t,s)]=i:t[t.length++]=i,e){i.ownerElement=e;var r=e.ownerDocument;r&&(s&&q(r,e,s),B(r,e,i))}}function L(e,t,i){var s=P(t,i);if(!(s>=0))throw new k(C,new Error(e.tagName+"@"+i));for(var r=t.length-1;s<r;)t[s]=t[++s];if(t.length=r,e){var n=e.ownerDocument;n&&(q(n,e,i),i.ownerElement=null)}}function O(){}function N(){}function R(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function U(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(U(e,t))return!0}while(e=e.nextSibling)}function F(){this.ownerDocument=this}function B(e,t,s){e&&e._inc++,s.namespaceURI===i.XMLNS&&(t._nsMap[s.prefix?s.localName:""]=s.value)}function q(e,t,s,r){e&&e._inc++,s.namespaceURI===i.XMLNS&&delete t._nsMap[s.prefix?s.localName:""]}function j(e,t,i){if(e&&e._inc){e._inc++;var s=t.childNodes;if(i)s[s.length++]=i;else{for(var r=t.firstChild,n=0;r;)s[n++]=r,r=r.nextSibling;s.length=n,delete s[s.length]}}}function $(e,t){var i=t.previousSibling,s=t.nextSibling;return i?i.nextSibling=s:e.firstChild=s,s?s.previousSibling=i:e.lastChild=i,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,j(e.ownerDocument,e),t}function H(e){return e&&e.nodeType===N.DOCUMENT_TYPE_NODE}function V(e){return e&&e.nodeType===N.ELEMENT_NODE}function z(e){return e&&e.nodeType===N.TEXT_NODE}function W(e,i){var s=e.childNodes||[];if(t(s,V)||H(i))return!1;var r=t(s,H);return!(i&&r&&s.indexOf(r)>s.indexOf(i))}function G(e,i){var s=e.childNodes||[];if(t(s,function(e){return V(e)&&e!==i}))return!1;var r=t(s,H);return!(i&&r&&s.indexOf(r)>s.indexOf(i))}function X(e,i,s){var r=e.childNodes||[],n=i.childNodes||[];if(i.nodeType===N.DOCUMENT_FRAGMENT_NODE){var a=n.filter(V);if(a.length>1||t(n,z))throw new k(w,"More than one element or text in fragment");if(1===a.length&&!W(e,s))throw new k(w,"Element in fragment can not be inserted before doctype")}if(V(i)&&!W(e,s))throw new k(w,"Only one element can be added and only after doctype");if(H(i)){if(t(r,H))throw new k(w,"Only one doctype is allowed");var o=t(r,V);if(s&&r.indexOf(o)<r.indexOf(s))throw new k(w,"Doctype can only be inserted before an element");if(!s&&o)throw new k(w,"Doctype can not be appended since element is present")}}function Z(e,i,s){var r=e.childNodes||[],n=i.childNodes||[];if(i.nodeType===N.DOCUMENT_FRAGMENT_NODE){var a=n.filter(V);if(a.length>1||t(n,z))throw new k(w,"More than one element or text in fragment");if(1===a.length&&!G(e,s))throw new k(w,"Element in fragment can not be inserted before doctype")}if(V(i)&&!G(e,s))throw new k(w,"Only one element can be added and only after doctype");if(H(i)){function l(e){return H(e)&&e!==s}if(t(r,l))throw new k(w,"Only one doctype is allowed");var o=t(r,V);if(s&&r.indexOf(o)<r.indexOf(s))throw new k(w,"Doctype can only be inserted before an element")}}function Q(e,t,i,s){(function(e,t,i){if(!function(e){return e&&(e.nodeType===N.DOCUMENT_NODE||e.nodeType===N.DOCUMENT_FRAGMENT_NODE||e.nodeType===N.ELEMENT_NODE)}(e))throw new k(w,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new k(C,"child not in parent");if(!function(e){return e&&(V(e)||z(e)||H(e)||e.nodeType===N.DOCUMENT_FRAGMENT_NODE||e.nodeType===N.COMMENT_NODE||e.nodeType===N.PROCESSING_INSTRUCTION_NODE)}(t)||H(t)&&e.nodeType!==N.DOCUMENT_NODE)throw new k(w,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)})(e,t,i),e.nodeType===N.DOCUMENT_NODE&&(s||X)(e,t,i);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===v){var n=t.firstChild;if(null==n)return t;var a=t.lastChild}else n=a=t;var o=i?i.previousSibling:e.lastChild;n.previousSibling=o,a.nextSibling=i,o?o.nextSibling=n:e.firstChild=n,null==i?e.lastChild=a:i.previousSibling=a;do{n.parentNode=e,K(n,e.ownerDocument||e)}while(n!==a&&(n=n.nextSibling));return j(e.ownerDocument||e,e),t.nodeType==v&&(t.firstChild=t.lastChild=null),t}function K(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===u&&e.attributes)for(var i=0;i<e.attributes.length;i++){var s=e.attributes.item(i);s&&(s.ownerDocument=t)}for(var r=e.firstChild;r;)K(r,t),r=r.nextSibling}}function Y(){this._nsMap={}}function J(){}function ee(){}function te(){}function ie(){}function se(){}function re(){}function ne(){}function ae(){}function oe(){}function le(){}function ue(){}function ce(){}function he(e,t){var i=[],s=9==this.nodeType&&this.documentElement||this,r=s.prefix,n=s.namespaceURI;if(n&&null==r&&null==(r=s.lookupPrefix(n)))var a=[{namespace:n,prefix:null}];return me(this,i,e,t,a),i.join("")}function de(e,t,s){var r=e.prefix||"",n=e.namespaceURI;if(!n)return!1;if("xml"===r&&n===i.XML||n===i.XMLNS)return!1;for(var a=s.length;a--;){var o=s[a];if(o.prefix===r)return o.namespace!==n}return!0}function pe(e,t,i){e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,R),'"')}function me(e,t,s,r,n){if(n||(n=[]),r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case u:var a=e.attributes,o=a.length,l=e.firstChild,m=e.tagName,b=m;if(!(s=i.isHTML(e.namespaceURI)||s)&&!e.prefix&&e.namespaceURI){for(var T,S=0;S<a.length;S++)if("xmlns"===a.item(S).name){T=a.item(S).value;break}if(!T)for(var w=n.length-1;w>=0;w--)if(""===(C=n[w]).prefix&&C.namespace===e.namespaceURI){T=C.namespace;break}if(T!==e.namespaceURI)for(w=n.length-1;w>=0;w--){var C;if((C=n[w]).namespace===e.namespaceURI){C.prefix&&(b=C.prefix+":"+m);break}}}t.push("<",b);for(var E=0;E<o;E++)"xmlns"==(k=a.item(E)).prefix?n.push({prefix:k.localName,namespace:k.value}):"xmlns"==k.nodeName&&n.push({prefix:"",namespace:k.value});for(E=0;E<o;E++){var k,x,I;de(k=a.item(E),0,n)&&(pe(t,(x=k.prefix||"")?"xmlns:"+x:"xmlns",I=k.namespaceURI),n.push({prefix:x,namespace:I})),me(k,t,s,r,n)}if(m===b&&de(e,0,n)&&(pe(t,(x=e.prefix||"")?"xmlns:"+x:"xmlns",I=e.namespaceURI),n.push({prefix:x,namespace:I})),l||s&&!/^(?:meta|link|img|br|hr|input)$/i.test(m)){if(t.push(">"),s&&/^script$/i.test(m))for(;l;)l.data?t.push(l.data):me(l,t,s,r,n.slice()),l=l.nextSibling;else for(;l;)me(l,t,s,r,n.slice()),l=l.nextSibling;t.push("</",b,">")}else t.push("/>");return;case y:case v:for(l=e.firstChild;l;)me(l,t,s,r,n.slice()),l=l.nextSibling;return;case c:return pe(t,e.name,e.value);case h:return t.push(e.data.replace(/[<&>]/g,R));case d:return t.push("<![CDATA[",e.data,"]]>");case f:return t.push("\x3c!--",e.data,"--\x3e");case _:var A=e.publicId,D=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),D&&"."!=D&&t.push(" ",D),t.push(">");else if(D&&"."!=D)t.push(" SYSTEM ",D,">");else{var P=e.internalSubset;P&&t.push(" [",P,"]"),t.push(">")}return;case g:return t.push("<?",e.target," ",e.data,"?>");case p:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ge(e,t,i){var s;switch(t.nodeType){case u:(s=t.cloneNode(!1)).ownerDocument=e;case v:break;case c:i=!0}if(s||(s=t.cloneNode(!1)),s.ownerDocument=e,s.parentNode=null,i)for(var r=t.firstChild;r;)s.appendChild(ge(e,r,i)),r=r.nextSibling;return s}function fe(e,t,i){var s=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=t[r];"object"!=typeof n&&n!=s[r]&&(s[r]=n)}switch(t.childNodes&&(s.childNodes=new x),s.ownerDocument=e,s.nodeType){case u:var a=t.attributes,o=s.attributes=new D,l=a.length;o._ownerElement=s;for(var h=0;h<l;h++)s.setAttributeNode(fe(e,a.item(h),!0));break;case c:i=!0}if(i)for(var d=t.firstChild;d;)s.appendChild(fe(e,d,i)),d=d.nextSibling;return s}function ye(e,t,i){e[t]=i}T.INVALID_STATE_ERR=(S[11]="Invalid state",11),T.SYNTAX_ERR=(S[12]="Syntax error",12),T.INVALID_MODIFICATION_ERR=(S[13]="Invalid modification",13),T.NAMESPACE_ERR=(S[14]="Invalid namespace",14),T.INVALID_ACCESS_ERR=(S[15]="Invalid access",15),k.prototype=Error.prototype,a(T,k),x.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var i=[],s=0;s<this.length;s++)me(this[s],i,e,t);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},I.prototype.item=function(e){return A(this),this[e]||null},o(I,x),D.prototype={length:0,item:x.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new k(E);var i=this.getNamedItem(e.nodeName);return M(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new k(E);return t=this.getNamedItemNS(e.namespaceURI,e.localName),M(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return L(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return L(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var s=this[i];if(s.localName==t&&s.namespaceURI==e)return s}return null}},O.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var s=new F;if(s.implementation=this,s.childNodes=new x,s.doctype=i||null,i&&s.appendChild(i),t){var r=s.createElementNS(e,t);s.appendChild(r)}return s},createDocumentType:function(e,t,i){var s=new re;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=i||"",s}},N.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Q(this,e,t)},replaceChild:function(e,t){Q(this,e,t,Z),t&&this.removeChild(t)},removeChild:function(e){return $(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return fe(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==h&&e.nodeType==h?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var i=t._nsMap;if(i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&i[s]===e)return s;t=t.nodeType==c?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];t=t.nodeType==c?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},a(l,N),a(l,N.prototype),F.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==v){for(var i=e.firstChild;i;){var s=i.nextSibling;this.insertBefore(i,t),i=s}return e}return Q(this,e,t),K(e,this),null===this.documentElement&&e.nodeType===u&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),$(this,e)},replaceChild:function(e,t){Q(this,e,t,Z),K(e,this),t&&this.removeChild(t),V(e)&&(this.documentElement=e)},importNode:function(e,t){return ge(this,e,t)},getElementById:function(e){var t=null;return U(this.documentElement,function(i){if(i.nodeType==u&&i.getAttribute("id")==e)return t=i,!0}),t},getElementsByClassName:function(e){var t=n(e);return new I(this,function(i){var s=[];return t.length>0&&U(i.documentElement,function(r){if(r!==i&&r.nodeType===u){var a=r.getAttribute("class");if(a){var o=e===a;if(!o){var l=n(a);o=t.every(function(e){return function(t){return e&&-1!==e.indexOf(t)}}(l))}o&&s.push(r)}}}),s})},createElement:function(e){var t=new Y;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new x,(t.attributes=new D)._ownerElement=t,t},createDocumentFragment:function(){var e=new le;return e.ownerDocument=this,e.childNodes=new x,e},createTextNode:function(e){var t=new te;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ie;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new se;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new ue;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new J;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new oe;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new Y,s=t.split(":"),r=i.attributes=new D;return i.childNodes=new x,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,r._ownerElement=i,i},createAttributeNS:function(e,t){var i=new J,s=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,i}},o(F,N),Y.prototype={nodeType:u,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+t,this.setAttributeNode(i)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===v?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,j(e.ownerDocument,e,t),K(t,e.ownerDocument||e),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);i&&this.removeAttributeNode(i)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);return i&&i.value||""},setAttributeNS:function(e,t,i){var s=this.ownerDocument.createAttributeNS(e,t);s.value=s.nodeValue=""+i,this.setAttributeNode(s)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new I(this,function(t){var i=[];return U(t,function(s){s===t||s.nodeType!=u||"*"!==e&&s.tagName!=e||i.push(s)}),i})},getElementsByTagNameNS:function(e,t){return new I(this,function(i){var s=[];return U(i,function(r){r===i||r.nodeType!==u||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||s.push(r)}),s})}},F.prototype.getElementsByTagName=Y.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=Y.prototype.getElementsByTagNameNS,o(Y,N),J.prototype.nodeType=c,o(J,N),ee.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(S[w])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){i=this.data.substring(0,e)+i+this.data.substring(e+t),this.nodeValue=this.data=i,this.length=i.length}},o(ee,N),te.prototype={nodeName:"#text",nodeType:h,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var s=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}},o(te,ee),ie.prototype={nodeName:"#comment",nodeType:f},o(ie,ee),se.prototype={nodeName:"#cdata-section",nodeType:d},o(se,ee),re.prototype.nodeType=_,o(re,N),ne.prototype.nodeType=b,o(ne,N),ae.prototype.nodeType=m,o(ae,N),oe.prototype.nodeType=p,o(oe,N),le.prototype.nodeName="#document-fragment",le.prototype.nodeType=v,o(le,N),ue.prototype.nodeType=g,o(ue,N),ce.prototype.serializeToString=function(e,t,i){return he.call(e,t,i)},N.prototype.toString=he;try{if(Object.defineProperty){function _e(e){switch(e.nodeType){case u:case v:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(_e(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(I.prototype,"length",{get:function(){return A(this),this.$$length}}),Object.defineProperty(N.prototype,"textContent",{get:function(){return _e(this)},set:function(e){switch(this.nodeType){case u:case v:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ye=function(e,t,i){e["$$"+t]=i}}}catch(ve){}return ui.DocumentType=re,ui.DOMException=k,ui.DOMImplementation=O,ui.Element=Y,ui.Node=N,ui.NodeList=x,ui.XMLSerializer=ce,ui}var pi,mi,gi,fi,yi={},_i={},vi={};function bi(){if(gi)return yi;gi=1;var e=hi(),t=di(),i=function(){return pi||(pi=1,e=_i,t=hi().freeze,e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),e.entityMap=e.HTML_ENTITIES),_i;var e,t}(),s=function(){if(mi)return vi;mi=1;var e=hi().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,i=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=new RegExp("^"+t.source+i.source+"*(?::"+t.source+i.source+"*)?$");function r(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,r)}function n(){}function a(t,i,s,n,a){function d(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(s,t)?s[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function f(e){if(e>C){var i=t.substring(C,e).replace(/&#?\w+;/g,d);T&&y(C),n.characters(i,0,e-C),C=e}}function y(e,i){for(;e>=v&&(i=b.exec(t));)_=i.index,v=_+i[0].length,T.lineNumber++;T.columnNumber=e-_+1}for(var _=0,v=0,b=/.*(?:\r\n?|\n)|.*$/g,T=n.locator,S=[{currentNSMap:i}],w={},C=0;;){try{var E=t.indexOf("<",C);if(E<0){if(!t.substr(C).match(/^\s*$/)){var k=n.doc,x=k.createTextNode(t.substr(C));k.appendChild(x),n.currentElement=x}return}switch(E>C&&f(E),t.charAt(E+1)){case"/":var I=t.indexOf(">",E+3),A=t.substring(E+2,I).replace(/[ \t\n\r]+$/g,""),D=S.pop();I<0?(A=t.substring(E+2).replace(/[\s<].*/,""),a.error("end tag name: "+A+" is not complete:"+D.tagName),I=E+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),a.error("end tag name: "+A+" maybe not complete"),I=E+1+A.length);var P=D.localNSMap,M=D.tagName==A;if(M||D.tagName&&D.tagName.toLowerCase()==A.toLowerCase()){if(n.endElement(D.uri,D.localName,A),P)for(var L in P)Object.prototype.hasOwnProperty.call(P,L)&&n.endPrefixMapping(L);M||a.fatalError("end tag name: "+A+" is not match the current start tagName:"+D.tagName)}else S.push(D);I++;break;case"?":T&&y(E),I=m(t,E,n);break;case"!":T&&y(E),I=p(t,E,n,a);break;default:T&&y(E);var O=new g,N=S[S.length-1].currentNSMap,R=(I=l(t,E,O,N,d,a),O.length);if(!O.closed&&h(t,I,O.tagName,w)&&(O.closed=!0,s.nbsp||a.warning("unclosed xml attribute")),T&&R){for(var U=o(T,{}),F=0;F<R;F++){var B=O[F];y(B.offset),B.locator=o(T,{})}n.locator=U,u(O,n,N)&&S.push(O),n.locator=T}else u(O,n,N)&&S.push(O);e.isHTML(O.uri)&&!O.closed?I=c(t,I,O.tagName,d,n):I++}}catch(e){if(e instanceof r)throw e;a.error("element parse error: "+e),I=-1}I>C?C=I:f(Math.max(E,C)+1)}}function o(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function l(t,i,s,r,n,a){function o(e,t,i){s.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),s.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,n),i)}for(var l,u=++i,c=0;;){var h=t.charAt(u);switch(h){case"=":if(1===c)l=t.slice(i,u),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(a.warning('attribute value must after "="'),l=t.slice(i,u)),i=u+1,!((u=t.indexOf(h,i))>0))throw new Error("attribute value no end '"+h+"' match");o(l,d=t.slice(i,u),i-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');o(l,d=t.slice(i,u),i),a.warning('attribute "'+l+'" missed start quot('+h+")!!"),i=u+1,c=5}break;case"/":switch(c){case 0:s.setTagName(t.slice(i,u));case 5:case 6:case 7:c=7,s.closed=!0;case 4:case 1:break;case 2:s.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==c&&s.setTagName(t.slice(i,u)),u;case">":switch(c){case 0:s.setTagName(t.slice(i,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(d=t.slice(i,u)).slice(-1)&&(s.closed=!0,d=d.slice(0,-1));case 2:2===c&&(d=l),4==c?(a.warning('attribute "'+d+'" missed quot(")!'),o(l,d,i)):(e.isHTML(r[""])&&d.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+d+'" missed value!! "'+d+'" instead!!'),o(d,d,i));break;case 3:throw new Error("attribute value missed!!")}return u;case"€":h=" ";default:if(h<=" ")switch(c){case 0:s.setTagName(t.slice(i,u)),c=6;break;case 1:l=t.slice(i,u),c=2;break;case 4:var d=t.slice(i,u);a.warning('attribute "'+d+'" missed quot(")!!'),o(l,d,i);case 5:c=6}else switch(c){case 2:s.tagName,e.isHTML(r[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),o(l,l,i),i=u,c=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:c=1,i=u;break;case 3:c=4,i=u;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function u(t,i,s){for(var r=t.tagName,n=null,a=t.length;a--;){var o=t[a],l=o.qName,u=o.value;if((m=l.indexOf(":"))>0)var c=o.prefix=l.slice(0,m),h=l.slice(m+1),p="xmlns"===c&&h;else h=l,c=null,p="xmlns"===l&&"";o.localName=h,!1!==p&&(null==n&&(n={},d(s,s={})),s[p]=n[p]=u,o.uri=e.XMLNS,i.startPrefixMapping(p,u))}for(a=t.length;a--;)(c=(o=t[a]).prefix)&&("xml"===c&&(o.uri=e.XML),"xmlns"!==c&&(o.uri=s[c||""]));var m;(m=r.indexOf(":"))>0?(c=t.prefix=r.slice(0,m),h=t.localName=r.slice(m+1)):(c=null,h=t.localName=r);var g=t.uri=s[c||""];if(i.startElement(g,h,r,t),!t.closed)return t.currentNSMap=s,t.localNSMap=n,!0;if(i.endElement(g,h,r),n)for(c in n)Object.prototype.hasOwnProperty.call(n,c)&&i.endPrefixMapping(c)}function c(e,t,i,s,r){if(/^(?:script|textarea)$/i.test(i)){var n=e.indexOf("</"+i+">",t),a=e.substring(t+1,n);if(/[&<]/.test(a))return/^script$/i.test(i)?(r.characters(a,0,a.length),n):(a=a.replace(/&#?\w+;/g,s),r.characters(a,0,a.length),n)}return t+1}function h(e,t,i,s){var r=s[i];return null==r&&((r=e.lastIndexOf("</"+i+">"))<t&&(r=e.lastIndexOf("</"+i)),s[i]=r),r<t}function d(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function p(e,t,i,s){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(i.comment(e,t+4,r-t-4),r+3):(s.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,r-t-9),i.endCDATA(),r+3}var n=function(e,t){var i,s=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);i=r.exec(e);)if(s.push(i),i[1])return s}(e,t),a=n.length;if(a>1&&/!doctype/i.test(n[0][0])){var o=n[1][0],l=!1,u=!1;a>3&&(/^public$/i.test(n[2][0])?(l=n[3][0],u=a>4&&n[4][0]):/^system$/i.test(n[2][0])&&(u=n[3][0]));var c=n[a-1];return i.startDTD(o,l,u),i.endDTD(),c.index+c[0].length}return-1}function m(e,t,i){var s=e.indexOf("?>",t);if(s){var r=e.substring(t,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,i.processingInstruction(r[1],r[2]),s+2):-1}return-1}function g(){this.attributeNames={}}return r.prototype=new Error,r.prototype.name=r.name,n.prototype={parse:function(e,t,i){var s=this.domBuilder;s.startDocument(),d(t,t={}),a(e,t,i,s,this.errorHandler),s.endDocument()}},g.prototype={setTagName:function(e){if(!s.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!s.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},vi.XMLReader=n,vi.ParseError=r,vi}(),r=t.DOMImplementation,n=e.NAMESPACE,a=s.ParseError,o=s.XMLReader;function l(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function u(e){this.options=e||{locator:{}}}function c(e,t,i){if(!e){if(t instanceof h)return t;e=t}var s={},r=e instanceof Function;function n(t){var n=e[t];!n&&r&&(n=2==e.length?function(i){e(t,i)}:e),s[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+p(i))}||function(){}}return i=i||{},n("warning"),n("error"),n("fatalError"),s}function h(){this.cdata=!1}function d(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function p(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function g(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}return u.prototype.parseFromString=function(e,t){var s=this.options,r=new o,a=s.domBuilder||new h,u=s.errorHandler,d=s.locator,p=s.xmlns||{},m=/\/x?html?$/.test(t),g=m?i.HTML_ENTITIES:i.XML_ENTITIES;d&&a.setDocumentLocator(d),r.errorHandler=c(u,a,d),r.domBuilder=s.domBuilder||a,m&&(p[""]=n.HTML),p.xml=p.xml||n.XML;var f=s.normalizeLineEndings||l;return e&&"string"==typeof e?r.parse(f(e),p,g):r.errorHandler.error("invalid doc source"),a.doc},h.prototype={startDocument:function(){this.doc=(new r).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,s){var r=this.doc,n=r.createElementNS(e,i||t),a=s.length;g(this,n),this.currentElement=n,this.locator&&d(this.locator,n);for(var o=0;o<a;o++){e=s.getURI(o);var l=s.getValue(o),u=(i=s.getQName(o),r.createAttributeNS(e,i));this.locator&&d(s.getLocator(o),u),u.value=u.nodeValue=l,n.setAttributeNode(u)}},endElement:function(e,t,i){var s=this.currentElement;s.tagName,this.currentElement=s.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&d(this.locator,i),g(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=m.apply(this,arguments)){if(this.cdata)var s=this.doc.createCDATASection(e);else s=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(e)&&this.doc.appendChild(s),this.locator&&d(this.locator,s)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=m.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&d(this.locator,s),g(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var s=this.doc.implementation;if(s&&s.createDocumentType){var r=s.createDocumentType(e,t,i);this.locator&&d(this.locator,r),g(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,p(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,p(this.locator))},fatalError:function(e){throw new a(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null}}),yi.__DOMHandler=h,yi.normalizeLineEndings=l,yi.DOMParser=u,yi}var Ti=function(){if(fi)return li;fi=1;var e=di();return li.DOMImplementation=e.DOMImplementation,li.XMLSerializer=e.XMLSerializer,li.DOMParser=bi().DOMParser,li}();const Si=e=>!!e&&"object"==typeof e,wi=(...e)=>e.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(i=>{Array.isArray(e[i])&&Array.isArray(t[i])?e[i]=e[i].concat(t[i]):Si(e[i])&&Si(t[i])?e[i]=wi(e[i],t[i]):e[i]=t[i]}),e),{}),Ci=e=>Object.keys(e).map(t=>e[t]),Ei=e=>e.reduce((e,t)=>e.concat(t),[]),ki=e=>{if(!e.length)return[];const t=[];for(let i=0;i<e.length;i++)t.push(e[i]);return t};const xi=({baseUrl:e="",source:t="",range:i="",indexRange:s=""})=>{const r={uri:t,resolvedUri:kt(e||"",t)};if(i||s){const e=(i||s).split("-");let t,n=be.BigInt?be.BigInt(e[0]):parseInt(e[0],10),a=be.BigInt?be.BigInt(e[1]):parseInt(e[1],10);n<Number.MAX_SAFE_INTEGER&&"bigint"==typeof n&&(n=Number(n)),a<Number.MAX_SAFE_INTEGER&&"bigint"==typeof a&&(a=Number(a)),t="bigint"==typeof a||"bigint"==typeof n?be.BigInt(a)-be.BigInt(n)+be.BigInt(1):a-n+1,"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),r.byterange={length:t,offset:n}}return r},Ii=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),Ai={static(e){const{duration:t,timescale:i=1,sourceDuration:s,periodDuration:r}=e,n=Ii(e.endNumber),a=t/i;return"number"==typeof n?{start:0,end:n}:"number"==typeof r?{start:0,end:r/a}:{start:0,end:s/a}},dynamic(e){const{NOW:t,clientOffset:i,availabilityStartTime:s,timescale:r=1,duration:n,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,u=Ii(e.endNumber),c=(t+i)/1e3,h=s+a,d=c+o-h,p=Math.ceil(d*r/n),m=Math.floor((c-h-l)*r/n),g=Math.floor((c-h)*r/n);return{start:Math.max(0,m),end:"number"==typeof u?u:Math.min(p,g)}}},Di=e=>{const{type:t,duration:i,timescale:s=1,periodDuration:r,sourceDuration:n}=e,{start:a,end:o}=Ai[t](e),l=((e,t)=>{const i=[];for(let s=e;s<t;s++)i.push(s);return i})(a,o).map((e=>t=>{const{duration:i,timescale:s=1,periodStart:r,startNumber:n=1}=e;return{number:n+t,duration:i/s,timeline:r,time:t*i}})(e));if("static"===t){const e=l.length-1,t="number"==typeof r?r:n;l[e].duration=t-i/s*e}return l},Pi=e=>{const{baseUrl:t,initialization:i={},sourceDuration:s,indexRange:r="",periodStart:n,presentationTime:a,number:o=0,duration:l}=e;if(!t)throw new Error("NO_BASE_URL");const u=xi({baseUrl:t,source:i.sourceURL,range:i.range}),c=xi({baseUrl:t,source:t,indexRange:r});if(c.map=u,l){const t=Di(e);t.length&&(c.duration=t[0].duration,c.timeline=t[0].timeline)}else s&&(c.duration=s,c.timeline=n);return c.presentationTime=a||n,c.number=o,[c]},Mi=(e,t,i)=>{const s=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,n=e.timeline||0,a=e.sidx.byterange,o=a.offset+a.length,l=t.timescale,u=t.references.filter(e=>1!==e.referenceType),c=[],h=e.endList?"static":"dynamic",d=e.sidx.timeline;let p,m=d,g=e.mediaSequence||0;p="bigint"==typeof t.firstOffset?be.BigInt(o)+t.firstOffset:o+t.firstOffset;for(let e=0;e<u.length;e++){const a=t.references[e],o=a.referencedSize,u=a.subsegmentDuration;let f;f="bigint"==typeof p?p+be.BigInt(o)-be.BigInt(1):p+o-1;const y=Pi({baseUrl:i,timescale:l,timeline:n,periodStart:d,presentationTime:m,number:g,duration:u,sourceDuration:r,indexRange:`${p}-${f}`,type:h})[0];s&&(y.map=s),c.push(y),p+="bigint"==typeof p?be.BigInt(o):o,m+=u/l,g++}return e.segments=c,e},Li=["AUDIO","SUBTITLES"],Oi=1/60,Ni=e=>(e=>Ci(e.reduce((e,t)=>(t.forEach(t=>{e[(({timeline:e})=>e)(t)]=t}),e),{})))(e).sort((e,t)=>e.timeline>t.timeline?1:-1),Ri=e=>{let t=[];return function(e,t,i){t.forEach(function(t){for(var s in e.mediaGroups[t])for(var r in e.mediaGroups[t][s]){var n=e.mediaGroups[t][s][r];i(n)}})}(e,Li,(e,i,s,r)=>{t=t.concat(e.playlists||[])}),t},Ui=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,i)=>{t.number=e.mediaSequence+i})},Fi=e=>e&&e.uri+"-"+(e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?be.BigInt(e.offset)+be.BigInt(e.length)-be.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`})(e.byterange),Bi=e=>{const t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{});let i=[];return Object.values(t).forEach(e=>{const t=Ci(e.reduce((e,t)=>{const i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[i].segments.push(...t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));i=i.concat(t)}),i.map(e=>(e.discontinuityStarts=(e=>e.reduce((e,t,i)=>(t.discontinuity&&e.push(i),e),[]))(e.segments||[]),e))},qi=(e,t)=>{const i=Fi(e.sidx),s=i&&t[i]&&t[i].sidx;return s&&Mi(e,s,e.sidx.resolvedUri),e},ji=(e,t={})=>{if(!Object.keys(t).length)return e;for(const i in e)e[i]=qi(e[i],t);return e},$i=({attributes:e,segments:t,sidx:i,discontinuityStarts:s})=>{const r={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:s,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(r.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(r.contentProtection=e.contentProtection),e.serviceLocation&&(r.attributes.serviceLocation=e.serviceLocation),i&&(r.sidx=i),r},Hi=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,Vi=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,zi=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,Wi=e=>e?Object.keys(e).reduce((t,i)=>{const s=e[i];return t.concat(s.playlists)},[]):[],Gi=({dashPlaylists:e,locations:t,contentSteering:i,sidxMapping:s={},previousManifest:r,eventStream:n})=>{if(!e.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:u}=e[0].attributes,c=Bi(e.filter(Hi)).map($i),h=Bi(e.filter(Vi)),d=Bi(e.filter(zi)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),m={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:ji(c,s)};u>=0&&(m.minimumUpdatePeriod=1e3*u),t&&(m.locations=t),i&&(m.contentSteering=i),"dynamic"===o&&(m.suggestedPresentationDelay=l),n&&n.length>0&&(m.eventStream=n);const g=0===m.playlists.length,f=h.length?((e,t={},i=!1)=>{let s;const r=e.reduce((e,r)=>{const n=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"";let o=r.attributes.label||"main";if(a&&!r.attributes.label){const e=n?` (${n})`:"";o=`${r.attributes.lang}${e}`}e[o]||(e[o]={language:a,autoselect:!0,default:"main"===n,playlists:[],uri:""});const l=qi((({attributes:e,segments:t,sidx:i,mediaSequence:s,discontinuitySequence:r,discontinuityStarts:n},a)=>{const o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:n,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),i&&(o.sidx=i),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o})(r,i),t);return e[o].playlists.push(l),void 0===s&&"main"===n&&(s=r,s.default=!0),e},{});return s||(r[Object.keys(r)[0]].default=!0),r})(h,s,g):null,y=d.length?((e,t={})=>e.reduce((e,i)=>{const s=i.attributes.label||i.attributes.lang||"text",r=i.attributes.lang||"und";return e[s]||(e[s]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),e[s].playlists.push(qi((({attributes:e,segments:t,mediaSequence:i,discontinuityStarts:s,discontinuitySequence:r})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const n={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(n.CODECS=e.codecs);const a={attributes:n,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:s,discontinuitySequence:r,mediaSequence:i,segments:t};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a})(i),t)),e},{}))(d,s):null,_=c.concat(Wi(f),Wi(y)),v=_.map(({timelineStarts:e})=>e);return m.timelineStarts=Ni(v),((e,t)=>{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})})})(_,m.timelineStarts),f&&(m.mediaGroups.AUDIO.audio=f),y&&(m.mediaGroups.SUBTITLES.subs=y),p.length&&(m.mediaGroups["CLOSED-CAPTIONS"].cc=(e=>e.reduce((e,t)=>t?(t.forEach(t=>{const{channel:i,language:s}=t;e[s]={autoselect:!1,default:!1,instreamId:i,language:s},t.hasOwnProperty("aspectRatio")&&(e[s].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[s].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[s]["3D"]=t["3D"])}),e):e,{}))(p)),r?(({oldManifest:e,newManifest:t})=>{const i=e.playlists.concat(Ri(e)),s=t.playlists.concat(Ri(t));return t.timelineStarts=Ni([e.timelineStarts,t.timelineStarts]),(({oldPlaylists:e,newPlaylists:t,timelineStarts:i})=>{t.forEach(t=>{t.discontinuitySequence=i.findIndex(function({timeline:e}){return e===t.timeline});const s=((e,t)=>{for(let i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null})(e,t.attributes.NAME);if(!s)return;if(t.sidx)return;const r=t.segments[0],n=s.segments.findIndex(function(e){return Math.abs(e.presentationTime-r.presentationTime)<Oi});if(-1===n)return Ui({playlist:t,mediaSequence:s.mediaSequence+s.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!s.segments.length&&t.timeline>s.timeline||s.segments.length&&t.timeline>s.segments[s.segments.length-1].timeline)&&t.discontinuitySequence--);s.segments[n].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),Ui({playlist:t,mediaSequence:s.segments[n].number})})})({oldPlaylists:i,newPlaylists:s,timelineStarts:t.timelineStarts}),t})({oldManifest:r,newManifest:m}):m},Xi=(e,t,i)=>{const{NOW:s,clientOffset:r,availabilityStartTime:n,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e,u=(s+r)/1e3+l-(n+o);return Math.ceil((u*a-t)/i)},Zi=(e,t)=>{const{type:i,minimumUpdatePeriod:s=0,media:r="",sourceDuration:n,timescale:a=1,startNumber:o=1,periodStart:l}=e,u=[];let c=-1;for(let h=0;h<t.length;h++){const d=t[h],p=d.d,m=d.r||0,g=d.t||0;let f;if(c<0&&(c=g),g&&g>c&&(c=g),m<0){const o=h+1;f=o===t.length?"dynamic"===i&&s>0&&r.indexOf("$Number$")>0?Xi(e,c,p):(n*a-c)/p:(t[o].t-c)/p}else f=m+1;const y=o+u.length+f;let _=o+u.length;for(;_<y;)u.push({number:_,duration:p/a,time:c,timeline:l}),c+=p,_++}return u},Qi=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Ki=(e,t)=>e.replace(Qi,(e=>(t,i,s,r)=>{if("$$"===t)return"$";if(void 0===e[i])return t;const n=""+e[i];return"RepresentationID"===i?n:(r=s?parseInt(r,10):1,n.length>=r?n:`${new Array(r-n.length+1).join("0")}${n}`)})(t)),Yi=(e,t)=>{const i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:s={sourceURL:"",range:""}}=e,r=xi({baseUrl:e.baseUrl,source:Ki(s.sourceURL,i),range:s.range});return((e,t)=>e.duration||t?e.duration?Di(e):Zi(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}])(e,t).map(t=>{i.Number=t.number,i.Time=t.time;const s=Ki(e.media||"",i),n=e.timescale||1,a=e.presentationTimeOffset||0,o=e.periodStart+(t.time-a)/n;return{uri:s,timeline:t.timeline,duration:t.duration,resolvedUri:kt(e.baseUrl||"",s),map:r,number:t.number,presentationTime:o}})},Ji=(e,t)=>{const{duration:i,segmentUrls:s=[],periodStart:r}=e;if(!i&&!t||i&&t)throw new Error("SEGMENT_TIME_UNSPECIFIED");const n=s.map(t=>((e,t)=>{const{baseUrl:i,initialization:s={}}=e,r=xi({baseUrl:i,source:s.sourceURL,range:s.range}),n=xi({baseUrl:i,source:t.media,range:t.mediaRange});return n.map=r,n})(e,t));let a;return i&&(a=Di(e)),t&&(a=Zi(e,t)),a.map((t,i)=>{if(n[i]){const s=n[i],a=e.timescale||1,o=e.presentationTimeOffset||0;return s.timeline=t.timeline,s.duration=t.duration,s.number=t.number,s.presentationTime=r+(t.time-o)/a,s}}).filter(e=>e)},es=({attributes:e,segmentInfo:t})=>{let i,s;t.template?(s=Yi,i=wi(e,t.template)):t.base?(s=Pi,i=wi(e,t.base)):t.list&&(s=Ji,i=wi(e,t.list));const r={attributes:e};if(!s)return r;const n=s(i,t.segmentTimeline);if(i.duration){const{duration:e,timescale:t=1}=i;i.duration=e/t}else n.length?i.duration=n.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):i.duration=0;return r.attributes=i,r.segments=n,t.base&&i.indexRange&&(r.sidx=n[0],r.segments=[]),r},ts=(e,t)=>ki(e.childNodes).filter(({tagName:e})=>e===t),is=e=>e.textContent.trim(),ss=e=>{const t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;const[i,s,r,n,a,o]=t.slice(1);return 31536e3*parseFloat(i||0)+2592e3*parseFloat(s||0)+86400*parseFloat(r||0)+3600*parseFloat(n||0)+60*parseFloat(a||0)+parseFloat(o||0)},rs={mediaPresentationDuration:e=>ss(e),availabilityStartTime:e=>(e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)))(e)/1e3,minimumUpdatePeriod:e=>ss(e),suggestedPresentationDelay:e=>ss(e),type:e=>e,timeShiftBufferDepth:e=>ss(e),start:e=>ss(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>(e=>parseFloat(e.split("/").reduce((e,t)=>e/t)))(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){const t=parseInt(e,10);return isNaN(t)?ss(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},ns=e=>e&&e.attributes?ki(e.attributes).reduce((e,t)=>{const i=rs[t.name]||rs.DEFAULT;return e[t.name]=i(t.value),e},{}):{},as={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},os=(e,t)=>t.length?Ei(e.map(function(e){return t.map(function(t){const i=is(t),s=kt(e.baseUrl,i),r=wi(ns(t),{baseUrl:s});return s!==i&&!r.serviceLocation&&e.serviceLocation&&(r.serviceLocation=e.serviceLocation),r})})):e,ls=e=>{const t=ts(e,"SegmentTemplate")[0],i=ts(e,"SegmentList")[0],s=i&&ts(i,"SegmentURL").map(e=>wi({tag:"SegmentURL"},ns(e))),r=ts(e,"SegmentBase")[0],n=i||t,a=n&&ts(n,"SegmentTimeline")[0],o=i||r||t,l=o&&ts(o,"Initialization")[0],u=t&&ns(t);u&&l?u.initialization=l&&ns(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const c={template:u,segmentTimeline:a&&ts(a,"S").map(e=>ns(e)),list:i&&wi(ns(i),{segmentUrls:s,initialization:ns(l)}),base:r&&wi(ns(r),{initialization:ns(l)})};return Object.keys(c).forEach(e=>{c[e]||delete c[e]}),c},us=e=>Ei(ts(e.node,"EventStream").map(t=>{const i=ns(t),s=i.schemeIdUri;return ts(t,"Event").map(t=>{const r=ns(t),n=r.presentationTime||0,a=i.timescale||1,o=r.duration||0,l=n/a+e.attributes.start;return{schemeIdUri:s,value:i.value,id:r.id,start:l,end:l+o/a,messageData:is(t)||r.messageData,contentEncoding:i.contentEncoding,presentationTimeOffset:i.presentationTimeOffset||0}})})),cs=(e,t)=>(i,s)=>{const r=os(t,ts(i.node,"BaseURL")),n=wi(e,{periodStart:i.attributes.start});"number"==typeof i.attributes.duration&&(n.periodDuration=i.attributes.duration);const a=ts(i.node,"AdaptationSet"),o=ls(i.node);return Ei(a.map(((e,t,i)=>s=>{const r=ns(s),n=os(t,ts(s,"BaseURL")),a=ts(s,"Role")[0],o={role:ns(a)};let l=wi(e,r,o);const u=ts(s,"Accessibility")[0],c=(e=>"urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{let t,i;return i=e,/^CC\d=/.test(e)?[t,i]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:i}}):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[i,s=""]=e.split("=");t.channel=i,t.language=e,s.split(",").forEach(e=>{const[i,s]=e.split(":");"lang"===i?t.language=s:"er"===i?t.easyReader=Number(s):"war"===i?t.aspectRatio=Number(s):"3D"===i&&(t["3D"]=Number(s))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0)(ns(u));c&&(l=wi(l,{captionServices:c}));const h=ts(s,"Label")[0];if(h&&h.childNodes.length){const e=h.childNodes[0].nodeValue.trim();l=wi(l,{label:e})}const d=(e=>e.reduce((e,t)=>{const i=ns(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const s=as[i.schemeIdUri];if(s){e[s]={attributes:i};const r=ts(t,"cenc:pssh")[0];if(r){const t=is(r);e[s].pssh=t&&It(t)}}return e},{}))(ts(s,"ContentProtection"));Object.keys(d).length&&(l=wi(l,{contentProtection:d}));const p=ls(s),m=ts(s,"Representation"),g=wi(i,p);return Ei(m.map(((e,t,i)=>s=>{const r=ts(s,"BaseURL"),n=os(t,r),a=wi(e,ns(s)),o=ls(s);return n.map(e=>({segmentInfo:wi(i,o),attributes:wi(a,e)}))})(l,n,g)))})(n,r,o)))},hs=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const i=wi({serverURL:is(e[0])},ns(e[0]));return i.queryBeforeStart="true"===i.queryBeforeStart,i},ds=e=>{if(""===e)throw new Error("DASH_EMPTY_MANIFEST");const t=new Ti.DOMParser;let i,s;try{i=t.parseFromString(e,"application/xml"),s=i&&"MPD"===i.documentElement.tagName?i.documentElement:null}catch(e){}if(!s||s&&s.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return s};var ps,ms,gs,fs;const ys=(0,_e.g)(function(){if(fs)return gs;fs=1;var e=function(){if(ms)return ps;ms=1;var e=Math.pow(2,32);return ps={getUint64:function(t){var i,s=new DataView(t.buffer,t.byteOffset,t.byteLength);return s.getBigUint64?(i=s.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(i):i:s.getUint32(0)*e+s.getUint32(4)},MAX_UINT32:e}}().getUint64;return gs=function(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),s={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8)},r=12;0===s.version?(s.earliestPresentationTime=i.getUint32(r),s.firstOffset=i.getUint32(r+4),r+=8):(s.earliestPresentationTime=e(t.subarray(r)),s.firstOffset=e(t.subarray(r+8)),r+=16),r+=2;var n=i.getUint16(r);for(r+=2;n>0;r+=12,n--)s.references.push({referenceType:(128&t[r])>>>7,referencedSize:2147483647&i.getUint32(r),subsegmentDuration:i.getUint32(r+4),startsWithSap:!!(128&t[r+8]),sapType:(112&t[r+8])>>>4,sapDeltaTime:268435455&i.getUint32(r+8)});return s}}());var _s=ei([73,68,51]),vs=function e(t,i){return void 0===i&&(i=0),(t=ei(t)).length-i<10||!oi(t,_s,{offset:i})?i:e(t,i+=function(e,t){void 0===t&&(t=0);var i=(e=ei(e))[t+5],s=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&i)>>4?s+20:s+10}(t,i))},bs=function(e){return"string"==typeof e?ai(e):e},Ts=function e(t,i,s){void 0===s&&(s=!1),i=function(e){return Array.isArray(e)?e.map(function(e){return bs(e)}):[bs(e)]}(i),t=ei(t);var r=[];if(!i.length)return r;for(var n=0;n<t.length;){var a=(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3])>>>0,o=t.subarray(n+4,n+8);if(0===a)break;var l=n+a;if(l>t.length){if(s)break;l=t.length}var u=t.subarray(n+8,l);oi(o,i[0])&&(1===i.length?r.push(u):r.push.apply(r,e(u,i.slice(1),s))),n=l}return r},Ss={EBML:ei([26,69,223,163]),DocType:ei([66,130]),Segment:ei([24,83,128,103]),SegmentInfo:ei([21,73,169,102]),Tracks:ei([22,84,174,107]),Track:ei([174]),TrackNumber:ei([215]),DefaultDuration:ei([35,227,131]),TrackEntry:ei([174]),TrackType:ei([131]),FlagDefault:ei([136]),CodecID:ei([134]),CodecPrivate:ei([99,162]),VideoTrack:ei([224]),AudioTrack:ei([225]),Cluster:ei([31,67,182,117]),Timestamp:ei([231]),TimestampScale:ei([42,215,177]),BlockGroup:ei([160]),BlockDuration:ei([155]),Block:ei([161]),SimpleBlock:ei([163])},ws=[128,64,32,16,8,4,2,1],Cs=function(e,t,i,s){void 0===i&&(i=!0),void 0===s&&(s=!1);var r=function(e){for(var t=1,i=0;i<ws.length&&!(e&ws[i]);i++)t++;return t}(e[t]),n=e.subarray(t,t+r);return i&&((n=Array.prototype.slice.call(e,t,t+r))[0]^=ws[r-1]),{length:r,value:ni(n,{signed:s}),bytes:n}},Es=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?function(e){var t={}.le,i=void 0!==t&&t;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var s=function(e){return Math.ceil(function(e){return e.toString(2).length}(e)/8)}(e=ti(e)),r=new Uint8Array(new ArrayBuffer(s)),n=0;n<s;n++){var a=i?n:Math.abs(n+1-r.length);r[a]=Number(e/ii[n]&ti(255)),e<0&&(r[a]=Math.abs(~r[a]),r[a]-=0===n?1:2)}return r}(t):t},ks=function e(t,i,s){if(s>=i.length)return i.length;var r=Cs(i,s,!1);if(oi(t.bytes,r.bytes))return s;var n=Cs(i,s+r.length);return e(t,i,s+n.length+n.value+r.length)},xs=function e(t,i){i=function(e){return Array.isArray(e)?e.map(function(e){return Es(e)}):[Es(e)]}(i),t=ei(t);var s=[];if(!i.length)return s;for(var r=0;r<t.length;){var n=Cs(t,r,!1),a=Cs(t,r+n.length),o=r+n.length+a.length;127===a.value&&(a.value=ks(n,t,o),a.value!==t.length&&(a.value-=o));var l=o+a.value>t.length?t.length:o+a.value,u=t.subarray(o,l);oi(i[0],n.bytes)&&(1===i.length?s.push(u):s=s.concat(e(u,i.slice(1)))),r+=n.length+a.length+u.length}return s},Is=ei([0,0,0,1]),As=ei([0,0,1]),Ds=ei([0,0,3]),Ps=function(e){for(var t=[],i=1;i<e.length-2;)oi(e.subarray(i,i+3),Ds)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var s=e.length-t.length,r=new Uint8Array(s),n=0;for(i=0;i<s;n++,i++)n===t[0]&&(n++,t.shift()),r[i]=e[n];return r},Ms=function(e,t,i,s){e=ei(e),i=[].concat(i);for(var r,n=0,a=0;n<e.length&&(a<s||r);){var o=void 0;if(oi(e.subarray(n),Is)?o=4:oi(e.subarray(n),As)&&(o=3),o){if(a++,r)return Ps(e.subarray(r,n));var l=void 0;"h264"===t?l=31&e[n+o]:"h265"===t&&(l=e[n+o]>>1&63),-1!==i.indexOf(l)&&(r=n+o),n+=o+("h264"===t?1:2)}else n++}return e.subarray(0,0)},Ls={webm:ei([119,101,98,109]),matroska:ei([109,97,116,114,111,115,107,97]),flac:ei([102,76,97,67]),ogg:ei([79,103,103,83]),ac3:ei([11,119]),riff:ei([82,73,70,70]),avi:ei([65,86,73]),wav:ei([87,65,86,69]),"3gp":ei([102,116,121,112,51,103]),mp4:ei([102,116,121,112]),fmp4:ei([115,116,121,112]),mov:ei([102,116,121,112,113,116]),moov:ei([109,111,111,118]),moof:ei([109,111,111,102])},Os={aac:function(e){var t=vs(e);return oi(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=vs(e);return oi(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=xs(e,[Ss.EBML,Ss.DocType])[0];return oi(t,Ls.webm)},mkv:function(e){var t=xs(e,[Ss.EBML,Ss.DocType])[0];return oi(t,Ls.matroska)},mp4:function(e){return!Os["3gp"](e)&&!Os.mov(e)&&(!(!oi(e,Ls.mp4,{offset:4})&&!oi(e,Ls.fmp4,{offset:4}))||!(!oi(e,Ls.moof,{offset:4})&&!oi(e,Ls.moov,{offset:4}))||void 0)},mov:function(e){return oi(e,Ls.mov,{offset:4})},"3gp":function(e){return oi(e,Ls["3gp"],{offset:4})},ac3:function(e){var t=vs(e);return oi(e,Ls.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=vs(e);return oi(e,Ls.flac,{offset:t})},ogg:function(e){return oi(e,Ls.ogg)},avi:function(e){return oi(e,Ls.riff)&&oi(e,Ls.avi,{offset:8})},wav:function(e){return oi(e,Ls.riff)&&oi(e,Ls.wav,{offset:8})},h264:function(e){return function(e){return Ms(e,"h264",7,3)}(e).length},h265:function(e){return function(e){return Ms(e,"h265",[32,33],3)}(e).length}},Ns=Object.keys(Os).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);Ns.forEach(function(e){var t=Os[e];Os[e]=function(e){return t(ei(e))}});var Rs,Us,Fs=Os,Bs=function(e){e=ei(e);for(var t=0;t<Ns.length;t++){var i=Ns[t];if(Fs[i](e))return i}return""},qs=function(){if(Us)return Rs;Us=1;var e,t,i,s,r,n,a,o=9e4;return r=function(t,i){return e(s(t,i))},n=function(e,s){return t(i(e),s)},a=function(e,t,s){return i(s?e:e-t)},Rs={ONE_SECOND_IN_TS:o,secondsToVideoTs:e=function(e){return e*o},secondsToAudioTs:t=function(e,t){return e*t},videoTsToSeconds:i=function(e){return e/o},audioTsToSeconds:s=function(e,t){return e/t},audioTsToVideoTs:r,videoTsToAudioTs:n,metadataTsToSeconds:a}}(),js="8.22.0";const $s={},Hs=function(e,t){return $s[e]=$s[e]||[],t&&($s[e]=$s[e].concat(t)),$s[e]},Vs=function(e,t){const i=Hs(e).indexOf(t);return!(i<=-1||($s[e]=$s[e].slice(),$s[e].splice(i,1),0))},zs={prefixed:!0},Ws=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],Gs=Ws[0];let Xs;for(let e=0;e<Ws.length;e++)if(Ws[e][1]in Je){Xs=Ws[e];break}if(Xs){for(let e=0;e<Xs.length;e++)zs[Gs[e]]=Xs[e];zs.prefixed=Xs[0]!==Gs[0]}let Zs=[];const Qs=function e(t,i=":",s=""){let r,n="info";function a(...e){r("log",n,e)}return r=((e,t,i)=>(s,r,n)=>{const a=t.levels[r],o=new RegExp(`^(${a})$`);let l=e;if("log"!==s&&n.unshift(s.toUpperCase()+":"),i&&(l=`%c${e}`,n.unshift(i)),n.unshift(l+":"),Zs){Zs.push([].concat(n));const e=Zs.length-1e3;Zs.splice(0,e>0?e:0)}if(!be.console)return;let u=be.console[s];u||"debug"!==s||(u=be.console.info||be.console.log),u&&a&&o.test(s)&&u[Array.isArray(n)?"apply":"call"](be.console,n)})(t,a,s),a.createLogger=(r,n,a)=>{const o=void 0!==n?n:i;return e(`${t} ${o} ${r}`,o,void 0!==a?a:s)},a.createNewLogger=(t,i,s)=>e(t,i,s),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},a.level=e=>{if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);n=e}return n},a.history=()=>Zs?[].concat(Zs):[],a.history.filter=e=>(Zs||[]).filter(t=>new RegExp(`.*${e}.*`).test(t[0])),a.history.clear=()=>{Zs&&(Zs.length=0)},a.history.disable=()=>{null!==Zs&&(Zs.length=0,Zs=null)},a.history.enable=()=>{null===Zs&&(Zs=[])},a.error=(...e)=>r("error",n,e),a.warn=(...e)=>r("warn",n,e),a.debug=(...e)=>r("debug",n,e),a}("VIDEOJS"),Ks=Qs.createLogger,Ys=Object.prototype.toString,Js=function(e){return ir(e)?Object.keys(e):[]};function er(e,t){Js(e).forEach(i=>t(e[i],i))}function tr(e,t,i=0){return Js(e).reduce((i,s)=>t(i,e[s],s),i)}function ir(e){return!!e&&"object"==typeof e}function sr(e){return ir(e)&&"[object Object]"===Ys.call(e)&&e.constructor===Object}function rr(...e){const t={};return e.forEach(e=>{e&&er(e,(e,i)=>{sr(e)?(sr(t[i])||(t[i]={}),t[i]=rr(t[i],e)):t[i]=e})}),t}function nr(e={}){const t=[];for(const i in e)if(e.hasOwnProperty(i)){const s=e[i];t.push(s)}return t}function ar(e,t,i,s=!0){const r=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0}),n={configurable:!0,enumerable:!0,get(){const e=i();return r(e),e}};return s&&(n.set=r),Object.defineProperty(e,t,n)}var or=Object.freeze({__proto__:null,each:er,reduce:tr,isObject:ir,isPlain:sr,merge:rr,values:nr,defineLazyProperty:ar});let lr,ur=!1,cr=null,hr=!1,dr=!1,pr=!1,mr=!1,gr=!1,fr=null,yr=null;const _r=Boolean(be.cast&&be.cast.framework&&be.cast.framework.CastReceiverContext);let vr=null,br=!1,Tr=!1,Sr=!1,wr=!1,Cr=!1,Er=!1,kr=!1;const xr=Boolean(Lr()&&("ontouchstart"in be||be.navigator.maxTouchPoints||be.DocumentTouch&&be.document instanceof be.DocumentTouch)),Ir=be.navigator&&be.navigator.userAgentData;if(Ir&&Ir.platform&&Ir.brands&&(hr="Android"===Ir.platform,pr=Boolean(Ir.brands.find(e=>"Microsoft Edge"===e.brand)),mr=Boolean(Ir.brands.find(e=>"Chromium"===e.brand)),gr=!pr&&mr,fr=yr=(Ir.brands.find(e=>"Chromium"===e.brand)||{}).version||null,Tr="Windows"===Ir.platform),!mr){const e=be.navigator&&be.navigator.userAgent||"";ur=/iPod/i.test(e),cr=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),hr=/Android/i.test(e),lr=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const i=t[1]&&parseFloat(t[1]),s=t[2]&&parseFloat(t[2]);return i&&s?parseFloat(t[1]+"."+t[2]):i||null}(),dr=/Firefox/i.test(e),pr=/Edg/i.test(e),mr=/Chrome/i.test(e)||/CriOS/i.test(e),gr=!pr&&mr,fr=yr=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),vr=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let i=t&&parseFloat(t[1]);return!i&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(i=11),i}(),Cr=/Tizen/i.test(e),Er=/Web0S/i.test(e),kr=Cr||Er,br=/Safari/i.test(e)&&!gr&&!hr&&!pr&&!kr,Tr=/Windows/i.test(e),Sr=/iPad/i.test(e)||br&&xr&&!/iPhone/i.test(e),wr=/iPhone/i.test(e)&&!Sr}const Ar=wr||Sr||ur,Dr=(br||Ar)&&!gr;var Pr=Object.freeze({__proto__:null,get IS_IPOD(){return ur},get IOS_VERSION(){return cr},get IS_ANDROID(){return hr},get ANDROID_VERSION(){return lr},get IS_FIREFOX(){return dr},get IS_EDGE(){return pr},get IS_CHROMIUM(){return mr},get IS_CHROME(){return gr},get CHROMIUM_VERSION(){return fr},get CHROME_VERSION(){return yr},IS_CHROMECAST_RECEIVER:_r,get IE_VERSION(){return vr},get IS_SAFARI(){return br},get IS_WINDOWS(){return Tr},get IS_IPAD(){return Sr},get IS_IPHONE(){return wr},get IS_TIZEN(){return Cr},get IS_WEBOS(){return Er},get IS_SMART_TV(){return kr},TOUCH_ENABLED:xr,IS_IOS:Ar,IS_ANY_SAFARI:Dr});function Mr(e){return"string"==typeof e&&Boolean(e.trim())}function Lr(){return Je===be.document}function Or(e){return ir(e)&&1===e.nodeType}function Nr(){try{return be.parent!==be.self}catch(e){return!0}}function Rr(e){return function(t,i){if(!Mr(t))return Je[e](null);Mr(i)&&(i=Je.querySelector(i));const s=Or(i)?i:Je;return s[e]&&s[e](t)}}function Ur(e="div",t={},i={},s){const r=Je.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){const i=t[e];"textContent"===e?Fr(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)}),Object.getOwnPropertyNames(i).forEach(function(e){r.setAttribute(e,i[e])}),s&&rn(r,s),r}function Fr(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function Br(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function qr(e,t){return function(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}(t),e.classList.contains(t)}function jr(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function $r(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(Qs.warn("removeClass was called with an element that doesn't exist"),null)}function Hr(e,t,i){return"function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,i)),e}function Vr(e,t){Object.getOwnPropertyNames(t).forEach(function(i){const s=t[i];null==s||!1===s?e.removeAttribute(i):e.setAttribute(i,!0===s?"":s)})}function zr(e){const t={},i=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const s=e.attributes;for(let e=s.length-1;e>=0;e--){const r=s[e].name;let n=s[e].value;i.includes(r)&&(n=null!==n),t[r]=n}}return t}function Wr(e,t){return e.getAttribute(t)}function Gr(e,t,i){e.setAttribute(t,i)}function Xr(e,t){e.removeAttribute(t)}function Zr(){Je.body.focus(),Je.onselectstart=function(){return!1}}function Qr(){Je.onselectstart=function(){return!0}}function Kr(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(un(e,"height"))),i.width||(i.width=parseFloat(un(e,"width"))),i}}function Yr(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,i=e.offsetHeight;let s=0,r=0;for(;e.offsetParent&&e!==Je[zs.fullscreenElement];)s+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:s,top:r,width:t,height:i}}function Jr(e,t){const i={x:0,y:0};if(Ar){let t=e;for(;t&&"html"!==t.nodeName.toLowerCase();){const e=un(t,"transform");if(/^matrix/.test(e)){const t=e.slice(7,-1).split(/,\s/).map(Number);i.x+=t[4],i.y+=t[5]}else if(/^matrix3d/.test(e)){const t=e.slice(9,-1).split(/,\s/).map(Number);i.x+=t[12],i.y+=t[13]}if(t.assignedSlot&&t.assignedSlot.parentElement&&be.WebKitCSSMatrix){const e=be.getComputedStyle(t.assignedSlot.parentElement).transform,s=new be.WebKitCSSMatrix(e);i.x+=s.m41,i.y+=s.m42}t=t.parentNode||t.host}}const s={},r=Yr(t.target),n=Yr(e),a=n.width,o=n.height;let l=t.offsetY-(n.top-r.top),u=t.offsetX-(n.left-r.left);return t.changedTouches&&(u=t.changedTouches[0].pageX-n.left,l=t.changedTouches[0].pageY+n.top,Ar&&(u-=i.x,l-=i.y)),s.y=1-Math.max(0,Math.min(1,l/o)),s.x=Math.max(0,Math.min(1,u/a)),s}function en(e){return ir(e)&&3===e.nodeType}function tn(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function sn(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>("function"==typeof e&&(e=e()),Or(e)||en(e)?e:"string"==typeof e&&/\S/.test(e)?Je.createTextNode(e):void 0)).filter(e=>e)}function rn(e,t){return sn(t).forEach(t=>e.appendChild(t)),e}function nn(e,t){return rn(tn(e),t)}function an(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||"mousedown"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}const on=Rr("querySelector"),ln=Rr("querySelectorAll");function un(e,t){if(!e||!t)return"";if("function"==typeof be.getComputedStyle){let i;try{i=be.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}return""}function cn(e){[...Je.styleSheets].forEach(t=>{try{const i=[...t.cssRules].map(e=>e.cssText).join(""),s=Je.createElement("style");s.textContent=i,e.document.head.appendChild(s)}catch(i){const s=Je.createElement("link");s.rel="stylesheet",s.type=t.type,s.media=t.media.mediaText,s.href=t.href,e.document.head.appendChild(s)}})}var hn=Object.freeze({__proto__:null,isReal:Lr,isEl:Or,isInFrame:Nr,createEl:Ur,textContent:Fr,prependTo:Br,hasClass:qr,addClass:jr,removeClass:$r,toggleClass:Hr,setAttributes:Vr,getAttributes:zr,getAttribute:Wr,setAttribute:Gr,removeAttribute:Xr,blockTextSelection:Zr,unblockTextSelection:Qr,getBoundingClientRect:Kr,findPosition:Yr,getPointerPosition:Jr,isTextNode:en,emptyEl:tn,normalizeContent:sn,appendContent:rn,insertContent:nn,isSingleLeftClick:an,$:on,$$:ln,computedStyle:un,copyStyleSheetsToWindow:cn});let dn,pn=!1;const mn=function(){if(!1===dn.options.autoSetup)return;const e=Array.prototype.slice.call(Je.getElementsByTagName("video")),t=Array.prototype.slice.call(Je.getElementsByTagName("audio")),i=Array.prototype.slice.call(Je.getElementsByTagName("video-js")),s=e.concat(t,i);if(s&&s.length>0)for(let e=0,t=s.length;e<t;e++){const t=s[e];if(!t||!t.getAttribute){gn(1);break}void 0===t.player&&null!==t.getAttribute("data-setup")&&dn(t)}else pn||gn(1)};function gn(e,t){Lr()&&(t&&(dn=t),be.setTimeout(mn,e))}function fn(){pn=!0,be.removeEventListener("load",fn)}Lr()&&("complete"===Je.readyState?fn():be.addEventListener("load",fn));const yn=function(e){const t=Je.createElement("style");return t.className=e,t},_n=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var vn=new WeakMap;let bn,Tn=3;function Sn(){return Tn++}function wn(e,t){if(!vn.has(e))return;const i=vn.get(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&vn.delete(e)}function Cn(e,t,i,s){i.forEach(function(i){e(t,i,s)})}function En(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||be.event;e={};const r=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(const t in s)r.includes(t)||"returnValue"===t&&s.preventDefault||(e[t]=s[t]);if(e.target||(e.target=e.srcElement||Je),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){const t=Je.documentElement,i=Je.body;e.pageX=e.clientX+(t&&t.scrollLeft||i&&i.scrollLeft||0)-(t&&t.clientLeft||i&&i.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||i&&i.scrollTop||0)-(t&&t.clientTop||i&&i.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}const kn=["touchstart","touchmove"];function xn(e,t,i){if(Array.isArray(t))return Cn(xn,e,t,i);vn.has(e)||vn.set(e,{});const s=vn.get(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),i.guid||(i.guid=Sn()),s.handlers[t].push(i),s.dispatcher||(s.disabled=!1,s.dispatcher=function(t,i){if(s.disabled)return;t=En(t);const r=s.handlers[t.type];if(r){const s=r.slice(0);for(let r=0,n=s.length;r<n&&!t.isImmediatePropagationStopped();r++)try{s[r].call(e,t,i)}catch(e){Qs.error(e)}}}),1===s.handlers[t].length)if(e.addEventListener){let i=!1;(function(){if("boolean"!=typeof bn){bn=!1;try{const e=Object.defineProperty({},"passive",{get(){bn=!0}});be.addEventListener("test",null,e),be.removeEventListener("test",null,e)}catch(e){}}return bn})()&&kn.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,s.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function In(e,t,i){if(!vn.has(e))return;const s=vn.get(e);if(!s.handlers)return;if(Array.isArray(t))return Cn(In,e,t,i);const r=function(e,t){s.handlers[t]=[],wn(e,t)};if(void 0===t){for(const t in s.handlers)Object.prototype.hasOwnProperty.call(s.handlers||{},t)&&r(e,t);return}const n=s.handlers[t];if(n)if(i){if(i.guid)for(let e=0;e<n.length;e++)n[e].guid===i.guid&&n.splice(e--,1);wn(e,t)}else r(e,t)}function An(e,t,i){const s=vn.has(e)?vn.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=En(t),s.dispatcher&&s.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles)An.call(null,r,t,i);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){vn.has(t.target)||vn.set(t.target,{});const e=vn.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function Dn(e,t,i){if(Array.isArray(t))return Cn(Dn,e,t,i);const s=function(){In(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||Sn(),xn(e,t,s)}function Pn(e,t,i){const s=function(){In(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||Sn(),xn(e,t,s)}var Mn=Object.freeze({__proto__:null,fixEvent:En,on:xn,off:In,trigger:An,one:Dn,any:Pn});const Ln=30,On=function(e,t,i){t.guid||(t.guid=Sn());const s=t.bind(e);return s.guid=i?i+"_"+t.guid:t.guid,s},Nn=function(e,t){let i=be.performance.now();return function(...s){const r=be.performance.now();r-i>=t&&(e(...s),i=r)}},Rn=function(e,t,i,s=be){let r;const n=function(){const n=this,a=arguments;let o=function(){r=null,o=null,i||e.apply(n,a)};!r&&i&&e.apply(n,a),s.clearTimeout(r),r=s.setTimeout(o,t)};return n.cancel=()=>{s.clearTimeout(r),r=null},n};var Un=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Ln,bind_:On,throttle:Nn,debounce:Rn});let Fn;class Bn{on(e,t){const i=this.addEventListener;this.addEventListener=()=>{},xn(this,e,t),this.addEventListener=i}off(e,t){In(this,e,t)}one(e,t){const i=this.addEventListener;this.addEventListener=()=>{},Dn(this,e,t),this.addEventListener=i}any(e,t){const i=this.addEventListener;this.addEventListener=()=>{},Pn(this,e,t),this.addEventListener=i}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=En(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),An(this,e)}queueTrigger(e){Fn||(Fn=new Map);const t=e.type||e;let i=Fn.get(this);i||(i=new Map,Fn.set(this,i));const s=i.get(t);i.delete(t),be.clearTimeout(s);const r=be.setTimeout(()=>{i.delete(t),0===i.size&&(i=null,Fn.delete(this)),this.trigger(e)},0);i.set(t,r)}}Bn.prototype.allowedEvents_={},Bn.prototype.addEventListener=Bn.prototype.on,Bn.prototype.removeEventListener=Bn.prototype.off,Bn.prototype.dispatchEvent=Bn.prototype.trigger;const qn=e=>"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,jn=e=>e instanceof Bn||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>"function"==typeof e[t]),$n=e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,Hn=(e,t,i)=>{if(!e||!e.nodeName&&!jn(e))throw new Error(`Invalid target for ${qn(t)}#${i}; must be a DOM node or evented object.`)},Vn=(e,t,i)=>{if(!$n(e))throw new Error(`Invalid event type for ${qn(t)}#${i}; must be a non-empty string or array.`)},zn=(e,t,i)=>{if("function"!=typeof e)throw new Error(`Invalid listener for ${qn(t)}#${i}; must be a function.`)},Wn=(e,t,i)=>{const s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let r,n,a;return s?(r=e.eventBusEl_,t.length>=3&&t.shift(),[n,a]=t):(r=t[0],n=t[1],a=t[2]),Hn(r,e,i),Vn(n,e,i),zn(a,e,i),a=On(e,a),{isTargetingSelf:s,target:r,type:n,listener:a}},Gn=(e,t,i,s)=>{Hn(e,e,t),e.nodeName?Mn[t](e,i,s):e[t](i,s)},Xn={on(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Wn(this,e,"on");if(Gn(i,"on",s,r),!t){const e=()=>this.off(i,s,r);e.guid=r.guid;const t=()=>this.off("dispose",e);t.guid=r.guid,Gn(this,"on","dispose",e),Gn(i,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Wn(this,e,"one");if(t)Gn(i,"one",s,r);else{const e=(...t)=>{this.off(i,s,e),r.apply(null,t)};e.guid=r.guid,Gn(i,"one",s,e)}},any(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Wn(this,e,"any");if(t)Gn(i,"any",s,r);else{const e=(...t)=>{this.off(i,s,e),r.apply(null,t)};e.guid=r.guid,Gn(i,"any",s,e)}},off(e,t,i){if(!e||$n(e))In(this.eventBusEl_,e,t);else{const s=e,r=t;Hn(s,this,"off"),Vn(r,this,"off"),zn(i,this,"off"),i=On(this,i),this.off("dispose",i),s.nodeName?(In(s,r,i),In(s,"dispose",i)):jn(s)&&(s.off(r,i),s.off("dispose",i))}},trigger(e,t){Hn(this.eventBusEl_,this,"trigger");const i=e&&"string"!=typeof e?e.type:e;if(!$n(i))throw new Error(`Invalid event type for ${qn(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return An(this.eventBusEl_,e,t)}};function Zn(e,t={}){const{eventBusKey:i}=t;if(i){if(!e[i].nodeName)throw new Error(`The eventBusKey "${i}" does not refer to an element.`);e.eventBusEl_=e[i]}else e.eventBusEl_=Ur("span",{className:"vjs-event-bus"});return Object.assign(e,Xn),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&vn.has(e)&&vn.delete(e)}),be.setTimeout(()=>{e.eventBusEl_=null},0)}),e}const Qn={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),er(e,(e,i)=>{this.state[i]!==e&&(t=t||{},t[i]={from:this.state[i],to:e}),this.state[i]=e}),t&&jn(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Kn(e,t){return Object.assign(e,Qn),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&jn(e)&&e.on("statechanged",e.handleStateChanged),e}const Yn=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toLowerCase())},Jn=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},ea=function(e,t){return Jn(e)===Jn(t)};var ta=Object.freeze({__proto__:null,toLowerCase:Yn,toTitleCase:Jn,titleCaseEquals:ea});class ia{constructor(e,t,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=rr({},this.options_),t=this.options_=rr(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${Sn()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(e=>this.addClass(e)),["on","off","one","any","trigger"].forEach(e=>{this[e]=void 0}),!1!==t.evented&&(Zn(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Kn(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return Boolean(this.isDisposed_)}player(){return this.player_}options(e){return e?(this.options_=rr(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,i){return Ur(e,t,i)}localize(e,t,i=e){const s=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),n=r&&r[s],a=s&&s.split("-")[0],o=r&&r[a];let l=i;return n&&n[e]?l=n[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,i){const s=t[i-1];let r=s;return void 0===s&&(r=e),r})),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let i=0;i<e.length;i++)if(t=t.getChild(e[i]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",s=Ur("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),r=Je.createElementNS(i,"svg");r.setAttributeNS(null,"viewBox","0 0 512 512");const n=Je.createElementNS(i,"use");return r.appendChild(n),n.setAttributeNS(null,"href",`#vjs-icon-${e}`),s.appendChild(r),this.iconIsSet_?t.replaceChild(s,t.querySelector(".vjs-icon-placeholder")):t.appendChild(s),this.iconIsSet_=!0,s}addChild(e,t={},i=this.children_.length){let s,r;if("string"==typeof e){r=Jn(e);const i=t.componentClass||r;t.name=r;const n=ia.getComponent(i);if(!n)throw new Error(`Component ${i} does not exist`);if("function"!=typeof n)return null;s=new n(this.player_||this,t)}else s=e;if(s.parentComponent_&&s.parentComponent_.removeChild(s),this.children_.splice(i,0,s),s.parentComponent_=this,"function"==typeof s.id&&(this.childIndex_[s.id()]=s),r=r||s.name&&Jn(s.name()),r&&(this.childNameIndex_[r]=s,this.childNameIndex_[Yn(r)]=s),"function"==typeof s.el&&s.el()){let e=null;this.children_[i+1]&&(this.children_[i+1].el_?e=this.children_[i+1].el_:Or(this.children_[i+1])&&(e=this.children_[i+1])),this.contentEl().insertBefore(s.el(),e)}return s}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let i=this.children_.length-1;i>=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Jn(e.name())]=null,this.childNameIndex_[Yn(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,i=e=>{const i=e.name;let s=e.opts;if(void 0!==t[i]&&(s=t[i]),!1===s)return;!0===s&&(s={}),s.playerOptions=this.options_.playerOptions;const r=this.addChild(i,s);r&&(this[i]=r)};let s;const r=ia.getComponent("Tech");s=Array.isArray(e)?e:Object.keys(e),s.concat(Object.keys(this.options_).filter(function(e){return!s.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(t=>{let i,s;return"string"==typeof t?(i=t,s=e[i]||this.options_[i]||{}):(i=t.name,s=t),{name:i,opts:s}}).filter(e=>{const t=ia.getComponent(e.opts.componentClass||Jn(e.name));return t&&!r.isTech(t)}).forEach(i)}}buildCSSClass(){return""}ready(e,t=!1){if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)}$(e,t){return on(e,t||this.contentEl())}$$(e,t){return ln(e,t||this.contentEl())}hasClass(e){return qr(this.el_,e)}addClass(...e){jr(this.el_,...e)}removeClass(...e){$r(this.el_,...e)}toggleClass(e,t){Hr(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return Wr(this.el_,e)}setAttribute(e,t){Gr(this.el_,e,t)}removeAttribute(e){Xr(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,i){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;const s=this.el_.style[e],r=s.indexOf("px");return-1!==r?parseInt(s.slice(0,r),10):parseInt(this.el_["offset"+Jn(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=un(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const i=`offset${Jn(e)}`;t=this.el_[i]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){const e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&("Tab"===e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e,t=0,i=null;this.on("touchstart",function(s){1===s.touches.length&&(i={pageX:s.touches[0].pageX,pageY:s.touches[0].pageY},t=be.performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(i){const s=t.touches[0].pageX-i.pageX,r=t.touches[0].pageY-i.pageY;Math.sqrt(s*s+r*r)>10&&(e=!1)}});const s=function(){e=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",function(s){i=null,!0===e&&be.performance.now()-t<200&&(s.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=On(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});const i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,t){var i;return e=On(this,e),this.clearTimersOnDispose_(),i=be.setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),be.clearTimeout(e)),e}setInterval(e,t){e=On(this,e),this.clearTimersOnDispose_();const i=be.setInterval(e,t);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),be.clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=On(this,e),t=be.requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=On(this,t);const i=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),be.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([e,t])=>{this[e].forEach((e,i)=>this[t](i))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return Boolean(this.el_.disabled)}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function t(e){const t=be.getComputedStyle(e,null),i=t.getPropertyValue("visibility");return"none"!==t.getPropertyValue("display")&&!["hidden","collapse"].includes(i)}return e||(e=this.el()),!(!function(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;const t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(t.x<0)return!1;if(t.x>(Je.documentElement.clientWidth||be.innerWidth))return!1;if(t.y<0)return!1;if(t.y>(Je.documentElement.clientHeight||be.innerHeight))return!1;let i=Je.elementFromPoint(t.x,t.y);for(;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}}(e)||!function(e){return!!t(e.parentElement)&&!(!t(e)||"0"===e.style.opacity||"0px"===be.getComputedStyle(e).height||"0px"===be.getComputedStyle(e).width)}(e)||e.parentElement&&!(e.tabIndex>=0))}static registerComponent(e,t){if("string"!=typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=ia.getComponent("Tech"),s=i&&i.isTech(t),r=ia===t||ia.prototype.isPrototypeOf(t.prototype);if(s||!r){let t;throw t=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${t}.`)}e=Jn(e),ia.components_||(ia.components_={});const n=ia.getComponent("Player");if("Player"===e&&n&&n.players){const e=n.players,t=Object.keys(e);if(e&&t.length>0)for(let i=0;i<t.length;i++)if(null!==e[t[i]])throw new Error("Can not register Player component after player has been created.")}return ia.components_[e]=t,ia.components_[Yn(e)]=t,t}static getComponent(e){if(e&&ia.components_)return ia.components_[e]}}function sa(e,t,i,s){return function(e,t,i){if("number"!=typeof t||t<0||t>i)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${i}).`)}(e,s,i.length-1),i[s][t]}function ra(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:sa.bind(null,"start",0,e),end:sa.bind(null,"end",1,e)},be.Symbol&&be.Symbol.iterator&&(t[be.Symbol.iterator]=()=>(e||[]).values()),t}function na(e,t){return Array.isArray(e)?ra(e):void 0===e||void 0===t?ra():ra([[e,t]])}ia.registerComponent("Component",ia);const aa=function(e,t){e=e<0?0:e;let i=Math.floor(e%60),s=Math.floor(e/60%60),r=Math.floor(e/3600);const n=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=s=i="-"),r=r>0||a>0?r+":":"",s=((r||n>=10)&&s<10?"0"+s:s)+":",i=i<10?"0"+i:i,r+s+i};let oa=aa;function la(e){oa=e}function ua(){oa=aa}function ca(e,t=e){return oa(e,t)}var ha=Object.freeze({__proto__:null,createTimeRanges:na,createTimeRange:na,setFormatTime:la,resetFormatTime:ua,formatTime:ca});function da(e,t){let i,s,r=0;if(!t)return 0;e&&e.length||(e=na(0,0));for(let n=0;n<e.length;n++)i=e.start(n),s=e.end(n),s>t&&(s=t),r+=s-i;return r/t}function pa(e){if(e instanceof pa)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:ir(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=pa.defaultMessages[this.code]||"")}function ma(e){return null!=e&&"function"==typeof e.then}function ga(e){ma(e)&&e.then(null,e=>{})}pa.prototype.code=0,pa.prototype.message="",pa.prototype.status=null,pa.prototype.metadata=null,pa.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],pa.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},pa.MEDIA_ERR_CUSTOM=0,pa.prototype.MEDIA_ERR_CUSTOM=0,pa.MEDIA_ERR_ABORTED=1,pa.prototype.MEDIA_ERR_ABORTED=1,pa.MEDIA_ERR_NETWORK=2,pa.prototype.MEDIA_ERR_NETWORK=2,pa.MEDIA_ERR_DECODE=3,pa.prototype.MEDIA_ERR_DECODE=3,pa.MEDIA_ERR_SRC_NOT_SUPPORTED=4,pa.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,pa.MEDIA_ERR_ENCRYPTED=5,pa.prototype.MEDIA_ERR_ENCRYPTED=5;const fa=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,i,s)=>(e[i]&&(t[i]=e[i]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})};const ya="vjs-modal-dialog";class _a extends ia{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Ur("div",{className:`${ya}-content`},{role:"document"}),this.descEl_=Ur("p",{className:`${ya}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),Fr(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${ya} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(this.opened_)return void(this.options_.fillAlways&&this.fill());const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){const t=this.closeable_=!!e;let i=this.getChild("closeButton");if(t&&!i){const e=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),i=t.parentNode,s=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),nn(t,e),this.trigger("modalfill"),s?i.insertBefore(t,s):i.appendChild(t);const r=this.getChild("closeButton");r&&i.appendChild(r.el_),this.trigger("aftermodalfill")}empty(){this.trigger("beforemodalempty"),tn(this.contentEl()),this.trigger("modalempty")}content(e){return void 0!==e&&(this.content_=e),this.content_}conditionalFocus_(){const e=Je.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(this.trigger({type:"modalKeydown",originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),"Escape"===e.key&&this.closeable())return e.preventDefault(),void this.close();if("Tab"!==e.key)return;const t=this.focusableEls_(),i=this.el_.querySelector(":focus");let s;for(let e=0;e<t.length;e++)if(i===t[e]){s=e;break}Je.activeElement===this.el_&&(s=0),e.shiftKey&&0===s?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||s!==t.length-1||(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,e=>(e instanceof be.HTMLAnchorElement||e instanceof be.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof be.HTMLInputElement||e instanceof be.HTMLSelectElement||e instanceof be.HTMLTextAreaElement||e instanceof be.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof be.HTMLIFrameElement||e instanceof be.HTMLObjectElement||e instanceof be.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable"))}}_a.prototype.options_={pauseOnOpen:!0,temporary:!0},ia.registerComponent("ModalDialog",_a);class va extends Bn{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},jn(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let i=0,s=this.length;i<s;i++)if(this[i]===e){t=this[i],t.off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}va.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const e in va.prototype.allowedEvents_)va.prototype["on"+e]=null;const ba=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)},Ta=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)};class Sa extends va{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class wa{constructor(e){wa.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let i=0;const s=e.length;this.cues_=e,this.length_=e.length;const r=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<s)for(i=t;i<s;i++)r.call(this,i)}getCueById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}const Ca={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Ea={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},ka={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},xa={disabled:"disabled",hidden:"hidden",showing:"showing"};class Ia extends Bn{constructor(e={}){super();const t={id:e.id||"vjs_track_"+Sn(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const e in t)Object.defineProperty(this,e,{get:()=>t[e],set(){}});Object.defineProperty(this,"label",{get:()=>i,set(e){e!==i&&(i=e,this.trigger("labelchange"))}})}}const Aa=function(e){return new URL(e,Je.baseURI)},Da=function(e){return new URL(e,Je.baseURI).href},Pa=function(e){if("string"==typeof e){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},Ma=function(e,t=be.location){return Aa(e).origin!==t.origin};var La=Object.freeze({__proto__:null,parseUrl:Aa,getAbsoluteURL:Da,getFileExtension:Pa,isCrossOrigin:Ma});const Oa=function(e,t){const i=new be.WebVTT.Parser(be,be.vttjs,be.WebVTT.StringDecoder()),s=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){s.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),s.length>0&&(be.console&&be.console.groupCollapsed&&be.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),s.forEach(e=>Qs.error(e)),be.console&&be.console.groupEnd&&be.console.groupEnd()),i.flush()},Na=function(e,t){const i={uri:e},s=Ma(e);s&&(i.cors=s);const r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),dt(i,On(this,function(e,i,s){if(e)return Qs.error(e,i);t.loaded_=!0,"function"!=typeof be.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],e=>{if("vttjserror"!==e.type)return Oa(s,t);Qs.error(`vttjs failed to load, stopping trying to process ${t.src}`)}):Oa(s,t)}))};class Ra extends Ia{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=rr(e,{kind:ka[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=xa[t.mode]||"disabled";const s=t.default;"metadata"!==t.kind&&"chapters"!==t.kind||(i="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const r=new wa(this.cues_),n=new wa(this.activeCues_);let a=!1;this.timeupdateHandler=On(this,function(e={}){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,a&&(this.trigger("cuechange"),a=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}),this.tech_.one("dispose",()=>{this.stopTracking()}),"disabled"!==i&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>s,set(){}},mode:{get:()=>i,set(e){xa[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Na(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?r:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return n;const e=this.tech_.currentTime(),t=[];for(let i=0,s=this.cues.length;i<s;i++){const s=this.cues[i];s.startTime<=e&&s.endTime>=e&&t.push(s)}if(a=!1,t.length!==this.activeCues_.length)a=!0;else for(let e=0;e<t.length;e++)-1===this.activeCues_.indexOf(t[e])&&(a=!0);return this.activeCues_=t,n.setCues_(this.activeCues_),n},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&Na(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){t=new be.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const i in e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}const i=this.tech_.textTracks();for(let e=0;e<i.length;e++)i[e]!==this&&i[e].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;for(;t--;){const i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}Ra.prototype.allowedEvents_={cuechange:"cuechange"};class Ua extends Ia{constructor(e={}){const t=rr(e,{kind:Ea[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"enabled",{get:()=>i,set(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class Fa extends Ia{constructor(e={}){const t=rr(e,{kind:Ca[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"selected",{get:()=>i,set(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class Ba extends Bn{constructor(e={}){let t;super();const i=new Ra(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get:()=>t},track:{get:()=>i}}),t=Ba.NONE,i.addEventListener("loadeddata",()=>{t=Ba.LOADED,this.trigger({type:"load",target:this})})}}Ba.prototype.allowedEvents_={load:"load"},Ba.NONE=0,Ba.LOADING=1,Ba.LOADED=2,Ba.ERROR=3;const qa={audio:{ListClass:class extends va{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){ba(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&ba(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,ba(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}},TrackClass:Ua,capitalName:"Audio"},video:{ListClass:class extends va{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){Ta(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&Ta(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,Ta(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}},TrackClass:Fa,capitalName:"Video"},text:{ListClass:Sa,TrackClass:Ra,capitalName:"Text"}};Object.keys(qa).forEach(function(e){qa[e].getterName=`${e}Tracks`,qa[e].privateName=`${e}Tracks_`});const ja={remoteText:{ListClass:Sa,TrackClass:Ra,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let i=0,s=this.trackElements_.length;i<s;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t}removeTrackElement_(e){for(let t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},TrackClass:Ba,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},$a=Object.assign({},qa,ja);ja.names=Object.keys(ja),qa.names=Object.keys(qa),$a.names=[].concat(ja.names).concat(qa.names);class Ha extends ia{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),$a.names.forEach(t=>{const i=$a[t];e&&e[i.getterName]&&(this[i.privateName]=e[i.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new $a.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(On(this,function(){const e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return na(0,0)}bufferedPercent(){return da(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(qa.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){(e=[].concat(e)).forEach(e=>{const t=this[`${e}Tracks`]()||[];let i=t.length;for(;i--;){const s=t[i];"text"===e&&this.removeRemoteTextTrack(s),t.removeTrack(s)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;for(;t--;){const i=e[t];this.removeRemoteTextTrack(i)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new pa(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?na(0,0):na()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){qa.names.forEach(e=>{const t=qa[e],i=()=>{this.trigger(`${e}trackchange`)},s=this[t.getterName]();s.addEventListener("removetrack",i),s.addEventListener("addtrack",i),this.on("dispose",()=>{s.removeEventListener("removetrack",i),s.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!be.WebVTT)if(Je.body.contains(this.el())){if(!this.options_["vtt.js"]&&sr(Ct)&&Object.keys(Ct).length>0)return void this.trigger("vttjsloaded");const e=Je.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),be.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),i=t=>e.addTrack(t.track),s=t=>e.removeTrack(t.track);t.on("addtrack",i),t.on("removetrack",s),this.addWebVttScript_();const r=()=>this.trigger("texttrackchange"),n=()=>{r();for(let t=0;t<e.length;t++){const i=e[t];i.removeEventListener("cuechange",r),"showing"===i.mode&&i.addEventListener("cuechange",r)}};n(),e.addEventListener("change",n),e.addEventListener("addtrack",n),e.addEventListener("removetrack",n),this.on("dispose",function(){t.off("addtrack",i),t.off("removetrack",s),e.removeEventListener("change",n),e.removeEventListener("addtrack",n),e.removeEventListener("removetrack",n);for(let t=0;t<e.length;t++)e[t].removeEventListener("cuechange",r)})}addTextTrack(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,i,s,r={}){const n=e.textTracks();r.kind=t,i&&(r.label=i),s&&(r.language=s),r.tech=e;const a=new $a.text.TrackClass(r);return n.addTrack(a),a}(this,e,t,i)}createRemoteTextTrack(e){const t=rr(e,{tech:this});return new ja.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const i=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=Sn();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return Ha.canPlayType(e.type)}static isTech(e){return e.prototype instanceof Ha||e instanceof Ha||e===Ha}static registerTech(e,t){if(Ha.techs_||(Ha.techs_={}),!Ha.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!Ha.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Ha.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Jn(e),Ha.techs_[e]=t,Ha.techs_[Yn(e)]=t,"Tech"!==e&&Ha.defaultTechOrder_.push(e),t}static getTech(e){if(e)return Ha.techs_&&Ha.techs_[e]?Ha.techs_[e]:(e=Jn(e),be&&be.videojs&&be.videojs[e]?(Qs.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),be.videojs[e]):void 0)}}$a.names.forEach(function(e){const t=$a[e];Ha.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Ha.prototype.featuresVolumeControl=!0,Ha.prototype.featuresMuteControl=!0,Ha.prototype.featuresFullscreenResize=!1,Ha.prototype.featuresPlaybackRate=!1,Ha.prototype.featuresProgressEvents=!1,Ha.prototype.featuresSourceset=!1,Ha.prototype.featuresTimeupdateEvents=!1,Ha.prototype.featuresNativeTextTracks=!1,Ha.prototype.featuresVideoFrameCallback=!1,Ha.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){let s=e.sourceHandlers;s||(s=e.sourceHandlers=[]),void 0===i&&(i=s.length),s.splice(i,0,t)},e.canPlayType=function(t){const i=e.sourceHandlers||[];let s;for(let e=0;e<i.length;e++)if(s=i[e].canPlayType(t),s)return s;return""},e.selectSourceHandler=function(t,i){const s=e.sourceHandlers||[];let r;for(let e=0;e<s.length;e++)if(r=s[e].canHandleSource(t,i),r)return s[e];return null},e.canPlaySource=function(t,i){const s=e.selectSourceHandler(t,i);return s?s.canHandleSource(t,i):""},["seekable","seeking","duration"].forEach(function(e){const t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){let i=e.selectSourceHandler(t,this.options_);i||(e.nativeSourceHandler?i=e.nativeSourceHandler:Qs.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=i.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},ia.registerComponent("Tech",Ha),Ha.registerTech("Tech",Ha),Ha.defaultTechOrder_=[];const Va={},za={},Wa={};function Ga(e,t,i){e.setTimeout(()=>Ja(t,Va[t.type],i,e),1)}function Xa(e,t,i,s=null){const r="call"+Jn(i),n=e.reduce(Ya(r),s),a=n===Wa,o=a?null:t[i](n);return function(e,t,i,s){for(let r=e.length-1;r>=0;r--){const n=e[r];n[t]&&n[t](s,i)}}(e,i,o,a),o}const Za={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Qa={setCurrentTime:1,setMuted:1,setVolume:1},Ka={play:1,pause:1};function Ya(e){return(t,i)=>t===Wa?Wa:i[e]?i[e](t):t}function Ja(e={},t=[],i,s,r=[],n=!1){const[a,...o]=t;if("string"==typeof a)Ja(e,Va[a],i,s,r,n);else if(a){const t=function(e,t){const i=za[e.id()];let s=null;if(null==i)return s=t(e),za[e.id()]=[[t,s]],s;for(let e=0;e<i.length;e++){const[r,n]=i[e];r===t&&(s=n)}return null===s&&(s=t(e),i.push([t,s])),s}(s,a);if(!t.setSource)return r.push(t),Ja(e,o,i,s,r,n);t.setSource(Object.assign({},e),function(a,l){if(a)return Ja(e,o,i,s,r,n);r.push(t),Ja(l,e.type===l.type?o:Va[l.type],i,s,r,n)})}else o.length?Ja(e,o,i,s,r,n):n?i(e,r):Ja(e,Va["*"],i,s,r,!0)}const eo={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},to=function(e=""){const t=Pa(e);return eo[t.toLowerCase()]||""},io=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(e){e=io(e),Array.isArray(e)?t=t.concat(e):ir(e)&&t.push(e)}),e=t}else e="string"==typeof e&&e.trim()?[so({src:e})]:ir(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[so(e)]:[];return e};function so(e){if(!e.type){const t=to(e.src);t&&(e.type=t)}return e}const ro=Cr?10009:Er?461:8,no={codes:{play:415,pause:19,ff:417,rw:412,back:ro},names:{415:"play",19:"pause",417:"ff",412:"rw",[ro]:"back"},isEventKey(e,t){return t=t.toLowerCase(),!(!this.names[e.keyCode]||this.names[e.keyCode]!==t)},getEventName(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){const t=this.codes[e.code];return this.names[t]}return null}};class ao extends Bn{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on("modalclose",()=>{this.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0,this.player_.errorDisplay&&this.player_.errorDisplay.on("aftermodalfill",()=>{this.updateFocusableComponents(),this.focusableComponents.length&&(this.focusableComponents.length>1?this.focusableComponents[1].focus():this.focusableComponents[0].focus())}))}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){const t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();const e=t.key.substring(5).toLowerCase();this.move(e)}else if(no.isEventKey(t,"play")||no.isEventKey(t,"pause")||no.isEventKey(t,"ff")||no.isEventKey(t,"rw")){t.preventDefault();const e=no.getEventName(t);this.performMediaAction_(e)}else no.isEventKey(t,"Back")&&e.target&&"function"==typeof e.target.closeable&&e.target.closeable()&&(t.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+5);break;case"rw":this.userSeek_(this.player_.currentTime()-5)}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){const t=e.relatedTarget;let i=null;const s=this.getCurrentComponent(e.target);t&&(i=Boolean(t.closest(".video-js")),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(e.currentTarget.contains(e.relatedTarget)||i)&&t||(s&&"CloseButton"===s.name()?this.refocusComponent():(this.pause(),s&&s.el()&&(this.lastFocusedComponent_=s)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const e=this.player_,t=[];function i(e){for(const s of e)s.hasOwnProperty("el_")&&s.getIsFocusable()&&s.getIsAvailableToBeFocused(s.el())&&t.push(s),s.hasOwnProperty("children_")&&s.children_.length>0&&i(s.children_)}return e.children_.forEach(e=>{if(e.hasOwnProperty("el_")){if(e.getIsFocusable&&e.getIsAvailableToBeFocused&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el()))return void t.push(e);e.hasOwnProperty("children_")&&e.children_.length>0?i(e.children_):e.hasOwnProperty("items")&&e.items.length>0?i(e.items):this.findSuitableDOMChild(e)&&t.push(e)}if("ErrorDisplay"===e.name_&&e.opened_){const i=e.el_.querySelector(".vjs-errors-ok-button-container");i&&i.querySelectorAll("button").forEach((e,i)=>{t.push({name:()=>"ModalButton"+(i+1),el:()=>e,getPositions:()=>{const t=e.getBoundingClientRect();return{boundingClientRect:{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left},center:{x:t.left+t.width/2,y:t.top+t.height/2,width:0,height:0,top:t.top+t.height/2,right:t.left+t.width/2,bottom:t.top+t.height/2,left:t.left+t.width/2}}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:e=>!0,focus:()=>e.focus()})})}}),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){return e.el()?function t(i){if(e.getIsFocusable(i)&&e.getIsAvailableToBeFocused(i))return i;for(let e=0;e<i.children.length;e++){const s=t(i.children[e]);if(s)return s}return null}(e.el()):null}getCurrentComponent(e){this.updateFocusableComponents();const t=e||document.activeElement;if(this.focusableComponents.length)for(const e of this.focusableComponents)if(e.el()===t)return e}add(e){const t=[...this.focusableComponents];e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(e){for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name())return this.focusableComponents.splice(t,1),void this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(e){const t=this.getCurrentComponent();if(!t)return;const i=t.getPositions(),s=this.focusableComponents.filter(s=>s!==t&&this.isInDirection_(i.boundingClientRect,s.getPositions().boundingClientRect,e)),r=this.findBestCandidate_(i.center,s,e);r?this.focus(r):this.trigger({type:"endOfFocusableComponents",direction:e,focusedComponent:t})}findBestCandidate_(e,t,i){let s=1/0,r=null;for(const n of t){const t=n.getPositions().center,a=this.calculateDistance_(e,t,i);a<s&&(s=a,r=n)}return r}isInDirection_(e,t,i){switch(i){case"right":return t.left>=e.right;case"left":return t.right<=e.left;case"down":return t.top>=e.bottom;case"up":return t.bottom<=e.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name())return void this.focus(this.focusableComponents[e])}else this.focus(this.updateFocusableComponents()[0])}focus(e){"object"==typeof e&&(e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus())}calculateDistance_(e,t,i){const s=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);let n;switch(i){case"right":case"left":n=s+100*r;break;case"up":n=2*r+.5*s;break;case"down":n=5*r+s;break;default:n=s+r}return n}searchForTrackSelect_(){const e=this;for(const t of e.updateFocusableComponents())if("TextTrackSelect"===t.constructor.name){e.focus(t);break}}}ia.registerComponent("MediaLoader",class extends ia{constructor(e,t,i){if(super(e,rr({createEl:!1},t),i),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let i=0,s=t.playerOptions.techOrder;i<s.length;i++){const t=Jn(s[i]);let r=Ha.getTech(t);if(t||(r=ia.getComponent(t)),r&&r.isSupported()){e.loadTech_(t);break}}}});class oo extends ia{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},i={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&Qs.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=t.tabIndex;const s=Ur(e,t,i);return this.player_.options_.experimentalSvgIcons||s.appendChild(Ur("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=Ur("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,Fr(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){" "===e.key||"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}ia.registerComponent("ClickableComponent",oo);class lo extends oo{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Ur("div",{className:"vjs-poster"})}crossOrigin(e){if(void 0===e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(Ur("picture",{className:"vjs-poster",tabIndex:-1},{},Ur("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ga(this.player_.play()):this.player_.pause())}}lo.prototype.crossorigin=lo.prototype.crossOrigin,ia.registerComponent("PosterImage",lo);const uo="#222",co="#ccc",ho={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function po(e,t){let i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function mo(e,t,i){try{e.style[t]=i}catch(e){return}}function go(e){return e?`${e}px`:""}ia.registerComponent("TextTrackDisplay",class extends ia{constructor(e,t,i){super(e,t,i);const s=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",e=>this.toggleDisplay(e)),e.on("texttrackchange",e=>this.updateDisplay(e)),e.on("loadedmetadata",e=>{this.updateDisplayOverlay(),this.preselectTrack(e)}),e.ready(On(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",s),e.on("playerresize",s);const t=be.screen.orientation||be,i=be.screen.orientation?"change":"orientationchange";t.addEventListener(i,s),e.on("dispose",()=>t.removeEventListener(i,s));const r=this.options_.playerOptions.tracks||[];for(let e=0;e<r.length;e++)this.player_.addRemoteTextTrack(r[e],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let s,r,n;for(let a=0;a<t.length;a++){const o=t[a];i&&i.enabled&&i.language&&i.language===o.language&&o.kind in e?o.kind===i.kind?n=o:n||(n=o):i&&!i.enabled?(n=null,s=null,r=null):o.default&&("descriptions"!==o.kind||s?o.kind in e&&!r&&(r=o):s=o)}n?n.mode="showing":r?r.mode="showing":s&&(s.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof be.WebVTT&&be.WebVTT.processCues(be,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const t=[];for(let i=0;i<e.length;++i){const s=e[i];"showing"===s.mode&&t.push(s)}return void this.updateForTrack(t)}let i=null,s=null,r=e.length;for(;r--;){const t=e[r];"showing"===t.mode&&("descriptions"===t.kind?i=t:s=t)}if(s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i)),!be.CSS.supports("inset","10px")){const e=this.el_,t=e.querySelectorAll(".vjs-text-track-cue"),i=this.player_.controlBar.el_.getBoundingClientRect().height,s=this.player_.el_.getBoundingClientRect().height;e.style="",mo(e,"position","relative"),mo(e,"height",s-i+"px"),mo(e,"top","unset"),mo(e,"bottom",kr?s+"px":"0px"),t.length>0&&t.forEach(e=>{if(e.style.inset){const t=e.style.inset.split(" ");3===t.length&&Object.assign(e.style,{top:t[0],right:t[1],bottom:t[2],left:"unset"})}})}}updateDisplayOverlay(){if(!this.player_.videoHeight()||!be.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),i=e/t,s=this.player_.videoWidth()/this.player_.videoHeight();let r=0,n=0;Math.abs(i-s)>.1&&(i>s?r=Math.round((e-t*s)/2):n=Math.round((t-e/s)/2)),mo(this.el_,"insetInline",go(r)),mo(this.el_,"insetBlock",go(n))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),i=e.activeCues;let s=i.length;for(;s--;){const e=i[s];if(!e)continue;const r=e.displayState;if(t.color&&(r.firstChild.style.color=t.color),t.textOpacity&&mo(r.firstChild,"color",po(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(r.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&mo(r.firstChild,"backgroundColor",po(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?mo(r,"backgroundColor",po(t.windowColor,t.windowOpacity)):r.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?r.firstChild.style.textShadow=`2px 2px 3px ${uo}, 2px 2px 4px ${uo}, 2px 2px 5px ${uo}`:"raised"===t.edgeStyle?r.firstChild.style.textShadow=`1px 1px ${uo}, 2px 2px ${uo}, 3px 3px ${uo}`:"depressed"===t.edgeStyle?r.firstChild.style.textShadow=`1px 1px ${co}, 0 1px ${co}, -1px -1px ${uo}, 0 -1px ${uo}`:"uniform"===t.edgeStyle&&(r.firstChild.style.textShadow=`0 0 4px ${uo}, 0 0 4px ${uo}, 0 0 4px ${uo}, 0 0 4px ${uo}`)),t.fontPercent&&1!==t.fontPercent){const e=be.parseFloat(r.style.fontSize);r.style.fontSize=e*t.fontPercent+"px",r.style.height="auto",r.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?r.firstChild.style.fontVariant="small-caps":r.firstChild.style.fontFamily=ho[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof be.WebVTT||e.every(e=>!e.activeCues))return;const t=[];for(let i=0;i<e.length;++i){const s=e[i];for(let e=0;e<s.activeCues.length;++e)t.push(s.activeCues[e])}be.WebVTT.processCues(be,t,this.el_);for(let t=0;t<e.length;++t){const i=e[t];for(let e=0;e<i.activeCues.length;++e){const s=i.activeCues[e].displayState;jr(s,"vjs-text-track-cue","vjs-text-track-cue-"+(i.language?i.language:t)),i.language&&Gr(s,"lang",i.language)}this.player_.textTrackSettings&&this.updateDisplayState(i)}}}),ia.registerComponent("LoadingSpinner",class extends ia{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=Ur("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),s=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return s.appendChild(i),s}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});class fo extends oo{createEl(e,t={},i={}){const s=Ur("button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i));return this.player_.options_.experimentalSvgIcons||s.appendChild(Ur("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}addChild(e,t={}){const i=this.constructor.name;return Qs.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),ia.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){" "!==e.key&&"Enter"!==e.key?super.handleKeyDown(e):e.stopPropagation()}}ia.registerComponent("Button",fo);class yo extends fo{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",e=>this.handleMouseDown(e))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return ga(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const i=this.player_.getChild("controlBar"),s=i&&i.getChild("playToggle");if(!s)return void this.player_.tech(!0).focus();const r=()=>s.focus();ma(t)?t.then(r,()=>{}):this.setTimeout(r,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}yo.prototype.controlText_="Play Video",ia.registerComponent("BigPlayButton",yo),ia.registerComponent("CloseButton",class extends fo{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}});class _o extends fo{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",e=>this.handlePlay(e)),this.on(e,"pause",e=>this.handlePause(e)),t.replay&&this.on(e,"ended",e=>this.handleEnded(e))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?ga(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",e=>this.handleSeeked(e))}}_o.prototype.controlText_="Play",ia.registerComponent("PlayToggle",_o);class vo extends ia{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],e=>this.update(e)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),i=Ur("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return t.appendChild(i),this.contentEl_=Ur("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}updateTextNode_(e=0){e=ca(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,Qs.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=Je.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}vo.prototype.labelText_="Time",vo.prototype.controlText_="Time",ia.registerComponent("TimeDisplay",vo);class bo extends vo{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}bo.prototype.labelText_="Current Time",bo.prototype.controlText_="Current Time",ia.registerComponent("CurrentTimeDisplay",bo);class To extends vo{constructor(e,t){super(e,t);const i=e=>this.updateContent(e);this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}To.prototype.labelText_="Duration",To.prototype.controlText_="Duration",ia.registerComponent("DurationDisplay",To),ia.registerComponent("TimeDivider",class extends ia{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e}});class So extends vo{constructor(e,t){super(e,t),this.on(e,"durationchange",e=>this.updateContent(e))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(Ur("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!=typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}So.prototype.labelText_="Remaining Time",So.prototype.controlText_="Remaining Time",ia.registerComponent("RemainingTimeDisplay",So),ia.registerComponent("LiveDisplay",class extends ia{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",e=>this.updateShowing(e))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Ur("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Ur("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(Je.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}});class wo extends fo{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=Ur("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function Co(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}wo.prototype.controlText_="Seek to live, currently playing live",ia.registerComponent("SeekToLive",wo);var Eo=Object.freeze({__proto__:null,clamp:Co});class ko extends ia{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},i={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,t,i)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||gr||e.preventDefault(),Zr(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;Qr(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(Co(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=Jr(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){const t=this.options_.playerOptions.spatialNavigation,i=t&&t.enabled,s=t&&t.horizontalSeek;i?s&&"ArrowLeft"===e.key||!s&&"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):s&&"ArrowRight"===e.key||!s&&"ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):"ArrowUp"===e.key||"ArrowRight"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}ia.registerComponent("Slider",ko);const xo=(e,t)=>Co(e/t*100,0,100).toFixed(2)+"%";ia.registerComponent("LoadProgressBar",class extends ia{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",e=>this.update(e))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=Ur("span",{className:"vjs-control-text"}),i=Ur("span",{textContent:this.localize("Loaded")}),s=Je.createTextNode(": ");return this.percentageEl_=Ur("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(s),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const e=this.player_.liveTracker,t=this.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():this.player_.duration(),s=this.player_.bufferedEnd(),r=this.partEls_,n=xo(s,i);this.percent_!==n&&(this.el_.style.width=n,Fr(this.percentageEl_,n),this.percent_=n);for(let e=0;e<t.length;e++){const i=t.start(e),n=t.end(e);let a=r[e];a||(a=this.el_.appendChild(Ur()),r[e]=a),a.dataset.start===i&&a.dataset.end===n||(a.dataset.start=i,a.dataset.end=n,a.style.left=xo(i,s),a.style.width=xo(n-i,s))}for(let e=r.length;e>t.length;e--)this.el_.removeChild(r[e-1]);r.length=t.length})}}),ia.registerComponent("TimeTooltip",class extends ia{constructor(e,t){super(e,t),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,i){const s=Yr(this.el_),r=Kr(this.player_.el()),n=e.width*t;if(!r||!s)return;let a=e.left-r.left+n,o=e.width-n+(r.right-e.right);o||(o=e.width-n,a=n);let l=s.width/2;a<l?l+=l-a:o<l&&(l=o),l<0?l=0:l>s.width&&(l=s.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(i)}write(e){Fr(this.el_,e)}updateTime(e,t,i,s){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let r;const n=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),i=e-t*e;r=(i<1?"":"-")+ca(i,e)}else r=ca(i,n);this.update(e,t,r),s&&s()})}});class Io extends ia{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){const i=this.getChild("timeTooltip");if(!i)return;const s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,s)}}Io.prototype.options_={children:[]},Ar||hr||Io.prototype.options_.children.push("timeTooltip"),ia.registerComponent("PlayProgressBar",Io);class Ao extends ia{constructor(e,t){super(e,t),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,()=>{this.el_.style.left=e.width*t+"px"})}}Ao.prototype.options_={children:["timeTooltip"]},ia.registerComponent("MouseTimeDisplay",Ao);class Do extends ko{constructor(e,t){(t=rr(Do.prototype.options_,t)).children=[...t.children];const i=e.options_.disableSeekWhileScrubbingOnMobile&&(Ar||hr);(!Ar&&!hr||i)&&t.children.splice(1,0,"mouseTimeDisplay"),super(e,t),this.shouldDisableSeekWhileScrubbingOnMobile_=i,this.pendingSeekTime_=null,this.setEventHandlers_()}setEventHandlers_(){this.update_=On(this,this.update),this.update=Nn(this.update_,Ln),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Je&&"visibilityState"in Je&&this.on(Je,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===Je.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Ln))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===Je.visibilityState)return;const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const e=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),i=this.player_.liveTracker;let s=this.player_.duration();i&&i.isLive()&&(s=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),this.currentTime_===e&&this.duration_===s||(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ca(e,s),ca(s,s)],"{1} of {2}")),this.currentTime_=e,this.duration_=s),this.bar&&this.bar.update(Kr(this.el()),this.getProgress())}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){if(this.pendingSeekTime_)return this.pendingSeekTime_/this.player_.duration();const e=this.getCurrentTime_();let t;const i=this.player_.liveTracker;return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){an(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.shouldDisableSeekWhileScrubbingOnMobile_||this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!an(e)||isNaN(this.player_.duration()))return;let i;t||this.player_.scrubbing()||this.player_.scrubbing(!0);const s=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(s>=.99)return void r.seekToLiveEdge();const e=r.seekableStart(),t=r.liveCurrentTime();if(i=e+s*r.liveWindow(),i>=t&&(i=t),i<=e&&(i=e+.1),i===1/0)return}else i=s*this.player_.duration(),i===this.player_.duration()&&(i-=.1);this.shouldDisableSeekWhileScrubbingOnMobile_?this.pendingSeekTime_=i:this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.pendingSeekTime_&&(this.userSeek_(this.pendingSeekTime_),this.pendingSeekTime_=null),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?ga(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+this.options().stepSeconds)}stepBack(){this.userSeek_(this.player_.currentTime()-this.options().stepSeconds)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(" "===e.key||"Enter"===e.key)e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if("Home"===e.key)e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if("End"===e.key)e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();const i=.1*parseInt(e.key,10);t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else"PageDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-this.options().stepSeconds*this.options().pageMultiplier)):"PageUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+this.options().stepSeconds*this.options().pageMultiplier)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Je&&"visibilityState"in Je&&this.off(Je,"visibilitychange",this.toggleVisibility_),super.dispose()}}Do.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar",stepSeconds:5,pageMultiplier:12},ia.registerComponent("SeekBar",Do);class Po extends ia{constructor(e,t){super(e,t),this.handleMouseMove=Nn(On(this,this.handleMouseMove),Ln),this.throttledHandleMouseSeek=Nn(On(this,this.handleMouseSeek),Ln),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const i=t.getChild("playProgressBar"),s=t.getChild("mouseTimeDisplay");if(!i&&!s)return;const r=t.el(),n=Yr(r);let a=Jr(r,e).x;a=Co(a,0,1),s&&s.update(n,a),i&&i.update(n,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&ga(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}Po.prototype.options_={children:["seekBar"]},ia.registerComponent("ProgressControl",Po);class Mo extends fo{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],e=>this.handlePictureInPictureChange(e)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],e=>this.handlePictureInPictureEnabledChange(e)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){Je.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in be?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof Je.exitPictureInPicture&&super.show()}}Mo.prototype.controlText_="Picture-in-Picture",ia.registerComponent("PictureInPictureToggle",Mo);class Lo extends fo{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",e=>this.handleFullscreenChange(e)),!1===Je[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}Lo.prototype.controlText_="Fullscreen",ia.registerComponent("FullscreenToggle",Lo),ia.registerComponent("VolumeLevel",class extends ia{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}),ia.registerComponent("VolumeLevelTooltip",class extends ia{constructor(e,t){super(e,t),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,i,s){if(!i){const i=Kr(this.el_),s=Kr(this.player_.el()),r=e.width*t;if(!s||!i)return;const n=e.left-s.left+r,a=e.width-r+(s.right-e.right);let o=i.width/2;n<o?o+=o-n:a<o&&(o=a),o<0?o=0:o>i.width&&(o=i.width),this.el_.style.right=`-${o}px`}this.write(`${s}%`)}write(e){Fr(this.el_,e)}updateVolume(e,t,i,s,r){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,i,s.toFixed(0)),r&&r()})}});class Oo extends ia{constructor(e,t){super(e,t),this.update=Nn(On(this,this.update),Ln)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,i){const s=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,s,()=>{i?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"})}}Oo.prototype.options_={children:["volumeLevelTooltip"]},ia.registerComponent("MouseVolumeLevelDisplay",Oo);class No extends ko{constructor(e,t){super(e,t),this.on("slideractive",e=>this.updateLastVolume_(e)),this.on(e,"volumechange",e=>this.updateARIAAttributes(e)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){an(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const i=this.el(),s=Kr(i),r=this.vertical();let n=Jr(i,e);n=r?n.y:n.x,n=Co(n,0,1),t.update(s,n,r)}an(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}No.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ar||hr||No.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),No.prototype.playerEvent="volumechange",ia.registerComponent("VolumeBar",No);class Ro extends ia{constructor(e,t={}){t.vertical=t.vertical||!1,(void 0===t.volumeBar||sr(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(this,e),this.throttledHandleMouseMove=Nn(On(this,this.handleMouseMove),Ln),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",e=>this.handleMouseDown(e)),this.on("touchstart",e=>this.handleMouseDown(e)),this.on("mousemove",e=>this.handleMouseMove(e)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}Ro.prototype.options_={children:["volumeBar"]},ia.registerComponent("VolumeControl",Ro);class Uo extends fo{constructor(e,t){super(e,t),function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(this,e),this.on(e,["loadstart","volumechange"],e=>this.update(e))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){const e=i<.1?.1:i;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),Ar&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),$r(this.el_,[0,1,2,3].reduce((e,t)=>e+`${t?" ":""}vjs-vol-${t}`,"")),jr(this.el_,`vjs-vol-${t}`)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}Uo.prototype.controlText_="Mute",ia.registerComponent("MuteToggle",Uo);class Fo extends ia{constructor(e,t={}){void 0!==t.inline?t.inline=t.inline:t.inline=!0,(void 0===t.volumeControl||sr(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],e=>this.volumePanelState_(e)),this.on(this.muteToggle,"keyup",e=>this.handleKeyPress(e)),this.on(this.volumeControl,"keyup",e=>this.handleVolumeControlKeyUp(e)),this.on("keydown",e=>this.handleKeyPress(e)),this.on("mouseover",e=>this.handleMouseOver(e)),this.on("mouseout",e=>this.handleMouseOut(e)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){"Escape"===e.key&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),xn(Je,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),In(Je,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){"Escape"===e.key&&this.handleMouseOut()}}Fo.prototype.options_={children:["muteToggle","volumeControl"]},ia.registerComponent("VolumePanel",Fo);class Bo extends fo{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()?i.seekableEnd():this.player_.duration();let r;r=t+this.skipTime<=s?t+this.skipTime:s,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}Bo.prototype.controlText_="Skip Forward",ia.registerComponent("SkipForward",Bo);class qo extends fo{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()&&i.seekableStart();let r;r=s&&t-this.skipTime<=s?s:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}qo.prototype.controlText_="Skip Backward",ia.registerComponent("SkipBackward",qo);class jo extends ia{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",e=>this.handleKeyDown(e)),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof ia&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof ia&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=Ur(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),xn(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||Je.activeElement;if(!this.children().some(e=>e.el()===t)){const e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const i=t.filter(t=>t.el()===e.target)[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}handleKeyDown(e){"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}ia.registerComponent("Menu",jo);class $o extends ia{constructor(e,t={}){super(e,t),this.menuButton_=new fo(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=fo.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const s=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",s),this.on(this.menuButton_,"click",s),this.on(this.menuButton_,"keydown",e=>this.handleKeyDown(e)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),xn(Je,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",e=>this.handleMouseLeave(e)),this.on("keydown",e=>this.handleSubmenuKeyDown(e))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new jo(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=Ur("li",{className:"vjs-menu-title",textContent:Jn(this.options_.title),tabIndex:-1}),i=new ia(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${fo.prototype.buildCSSClass()} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),In(Je,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){"Escape"===e.key||"Tab"===e.key?(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus())):"Up"!==e.key&&("Down"!==e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)||this.buttonPressed_||(e.preventDefault(),this.pressButton())}handleMenuKeyUp(e){"Escape"!==e.key&&"Tab"!==e.key||this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){"Escape"!==e.key&&"Tab"!==e.key||(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Ar&&Nr())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}ia.registerComponent("MenuButton",$o);class Ho extends $o{constructor(e,t){const i=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!i)return;const s=On(this,this.update);i.addEventListener("removetrack",s),i.addEventListener("addtrack",s),i.addEventListener("labelchange",s),this.player_.on("ready",s),this.player_.on("dispose",function(){i.removeEventListener("removetrack",s),i.removeEventListener("addtrack",s),i.removeEventListener("labelchange",s)})}}ia.registerComponent("TrackButton",Ho);class Vo extends oo{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,i){this.nonIconControl=!0;const s=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),i),r=Ur("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?s.appendChild(r):s.replaceChild(r,s.querySelector(".vjs-icon-placeholder")),s}handleKeyDown(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.key)||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}ia.registerComponent("MenuItem",Vo);class zo extends Vo{constructor(e,t){const i=t.track,s=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,super(e,t),this.track=i,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const r=(...e)=>{this.handleTracksChange.apply(this,e)},n=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],r),s.addEventListener("change",r),s.addEventListener("selectedlanguagechange",n),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],r),s.removeEventListener("change",r),s.removeEventListener("selectedlanguagechange",n)}),void 0===s.onchange){let e;this.on(["tap","click"],function(){if("object"!=typeof be.Event)try{e=new be.Event("change")}catch(e){}e||(e=Je.createEvent("Event"),e.initEvent("change",!0,!0)),s.dispatchEvent(e)})}this.handleTracksChange()}handleClick(e){const t=this.track,i=this.player_.textTracks();if(super.handleClick(e),i)for(let e=0;e<i.length;e++){const s=i[e];-1!==this.kinds.indexOf(s.kind)&&(s===t?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}ia.registerComponent("TextTrackMenuItem",zo);class Wo extends zo{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let i=!0;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(this.options_.kinds.indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let i=!0;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}ia.registerComponent("OffTextTrackMenuItem",Wo);class Go extends Ho{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=zo){let i;this.label_&&(i=`${this.label_} off`),e.push(new Wo(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const s=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let i=0;i<s.length;i++){const r=s[i];if(this.kinds_.indexOf(r.kind)>-1){const i=new t(this.player_,{track:r,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});i.addClass(`vjs-${r.kind}-menu-item`),e.push(i)}}return e}}ia.registerComponent("TextTrackButton",Go);class Xo extends Vo{constructor(e,t){const i=t.track,s=t.cue,r=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=s.text,t.selected=s.startTime<=r&&r<s.endTime,super(e,t),this.track=i,this.cue=s}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}ia.registerComponent("ChaptersTrackMenuItem",Xo);class Zo extends Go{constructor(e,t,i){super(e,t,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(e=>{e.selected(this.track_.activeCues[0]===e.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const i=e[t];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Jn(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let i=0,s=t.length;i<s;i++){const s=t[i],r=new Xo(this.player_,{track:this.track_,cue:s});e.push(r)}return e}}Zo.prototype.kind_="chapters",Zo.prototype.controlText_="Chapters",ia.registerComponent("ChaptersButton",Zo);class Qo extends Go{constructor(e,t,i){super(e,t,i),this.setIcon("audio-description");const s=e.textTracks(),r=On(this,this.handleTracksChange);s.addEventListener("change",r),this.on("dispose",function(){s.removeEventListener("change",r)})}handleTracksChange(e){const t=this.player().textTracks();let i=!1;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(s.kind!==this.kind_&&"showing"===s.mode){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}Qo.prototype.kind_="descriptions",Qo.prototype.controlText_="Descriptions",ia.registerComponent("DescriptionsButton",Qo);class Ko extends Go{constructor(e,t,i){super(e,t,i),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}Ko.prototype.kind_="subtitles",Ko.prototype.controlText_="Subtitles",ia.registerComponent("SubtitlesButton",Ko);class Yo extends zo{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}ia.registerComponent("CaptionSettingsMenuItem",Yo);class Jo extends Go{constructor(e,t,i){super(e,t,i),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Yo(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}Jo.prototype.kind_="captions",Jo.prototype.controlText_="Captions",ia.registerComponent("CaptionsButton",Jo);class el extends zo{createEl(e,t,i){const s=super.createEl(e,t,i),r=s.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",s):r.appendChild(Ur("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(Ur("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),s}}ia.registerComponent("SubsCapsMenuItem",el);class tl extends Go{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Jn(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Yo(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,el),e}}tl.prototype.kinds_=["captions","subtitles"],tl.prototype.controlText_="Subtitles",ia.registerComponent("SubsCapsButton",tl);class il extends Vo{constructor(e,t){const i=t.track,s=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,super(e,t),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const r=(...e)=>{this.handleTracksChange.apply(this,e)};s.addEventListener("change",r),this.on("dispose",()=>{s.removeEventListener("change",r)})}createEl(e,t,i){const s=super.createEl(e,t,i),r=s.querySelector(".vjs-menu-item-text");return["main-desc","descriptions"].indexOf(this.options_.track.kind)>=0&&(r.appendChild(Ur("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(Ur("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),s}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const e=this.player_.audioTracks();for(let t=0;t<e.length;t++){const i=e[t];i!==this.track&&(i.enabled=i===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}ia.registerComponent("AudioTrackMenuItem",il);class sl extends Ho{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let i=0;i<t.length;i++){const s=t[i];e.push(new il(this.player_,{track:s,selectable:!0,multiSelectable:!1}))}return e}}sl.prototype.controlText_="Audio Track",ia.registerComponent("AudioTrackButton",sl);class rl extends Vo{constructor(e,t){const i=t.rate,s=parseFloat(i,10);t.label=i,t.selected=s===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=i,this.rate=s,this.on(e,"ratechange",e=>this.update(e))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}rl.prototype.contentElType="button",ia.registerComponent("PlaybackRateMenuItem",rl);class nl extends $o{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",e=>this.updateVisibility(e)),this.on(e,"ratechange",e=>this.updateLabel(e)),this.on(e,"playbackrateschange",e=>this.handlePlaybackRateschange(e))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Ur("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),t=[];for(let i=e.length-1;i>=0;i--)t.push(new rl(this.player(),{rate:e[i]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}nl.prototype.controlText_="Playback Rate",ia.registerComponent("PlaybackRateMenuButton",nl);class al extends ia{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},i={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,i)}}ia.registerComponent("Spacer",al),ia.registerComponent("CustomControlSpacer",class extends al{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}});class ol extends ia{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}ol.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},ia.registerComponent("ControlBar",ol);class ll extends _a{constructor(e,t){super(e,t),this.on(e,"error",e=>{this.open(e)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}ll.prototype.options_=Object.assign({},_a.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),ia.registerComponent("ErrorDisplay",ll);class ul extends ia{constructor(e,t={}){super(e,t),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),Ur("select",{id:this.options_.id},{},this.options_.SelectOptions.map(e=>{const t=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${Sn()}`)+"-"+e[1].replace(/\W+/g,""),i=Ur("option",{id:t,value:this.localize(e[0]),textContent:this.localize(e[1])});return i.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${t}`),i}))}}ia.registerComponent("TextTrackSelect",ul);class cl extends ia{constructor(e,t={}){super(e,t);const i=Ur("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(i);const s=this.options_.selects;for(const t of s){const i=this.options_.selectConfigs[t],s=i.className,r=i.id.replace("%s",this.options_.id_);let n=null;const a=`vjs_select_${Sn()}`;if("colors"===this.options_.type){n=Ur("span",{className:s});const e=Ur("label",{id:r,className:"vjs-label",textContent:this.localize(i.label)});e.setAttribute("for",a),n.appendChild(e)}const o=new ul(e,{SelectOptions:i.options,legendId:this.options_.legendId,id:a,labelId:r});this.addChild(o),"colors"===this.options_.type&&(n.appendChild(o.el()),this.el().appendChild(n))}}createEl(){return Ur("fieldset",{className:this.options_.className})}}ia.registerComponent("TextTrackFieldset",cl);class hl extends ia{constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,s=new cl(e,{id_:i,legendId:`captions-text-legend-${i}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(s);const r=new cl(e,{id_:i,legendId:`captions-background-${i}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(r);const n=new cl(e,{id_:i,legendId:`captions-window-${i}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(n)}createEl(){return Ur("div",{className:"vjs-track-settings-colors"})}}ia.registerComponent("TextTrackSettingsColors",hl);class dl extends ia{constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,s=new cl(e,{id_:i,legendId:`captions-font-size-${i}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(s);const r=new cl(e,{id_:i,legendId:`captions-edge-style-${i}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(r);const n=new cl(e,{id_:i,legendId:`captions-font-family-${i}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(n)}createEl(){return Ur("div",{className:"vjs-track-settings-font"})}}ia.registerComponent("TextTrackSettingsFont",dl);class pl extends ia{constructor(e,t={}){super(e,t);const i=this.localize("restore all settings to the default values"),s=new fo(e,{controlText:i,className:"vjs-default-button"});s.el().classList.remove("vjs-control","vjs-button"),s.el().textContent=this.localize("Reset"),this.addChild(s);const r=new fo(e,{controlText:i,className:"vjs-done-button"});r.el().classList.remove("vjs-control","vjs-button"),r.el().textContent=this.localize("Done"),this.addChild(r)}createEl(){return Ur("div",{className:"vjs-track-settings-controls"})}}ia.registerComponent("TrackSettingsControls",pl);const ml="vjs-text-track-settings",gl=["#000","Black"],fl=["#00F","Blue"],yl=["#0FF","Cyan"],_l=["#0F0","Green"],vl=["#F0F","Magenta"],bl=["#F00","Red"],Tl=["#FFF","White"],Sl=["#FF0","Yellow"],wl=["1","Opaque"],Cl=["0.5","Semi-Transparent"],El=["0","Transparent"],kl={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[gl,Tl,bl,_l,fl,Sl,vl,yl],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[wl,Cl,El],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Tl,gl,bl,_l,fl,Sl,vl,yl],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[wl,Cl],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[El,Cl,wl],className:"vjs-window-opacity vjs-opacity"}};function xl(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}kl.windowColor.options=kl.backgroundColor.options,ia.registerComponent("TextTrackSettings",class extends _a{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=Ur("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){const t=new hl(e,{textTrackComponentid:this.id_,selectConfigs:kl,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);const i=new dl(e,{textTrackComponentid:this.id_,selectConfigs:kl,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(i);const s=new pl(e);this.addChild(s)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),["click","tap"],()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),["click","tap"],()=>{this.setDefaults(),this.updateDisplay()}),er(kl,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return tr(kl,(e,t,i)=>{const s=function(e,t){return xl(e.options[e.options.selectedIndex].value,t)}(this.$(t.selector),t.parser);return void 0!==s&&(e[i]=s),e},{})}setValues(e){er(kl,(t,i)=>{!function(e,t,i){if(t)for(let s=0;s<e.options.length;s++)if(xl(e.options[s].value,i)===t){e.selectedIndex=s;break}}(this.$(t.selector),e[i],t.parser)})}setDefaults(){er(kl,e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(be.localStorage.getItem(ml))}catch(e){Qs.warn(e)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?be.localStorage.setItem(ml,JSON.stringify(e)):be.localStorage.removeItem(ml)}catch(e){Qs.warn(e)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}}),ia.registerComponent("ResizeManager",class extends ia{constructor(e,t){let i=t.ResizeObserver||be.ResizeObserver;null===t.ResizeObserver&&(i=!1),super(e,rr({createEl:!i,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||be.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=Rn(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const e=this.debouncedHandler_;let t=this.unloadListener_=function(){In(this,"resize",e),In(this,"unload",t),t=null};xn(this.el_.contentWindow,"unload",t),xn(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}});const Il={trackingThreshold:20,liveTolerance:15};ia.registerComponent("LiveTracker",class extends ia{constructor(e,t){super(e,rr(Il,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",e=>this.handleDurationchange(e)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(be.performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;const s=this.liveCurrentTime(),r=this.player_.currentTime();let n=this.player_.paused()||this.seekedBehindLive_||Math.abs(s-r)>this.options_.liveTolerance;this.timeupdateSeen_&&s!==1/0||(n=!1),n!==this.behindLiveEdge_&&(this.behindLiveEdge_=n,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Ln),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}),ia.registerComponent("TitleBar",class extends ia{constructor(e,t){super(e,t),this.on("statechanged",e=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Ur("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${Sn()}`}),description:Ur("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${Sn()}`})},Ur("div",{className:"vjs-title-bar"},{},nr(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(e=>{const s=this.state[e],r=this.els[e],n=i[e];tn(r),s&&Fr(r,s),t&&(t.removeAttribute(n),s&&t.setAttribute(n,r.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}});const Al={initialDisplay:4e3,position:[],takeFocus:!1};ia.registerComponent("TransientButton",class extends fo{constructor(e,t){super(e,t=rr(Al,t)),this.controlText(t.controlText),this.hide(),this.on(this.player_,["useractive","userinactive"],e=>{this.removeClass("force-display")})}buildCSSClass(){return`vjs-transient-button focus-visible ${this.options_.position.map(e=>`vjs-${e}`).join(" ")}`}createEl(){const e=Ur("button",{},{type:"button",class:this.buildCSSClass()},Ur("span"));return this.controlTextEl_=e.querySelector("span"),e}show(){super.show(),this.addClass("force-display"),this.options_.takeFocus&&this.el().focus({preventScroll:!0}),this.forceDisplayTimeout=this.player_.setTimeout(()=>{this.removeClass("force-display")},this.options_.initialDisplay)}hide(){this.removeClass("force-display"),super.hide()}dispose(){this.player_.clearTimeout(this.forceDisplayTimeout),super.dispose()}});const Dl=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const i=e.$$("source"),s=[];let r="";if(!i.length)return!1;for(let e=0;e<i.length;e++){const t=i[e].src;t&&-1===s.indexOf(t)&&s.push(t)}return!!s.length&&(1===s.length&&(r=s[0]),e.triggerSourceset(r),!0)},Pl=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=Je.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const i=Je.createDocumentFragment();for(;t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",be.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Ml=(e,t)=>{let i={};for(let s=0;s<e.length&&(i=Object.getOwnPropertyDescriptor(e[s],t),!(i&&i.set&&i.get));s++);return i.enumerable=!0,i.configurable=!0,i},Ll=function(e){const t=e.el();if(t.resetSourceWatch_)return;const i={},s=(e=>Ml([e.el(),be.HTMLMediaElement.prototype,be.Element.prototype,Pl],"innerHTML"))(e),r=i=>(...s)=>{const r=i.apply(t,s);return Dl(e),r};["append","appendChild","insertAdjacentHTML"].forEach(e=>{t[e]&&(i[e]=t[e],t[e]=r(i[e]))}),Object.defineProperty(t,"innerHTML",rr(s,{set:r(s.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(i).forEach(e=>{t[e]=i[e]}),Object.defineProperty(t,"innerHTML",s)},e.one("sourceset",t.resetSourceWatch_)},Ol=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?Da(be.Element.prototype.getAttribute.call(this,"src")):""},set(e){return be.Element.prototype.setAttribute.call(this,"src",e),e}});class Nl extends Ha{constructor(e,t){super(e,t);const i=e.source;let s=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,i&&(this.el_.currentSrc!==i.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const i=[];for(;t--;){const r=e[t];"track"===r.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),this.textTracks().addTrack(r.track),s||this.el_.hasAttribute("crossorigin")||!Ma(r.src)||(s=!0)):i.push(r))}for(let e=0;e<i.length;e++)this.el_.removeChild(i[e])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&s&&Qs.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(xr||wr)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),Nl.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){!function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const i=(e=>Ml([e.el(),be.HTMLMediaElement.prototype,Ol],"src"))(e),s=t.setAttribute,r=t.load;Object.defineProperty(t,"src",rr(i,{set:s=>{const r=i.set.call(t,s);return e.triggerSourceset(t.src),r}})),t.setAttribute=(i,r)=>{const n=s.call(t,i,r);return/src/i.test(i)&&e.triggerSourceset(t.src),n},t.load=()=>{const i=r.call(t);return Dl(e)||(e.triggerSourceset(""),Ll(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):Dl(e)||Ll(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=s,Object.defineProperty(t,"src",i),t.resetSourceWatch_&&t.resetSourceWatch_()}}(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const i=()=>{t=[];for(let i=0;i<e.length;i++){const s=e[i];"metadata"===s.kind&&t.push({track:s,storedMode:s.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const s=()=>{for(let e=0;e<t.length;e++){const i=t[e];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}e.removeEventListener("change",s)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",s),e.addEventListener("change",s)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",s)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach(e=>{this.el()[`${i}Tracks`].removeEventListener(e,this[`${i}TracksListeners_`][e])}),this[`featuresNative${e}Tracks`]=!t,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=qa[e],i=this.el()[t.getterName],s=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!i||!i.addEventListener)return;const r={change:t=>{const i={type:"change",target:s,currentTarget:s,srcElement:s};s.trigger(i),"text"===e&&this[ja.remoteText.getterName]().trigger(i)},addtrack(e){s.addTrack(e.track)},removetrack(e){s.removeTrack(e.track)}},n=function(){const e=[];for(let t=0;t<s.length;t++){let r=!1;for(let e=0;e<i.length;e++)if(i[e]===s[t]){r=!0;break}r||e.push(s[t])}for(;e.length;)s.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=r,Object.keys(r).forEach(e=>{const t=r[e];i.addEventListener(e,t),this.on("dispose",s=>i.removeEventListener(e,t))}),this.on("loadstart",n),this.on("dispose",e=>this.off("loadstart",n))}proxyNativeTracks_(){qa.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),Nl.disposeMediaElement(e),e=t}else{e=Je.createElement("video");const t=rr({},this.options_.tag&&zr(this.options_.tag));xr&&!0===this.options_.nativeControlsForTouch||delete t.controls,Vr(e,Object.assign(t,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Gr(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let i=0;i<t.length;i++){const s=t[i],r=this.options_[s];void 0!==r&&(r?Gr(e,s,s):Xr(e,s),e[s]=r)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1;const t=function(){e=!0};this.on("loadstart",t);const i=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready(function(){this.off("loadstart",t),this.off("loadedmetadata",i),e||this.trigger("loadstart")})}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(e){this.trigger(e)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&Dr?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){Qs(e,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&hr&&gr&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)ga(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}addSourceElement(e,t){if(!e)return Qs.error("Invalid source URL."),!1;const i={src:e};t&&(i.type=t);const s=Ur("source",{},i);return this.el_.appendChild(s),!0}removeSourceElement(e){if(!e)return Qs.error("Source URL is required to remove the source element."),!1;const t=this.el_.querySelectorAll("source");for(const i of t)if(i.src===e)return this.el_.removeChild(i),!0;return Qs.warn(`No matching source element found with src: ${e}`),!1}reset(){Nl.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):super.addTextTrack(e,t,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=Je.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const i=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let i=t.length;for(;i--;)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),be.performance&&(e.creationTime=be.performance.now()),e}}ar(Nl,"TEST_VID",function(){if(!Lr())return;const e=Je.createElement("video"),t=Je.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}),Nl.isSupported=function(){try{Nl.TEST_VID.volume=.5}catch(e){return!1}return!(!Nl.TEST_VID||!Nl.TEST_VID.canPlayType)},Nl.canPlayType=function(e){return Nl.TEST_VID.canPlayType(e)},Nl.canPlaySource=function(e,t){return Nl.canPlayType(e.type)},Nl.canControlVolume=function(){try{const e=Nl.TEST_VID.volume;Nl.TEST_VID.volume=e/2+.1;const t=e!==Nl.TEST_VID.volume;return t&&Ar?(be.setTimeout(()=>{Nl&&Nl.prototype&&(Nl.prototype.featuresVolumeControl=e!==Nl.TEST_VID.volume)}),!1):t}catch(e){return!1}},Nl.canMuteVolume=function(){try{const e=Nl.TEST_VID.muted;return Nl.TEST_VID.muted=!e,Nl.TEST_VID.muted?Gr(Nl.TEST_VID,"muted","muted"):Xr(Nl.TEST_VID,"muted"),e!==Nl.TEST_VID.muted}catch(e){return!1}},Nl.canControlPlaybackRate=function(){if(hr&&gr&&yr<58)return!1;try{const e=Nl.TEST_VID.playbackRate;return Nl.TEST_VID.playbackRate=e/2+.1,e!==Nl.TEST_VID.playbackRate}catch(e){return!1}},Nl.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(Je.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(Je.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(Je.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(Je.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Nl.supportsNativeTextTracks=function(){return Dr||Ar&&gr},Nl.supportsNativeVideoTracks=function(){return!(!Nl.TEST_VID||!Nl.TEST_VID.videoTracks)},Nl.supportsNativeAudioTracks=function(){return!(!Nl.TEST_VID||!Nl.TEST_VID.audioTracks)},Nl.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function([e,t]){ar(Nl.prototype,e,()=>Nl[t](),!0)}),Nl.prototype.featuresVolumeControl=Nl.canControlVolume(),Nl.prototype.movingMediaElementInDOM=!Ar,Nl.prototype.featuresFullscreenResize=!0,Nl.prototype.featuresProgressEvents=!0,Nl.prototype.featuresTimeupdateEvents=!0,Nl.prototype.featuresVideoFrameCallback=!(!Nl.TEST_VID||!Nl.TEST_VID.requestVideoFrameCallback),Nl.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Nl.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let i=t.length;for(;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Nl.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Nl.prototype["set"+Jn(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){Nl.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){Nl.prototype["set"+Jn(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Nl.prototype[e]=function(){return this.el_[e]()}}),Ha.withSourceHandlers(Nl),Nl.nativeSourceHandler={},Nl.nativeSourceHandler.canPlayType=function(e){try{return Nl.TEST_VID.canPlayType(e)}catch(e){return""}},Nl.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Nl.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=Pa(e.src);return Nl.nativeSourceHandler.canPlayType(`video/${t}`)}return""},Nl.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},Nl.nativeSourceHandler.dispose=function(){},Nl.registerSourceHandler(Nl.nativeSourceHandler),Ha.registerTech("Html5",Nl);const Rl=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ul={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Fl=["tiny","xsmall","small","medium","large","xlarge","huge"],Bl={};Fl.forEach(e=>{const t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;Bl[e]=`vjs-layout-${t}`});const ql={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class jl extends ia{constructor(e,t,i){if(e.id=e.id||t.id||`vjs_video_${Sn()}`,(t=Object.assign(jl.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){const i=e.closest("[lang]");i&&(t.language=i.getAttribute("lang"))}if(super(null,t,i),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.boundUpdatePlayerHeightOnAudioOnlyMode_=e=>this.updatePlayerHeightOnAudioOnlyMode_(e),this.isFullscreen_=!1,this.log=Ks(this.id_),this.fsApi_=zs,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&zr(e),this.language(this.options_.language),t.languages){const e={};Object.getOwnPropertyNames(t.languages).forEach(function(i){e[i.toLowerCase()]=t.languages[i]}),this.languages_=e}else this.languages_=jl.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(e=>{if("function"!=typeof this[e])throw new Error(`plugin "${e}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),Zn(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(xn(Je,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const s=rr(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(e=>{this[e](t.plugins[e])}),t.debug&&this.debug(!0),this.options_.playerOptions=s,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const e=(new be.DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <defs>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n <path d="M16 10v28l22-14z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n </symbol>\n <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n </symbol>\n <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n <circle cx="24" cy="24" r="20"></circle>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n </symbol>\n <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n </symbol>\n <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n <path fill="none" d="M-1-3h24v24H-1z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n </symbol>\n <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">\n <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n </symbol>\n </defs>\n</svg>',"image/svg+xml");if(e.querySelector("parsererror"))Qs.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const t=e.documentElement;t.style.display="none",this.el_.appendChild(t),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),t.spatialNavigation&&t.spatialNavigation.enabled&&(this.spatialNavigation=new ao(this),this.addClass("vjs-spatial-navigation-enabled")),xr&&this.addClass("vjs-touch-enabled"),Ar||this.addClass("vjs-workinghover"),jl.players[this.id_]=this;const r=js.split(".")[0];this.addClass(`vjs-v${r}`),this.userActive(!0),this.reportUserActivity(),this.one("play",e=>this.listenForUserActivity_(e)),this.on("keydown",e=>this.handleKeyDown(e)),this.on("languagechange",e=>this.handleLanguagechange(e)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){var e;this.trigger("dispose"),this.off("dispose"),In(Je,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),In(Je,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),jl.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),e=this,za.hasOwnProperty(e.id())&&delete za[e.id()],$a.names.forEach(e=>{const t=this[$a[e].getterName]();t&&t.off&&t.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const s="video-js"===this.tag.tagName.toLowerCase();i?e=this.el_=t.parentNode:s||(e=this.el_=super.createEl("div"));const r=zr(t);if(s){for(e=this.el_=t,t=this.tag=Je.createElement("video");e.children.length;)t.appendChild(e.firstChild);qr(e,"video-js")||jr(e,"video-js"),e.appendChild(t),i=this.playerElIngest_=e,Object.keys(e).forEach(i=>{try{t[i]=e[i]}catch(e){}})}t.setAttribute("tabindex","-1"),r.tabindex="-1",gr&&Tr&&(t.setAttribute("role","application"),r.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in r&&delete r.width,"height"in r&&delete r.height,Object.getOwnPropertyNames(r).forEach(function(i){s&&"class"===i||e.setAttribute(i,r[i]),s&&t.setAttribute(i,r[i])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused");const n=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(e=>Pr[e]).map(e=>"vjs-device-"+e.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...n),!0!==be.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=yn("vjs-styles-dimensions");const e=on(".vjs-styles-defaults"),t=on("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const a=t.getElementsByTagName("a");for(let e=0;e<a.length;e++){const t=a.item(e);jr(t,"vjs-hidden"),t.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(e,t),Br(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if(void 0===e)return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):Qs.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();const s=parseFloat(t);isNaN(s)?Qs.error(`Improper value "${t}" supplied for for ${e}`):(this[i]=s,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,jn(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),((e,t)=>{jn(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))})(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(!0===be.VIDEOJS_NO_DYNAMIC_STYLE){const e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,i=this.tech_&&this.tech_.el();return void(i&&(e>=0&&(i.width=e),t>=0&&(i.height=t)))}let e,t,i,s;i=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const r=i.split(":"),n=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/n:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*n,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),_n(this.styleEl_,`\n .${s} {\n width: ${e}px;\n height: ${t}px;\n }\n\n .${s}.vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ${100*n}%;\n }\n `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const i=Jn(e),s=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Ha.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let r=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(r=!1);const n={source:t,autoplay:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${s}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};$a.names.forEach(e=>{const t=$a[e];n[t.getterName]=this[t.privateName]}),Object.assign(n,this.options_[i]),Object.assign(n,this.options_[s]),Object.assign(n,this.options_[e.toLowerCase()]),this.tag&&(n.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(n.startTime=this.cache_.currentTime);const a=Ha.getTech(e);if(!a)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new a(n),this.tech_.ready(On(this,this.handleTechReady_),!0),function(e,t){e.forEach(function(e){const i=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(e=>i.addCue(e))}),t.textTracks()}(this.textTracksJson_||[],this.tech_),Rl.forEach(e=>{this.on(this.tech_,e,t=>this[`handleTech${Jn(e)}_`](t))}),Object.keys(Ul).forEach(e=>{this.on(this.tech_,e,t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${Ul[e]}_`].bind(this),event:t}):this[`handleTech${Ul[e]}_`](t)})}),this.on(this.tech_,"loadstart",e=>this.handleTechLoadStart_(e)),this.on(this.tech_,"sourceset",e=>this.handleTechSourceset_(e)),this.on(this.tech_,"waiting",e=>this.handleTechWaiting_(e)),this.on(this.tech_,"ended",e=>this.handleTechEnded_(e)),this.on(this.tech_,"seeking",e=>this.handleTechSeeking_(e)),this.on(this.tech_,"play",e=>this.handleTechPlay_(e)),this.on(this.tech_,"pause",e=>this.handleTechPause_(e)),this.on(this.tech_,"durationchange",e=>this.handleTechDurationChange_(e)),this.on(this.tech_,"fullscreenchange",(e,t)=>this.handleTechFullscreenChange_(e,t)),this.on(this.tech_,"fullscreenerror",(e,t)=>this.handleTechFullscreenError_(e,t)),this.on(this.tech_,"enterpictureinpicture",e=>this.handleTechEnterPictureInPicture_(e)),this.on(this.tech_,"leavepictureinpicture",e=>this.handleTechLeavePictureInPicture_(e)),this.on(this.tech_,"error",e=>this.handleTechError_(e)),this.on(this.tech_,"posterchange",e=>this.handleTechPosterChange_(e)),this.on(this.tech_,"textdata",e=>this.handleTechTextData_(e)),this.on(this.tech_,"ratechange",e=>this.handleTechRateChange_(e)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||Br(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){$a.names.forEach(e=>{const t=$a[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=function(e){const t=e.$$("track"),i=Array.prototype.map.call(t,e=>e.track);return Array.prototype.map.call(t,function(e){const t=fa(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(fa))}(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&Qs.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":js}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!=typeof e)return;const t=()=>{const e=this.muted();this.muted(!0);const t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);const i=this.play();if(ma(i))return i.catch(e=>{throw t(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${e||""}`)})};let i;return"any"!==e||this.muted()?i="muted"!==e||this.muted()?this.play():t():(i=this.play(),ma(i)&&(i=i.catch(t))),ma(i)?i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})}):void 0}updateSourceCaches_(e=""){let t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=((e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const i=e.cache_.sources.filter(e=>e.src===t);if(i.length)return i[0].type;const s=e.$$("source");for(let e=0;e<s.length;e++){const i=s[e];if(i.type&&i.src&&i.src===t)return i.type}return to(t)})(this,t)),this.cache_.source=rr({},e,{src:t,type:i});const s=this.cache_.sources.filter(e=>e.src&&e.src===t),r=[],n=this.$$("source"),a=[];for(let e=0;e<n.length;e++){const i=zr(n[e]);r.push(i),i.src&&i.src===t&&a.push(i.src)}a.length&&!s.length?this.cache_.sources=r:s.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e);const i=this.currentSource().src,s=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(s)&&(!this.lastSource_||this.lastSource_.tech!==s&&this.lastSource_.player!==i)&&(t=()=>{}),t(s),e.src||this.tech_.any(["sourceset","loadstart"],e=>{if("sourceset"===e.type)return;const t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?ga(this.play()):this.pause()))}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),t=>t.contains(e.target))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isInPictureInPicture()&&!Je.pictureInPictureElement?this.exitPictureInPicture():this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const i=this.el();let s=Je[this.fsApi_.fullscreenElement]===i;!s&&i.matches&&(s=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(s)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready(function(){if(e in Qa)return function(e,t,i,s){return t[i](e.reduce(Ya(i),s))}(this.middleware_,this.tech_,e,t);if(e in Ka)return Xa(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw Qs(e),e}},!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in Za)return function(e,t,i){return e.reduceRight(Ya(i),t[i]())}(this.middleware_,this.tech_,e);if(e in Ka)return Xa(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Qs(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t;if("TypeError"===t.name)throw Qs(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t;throw Qs(t),t}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=ga){this.playCallbacks_.push(e);const t=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),i=Boolean(Dr||Ar);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&i&&this.load());const s=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===s?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(s)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||na(0,0)}scrubbing(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=na(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=na(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return da(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let i=e.end(e.length-1);return i>t&&(i=t),i}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise((i,s)=>{function r(){t.off("fullscreenerror",a),t.off("fullscreenchange",n)}function n(){r(),i()}function a(e,t){r(),s(t)}t.one("fullscreenchange",n),t.one("fullscreenerror",a);const o=t.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(i,s))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),e}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((t,i)=>{function s(){e.off("fullscreenerror",n),e.off("fullscreenchange",r)}function r(){s(),t()}function n(e,t){s(),i(t)}e.one("fullscreenchange",r),e.one("fullscreenerror",n);const a=e.exitFullscreenHelper_();a&&(a.then(s,s),a.then(t,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=Je[this.fsApi_.exitFullscreen]();return e&&ga(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=Je.documentElement.style.overflow,xn(Je,"keydown",this.boundFullWindowOnEscKey_),Je.documentElement.style.overflow="hidden",jr(Je.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){"Escape"===e.key&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,In(Je,"keydown",this.boundFullWindowOnEscKey_),Je.documentElement.style.overflow=this.docOrigOverflow,$r(Je.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&be.documentPictureInPicture){const e=Je.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(Ur("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),be.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(cn(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:t}),t.addEventListener("pagehide",t=>{const i=t.target.querySelector(".video-js");e.parentNode.replaceChild(i,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in Je&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return be.documentPictureInPicture&&be.documentPictureInPicture.window?(be.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in Je?Je.exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;t&&t.hotkeys&&((e=>{const t=e.tagName.toLowerCase();return!!e.isContentEditable||("input"===t?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type):-1!==["textarea"].indexOf(t))})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e)))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=t=>"f"===e.key.toLowerCase(),muteKey:s=t=>"m"===e.key.toLowerCase(),playPauseKey:r=t=>"k"===e.key.toLowerCase()||" "===e.key.toLowerCase()}=t;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const t=ia.getComponent("FullscreenToggle");!1!==Je[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else s.call(this,e)?(e.preventDefault(),e.stopPropagation(),ia.getComponent("MuteToggle").prototype.handleClick.call(this,e)):r.call(this,e)&&(e.preventDefault(),e.stopPropagation(),ia.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let i=0,s=this.options_.techOrder;i<s.length;i++){const r=s[i];let n=Ha.getTech(r);if(n||(n=ia.getComponent(r)),n){if(n.isSupported()&&(t=n.canPlayType(e),t))return t}else Qs.error(`The "${r}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map(e=>[e,Ha.getTech(e)]).filter(([e,t])=>t?t.isSupported():(Qs.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(e,t,i){let s;return e.some(e=>t.some(t=>{if(s=i(e,t),s)return!0})),s};let s;const r=([e,t],i)=>{if(t.canPlaySource(i,this.options_[e.toLowerCase()]))return{source:i,tech:e}};return s=this.options_.sourceOrder?i(e,t,(e=>(t,i)=>e(i,t))(r)):i(t,e,r),s||!1}handleSrc_(e,t){if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=io(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Ga(this,i[0],(e,s)=>{if(this.middleware_=s,t||(this.cache_.sources=i),this.updateSourceCaches_(e),this.src_(e))return i.length>1?this.handleSrc_(i.slice(1)):(this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void this.triggerReady());!function(e,t){e.forEach(e=>e.setTech&&e.setTech(t))}(s,this.tech_)}),i.length>1){const e=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}else this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(ea(t.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1))}addSourceElement(e,t){return!!this.tech_&&this.tech_.addSourceElement(e,t)}removeSourceElement(e){return!!this.tech_&&this.tech_.removeSourceElement(e)}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){this.paused()?this.doReset_():ga(this.play().then(()=>this.doReset_()))}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),jn(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:i,remainingTimeDisplay:s}=this.controlBar||{},{seekBar:r}=i||{};e&&e.updateContent(),t&&t.updateContent(),s&&s.updateContent(),r&&(r.update(),r.loadProgressBar&&r.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(Hs("beforeerror").forEach(t=>{const i=t(this,e);ir(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:this.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new pa(e),this.addClass("vjs-error"),Qs.error(`(CODE:${this.error_.code} ${pa.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),Hs("error").forEach(e=>e(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,i;const s=On(this,this.reportUserActivity),r=function(t){s(),this.clearInterval(e)};this.on("mousedown",function(){s(),this.clearInterval(e),e=this.setInterval(s,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,s())}),this.on("mouseup",r),this.on("mouseleave",r);const n=this.getChild("controlBar");let a;!n||Ar||hr||(n.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),n.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",s),this.on("keyup",s),this.setInterval(function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);const e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))},250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}updatePlayerHeightOnAudioOnlyMode_(){const e=this.getChild("ControlBar");e&&this.audioOnlyCache_.controlBarHeight!==e.currentHeight()&&(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),i=t&&t.currentHeight();e.forEach(e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=i,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return"boolean"!=typeof e||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),jn(this)&&this.trigger("languagechange"))}languages(){return rr(jl.prototype.options_.languages,this.languages_)}toJSON(){const e=rr(this.options_),t=e.tracks;e.tracks=[];for(let i=0;i<t.length;i++){let s=t[i];s=rr(s),s.player=void 0,e.tracks[i]=s}return e}createModal(e,t){(t=t||{}).content=e||"";const i=new _a(this,t);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let i=0;i<Fl.length;i++){const s=Fl[i];if(t<=this.breakpoints_[s]){if(e===s)return;e&&this.removeClass(Bl[e]),this.addClass(Bl[s]),this.breakpoint_=s;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},ql,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return Bl[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const i=this.crossOrigin();this.reset(),this.cache_.media=rr(e);const{artist:s,artwork:r,description:n,poster:a,src:o,textTracks:l,title:u}=this.cache_.media;!r&&a&&(this.cache_.media.artwork=[{src:a,type:to(a)}]),i&&this.crossOrigin(i),o&&this.src(o),a&&this.poster(a),Array.isArray(l)&&l.forEach(e=>this.addRemoteTextTrack(e,!1)),this.titleBar&&this.titleBar.update({title:u,description:n||s||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),e=>({kind:e.kind,label:e.label,language:e.language,src:e.src}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:to(t.poster)}]),t}return rr(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},i=zr(e),s=i["data-setup"];if(qr(e,"vjs-fill")&&(i.fill=!0),qr(e,"vjs-fluid")&&(i.fluid=!0),null!==s)try{Object.assign(i,JSON.parse(s||"{}"))}catch(e){Qs.error("data-setup",e)}if(Object.assign(t,i),e.hasChildNodes()){const i=e.childNodes;for(let e=0,s=i.length;e<s;e++){const s=i[e],r=s.nodeName.toLowerCase();"source"===r?t.sources.push(zr(s)):"track"===r&&t.tracks.push(zr(s))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(e=>"number"==typeof e)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}$a.names.forEach(function(e){const t=$a[e];jl.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),jl.prototype.crossorigin=jl.prototype.crossOrigin,jl.players={};const $l=be.navigator;jl.prototype.options_={techOrder:Ha.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:$l&&($l.languages&&$l.languages[0]||$l.userLanguage||$l.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1,disableSeekWhileScrubbingOnMobile:!1},Rl.forEach(function(e){jl.prototype[`handleTech${Jn(e)}_`]=function(){return this.trigger(e)}}),ia.registerComponent("Player",jl);const Hl="plugin",Vl="activePlugins_",zl={},Wl=e=>zl.hasOwnProperty(e),Gl=e=>Wl(e)?zl[e]:void 0,Xl=(e,t)=>{e[Vl]=e[Vl]||{},e[Vl][t]=!0},Zl=(e,t,i)=>{const s=(i?"before":"")+"pluginsetup";e.trigger(s,t),e.trigger(s+":"+t.name,t)},Ql=(e,t)=>(t.prototype.name=e,function(...i){Zl(this,{name:e,plugin:t,instance:null},!0);const s=new t(...[this,...i]);return this[e]=()=>s,Zl(this,s.getEventHash()),s});class Kl{constructor(e){if(this.constructor===Kl)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),Zn(this),delete this.trigger,Kn(this,this.constructor.defaultState),Xl(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return An(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){const{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Vl][e]=!1,this.player=this.state=null,t[e]=Ql(e,zl[e])}static isBasic(e){const t="string"==typeof e?Gl(e):e;return"function"==typeof t&&!Kl.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if("string"!=typeof e)throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(Wl(e))Qs.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(jl.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if("function"!=typeof t)throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return zl[e]=t,e!==Hl&&(Kl.isBasic(t)?jl.prototype[e]=function(e,t){const i=function(){Zl(this,{name:e,plugin:t,instance:null},!0);const i=t.apply(this,arguments);return Xl(this,e),Zl(this,{name:e,plugin:t,instance:i}),i};return Object.keys(t).forEach(function(e){i[e]=t[e]}),i}(e,t):jl.prototype[e]=Ql(e,t)),t}static deregisterPlugin(e){if(e===Hl)throw new Error("Cannot de-register base plugin.");Wl(e)&&(delete zl[e],delete jl.prototype[e])}static getPlugins(e=Object.keys(zl)){let t;return e.forEach(e=>{const i=Gl(e);i&&(t=t||{},t[e]=i)}),t}static getPluginVersion(e){const t=Gl(e);return t&&t.VERSION||""}}function Yl(e,t,i,s){return function(e,t){let i=!1;return function(...s){return i||Qs.warn(e),i=!0,t.apply(this,s)}}(`${t} is deprecated and will be removed in ${e}.0; please use ${i} instead.`,s)}Kl.getPlugin=Gl,Kl.BASE_PLUGIN_NAME=Hl,Kl.registerPlugin(Hl,Kl),jl.prototype.usingPlugin=function(e){return!!this[Vl]&&!0===this[Vl][e]},jl.prototype.hasPlugin=function(e){return!!Wl(e)};const Jl=e=>0===e.indexOf("#")?e.slice(1):e;function eu(e,t,i){let s=eu.getPlayer(e);if(s)return t&&Qs.warn(`Player "${e}" is already initialised. Options will not be applied.`),i&&s.ready(i),s;const r="string"==typeof e?on("#"+Jl(e)):e;if(!Or(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const n="getRootNode"in r&&r.getRootNode()instanceof be.ShadowRoot?r.getRootNode():r.ownerDocument.body;r.ownerDocument.defaultView&&n.contains(r)||Qs.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),Hs("beforesetup").forEach(e=>{const i=e(r,rr(t));ir(i)&&!Array.isArray(i)?t=rr(t,i):Qs.error("please return an object in beforesetup hooks")});const a=ia.getComponent("Player");return s=new a(r,t,i),Hs("setup").forEach(e=>e(s)),s}if(eu.hooks_=$s,eu.hooks=Hs,eu.hook=function(e,t){Hs(e,t)},eu.hookOnce=function(e,t){Hs(e,[].concat(t).map(t=>{const i=(...s)=>(Vs(e,i),t(...s));return i}))},eu.removeHook=Vs,!0!==be.VIDEOJS_NO_DYNAMIC_STYLE&&Lr()){let e=on(".vjs-styles-defaults");if(!e){e=yn("vjs-styles-defaults");const t=on("head");t&&t.insertBefore(e,t.firstChild),_n(e,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}gn(1,eu),eu.VERSION=js,eu.options=jl.prototype.options_,eu.getPlayers=()=>jl.players,eu.getPlayer=e=>{const t=jl.players;let i;if("string"==typeof e){const s=Jl(e),r=t[s];if(r)return r;i=on("#"+s)}else i=e;if(Or(i)){const{player:e,playerId:s}=i;if(e||t[s])return e||t[s]}},eu.getAllPlayers=()=>Object.keys(jl.players).map(e=>jl.players[e]).filter(Boolean),eu.players=jl.players,eu.getComponent=ia.getComponent,eu.registerComponent=(e,t)=>(Ha.isTech(t)&&Qs.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),ia.registerComponent.call(ia,e,t)),eu.getTech=Ha.getTech,eu.registerTech=Ha.registerTech,eu.use=function(e,t){Va[e]=Va[e]||[],Va[e].push(t)},Object.defineProperty(eu,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(eu.middleware,"TERMINATOR",{value:Wa,writeable:!1,enumerable:!0}),eu.browser=Pr,eu.obj=or,eu.mergeOptions=Yl(9,"videojs.mergeOptions","videojs.obj.merge",rr),eu.defineLazyProperty=Yl(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",ar),eu.bind=Yl(9,"videojs.bind","native Function.prototype.bind",On),eu.registerPlugin=Kl.registerPlugin,eu.deregisterPlugin=Kl.deregisterPlugin,eu.plugin=(e,t)=>(Qs.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Kl.registerPlugin(e,t)),eu.getPlugins=Kl.getPlugins,eu.getPlugin=Kl.getPlugin,eu.getPluginVersion=Kl.getPluginVersion,eu.addLanguage=function(e,t){return e=(""+e).toLowerCase(),eu.options.languages=rr(eu.options.languages,{[e]:t}),eu.options.languages[e]},eu.log=Qs,eu.createLogger=Ks,eu.time=ha,eu.createTimeRange=Yl(9,"videojs.createTimeRange","videojs.time.createTimeRanges",na),eu.createTimeRanges=Yl(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",na),eu.formatTime=Yl(9,"videojs.formatTime","videojs.time.formatTime",ca),eu.setFormatTime=Yl(9,"videojs.setFormatTime","videojs.time.setFormatTime",la),eu.resetFormatTime=Yl(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",ua),eu.parseUrl=Yl(9,"videojs.parseUrl","videojs.url.parseUrl",Aa),eu.isCrossOrigin=Yl(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Ma),eu.EventTarget=Bn,eu.any=Pn,eu.on=xn,eu.one=Dn,eu.off=In,eu.trigger=An,eu.xhr=dt,eu.TextTrack=Ra,eu.AudioTrack=Ua,eu.VideoTrack=Fa,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{eu[e]=function(){return Qs.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),hn[e].apply(null,arguments)}}),eu.computedStyle=Yl(9,"videojs.computedStyle","videojs.dom.computedStyle",un),eu.dom=hn,eu.fn=Un,eu.num=Eo,eu.str=ta,eu.url=La,eu.Error={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"};class tu{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class iu extends eu.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const i=this.levels_.length;return t=new tu(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let i=0,s=this.length;i<s;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,i=this.length;t<i;t++){const i=this[t];if(i.id===e)return i}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}iu.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const e in iu.prototype.allowedEvents_)iu.prototype["on"+e]=null;var su="4.1.0";const ru=function(e){return function(e){const t=e.qualityLevels,i=new iu,s=function(){i.dispose(),e.qualityLevels=t,e.off("dispose",s)};return e.on("dispose",s),e.qualityLevels=()=>i,e.qualityLevels.VERSION=su,i}(this,eu.obj.merge({},e))};eu.registerPlugin("qualityLevels",ru),ru.VERSION=su;const nu=kt,au=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,ou=e=>eu.log.debug?eu.log.debug.bind(eu,"VHS:",`${e} >`):function(){};function lu(...e){const t=eu.obj||eu;return(t.merge||t.mergeOptions).apply(t,e)}function uu(...e){const t=eu.time||eu;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}const cu=1/30,hu=.1,du=function(e,t){const i=[];let s;if(e&&e.length)for(s=0;s<e.length;s++)t(e.start(s),e.end(s))&&i.push([e.start(s),e.end(s)]);return uu(i)},pu=function(e,t){return du(e,function(e,i){return e-hu<=t&&i+hu>=t})},mu=function(e,t){return du(e,function(e){return e-cu>=t})},gu=e=>{const t=[];if(!e||!e.length)return"";for(let i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")},fu=e=>{const t=[];for(let i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t},yu=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},_u=function(e,t){let i=0;if(!e||!e.length)return i;for(let s=0;s<e.length;s++){const r=e.start(s),n=e.end(s);t>n||(i+=t>r&&t<=n?n-t:n-r)}return i},vu=(e,t)=>{if(!t.preload)return t.duration;let i=0;return(t.parts||[]).forEach(function(e){i+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(i+=e.partTargetDuration)}),i},bu=e=>(e.segments||[]).reduce((e,t,i)=>(t.parts?t.parts.forEach(function(s,r){e.push({duration:s.duration,segmentIndex:i,partIndex:r,part:s,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e),[]),Tu=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Su=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:i}=e;let s=(i||[]).reduce((e,t)=>e+("PART"===t.type?1:0),0);return s+=t&&t.length?t.length:0,s},wu=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const i=Tu(t).length>0;return i&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:i&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},Cu=function(e,t,i){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const s=function(e,t){let i=0,s=t-e.mediaSequence,r=e.segments[s];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;s--;){if(r=e.segments[s],void 0!==r.end)return{result:i+r.end,precise:!0};if(i+=vu(e,r),void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}}(e,t);if(s.precise)return s.result;const r=function(e,t){let i,s=0,r=t-e.mediaSequence;for(;r<e.segments.length;r++){if(i=e.segments[r],void 0!==i.start)return{result:i.start-s,precise:!0};if(s+=vu(e,i),void 0!==i.end)return{result:i.end-s,precise:!0}}return{result:-1,precise:!1}}(e,t);return r.precise?r.result:s.result+i},Eu=function(e,t,i){if(!e)return 0;if("number"!=typeof i&&(i=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return be.Infinity}return Cu(e,t,i)},ku=function({defaultDuration:e,durationList:t,startIndex:i,endIndex:s}){let r=0;if(i>s&&([i,s]=[s,i]),i<0){for(let t=i;t<Math.min(0,s);t++)r+=e;i=0}for(let e=i;e<s;e++)r+=t[e].duration;return r},xu=function(e,t,i,s){if(!e||!e.segments)return null;if(e.endList)return Eu(e);if(null===t)return null;t=t||0;let r=Cu(e,e.mediaSequence+e.segments.length,t);return i&&(r-=s="number"==typeof s?s:wu(null,e)),Math.max(0,r)},Iu=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Au=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Du=function(e){const t=Iu(e);return!e.disabled&&!t},Pu=function(e,t){return t.attributes&&t.attributes[e]},Mu=(e,t)=>{if(1===e.playlists.length)return!0;const i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(e=>!!Du(e)&&(e.attributes.BANDWIDTH||0)<i).length},Lu=(e,t)=>!(!e&&!t||!e&&t||e&&!t||e!==t&&(!e.id||!t.id||e.id!==t.id)&&(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)&&(!e.uri||!t.uri||e.uri!==t.uri)),Ou=function(e,t){const i=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let s=!1;for(const e in i){for(const r in i[e])if(s=t(i[e][r]),s)break;if(s)break}return!!s},Nu=e=>{if(!e||!e.playlists||!e.playlists.length)return Ou(e,e=>e.playlists&&e.playlists.length||e.uri);for(let t=0;t<e.playlists.length;t++){const i=e.playlists[t],s=i.attributes&&i.attributes.CODECS;if(!(s&&s.split(",").every(e=>zt(e))||Ou(e,e=>Lu(i,e))))return!1}return!0};var Ru={liveEdgeDelay:wu,duration:Eu,seekable:function(e,t,i){const s=t||0;let r=xu(e,t,!0,i);return null===r?uu():(r<s&&(r=s),uu(s,r))},getMediaInfoForTime:function({playlist:e,currentTime:t,startingSegmentIndex:i,startingPartIndex:s,startTime:r,exactManifestTimings:n}){let a=t-r;const o=bu(e);let l=0;for(let e=0;e<o.length;e++){const t=o[e];if(i===t.segmentIndex&&("number"!=typeof s||"number"!=typeof t.partIndex||s===t.partIndex)){l=e;break}}if(a<0){if(l>0)for(let t=l-1;t>=0;t--){const i=o[t];if(a+=i.duration,n){if(a<0)continue}else if(a+cu<=0)continue;return{partIndex:i.partIndex,segmentIndex:i.segmentIndex,startTime:r-ku({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:t})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t}}if(l<0){for(let i=l;i<0;i++)if(a-=e.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t};l=0}for(let t=l;t<o.length;t++){const i=o[t];a-=i.duration;const s=i.duration>cu;if(0!==a&&!(s&&a+cu>=0)||t===o.length-1){if(n){if(a>0)continue}else if(a-cu>=0)continue;return{partIndex:i.partIndex,segmentIndex:i.segmentIndex,startTime:r+ku({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:t})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:t}},isEnabled:Du,isDisabled:function(e){return e.disabled},isExcluded:Iu,isIncompatible:Au,playlistEnd:xu,isAes:function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:Pu,estimateSegmentRequestTime:function(e,t,i,s=0){return Pu("BANDWIDTH",i)?(e*i.attributes.BANDWIDTH-8*s)/t:NaN},isLowestEnabledRendition:Mu,isAudioOnly:Nu,playlistMatch:Lu,segmentDurationWithParts:vu};const{log:Uu}=eu,Fu=(e,t)=>`${e}-${t}`,Bu=(e,t,i)=>`placeholder-uri-${e}-${t}-${i}`,qu=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(i=>{if(e.mediaGroups[i])for(const s in e.mediaGroups[i])for(const r in e.mediaGroups[i][s]){const n=e.mediaGroups[i][s][r];t(n,i,s,r)}})},ju=({playlist:e,uri:t,id:i})=>{e.id=i,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},$u=(e,t,i=Bu)=>{e.uri=t;for(let t=0;t<e.playlists.length;t++)if(!e.playlists[t].uri){const i=`placeholder-uri-${t}`;e.playlists[t].uri=i}const s=Nu(e);qu(e,(t,r,n,a)=>{if(!t.playlists||!t.playlists.length){if(s&&"AUDIO"===r&&!t.uri)for(let t=0;t<e.playlists.length;t++){const i=e.playlists[t];if(i.attributes&&i.attributes.AUDIO&&i.attributes.AUDIO===n)return}t.playlists=[Et({},t)]}t.playlists.forEach(function(t,s){const o=i(r,n,a,t),l=Fu(s,o);t.uri?t.resolvedUri=t.resolvedUri||nu(e.uri,t.uri):(t.uri=0===s?o:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),(e=>{let t=e.playlists.length;for(;t--;){const i=e.playlists[t];ju({playlist:i,id:Fu(t,i.uri)}),i.resolvedUri=nu(e.uri,i.uri),e.playlists[i.id]=i,e.playlists[i.uri]=i,i.attributes.BANDWIDTH||Uu.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}})(e),(e=>{qu(e,t=>{t.uri&&(t.resolvedUri=nu(e.uri,t.uri))})})(e)};class Hu{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_)return;if(!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,i=t.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce((e,t)=>(e.set(t.id,t),e),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach((i,s)=>{if(!this.processedDateRanges_.has(s)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),t.push(i),i.class))if(e[i.class]){const t=e[i.class].push(i);i.classListIndex=t-1}else e[i.class]=[i],i.classListIndex=0});for(const i of t){const t=e[i.class]||[];i.endDate?i.endTime=i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&t[i.classListIndex+1]?i.endTime=t[i.classListIndex+1].startTime:i.duration?i.endTime=i.startTime+i.duration:i.plannedDuration?i.endTime=i.startTime+i.plannedDuration:i.endTime=i.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((t,i)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(i)})}}const Vu=({requestType:e,request:t,error:i,parseFailure:s})=>{const r=t.status<200||t.status>299,n=t.status>=400&&t.status<=499,a={uri:t.uri,requestType:e},o=r&&!n||s;if(i&&n)a.error=Et({},i),a.errorType=eu.Error.NetworkRequestFailed;else if(t.aborted)a.errorType=eu.Error.NetworkRequestAborted;else if(t.timedout)a.erroType=eu.Error.NetworkRequestTimeout;else if(o){const e=s?eu.Error.NetworkBodyParserFailed:eu.Error.NetworkBadStatus;a.errorType=e,a.status=t.status,a.headers=t.headers}return a},zu=ou("CodecUtils"),Wu=function(e){const t=e.attributes||{};if(t.CODECS)return Vt(t.CODECS)},Gu=(e,t)=>{const i=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&i.AUDIO&&e.mediaGroups.AUDIO[i.AUDIO]},Xu=function(e){const t={};return e.forEach(({mediaType:e,type:i,details:s})=>{t[e]=t[e]||[],t[e].push(Ht(`${i}${s}`))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return zu(`multiple ${e} codecs found as attributes: ${t[e].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),void(t[e]=null);t[e]=t[e][0]}),t},Zu=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},Qu=function(e,t){const i=t.attributes||{},s=Xu(Wu(t)||[]);if(Gu(e,t)&&!s.audio&&!((e,t)=>{if(!Gu(e,t))return!0;const i=t.attributes||{},s=e.mediaGroups.AUDIO[i.AUDIO];for(const e in s)if(!s[e].uri&&!s[e].playlists)return!0;return!1})(e,t)){const t=Xu(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var s in i){var r=i[s];if(r.default&&r.playlists)return Vt(r.playlists[0].attributes.CODECS)}return null}(e,i.AUDIO)||[]);t.audio&&(s.audio=t.audio)}return s},{EventTarget:Ku}=eu,Yu=(e,t)=>{if(!e)return t;const i=lu(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(let s=0;s<t.parts.length;s++)e.parts&&e.parts[s]&&(i.parts[s]=lu(e.parts[s],t.parts[s]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i},Ju=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=nu(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=nu(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=nu(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=nu(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(e=>{e.resolvedUri||(e.resolvedUri=nu(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(e=>{e.resolvedUri||(e.resolvedUri=nu(t,e.uri))})},ec=function(e){const t=e.segments||[],i=e.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(let e=0;e<i.preloadHints.length;e++)if("MAP"===i.preloadHints[e].type)return t;i.duration=e.targetDuration,i.preload=!0,t.push(i)}return t},tc=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,ic=(e,t,i=tc)=>{const s=lu(e,{}),r=s.playlists[t.id];if(!r)return null;if(i(r,t))return null;t.segments=ec(t);const n=lu(r,t);if(n.preloadSegment&&!t.preloadSegment&&delete n.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}n.segments=((e,t,i)=>{const s=e.slice(),r=t.slice();i=i||0;const n=[];let a;for(let e=0;e<r.length;e++){const t=s[e+i],o=r[e];t?(a=t.map||a,n.push(Yu(t,o))):(a&&!o.map&&(o.map=a),n.push(o))}return n})(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}n.segments.forEach(e=>{Ju(e,n.resolvedUri)});for(let e=0;e<s.playlists.length;e++)s.playlists[e].id===t.id&&(s.playlists[e]=n);return s.playlists[t.id]=n,s.playlists[t.uri]=n,qu(e,(e,i,s,r)=>{if(e.playlists)for(let i=0;i<e.playlists.length;i++)t.id===e.playlists[i].id&&(e.playlists[i]=n)}),s},sc=(e,t)=>{const i=e.segments||[],s=i[i.length-1],r=s&&s.parts&&s.parts[s.parts.length-1],n=r&&r.duration||s&&s.duration;return t&&n?1e3*n:500*(e.partTargetDuration||e.targetDuration||10)},rc=(e,t,i)=>{if(!e)return;const s=[];return e.forEach(e=>{if(!e.attributes)return;const{BANDWIDTH:t,RESOLUTION:i,CODECS:r}=e.attributes;s.push({id:e.id,bandwidth:t,resolution:i,codecs:r})}),{type:t,isLive:i,renditions:s}};class nc extends Ku{constructor(e,t,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=ou("PlaylistLoader");const{withCredentials:s=!1}=i;this.src=e,this.vhs_=t,this.withCredentials=s,this.addDateRangesToTextTrack_=i.addDateRangesToTextTrack;const r=t.options_;this.customTagParsers=r&&r.customTagParsers||[],this.customTagMappers=r&&r.customTagMappers||[],this.llhls=r&&r.llhls,this.dateRangesStorage_=new Hu,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let t=nu(this.main.uri,e.uri);this.llhls&&(t=((e,t)=>{if(t.endList||!t.serverControl)return e;const i={};if(t.serverControl.canBlockReload){const{preloadSegment:e}=t;let s=t.mediaSequence+t.segments.length;if(e){const r=e.parts||[],n=Su(t)-1;n>-1&&n!==r.length-1&&(i._HLS_part=n),(n>-1||r.length)&&s--}i._HLS_msn=s}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){const t=new be.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){i.hasOwnProperty(e)&&t.searchParams.set(e,i[e])}),e=t.toString()}return e})(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials,requestType:"hls-playlist"},(e,t)=>{if(this.request)return e?this.playlistRequestError(this.request,this.media(),"HAVE_METADATA"):void this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})})}playlistRequestError(e,t,i){const{uri:s,id:r}=t;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[r],status:e.status,message:`HLS playlist request error at URL: ${s}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:Vu({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}parseManifest_({url:e,manifestString:t}){try{const i=(({onwarn:e,oninfo:t,manifestString:i,customTagParsers:s=[],customTagMappers:r=[],llhls:n})=>{const a=new Ut;e&&a.on("warn",e),t&&a.on("info",t),s.forEach(e=>a.addParser(e)),r.forEach(e=>a.addTagMapper(e)),a.push(i),a.end();const o=a.manifest;if(n||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){o.hasOwnProperty(e)&&delete o[e]}),o.segments&&o.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!o.targetDuration){let t=10;o.segments&&o.segments.length&&(t=o.segments.reduce((e,t)=>Math.max(e,t.duration),0)),e&&e({message:`manifest has no targetDuration defaulting to ${t}`}),o.targetDuration=t}const l=Tu(o);if(l.length&&!o.partTargetDuration){const t=l.reduce((e,t)=>Math.max(e,t.duration),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${t}`}),Uu.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=t}return o})({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls});return i.playlists&&i.playlists.length?(this.excludeAudioOnlyVariants(i.playlists),i):i}catch(e){this.error=e,this.error.metadata={errorType:eu.Error.StreamingHlsPlaylistParserError,error:e}}}excludeAudioOnlyVariants(e){const t=e=>{const t=e.attributes||{},{width:i,height:s}=t.RESOLUTION||{};if(i&&s)return!0;const r=Wu(e)||[],n=Xu(r);return Boolean(n.video)};e.some(t)&&e.forEach(e=>{t(e)||(e.excludeUntil=1/0)})}haveMetadata({playlistString:e,playlistObject:t,url:i,id:s}){this.request=null,this.state="HAVE_METADATA";const r={playlistInfo:{type:"media",uri:i}};this.trigger({type:"playlistparsestart",metadata:r});const n=t||this.parseManifest_({url:i,manifestString:e});n.lastRequest=Date.now(),ju({playlist:n,uri:i,id:s});const a=ic(this.main,n);this.targetDuration=n.partTargetDuration||n.targetDuration,this.pendingMedia_=null,a?(this.main=a,this.media_=this.main.playlists[s]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(sc(this.media(),!!a)),r.parsedPlaylist=rc(this.main.playlists,r.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:r}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),be.clearTimeout(this.mediaUpdateTimeout),be.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new Hu,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(be.clearTimeout(this.finalRenditionTimeout),t){const t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=be.setTimeout(this.media.bind(this,e,!1),t))}const i=this.state,s=!this.media_||e.id!==this.media_.id,r=this.main.playlists[e.id];if(r&&r.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(s&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(sc(e,!0)),!s)return;if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e;const n={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:n}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,s)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=au(e.resolvedUri,s),t)return this.playlistRequestError(this.request,e,i);this.trigger({type:"playlistrequestcomplete",metadata:n}),this.haveMetadata({playlistString:s.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}pause(){this.mediaUpdateTimeout&&(be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;return void(this.mediaUpdateTimeout=be.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},e))}this.started?t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=be.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=be.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);const e={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:e}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,i)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:i.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:i.responseText,code:2,metadata:Vu({requestType:i.requestType,request:i,error:t})},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:e}),this.src=au(this.src,i),this.trigger({type:"playlistparsestart",metadata:e});const s=this.parseManifest_({manifestString:i.responseText,url:this.src});e.parsedPlaylist=rc(s.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(s)})}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,$u(this.main,this.srcUri()),e.playlists.forEach(e=>{e.segments=ec(e),e.segments.forEach(t=>{Ju(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||be.location.href;this.main=((e,t)=>{const i=Fu(0,t),s={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:be.location.href,resolvedUri:be.location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return s.playlists[i]=s.playlists[0],s.playlists[t]=s.playlists[0],s})(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const i=this.main,s=e.ID;let r=i.playlists.length;for(;r--;){const n=i.playlists[r];if(n.attributes["PATHWAY-ID"]===s){const a=n.resolvedUri,o=n.id;if(t){const t=this.createCloneURI_(n.resolvedUri,e),a=Fu(s,t),o=this.createCloneAttributes_(s,n.attributes),l=this.createClonePlaylist_(n,a,e,o);i.playlists[r]=l,i.playlists[a]=l,i.playlists[t]=l}else i.playlists.splice(r,1);delete i.playlists[o],delete i.playlists[a]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const i=this.main,s=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{if(i.mediaGroups[e]&&i.mediaGroups[e][s])for(const t in i.mediaGroups[e])if(t===s){for(const s in i.mediaGroups[e][t])i.mediaGroups[e][t][s].playlists.forEach((e,t)=>{const s=i.playlists[e.id],r=s.id,n=s.resolvedUri;delete i.playlists[r],delete i.playlists[n]});delete i.mediaGroups[e][t]}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const i=this.main,s=i.playlists.length,r=this.createCloneURI_(t.resolvedUri,e),n=Fu(e.ID,r),a=this.createCloneAttributes_(e.ID,t.attributes),o=this.createClonePlaylist_(t,n,e,a);i.playlists[s]=o,i.playlists[n]=o,i.playlists[r]=o,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,i=e["BASE-ID"],s=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{if(s.mediaGroups[r]&&!s.mediaGroups[r][t])for(const n in s.mediaGroups[r])if(n===i){s.mediaGroups[r][t]={};for(const i in s.mediaGroups[r][n]){const a=s.mediaGroups[r][n][i];s.mediaGroups[r][t][i]=Et({},a);const o=s.mediaGroups[r][t][i],l=this.createCloneURI_(a.resolvedUri,e);o.resolvedUri=l,o.uri=l,o.playlists=[],a.playlists.forEach((n,a)=>{const l=s.playlists[n.id],u=Bu(r,t,i),c=Fu(t,u);if(l&&!s.playlists[c]){const t=this.createClonePlaylist_(l,c,e),i=t.resolvedUri;s.playlists[c]=t,s.playlists[i]=t}o.playlists[a]=this.createClonePlaylist_(n,c,e)})}}})}createClonePlaylist_(e,t,i,s){const r=this.createCloneURI_(e.resolvedUri,i),n={resolvedUri:r,uri:r,id:t};return e.segments&&(n.segments=[]),s&&(n.attributes=s),lu(e,n)}createCloneURI_(e,t){const i=new URL(e);i.hostname=t["URI-REPLACEMENT"].HOST;const s=t["URI-REPLACEMENT"].PARAMS;for(const e of Object.keys(s))i.searchParams.set(e,s[e]);return i.href}createCloneAttributes_(e,t){const i={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(s=>{t[s]&&(i[s]=e)}),i}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const s=e.contentProtection[i].attributes.keyId;s&&t.add(s.toLowerCase())}return t}}}const ac=function(e,t,i,s){const r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),s(t,e)},oc=function(){const e=function e(t,i){t=lu({timeout:45e3},t);const s=e.beforeRequest||eu.Vhs.xhr.beforeRequest,r=e._requestCallbackSet||eu.Vhs.xhr._requestCallbackSet||new Set,n=e._responseCallbackSet||eu.Vhs.xhr._responseCallbackSet;s&&"function"==typeof s&&(eu.log.warn("beforeRequest is deprecated, use onRequest instead."),r.add(s));const a=!0===eu.Vhs.xhr.original?eu.xhr:eu.Vhs.xhr,o=((e,t)=>{if(!e||!e.size)return;let i=t;return e.forEach(e=>{i=e(i)}),i})(r,t);r.delete(s);const l=a(o||t,function(e,t){return((e,t,i,s)=>{e&&e.size&&e.forEach(e=>{e(t,i,s)})})(n,l,e,t),ac(l,e,t,i)}),u=l.abort;return l.abort=function(){return l.aborted=!0,u.apply(l,arguments)},l.uri=t.uri,l.requestType=t.requestType,l.requestTime=Date.now(),l};return e.original=!0,e},lc=function(e){const t={};return e.byterange&&(t.Range=function(e){let t;const i=e.offset;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?be.BigInt(e.offset)+be.BigInt(e.length)-be.BigInt(1):e.offset+e.length-1,"bytes="+i+"-"+t}(e.byterange)),t},uc=function(e,t){return e.start(t)+"-"+e.end(t)},cc=function(e,t){const i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},hc=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},dc=function(e){const t={};return Object.keys(e).forEach(i=>{const s=e[i];Jt(s)?t[i]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[i]=s}),t},pc=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},mc=function(e){return e.resolvedUri},gc=e=>{const t=Array.prototype.slice.call(e),i=16;let s,r,n="";for(let e=0;e<t.length/i;e++)s=t.slice(e*i,e*i+i).map(cc).join(""),r=t.slice(e*i,e*i+i).map(hc).join(""),n+=s+" "+r+"\n";return n};var fc=Object.freeze({__proto__:null,createTransferableMessage:dc,initSegmentId:pc,segmentKeyId:mc,hexDump:gc,tagDump:({bytes:e})=>gc(e),textRanges:e=>{let t,i="";for(t=0;t<e.length;t++)i+=uc(e,t)+" ";return i}});const yc=({programTime:e,playlist:t,retryCount:i=2,seekTo:s,pauseAfterSeek:r=!0,tech:n,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(void 0===e||!t||!s)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!n.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!(e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0})(t))return a({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const o=((e,t)=>{let i;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;let s=t.segments[0];if(i<new Date(s.dateTimeObject))return null;for(let e=0;e<t.segments.length-1&&(s=t.segments[e],!(i<new Date(t.segments[e+1].dateTimeObject)));e++);const r=t.segments[t.segments.length-1],n=r.dateTimeObject,a=r.videoTimingInfo?(e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds)(r.videoTimingInfo):r.duration+.25*r.duration;return i>new Date(n.getTime()+1e3*a)?null:(i>new Date(n)&&(s=r),{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:Ru.duration(t,t.mediaSequence+t.segments.indexOf(s)),type:s.videoTimingInfo?"accurate":"estimate"})})(e,t);if(!o)return a({message:`${e} was not found in the stream`});const l=o.segment,u=((e,t)=>{let i,s;try{i=new Date(e),s=new Date(t)}catch(e){}const r=i.getTime();return(s.getTime()-r)/1e3})(l.dateTimeObject,e);if("estimate"===o.type)return 0===i?a({message:`${e} is not buffered yet. Try again`}):(s(o.estimatedStart+u),void n.one("seeked",()=>{yc({programTime:e,playlist:t,retryCount:i-1,seekTo:s,pauseAfterSeek:r,tech:n,callback:a})}));const c=l.start+u;n.one("seeked",()=>a(null,n.currentTime())),r&&n.pause(),s(c)},_c=(e,t)=>{if(4===e.readyState)return t()},{EventTarget:vc}=eu,bc=function(e,t){if(!tc(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let i=0;i<e.segments.length;i++){const s=e.segments[i],r=t.segments[i];if(s.uri!==r.uri)return!1;if(!s.byterange&&!r.byterange)continue;const n=s.byterange,a=r.byterange;if(n&&!a||!n&&a)return!1;if(n.offset!==a.offset||n.length!==a.length)return!1}return!0},Tc=(e,t,i,s)=>`placeholder-uri-${e}-${t}-${s.attributes.NAME||i}`,Sc=(e,t)=>(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,wc=(e,t)=>{const i={};for(const s in e){const r=e[s].sidx;if(r){const e=Fi(r);if(!t[e])break;const s=t[e].sidxInfo;Sc(s,r)&&(i[e]=t[e])}}return i};class Cc extends vc{constructor(e,t,i={},s){super(),this.isPaused_=!0,this.mainPlaylistLoader_=s||this,s||(this.isMain_=!0);const{withCredentials:r=!1}=i;if(this.vhs_=t,this.withCredentials=r,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=ou("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}get isPaused(){return this.isPaused_}requestErrored_(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2,metadata:e.metadata}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,i){const s=e.sidx&&Fi(e.sidx);if(!e.sidx||!s||this.mainPlaylistLoader_.sidxMapping_[s])return be.clearTimeout(this.mediaRequest_),void(this.mediaRequest_=be.setTimeout(()=>i(!1),0));const r=au(e.sidx.resolvedUri),n=(r,n)=>{if(this.requestErrored_(r,n,t))return;const a=this.mainPlaylistLoader_.sidxMapping_,{requestType:o}=n;let l;try{l=ys(ei(n.response).subarray(8))}catch(e){return e.metadata=Vu({requestType:o,request:n,parseFailure:!0}),void this.requestErrored_(e,n,t)}return a[s]={sidxInfo:e.sidx,sidx:l},Mi(e,l,e.sidx.resolvedUri),i(!0)};this.request=((e,t,i,s)=>{let r,n=[],a=!1;const o=function(e,t,s,r){return t.abort(),a=!0,i(e,t,s,r)},l=function(e,t){if(a)return;if(e)return e.metadata=Vu({requestType:s,request:t,error:e}),o(e,t,"",n);const i=t.responseText.substring(n&&n.byteLength||0,t.responseText.length);if(n=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e}),t.length<=1)return ei(t[0]);var s=t.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0),r=new Uint8Array(s),n=0;return t.forEach(function(e){e=ei(e),r.set(e,n),n+=e.byteLength}),r}(n,ai(i,!0)),r=r||vs(n),n.length<10||r&&n.length<r+2)return _c(t,()=>o(e,t,"",n));const l=Bs(n);return"ts"===l&&n.length<188||!l&&n.length<376?_c(t,()=>o(e,t,"",n)):o(null,t,l,n)},u={uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function({total:t,loaded:i}){return ac(e,null,{statusCode:e.status},l)})}},c=t(u,function(e,t){return ac(c,e,t,l)});return c})(r,this.vhs_.xhr,(t,i,s,a)=>{if(t)return n(t,i);if(!s||"mp4"!==s){const t=s||"unknown";return n({status:i.status,message:`Unsupported ${t} container type for sidx segment at URL: ${r}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},i)}const{offset:o,length:l}=e.sidx.byterange;if(a.length>=l+o)return n(t,{response:a.subarray(o,o+l),status:i.status,uri:i.uri});this.request=this.vhs_.xhr({uri:r,responseType:"arraybuffer",requestType:"dash-sidx",headers:lc({byterange:e.sidx.byterange})},n)},"dash-sidx")}dispose(){this.isPaused_=!0,this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},be.clearTimeout(this.minimumUpdatePeriodTimeout_),be.clearTimeout(this.mediaRequest_),be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,i=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,be.clearTimeout(this.mediaRequest_),this.mediaRequest_=null,this.refreshMedia_(t.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.isPaused_=!0,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(be.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){this.isPaused_=!1,be.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const e=t?t.targetDuration/2*1e3:5e3;return void(this.mediaUpdateTimeout=be.setTimeout(()=>this.load(),e))}this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){if(this.started=!0,!this.isMain_)return be.clearTimeout(this.mediaRequest_),void(this.mediaRequest_=be.setTimeout(()=>this.haveMain_(),0));this.requestMain_((e,t)=>{this.haveMain_(),this.hasPendingRequest()||this.media_||this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){const t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(i,s)=>{if(i){const{requestType:e}=s;i.metadata=Vu({requestType:e,request:s,error:i})}if(this.requestErrored_(i,s))return void("HAVE_NOTHING"===this.state&&(this.started=!1));this.trigger({type:"manifestrequestcomplete",metadata:t});const r=s.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=s.responseText,s.responseHeaders&&s.responseHeaders.date?this.mainLoaded_=Date.parse(s.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=au(this.mainPlaylistLoader_.srcUrl,s),r?(this.handleMain_(),void this.syncClientServerClock_(()=>e(s,r))):e(s,r)})}syncClientServerClock_(e){const t=(e=>(e=>{const t=ts(e,"UTCTiming")[0];if(!t)return null;const i=ns(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return i})(ds(e)))(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:nu(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(i,s)=>{if(!this.request)return;if(i){const{requestType:t}=s;return this.error.metadata=Vu({requestType:t,request:s,error:i}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}let r;r="HEAD"===t.method?s.responseHeaders&&s.responseHeaders.date?Date.parse(s.responseHeaders.date):this.mainLoaded_:Date.parse(s.responseText),this.mainPlaylistLoader_.clientOffset_=r-Date.now(),e()}))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){be.clearTimeout(this.mediaRequest_),this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main,t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};let i;this.trigger({type:"manifestparsestart",metadata:t});try{i=(({mainXml:e,srcUrl:t,clientOffset:i,sidxMapping:s,previousManifest:r})=>{const n=((e,t={})=>{const i=((e,t={})=>{const{manifestUri:i="",NOW:s=Date.now(),clientOffset:r=0,eventHandler:n=function(){}}=t,a=ts(e,"Period");if(!a.length)throw new Error("INVALID_NUMBER_OF_PERIOD");const o=ts(e,"Location"),l=ns(e),u=os([{baseUrl:i}],ts(e,"BaseURL")),c=ts(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=s,l.clientOffset=r,o.length&&(l.locations=o.map(is));const h=[];return a.forEach((e,t)=>{const i=ns(e),s=h[t-1];i.start=(({attributes:e,priorPeriodAttributes:t,mpdType:i})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==i?null:0)({attributes:i,priorPeriodAttributes:s?s.attributes:null,mpdType:l.type}),h.push({node:e,attributes:i})}),{locations:l.locations,contentSteeringInfo:hs(c,n),representationInfo:Ei(h.map(cs(l,u))),eventStream:Ei(h.map(us))}})(ds(e),t),s=(e=>e.map(es))(i.representationInfo);return Gi({dashPlaylists:s,locations:i.locations,contentSteering:i.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:i.eventStream})})(e,{manifestUri:t,clientOffset:i,sidxMapping:s,previousManifest:r});return $u(n,t,Tc),n})({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e})}catch(e){this.error=e,this.error.metadata={errorType:eu.Error.StreamingDashManifestParserError,error:e},this.trigger("error")}e&&(i=((e,t,i)=>{let s=!0,r=lu(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let e=0;e<t.playlists.length;e++){const n=t.playlists[e];if(n.sidx){const e=Fi(n.sidx);i&&i[e]&&i[e].sidx&&Mi(n,i[e].sidx,n.sidx.resolvedUri)}const a=ic(r,n,bc);a&&(r=a,s=!1)}return qu(t,(e,t,i,n)=>{if(e.playlists&&e.playlists.length){const a=e.playlists[0].id,o=ic(r,e.playlists[0],bc);o&&(r=o,n in r.mediaGroups[t][i]||(r.mediaGroups[t][i][n]=e),r.mediaGroups[t][i][n].playlists[0]=r.playlists[a],s=!1)}}),((e,t)=>{qu(e,(i,s,r,n)=>{t.mediaGroups[s][r]&&n in t.mediaGroups[s][r]||delete e.mediaGroups[s][r][n]})})(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(s=!1),s?null:r})(e,i,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=i||e;const s=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(s&&s!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=s),(!e||i&&i.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(i),i){const{duration:e,endList:s}=i,r=[];i.playlists.forEach(e=>{r.push({id:e.id,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS})});const n={duration:e,isLive:!s,renditions:r};t.parsedManifest=n,this.trigger({type:"manifestparsecomplete",metadata:t})}return Boolean(i)}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(be.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`):this.createMUPTimeout_(t)}createMUPTimeout_(e){const t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=be.setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=((e,t)=>{let i=wc(e.playlists,t);return qu(e,(e,s,r,n)=>{if(e.playlists&&e.playlists.length){const s=e.playlists;i=lu(i,wc(s,t))}}),i})(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,e=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const t=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==t[e];if(i?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const e=()=>{this.media().endList||(this.mediaUpdateTimeout=be.setTimeout(()=>{this.trigger("mediaupdatetimeout"),e()},sc(this.media(),Boolean(i))))};e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const e=this.mainPlaylistLoader_.main.eventStream.map(e=>({cueTime:e.start,frames:[{data:e.messageData}]}));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const s=e.contentProtection[i].attributes["cenc:default_KID"];s&&t.add(s.replace(/-/g,"").toLowerCase())}return t}}}var Ec={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const kc=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},xc=function(e){return function(){const t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(t){const i=new BlobBuilder;return i.append(e),URL.createObjectURL(i.getBlob())}}(e),i=kc(new Worker(t));i.objURL=t;const s=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(t),s.call(this)},i}},Ic=function(e){return`var browserWorkerPolyFill = ${kc.toString()};\nbrowserWorkerPolyFill(self);\n`+e},Ac=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Dc=Ic(Ac(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=function(){this.init=function(){var e={};this.on=function(t,i){e[t]||(e[t]=[]),e[t]=e[t].concat(i)},this.off=function(t,i){var s;return!!e[t]&&(s=e[t].indexOf(i),e[t]=e[t].slice(),e[t].splice(s,1),s>-1)},this.trigger=function(t){var i,s,r,n;if(i=e[t])if(2===arguments.length)for(r=i.length,s=0;s<r;++s)i[s].call(this,arguments[1]);else{for(n=[],s=arguments.length,s=1;s<arguments.length;++s)n.push(arguments[s]);for(r=i.length,s=0;s<r;++s)i[s].apply(this,n)}},this.dispose=function(){e={}}}};t.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var i,s,r,n,a,o,l,u,c,h,d,p,m,g,f,y,_,v,b,T,S,w,C,E,k,x,I,A,D,P,M,L,O,N,R,U,F,B,q,j,$=t,H=Math.pow(2,32),V={getUint64:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength);return i.getBigUint64?(t=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:i.getUint32(0)*H+i.getUint32(4)},MAX_UINT32:H},z=V.MAX_UINT32;!function(){var e;if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in w)w.hasOwnProperty(e)&&(w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),k=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),E=new Uint8Array([0,0,0,1]),x=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),I=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:x,audio:I},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0]),L=new Uint8Array([0,0,0,0,0,0,0,0]),O=L,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=L,D=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),i=function(e){var t,i,s=[],r=0;for(t=1;t<arguments.length;t++)s.push(arguments[t]);for(t=s.length;t--;)r+=s[t].byteLength;for(i=new Uint8Array(r+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(e,4),t=0,r=8;t<s.length;t++)i.set(s[t],r),r+=s[t].byteLength;return i},s=function(){return i(w.dinf,i(w.dref,M))},r=function(e){return i(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},f=function(e){return i(w.hdlr,A[e])},g=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),i(w.mdhd,t)},m=function(e){return i(w.mdia,g(e),f(e.type),o(e))},a=function(e){return i(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},o=function(e){return i(w.minf,"video"===e.type?i(w.vmhd,D):i(w.smhd,P),s(),_(e))},l=function(e,t){for(var s=[],r=t.length;r--;)s[r]=b(t[r]);return i.apply(null,[w.moof,a(e)].concat(s))},u=function(e){for(var t=e.length,s=[];t--;)s[t]=d(e[t]);return i.apply(null,[w.moov,h(4294967295)].concat(s).concat(c(e)))},c=function(e){for(var t=e.length,s=[];t--;)s[t]=T(e[t]);return i.apply(null,[w.mvex].concat(s))},h=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return i(w.mvhd,t)},y=function(e){var t,s,r=e.samples||[],n=new Uint8Array(4+r.length);for(s=0;s<r.length;s++)t=r[s].flags,n[s+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return i(w.sdtp,n)},_=function(e){return i(w.stbl,v(e),i(w.stts,R),i(w.stsc,O),i(w.stsz,N),i(w.stco,L))},v=function(e){return i(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?U(e):F(e))},U=function(e){var t,s,r=e.sps||[],n=e.pps||[],a=[],o=[];for(t=0;t<r.length;t++)a.push((65280&r[t].byteLength)>>>8),a.push(255&r[t].byteLength),a=a.concat(Array.prototype.slice.call(r[t]));for(t=0;t<n.length;t++)o.push((65280&n[t].byteLength)>>>8),o.push(255&n[t].byteLength),o=o.concat(Array.prototype.slice.call(n[t]));if(s=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i(w.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],a,[n.length],o))),i(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];s.push(i(w.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return i.apply(null,s)},F=function(e){return i(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},p=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return i(w.tkhd,t)},b=function(e){var t,s,r,n,a,o;return t=i(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/z),o=Math.floor(e.baseMediaDecodeTime%z),s=i(w.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),"audio"===e.type?(r=S(e,92),i(w.traf,t,s,r)):(n=y(e),r=S(e,n.length+92),i(w.traf,t,s,r,n))},d=function(e){return e.duration=e.duration||4294967295,i(w.trak,p(e),m(e))},T=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),i(w.trex,t)},j=function(e,t){var i=0,s=0,r=0,n=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(s=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(n=8)),[0,0,i|s|r|n,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},q=function(e,t){var s,r,n,a,o,l;for(t+=20+16*(a=e.samples||[]).length,n=j(a,t),(r=new Uint8Array(n.length+16*a.length)).set(n),s=n.length,l=0;l<a.length;l++)o=a[l],r[s++]=(4278190080&o.duration)>>>24,r[s++]=(16711680&o.duration)>>>16,r[s++]=(65280&o.duration)>>>8,r[s++]=255&o.duration,r[s++]=(4278190080&o.size)>>>24,r[s++]=(16711680&o.size)>>>16,r[s++]=(65280&o.size)>>>8,r[s++]=255&o.size,r[s++]=o.flags.isLeading<<2|o.flags.dependsOn,r[s++]=o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,r[s++]=61440&o.flags.degradationPriority,r[s++]=15&o.flags.degradationPriority,r[s++]=(4278190080&o.compositionTimeOffset)>>>24,r[s++]=(16711680&o.compositionTimeOffset)>>>16,r[s++]=(65280&o.compositionTimeOffset)>>>8,r[s++]=255&o.compositionTimeOffset;return i(w.trun,r)},B=function(e,t){var s,r,n,a,o,l;for(t+=20+8*(a=e.samples||[]).length,n=j(a,t),(s=new Uint8Array(n.length+8*a.length)).set(n),r=n.length,l=0;l<a.length;l++)o=a[l],s[r++]=(4278190080&o.duration)>>>24,s[r++]=(16711680&o.duration)>>>16,s[r++]=(65280&o.duration)>>>8,s[r++]=255&o.duration,s[r++]=(4278190080&o.size)>>>24,s[r++]=(16711680&o.size)>>>16,s[r++]=(65280&o.size)>>>8,s[r++]=255&o.size;return i(w.trun,s)},S=function(e,t){return"audio"===e.type?B(e,t):q(e,t)};var W,G,X,Z,Q,K,Y,J,ee={ftyp:n=function(){return i(w.ftyp,C,E,C,k)},mdat:function(e){return i(w.mdat,e)},moof:l,moov:u,initSegment:function(e){var t,i=n(),s=u(e);return(t=new Uint8Array(i.byteLength+s.byteLength)).set(i),t.set(s,i.byteLength),t}},te=function(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},ie={groupNalsIntoFrames:function(e){var t,i,s=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,s.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(i=e[t]).nalUnitType?(s.length&&(s.duration=i.dts-s.dts,r.byteLength+=s.byteLength,r.nalCount+=s.length,r.duration+=s.duration,r.push(s)),(s=[i]).byteLength=i.data.byteLength,s.pts=i.pts,s.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(s.keyFrame=!0),s.duration=i.dts-s.dts,s.byteLength+=i.data.byteLength,s.push(i));return r.length&&(!s.duration||s.duration<=0)&&(s.duration=r[r.length-1].duration),r.byteLength+=s.byteLength,r.nalCount+=s.length,r.duration+=s.duration,r.push(s),r},groupFramesIntoGops:function(e){var t,i,s=[],r=[];for(s.byteLength=0,s.nalCount=0,s.duration=0,s.pts=e[0].pts,s.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(i=e[t]).keyFrame?(s.length&&(r.push(s),r.byteLength+=s.byteLength,r.nalCount+=s.nalCount,r.duration+=s.duration),(s=[i]).nalCount=i.length,s.byteLength=i.byteLength,s.pts=i.pts,s.dts=i.dts,s.duration=i.duration):(s.duration+=i.duration,s.nalCount+=i.length,s.byteLength+=i.byteLength,s.push(i));return r.length&&s.duration<=0&&(s.duration=r[r.length-1].duration),r.byteLength+=s.byteLength,r.nalCount+=s.nalCount,r.duration+=s.duration,r.push(s),r},extendFirstKeyFrame:function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:function(e,t){var i,s,r,n,a,o=t||0,l=[];for(i=0;i<e.length;i++)for(n=e[i],s=0;s<n.length;s++)a=n[s],o+=(r=te(a,o)).size,l.push(r);return l},concatenateNalData:function(e){var t,i,s,r,n,a,o=0,l=e.byteLength,u=e.nalCount,c=new Uint8Array(l+4*u),h=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],i=0;i<r.length;i++)for(n=r[i],s=0;s<n.length;s++)a=n[s],h.setUint32(o,a.data.byteLength),o+=4,c.set(a.data,o),o+=a.data.byteLength;return c},generateSampleTableForFrame:function(e,t){var i,s=[];return i=te(e,t||0),s.push(i),s},concatenateNalDataForFrame:function(e){var t,i,s=0,r=e.byteLength,n=e.length,a=new Uint8Array(r+4*n),o=new DataView(a.buffer);for(t=0;t<e.length;t++)i=e[t],o.setUint32(s,i.data.byteLength),s+=4,a.set(i.data,s),s+=i.data.byteLength;return a}},se=[33,16,5,32,164,27],re=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ne=function(e){for(var t=[];e--;)t.push(0);return t},ae=9e4;K=function(e,t){return G(Q(e,t))},Y=function(e,t){return X(Z(e),t)},J=function(e,t,i){return Z(i?e:e-t)};var oe={ONE_SECOND_IN_TS:ae,secondsToVideoTs:G=function(e){return e*ae},secondsToAudioTs:X=function(e,t){return e*t},videoTsToSeconds:Z=function(e){return e/ae},audioTsToSeconds:Q=function(e,t){return e/t},audioTsToVideoTs:K,videoTsToAudioTs:Y,metadataTsToSeconds:J},le=oe,ue={prefixWithSilence:function(e,t,i,s){var r,n,a,o,l=0,u=0,c=0,h=0;if(t.length&&(r=le.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(le.ONE_SECOND_IN_TS/(e.samplerate/1024)),i&&s&&(u=r-Math.max(i,s),h=(c=Math.floor(u/l))*l),!(c<1||h>le.ONE_SECOND_IN_TS/2))){for((n=function(){if(!W){var e={96e3:[se,[227,64],ne(154),[56]],88200:[se,[231],ne(170),[56]],64e3:[se,[248,192],ne(240),[56]],48e3:[se,[255,192],ne(268),[55,148,128],ne(54),[112]],44100:[se,[255,192],ne(268),[55,163,128],ne(84),[112]],32e3:[se,[255,192],ne(268),[55,234],ne(226),[112]],24e3:[se,[255,192],ne(268),[55,255,128],ne(268),[111,112],ne(126),[224]],16e3:[se,[255,192],ne(268),[55,255,128],ne(268),[111,255],ne(269),[223,108],ne(195),[1,192]],12e3:[re,ne(268),[3,127,248],ne(268),[6,255,240],ne(268),[13,255,224],ne(268),[27,253,128],ne(259),[56]],11025:[re,ne(268),[3,127,248],ne(268),[6,255,240],ne(268),[13,255,224],ne(268),[27,255,192],ne(268),[55,175,128],ne(108),[112]],8e3:[re,ne(268),[3,121,16],ne(47),[7]]};W=function(e){return Object.keys(e).reduce(function(t,i){return t[i]=new Uint8Array(e[i].reduce(function(e,t){return e.concat(t)},[])),t},{})}(e)}return W}()[e.samplerate])||(n=t[0].data),a=0;a<c;a++)o=t[0],t.splice(0,0,{data:n,dts:o.dts-l,pts:o.pts-l});return e.baseMediaDecodeTime-=Math.floor(le.videoTsToAudioTs(h,e.samplerate)),h}},trimAdtsFramesByEarliestDts:function(e,t,i){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},generateSampleTable:function(e){var t,i,s=[];for(t=0;t<e.length;t++)i=e[t],s.push({size:i.data.byteLength,duration:1024});return s},concatenateFrameData:function(e){var t,i,s=0,r=new Uint8Array(function(e){var t,i=0;for(t=0;t<e.length;t++)i+=e[t].data.byteLength;return i}(e));for(t=0;t<e.length;t++)i=e[t],r.set(i.data,s),s+=i.data.byteLength;return r}},ce=oe.ONE_SECOND_IN_TS,he={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var i,s=e.minSegmentDts;return t||(s-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=s,i=Math.max(0,i),"audio"===e.type&&(i*=e.samplerate/ce,i=Math.floor(i)),i},collectDtsInfo:function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}},de={parseSei:function(e){for(var t=0,i={payloadType:-1,payloadSize:0},s=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)s+=255,t++;for(s+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===s){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=s,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}i.payload=void 0}t+=r,s=0,r=0}return i},parseUserData:function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var i,s,r,n,a=[];if(!(64&t[0]))return a;for(s=31&t[0],i=0;i<s;i++)n={type:3&t[2+(r=3*i)],pts:e},4&t[r+2]&&(n.ccData=t[r+3]<<8|t[r+4],a.push(n));return a},discardEmulationPreventionBytes:function(e){for(var t,i,s=e.byteLength,r=[],n=1;n<s-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return e;t=s-r.length,i=new Uint8Array(t);var a=0;for(n=0;n<t;a++,n++)a===r[0]&&(a++,r.shift()),i[n]=e[a];return i},USER_DATA_REGISTERED_ITU_T_T35:4},pe=$,me=de,ge=function(e){e=e||{},ge.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Ee(0,0),new Ee(0,1),new Ee(1,0),new Ee(1,1)],this.parse708captions_&&(this.cc708Stream_=new be({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};ge.prototype=new pe,ge.prototype.push=function(e){var t,i,s;if("sei_rbsp"===e.nalUnitType&&(t=me.parseSei(e.escapedRBSP)).payload&&t.payloadType===me.USER_DATA_REGISTERED_ITU_T_T35&&(i=me.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));s=me.parseCaptionPackets(e.pts,i),this.captionPackets_=this.captionPackets_.concat(s),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},ge.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},ge.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},ge.prototype.flush=function(){return this.flushStream("flush")},ge.prototype.partialFlush=function(){return this.flushStream("partialFlush")},ge.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},ge.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},ge.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},ge.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},ge.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},ge.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var fe={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},ye=function(e){return 32<=e&&e<=127||160<=e&&e<=255},_e=function(e){this.windowNum=e,this.reset()};_e.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},_e.prototype.getText=function(){return this.rows.join("\n")},_e.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},_e.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},_e.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},_e.prototype.addText=function(e){this.rows[this.rowIdx]+=e},_e.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var ve=function(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new _e(-1),this.windows=[],this.stream=i,"string"==typeof t&&this.createTextDecoder(t)};ve.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new _e(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},ve.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},ve.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var be=function(e){e=e||{},be.prototype.init.call(this);var t,i=this,s=e.captionServices||{},r={};Object.keys(s).forEach(e=>{t=s[e],/^SERVICE/.test(e)&&(r[e]=t.encoding)}),this.serviceEncodings=r,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};be.prototype=new pe,be.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},be.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,s=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(s)},be.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,s=null,r=0,n=t[r++];for(e.seq=n>>6,e.sizeCode=63&n;r<t.length;r++)s=31&(n=t[r++]),7==(i=n>>5)&&s>0&&(i=n=t[r++]),this.pushServiceBlock(i,r,s),s>0&&(r+=s-1)},be.prototype.pushServiceBlock=function(e,t,i){var s,r=t,n=this.current708Packet.data,a=this.services[e];for(a||(a=this.initService(e,r));r<t+i&&r<n.length;r++)s=n[r],ye(s)?r=this.handleText(r,a):24===s?r=this.multiByteCharacter(r,a):16===s?r=this.extendedCommands(r,a):128<=s&&s<=135?r=this.setCurrentWindow(r,a):152<=s&&s<=159?r=this.defineWindow(r,a):136===s?r=this.clearWindows(r,a):140===s?r=this.deleteWindows(r,a):137===s?r=this.displayWindows(r,a):138===s?r=this.hideWindows(r,a):139===s?r=this.toggleWindows(r,a):151===s?r=this.setWindowAttributes(r,a):144===s?r=this.setPenAttributes(r,a):145===s?r=this.setPenColor(r,a):146===s?r=this.setPenLocation(r,a):143===s?a=this.reset(r,a):8===s?a.currentWindow.backspace():12===s?a.currentWindow.clearText():13===s?a.currentWindow.pendingNewLine=!0:14===s?a.currentWindow.clearText():141===s&&r++},be.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data[++e];return ye(i)&&(e=this.handleText(e,t,{isExtended:!0})),e},be.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},be.prototype.initService=function(e,t){var i,s,r=this;return(i="SERVICE"+e)in this.serviceEncodings&&(s=this.serviceEncodings[i]),this.services[e]=new ve(e,s,r),this.services[e].init(this.getPts(t),function(t){r.flushDisplayed(t,r.services[e])}),this.services[e]},be.prototype.handleText=function(e,t,i){var s,r,n=i&&i.isExtended,a=i&&i.isMultiByte,o=this.current708Packet.data,l=n?4096:0,u=o[e],c=o[e+1],h=t.currentWindow;if(a?(r=[u,c],e++):r=[u],t.textDecoder_&&!n)s=t.textDecoder_.decode(new Uint8Array(r));else if(a){const e=function(e){return e.map(e=>("0"+(255&e).toString(16)).slice(-2)).join("")}(r);s=String.fromCharCode(parseInt(e,16))}else s=function(e){var t=fe[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)}(l|u);return h.pendingNewLine&&!h.isEmpty()&&h.newLine(this.getPts(e)),h.pendingNewLine=!1,h.addText(s),e},be.prototype.multiByteCharacter=function(e,t){var i=this.current708Packet.data,s=i[e+1],r=i[e+2];return ye(s)&&ye(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},be.prototype.setCurrentWindow=function(e,t){var i=7&this.current708Packet.data[e];return t.setCurrentWindow(i),e},be.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,s=i[e],r=7&s;t.setCurrentWindow(r);var n=t.currentWindow;return s=i[++e],n.visible=(32&s)>>5,n.rowLock=(16&s)>>4,n.columnLock=(8&s)>>3,n.priority=7&s,s=i[++e],n.relativePositioning=(128&s)>>7,n.anchorVertical=127&s,s=i[++e],n.anchorHorizontal=s,s=i[++e],n.anchorPoint=(240&s)>>4,n.rowCount=15&s,s=i[++e],n.columnCount=63&s,s=i[++e],n.windowStyle=(56&s)>>3,n.penStyle=7&s,n.virtualRowCount=n.rowCount+1,e},be.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.winAttr;return s=i[++e],r.fillOpacity=(192&s)>>6,r.fillRed=(48&s)>>4,r.fillGreen=(12&s)>>2,r.fillBlue=3&s,s=i[++e],r.borderType=(192&s)>>6,r.borderRed=(48&s)>>4,r.borderGreen=(12&s)>>2,r.borderBlue=3&s,s=i[++e],r.borderType+=(128&s)>>5,r.wordWrap=(64&s)>>6,r.printDirection=(48&s)>>4,r.scrollDirection=(12&s)>>2,r.justify=3&s,s=i[++e],r.effectSpeed=(240&s)>>4,r.effectDirection=(12&s)>>2,r.displayEffect=3&s,e},be.prototype.flushDisplayed=function(e,t){for(var i=[],s=0;s<8;s++)t.windows[s].visible&&!t.windows[s].isEmpty()&&i.push(t.windows[s].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},be.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},be.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=1);return e},be.prototype.hideWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=0);return e},be.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible^=1);return e},be.prototype.clearWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].clearText();return e},be.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].reset();return e},be.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.penAttr;return s=i[++e],r.textTag=(240&s)>>4,r.offset=(12&s)>>2,r.penSize=3&s,s=i[++e],r.italics=(128&s)>>7,r.underline=(64&s)>>6,r.edgeType=(56&s)>>3,r.fontStyle=7&s,e},be.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.penColor;return s=i[++e],r.fgOpacity=(192&s)>>6,r.fgRed=(48&s)>>4,r.fgGreen=(12&s)>>2,r.fgBlue=3&s,s=i[++e],r.bgOpacity=(192&s)>>6,r.bgRed=(48&s)>>4,r.bgGreen=(12&s)>>2,r.bgBlue=3&s,s=i[++e],r.edgeRed=(48&s)>>4,r.edgeGreen=(12&s)>>2,r.edgeBlue=3&s,e},be.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,s=i[++e],r.row=15&s,s=i[++e],r.column=63&s,e},be.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var Te={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Se=function(e){return null===e?"":(e=Te[e]||e,String.fromCharCode(e))},we=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ce=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},Ee=function(e,t){Ee.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,s,r,n;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),s=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Ce();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ce();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ce()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(s,r))n=Se((s=(3&s)<<8)|r),this[this.mode_](e.pts,n),this.column_++;else if(this.isExtCharacter(s,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),n=Se((s=(3&s)<<8)|r),this[this.mode_](e.pts,n),this.column_++;else if(this.isMidRowCode(s,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~r||this.addFormatting(e.pts,["i"]),1&~r||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(s,r)){const e=3&r;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(s,r)){var a=we.indexOf(7968&t);if("rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&a>=0&&a<=14&&(this.clearFormatting(e.pts),this.row_=a),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),!(16&~t)){const e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(r)&&(14&~r||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(s)&&(0===r&&(r=null),n=Se(s),n+=Se(r),this[this.mode_](e.pts,n),this.column_+=n.length)}else this.lastControlCode_=null}};Ee.prototype=new pe,Ee.prototype.flushDisplayed=function(e){const t=e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},i=[];this.displayed_.forEach((e,s)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(e){t(s)}e.text.length&&i.push({text:e.text,line:s+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(s)}),i.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:i,stream:this.name_})},Ee.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ce(),this.nonDisplayed_=Ce(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Ee.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ee.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Ee.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Ee.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Ee.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Ee.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Ee.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Ee.prototype.isNormalChar=function(e){return e>=32&&e<=127},Ee.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ce(),this.displayed_=Ce()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Ee.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)},Ee.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},Ee.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_].text;i+=t,this.nonDisplayed_[this.row_].text=i},Ee.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i},Ee.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},Ee.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i};var ke={CaptionStream:ge,Cea608Stream:Ee,Cea708Stream:be},xe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ie=$,Ae="shared",De=function(e,t){var i=1;for(e>t&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},Pe=function(e){var t,i;Pe.prototype.init.call(this),this.type_=e||Ae,this.push=function(e){"metadata"!==e.type?this.type_!==Ae&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=De(e.dts,i),e.pts=De(e.pts,i),t=e.dts,this.trigger("data",e)):this.trigger("data",e)},this.flush=function(){i=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Pe.prototype=new Ie;var Me,Le={TimestampRolloverStream:Pe,handleRollover:De},Oe=(e,t,i)=>{if(!e)return-1;for(var s=i;s<e.length;s++)if(e[s]===t)return s;return-1},Ne=function(e,t,i){var s,r="";for(s=t;s<i;s++)r+="%"+("00"+e[s].toString(16)).slice(-2);return r},Re=function(e,t,i){return decodeURIComponent(Ne(e,t,i))},Ue=function(e,t,i){return unescape(Ne(e,t,i))},Fe=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Be={APIC:function(e){var t,i,s=1;3===e.data[0]&&((t=Oe(e.data,0,s))<0||(e.mimeType=Ue(e.data,s,t),s=t+1,e.pictureType=e.data[s],s++,(i=Oe(e.data,0,s))<0||(e.description=Re(e.data,s,i),s=i+1,"--\x3e"===e.mimeType?e.url=Ue(e.data,s,e.data.length):e.pictureData=e.data.subarray(s,e.data.length))))},"T*":function(e){3===e.data[0]&&(e.value=Re(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;3===e.data[0]&&-1!==(t=Oe(e.data,0,1))&&(e.description=Re(e.data,1,t),e.value=Re(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=Ue(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;3===e.data[0]&&-1!==(t=Oe(e.data,0,1))&&(e.description=Re(e.data,1,t),e.url=Ue(e.data,t+1,e.data.length).replace(/\0.*$/,""))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=Ue(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},qe={parseId3Frames:function(e){var t,i=10,s=0,r=[];if(!(e.length<10||e[0]!=="I".charCodeAt(0)||e[1]!=="D".charCodeAt(0)||e[2]!=="3".charCodeAt(0))){s=Fe(e.subarray(6,10)),s+=10,64&e[5]&&(i+=4,i+=Fe(e.subarray(10,14)),s-=Fe(e.subarray(16,20)));do{if((t=Fe(e.subarray(i+4,i+8)))<1)break;var n={id:String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]),data:e.subarray(i+10,i+t+10)};n.key=n.id,Be[n.id]?Be[n.id](n):"T"===n.id[0]?Be["T*"](n):"W"===n.id[0]&&Be["W*"](n),r.push(n),i+=10,i+=t}while(i<s);return r}},parseSyncSafeInteger:Fe,frameParsers:Be},je=xe,$e=qe;(Me=function(e){var t,i={descriptor:e&&e.descriptor},s=0,r=[],n=0;if(Me.prototype.init.call(this),this.dispatchType=je.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(t=0;t<i.descriptor.length;t++)this.dispatchType+=("00"+i.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,i,a,o,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(n=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),n+=e.data.byteLength,1===r.length&&(s=$e.parseSyncSafeInteger(e.data.subarray(6,10)),s+=10),!(n<s)){for(t={data:new Uint8Array(s),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<s;)t.data.set(r[0].data.subarray(0,s-l),l),l+=r[0].data.byteLength,n-=r[0].data.byteLength,r.shift();i=10,64&t.data[5]&&(i+=4,i+=$e.parseSyncSafeInteger(t.data.subarray(10,14)),s-=$e.parseSyncSafeInteger(t.data.subarray(16,20)));do{if((a=$e.parseSyncSafeInteger(t.data.subarray(i+4,i+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((o={id:String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),data:t.data.subarray(i+10,i+a+10)}).key=o.id,$e.frameParsers[o.id]?$e.frameParsers[o.id](o):"T"===o.id[0]?$e.frameParsers["T*"](o):"W"===o.id[0]&&$e.frameParsers["W*"](o),"com.apple.streaming.transportStreamTimestamp"===o.owner){var u=o.data,c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;c*=4,c+=3&u[7],o.timeStamp=c,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),i+=10,i+=a}while(i<s);this.trigger("data",t)}}}).prototype=new $;var He,Ve,ze,We=Me,Ge=$,Xe=ke,Ze=xe,Qe=Le.TimestampRolloverStream,Ke=188;(He=function(){var e=new Uint8Array(Ke),t=0;He.prototype.init.call(this),this.push=function(i){var s,r=0,n=Ke;for(t?((s=new Uint8Array(i.byteLength+t)).set(e.subarray(0,t)),s.set(i,t),t=0):s=i;n<s.byteLength;)71!==s[r]||71!==s[n]?(r++,n++):(this.trigger("data",s.subarray(r,n)),r+=Ke,n+=Ke);r<s.byteLength&&(e.set(s.subarray(r),0),t=s.byteLength-r)},this.flush=function(){t===Ke&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new Ge,Ve=function(){var e,t,i,s;Ve.prototype.init.call(this),s=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,s){var r=0;s.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===s.type?t(e.subarray(r),s):i(e.subarray(r),s)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],s.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=s.pmtPid},i=function(e,t){var i,r;if(1&e[5]){for(s.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<i;){var n=e[r],a=(31&e[r+1])<<8|e[r+2];n===Ze.H264_STREAM_TYPE&&null===s.programMapTable.video?s.programMapTable.video=a:n===Ze.ADTS_STREAM_TYPE&&null===s.programMapTable.audio?s.programMapTable.audio=a:n===Ze.METADATA_STREAM_TYPE&&(s.programMapTable["timed-metadata"][a]=n),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=s.programMapTable}},this.push=function(t){var i={},s=4;if(i.payloadUnitStartIndicator=!!(64&t[1]),i.pid=31&t[1],i.pid<<=8,i.pid|=t[2],(48&t[3])>>>4>1&&(s+=t[s]+1),0===i.pid)i.type="pat",e(t.subarray(s),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(s),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,s,i]):this.processPes_(t,s,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=Ze.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=Ze.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},Ve.prototype=new Ge,Ve.STREAM_TYPES={h264:27,adts:15},ze=function(){var e,t=this,i=!1,s={data:[],size:0},r={data:[],size:0},n={data:[],size:0},a=function(e,i,s){var r,n=new Uint8Array(e.size),a={type:i},o=0,l=0,u=!1;if(e.data.length&&!(e.size<9)){for(a.trackId=e.data[0].pid,o=0;o<e.data.length;o++)r=e.data[o],n.set(r.data,l),l+=r.data.byteLength;(function(e,t){var i;const s=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===s&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=!!(4&e[6]),192&(i=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))})(n,a),u="video"===i||a.packetLength<=e.size,(s||u)&&(e.size=0,e.data.length=0),u&&t.trigger("data",a)}};ze.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case Ze.H264_STREAM_TYPE:e=s,t="video";break;case Ze.ADTS_STREAM_TYPE:e=r,t="audio";break;case Ze.METADATA_STREAM_TYPE:e=n,t="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&a(e,t,!0),e.data.push(o),e.size+=o.data.byteLength},pmt:function(){var s={type:"metadata",tracks:[]};null!==(e=o.programMapTable).video&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),i=!0,t.trigger("data",s)}})[o.type]()},this.reset=function(){s.size=0,s.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){a(s,"video"),a(r,"audio"),a(n,"timed-metadata")},this.flush=function(){if(!i&&e){var s={type:"metadata",tracks:[]};null!==e.video&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",s)}i=!1,this.flushStreams_(),this.trigger("done")}},ze.prototype=new Ge;var Ye={PAT_PID:0,MP2T_PACKET_LENGTH:Ke,TransportPacketStream:He,TransportParseStream:Ve,ElementaryStream:ze,TimestampRolloverStream:Qe,CaptionStream:Xe.CaptionStream,Cea608Stream:Xe.Cea608Stream,Cea708Stream:Xe.Cea708Stream,MetadataStream:We};for(var Je in Ze)Ze.hasOwnProperty(Je)&&(Ye[Je]=Ze[Je]);var et,tt=Ye,it=$,st=oe.ONE_SECOND_IN_TS,rt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(et=function(e){var t,i=0;et.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts skiping bytes ${e} to ${t} in frame ${i} outside syncword`})},this.push=function(s){var r,n,a,o,l,u=0;if(e||(i=0),"audio"===s.type){var c;for(t&&t.length?(a=t,(t=new Uint8Array(a.byteLength+s.data.byteLength)).set(a),t.set(s.data,a.byteLength)):t=s.data;u+7<t.length;)if(255===t[u]&&240==(246&t[u+1])){if("number"==typeof c&&(this.skipWarn_(c,u),c=null),n=2*(1&~t[u+1]),r=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,l=(o=1024*(1+(3&t[u+6])))*st/rt[(60&t[u+2])>>>2],t.byteLength-u<r)break;this.trigger("data",{pts:s.pts+i*l,dts:s.dts+i*l,sampleCount:o,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:rt[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+n,u+r)}),i++,u+=r}else"number"!=typeof c&&(c=u),u++;"number"==typeof c&&(this.skipWarn_(c,u),c=null),t=t.subarray(u)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new it;var nt,at,ot,lt=et,ut=$,ct=function(e){var t=e.byteLength,i=0,s=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+s},this.loadWord=function(){var r=e.byteLength-t,n=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw new Error("no bytes available");n.set(e.subarray(r,r+a)),i=new DataView(n.buffer).getUint32(0),s=8*a,t-=a},this.skipBits=function(e){var r;s>e?(i<<=e,s-=e):(e-=s,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),i<<=e,s-=e)},this.readBits=function(e){var r=Math.min(s,e),n=i>>>32-r;return(s-=r)>0?i<<=r:t>0&&this.loadWord(),(r=e-r)>0?n<<r|this.readBits(r):n},this.skipLeadingZeros=function(){var e;for(e=0;e<s;++e)if(i&2147483648>>>e)return i<<=e,s-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(at=function(){var e,t,i=0;at.prototype.init.call(this),this.push=function(s){var r;t?((r=new Uint8Array(t.byteLength+s.data.byteLength)).set(t),r.set(s.data,t.byteLength),t=r):t=s.data;for(var n=t.byteLength;i<n-3;i++)if(1===t[i+2]){e=i+5;break}for(;e<n;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}i+3!==e-2&&this.trigger("data",t.subarray(i+3,e-2));do{e++}while(1!==t[e]&&e<n);i=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(i+3,e-2)),i=e-2,e+=3;break;default:e+=3}t=t.subarray(i),e-=i,i=0},this.reset=function(){t=null,i=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(i+3)),t=null,i=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new ut,ot={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},nt=function(){var e,t,i,s,r,n,a,o=new at;nt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,s=e.dts,o.push(e))},o.on("data",function(a){var o={trackId:t,pts:i,dts:s,data:a,nalUnitTypeCode:31&a[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(a.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(a.subarray(1)),o.config=n(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)}),o.on("done",function(){e.trigger("done")}),o.on("partialdone",function(){e.trigger("partialdone")}),o.on("reset",function(){e.trigger("reset")}),o.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},a=function(e,t){var i,s=8,r=8;for(i=0;i<e;i++)0!==r&&(r=(s+t.readExpGolomb()+256)%256),s=0===r?s:r},r=function(e){for(var t,i,s=e.byteLength,r=[],n=1;n<s-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return e;t=s-r.length,i=new Uint8Array(t);var a=0;for(n=0;n<t;a++,n++)a===r[0]&&(a++,r.shift()),i[n]=e[a];return i},n=function(e){var t,i,s,r,n,o,l,u,c,h,d,p,m=0,g=0,f=0,y=0,_=[1,1];if(i=(t=new ct(e)).readUnsignedByte(),r=t.readUnsignedByte(),s=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),ot[i]&&(3===(n=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(d=3!==n?8:12,p=0;p<d;p++)t.readBoolean()&&a(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),p=0;p<l;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),0===(h=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),f=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:_=[1,1];break;case 2:_=[12,11];break;case 3:_=[10,11];break;case 4:_=[16,11];break;case 5:_=[40,33];break;case 6:_=[24,11];break;case 7:_=[20,11];break;case 8:_=[32,11];break;case 9:_=[80,33];break;case 10:_=[18,11];break;case 11:_=[15,11];break;case 12:_=[64,33];break;case 13:_=[160,99];break;case 14:_=[4,3];break;case 15:_=[3,2];break;case 16:_=[2,1];break;case 255:_=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}_&&(_[0],_[1])}return{profileIdc:i,levelIdc:s,profileCompatibility:r,width:16*(u+1)-2*m-2*g,height:(2-h)*(c+1)*16-2*f-2*y,sarRatio:_}}},nt.prototype=new ut;var ht,dt={H264Stream:nt},pt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],mt=function(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return i=i>=0?i:0,(16&e[t+5])>>4?i+20:i+10},gt=function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=mt(e,t),gt(e,t))},ft=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},yt=function(e,t,i){return unescape(function(e,t,i){var s,r="";for(s=t;s<i;s++)r+="%"+("00"+e[s].toString(16)).slice(-2);return r}(e,t,i))},_t={isLikelyAacData:function(e){var t=gt(e,0);return e.length>=t+2&&!(255&~e[t])&&!(240&~e[t+1])&&16==(22&e[t+1])},parseId3TagSize:mt,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,s=e[t+4]<<3;return 6144&e[t+3]|s|i},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&!(240&~e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return pt[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,i,s;t=10,64&e[5]&&(t+=4,t+=ft(e.subarray(10,14)));do{if((i=ft(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){s=e.subarray(t+10,t+i+10);for(var r=0;r<s.byteLength;r++)if(0===s[r]){if("com.apple.streaming.transportStreamTimestamp"===yt(s,0,r)){var n=s.subarray(r+1),a=(1&n[3])<<30|n[4]<<22|n[5]<<14|n[6]<<6|n[7]>>>2;return(a*=4)+(3&n[7])}break}}t+=10,t+=i}while(t<e.byteLength);return null}},vt=_t;(ht=function(){var e=new Uint8Array,t=0;ht.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(i){var s,r,n,a,o=0,l=0;for(e.length?(a=e.length,(e=new Uint8Array(i.byteLength+a)).set(e.subarray(0,a)),e.set(i,a)):e=i;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255&~e[l]||240&~e[l+1])l++;else{if(e.length-l<7)break;if(l+(o=vt.parseAdtsSize(e,l))>e.length)break;n={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",n),l+=o}else{if(e.length-l<10)break;if(l+(o=vt.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}s=e.length-l,e=s>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new $;var bt,Tt,St,wt,Ct=$,Et=ee,kt=ie,xt=ue,It=he,At=tt,Dt=oe,Pt=lt,Mt=dt.H264Stream,Lt=ht,Ot=_t.isLikelyAacData,Nt=oe.ONE_SECOND_IN_TS,Rt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ut=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ft=function(e,t){t.stream=e,this.trigger("log",t)},Bt=function(e,t){for(var i=Object.keys(t),s=0;s<i.length;s++){var r=i[s];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",Ft.bind(e,r))}},qt=function(e,t){var i;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0},jt=function(e,t,i,s,r,n){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(s-t),pts:e+(r-i)},prependedContentDuration:n,baseMediaDecodeTime:e}};Tt=function(e,t){var i,s=[],r=0,n=0,a=1/0;i=(t=t||{}).firstSequenceNumber||0,Tt.prototype.init.call(this),this.push=function(t){It.collectDtsInfo(e,t),e&&Rt.forEach(function(i){e[i]=t[i]}),s.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){n=e},this.flush=function(){var o,l,u,c,h,d,p;0!==s.length?(o=xt.trimAdtsFramesByEarliestDts(s,e,r),e.baseMediaDecodeTime=It.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=xt.prefixWithSilence(e,o,n,a),e.samples=xt.generateSampleTable(o),u=Et.mdat(xt.concatenateFrameData(o)),s=[],l=Et.moof(i,[e]),c=new Uint8Array(l.byteLength+u.byteLength),i++,c.set(l),c.set(u,l.byteLength),It.clearDtsInfo(e),h=Math.ceil(1024*Nt/e.samplerate),o.length&&(d=o.length*h,this.trigger("segmentTimingInfo",jt(Dt.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+d,o[0].pts+d,p||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+d})),this.trigger("data",{track:e,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){It.clearDtsInfo(e),s=[],this.trigger("reset")}},Tt.prototype=new Ct,bt=function(e,t){var i,s,r,n=[],a=[];i=(t=t||{}).firstSequenceNumber||0,bt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){It.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||s||(s=t.config,e.sps=[t.data],Ut.forEach(function(t){e[t]=s[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),n.push(t)},this.flush=function(){for(var s,r,o,l,u,c,h,d,p=0;n.length&&"access_unit_delimiter_rbsp"!==n[0].nalUnitType;)n.shift();if(0===n.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(s=kt.groupNalsIntoFrames(n),(o=kt.groupFramesIntoGops(s))[0][0].keyFrame||((r=this.getGopForFusion_(n[0],e))?(p=r.duration,o.unshift(r),o.byteLength+=r.byteLength,o.nalCount+=r.nalCount,o.pts=r.pts,o.dts=r.dts,o.duration+=r.duration):o=kt.extendFirstKeyFrame(o)),a.length){var m;if(!(m=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),n=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");It.clearDtsInfo(e),o=m}It.collectDtsInfo(e,o),e.samples=kt.generateSampleTable(o),u=Et.mdat(kt.concatenateNalData(o)),e.baseMediaDecodeTime=It.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),h=o[0],d=o[o.length-1],this.trigger("segmentTimingInfo",jt(e.baseMediaDecodeTime,h.dts,h.pts,d.dts+d.duration,d.pts+d.duration,p)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),n=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=Et.moof(i,[e]),c=new Uint8Array(l.byteLength+u.byteLength),i++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),n=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){It.clearDtsInfo(e),s=void 0,r=void 0},this.getGopForFusion_=function(t){var i,s,r,n,a,o=1/0;for(a=0;a<this.gopCache_.length;a++)r=(n=this.gopCache_[a]).gop,e.pps&&qt(e.pps[0],n.pps[0])&&e.sps&&qt(e.sps[0],n.sps[0])&&(r.dts<e.timelineStartInfo.dts||(i=t.dts-r.dts-r.duration)>=-1e4&&i<=45e3&&(!s||o>i)&&(s=n,o=i));return s?s.gop:null},this.alignGopsAtStart_=function(e){var t,i,s,r,n,o,l,u;for(n=e.byteLength,o=e.nalCount,l=e.duration,t=i=0;t<a.length&&i<e.length&&(s=a[t],r=e[i],s.pts!==r.pts);)r.pts>s.pts?t++:(i++,n-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===i?e:i===e.length?null:((u=e.slice(i)).byteLength=n,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,i,s,r,n,o,l;for(t=a.length-1,i=e.length-1,n=null,o=!1;t>=0&&i>=0;){if(s=a[t],r=e[i],s.pts===r.pts){o=!0;break}s.pts>r.pts?t--:(t===a.length-1&&(n=i),i--)}if(!o&&null===n)return null;if(0===(l=o?i:n))return e;var u=e.slice(l),c=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){a=e}},bt.prototype=new Ct,wt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,wt.prototype.init.call(this),this.push=function(e){return e.content||e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},wt.prototype=new Ct,wt.prototype.flush=function(e){var t,i,s,r,n=0,a={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Ut.forEach(function(e){a.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,Rt.forEach(function(e){a.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,s=Et.initSegment(this.pendingTracks),a.initSegment=new Uint8Array(s.byteLength),a.initSegment.set(s),a.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)a.data.set(this.pendingBoxes[r],n),n+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=Dt.metadataTsToSeconds(t.startPts,o,this.keepOriginalTimestamps),t.endTime=Dt.metadataTsToSeconds(t.endPts,o,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(i=this.pendingMetadata[r]).cueTime=Dt.metadataTsToSeconds(i.pts,o,this.keepOriginalTimestamps),a.metadata.push(i);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),r=0;r<a.captions.length;r++)t=a.captions[r],this.trigger("caption",t);for(r=0;r<a.metadata.length;r++)i=a.metadata[r],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},wt.prototype.setRemux=function(e){this.remuxTracks=e},St=function(e){var t,i,s=this,r=!0;St.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new At.MetadataStream,r.aacStream=new Lt,r.audioTimestampRolloverStream=new At.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new At.TimestampRolloverStream("timed-metadata"),r.adtsStream=new Pt,r.coalesceStream=new wt(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",function(e){r.aacStream.setTimestamp(e.timeStamp)}),r.aacStream.on("data",function(n){"timed-metadata"!==n.type&&"audio"!==n.type||r.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:s.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Tt(i,e),r.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),s.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Bt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new At.MetadataStream,r.packetStream=new At.TransportPacketStream,r.parseStream=new At.TransportParseStream,r.elementaryStream=new At.ElementaryStream,r.timestampRolloverStream=new At.TimestampRolloverStream,r.adtsStream=new Pt,r.h264Stream=new Mt,r.captionStream=new At.CaptionStream(e),r.coalesceStream=new wt(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(n){var a;if("metadata"===n.type){for(a=n.tracks.length;a--;)t||"video"!==n.tracks[a].type?i||"audio"!==n.tracks[a].type||((i=n.tracks[a]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime):(t=n.tracks[a]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new bt(t,e),r.videoSegmentStream.on("log",s.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-s.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",s.trigger.bind(s,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",s.trigger.bind(s,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Tt(i,e),r.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),s.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(e){e.dispatchType=r.metadataStream.dispatchType,s.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Bt(this,r)},this.setBaseMediaDecodeTime=function(s){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=s),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,It.clearDtsInfo(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,It.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var i=this.transmuxPipeline_;e.remux=t,i&&i.coalesceStream&&i.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(i){i.stream=e,t.trigger("log",i)}},this.push=function(e){if(r){var t=Ot(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},St.prototype=new Ct;var $t,Ht,Vt,zt,Wt,Gt,Xt,Zt={Transmuxer:St},Qt=function(e){return e>>>0},Kt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),(t+=String.fromCharCode(e[2]))+String.fromCharCode(e[3])},Yt=Qt,Jt=Kt,ei=function(e,t){var i,s,r,n,a,o=[];if(!t.length)return null;for(i=0;i<e.byteLength;)s=Yt(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]),r=Jt(e.subarray(i+4,i+8)),n=s>1?i+s:e.byteLength,r===t[0]&&(1===t.length?o.push(e.subarray(i+8,n)):(a=ei(e.subarray(i+8,n),t.slice(1))).length&&(o=o.concat(a))),i=n;return o},ti=ei,ii=Qt,si=V.getUint64,ri=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=si(e.subarray(4)):t.baseMediaDecodeTime=ii(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},ni=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),s={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&s.flags[2],n=2&s.flags[2],a=8&s.flags[2],o=16&s.flags[2],l=32&s.flags[2],u=65536&s.flags[0],c=131072&s.flags[0];return t=8,r&&(t+=4,s.baseDataOffset=i.getUint32(12),t+=4),n&&(s.sampleDescriptionIndex=i.getUint32(t),t+=4),a&&(s.defaultSampleDuration=i.getUint32(t),t+=4),o&&(s.defaultSampleSize=i.getUint32(t),t+=4),l&&(s.defaultSampleFlags=i.getUint32(t)),u&&(s.durationIsEmpty=!0),!r&&c&&(s.baseDataOffsetIsMoof=!0),s},ai=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},oi=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},s=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],n=4&i.flags[2],a=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],c=s.getUint32(4),h=8;for(r&&(i.dataOffset=s.getInt32(h),h+=4),n&&c&&(t={flags:ai(e.subarray(h,h+4))},h+=4,a&&(t.duration=s.getUint32(h),h+=4),o&&(t.size=s.getUint32(h),h+=4),u&&(1===i.version?t.compositionTimeOffset=s.getInt32(h):t.compositionTimeOffset=s.getUint32(h),h+=4),i.samples.push(t),c--);c--;)t={},a&&(t.duration=s.getUint32(h),h+=4),o&&(t.size=s.getUint32(h),h+=4),l&&(t.flags=ai(e.subarray(h,h+4)),h+=4),u&&(1===i.version?t.compositionTimeOffset=s.getInt32(h):t.compositionTimeOffset=s.getUint32(h),h+=4),i.samples.push(t);return i},li={tfdt:ri,trun:oi},ui={parseTfdt:li.tfdt,parseTrun:li.trun},ci=function(e){for(var t=0,i=String.fromCharCode(e[t]),s="";"\0"!==i;)s+=i,t++,i=String.fromCharCode(e[t]);return s+i},hi=V.getUint64,di=function(e){return void 0!==e||null!==e},pi={parseEmsgBox:function(e){var t,i,s,r,n,a,o,l=4,u=e[0];if(0===u)l+=(t=ci(e.subarray(l))).length,l+=(i=ci(e.subarray(l))).length,s=(c=new DataView(e.buffer)).getUint32(l),l+=4,n=c.getUint32(l),l+=4,a=c.getUint32(l),l+=4,o=c.getUint32(l),l+=4;else if(1===u){var c;s=(c=new DataView(e.buffer)).getUint32(l),l+=4,r=hi(e.subarray(l)),l+=8,a=c.getUint32(l),l+=4,o=c.getUint32(l),l+=4,l+=(t=ci(e.subarray(l))).length,l+=(i=ci(e.subarray(l))).length}var h={scheme_id_uri:t,value:i,timescale:s||1,presentation_time:r,presentation_time_delta:n,event_duration:a,id:o,message_data:new Uint8Array(e.subarray(l,e.byteLength))};return function(e,t){var i="\0"!==t.scheme_id_uri,s=0===e&&di(t.presentation_time_delta)&&i,r=1===e&&di(t.presentation_time)&&i;return!(e>1)&&s||r}(u,h)?h:void 0},scaleTime:function(e,t,i,s){return e||0===e?e/t:s+i/t}},mi="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},gi=Qt,fi=function(e){return("00"+e.toString(16)).slice(-2)},yi=ti,_i=Kt,vi=pi,bi=ni,Ti=oi,Si=ri,wi=V.getUint64,Ci=mi,Ei=qe.parseId3Frames;$t=function(e){return yi(e,["moov","trak"]).reduce(function(e,t){var i,s,r,n,a;return(i=yi(t,["tkhd"])[0])?(s=i[0],n=gi(i[r=0===s?12:20]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3]),(a=yi(t,["mdia","mdhd"])[0])?(r=0===(s=a[0])?12:20,e[n]=gi(a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3]),e):null):null},{})},Ht=function(e,t){var i=yi(t,["moof","traf"]).reduce(function(t,i){var s,r=yi(i,["tfhd"])[0],n=gi(r[4]<<24|r[5]<<16|r[6]<<8|r[7]),a=e[n]||9e4,o=yi(i,["tfdt"])[0],l=new DataView(o.buffer,o.byteOffset,o.byteLength);let u;return"bigint"==typeof(s=1===o[0]?wi(o.subarray(4,12)):l.getUint32(4))?u=s/Ci.BigInt(a):"number"!=typeof s||isNaN(s)||(u=s/a),u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),u<t&&(t=u),t},1/0);return"bigint"==typeof i||isFinite(i)?i:0},Vt=function(e,t){var i,s=yi(t,["moof","traf"]),r=0,n=0;if(s&&s.length){var a=yi(s[0],["tfhd"])[0],o=yi(s[0],["trun"])[0],l=yi(s[0],["tfdt"])[0];if(a&&(i=bi(a).trackId),l&&(r=Si(l).baseMediaDecodeTime),o){var u=Ti(o);u.samples&&u.samples.length&&(n=u.samples[0].compositionTimeOffset||0)}}var c=e[i]||9e4;"bigint"==typeof r&&(n=Ci.BigInt(n),c=Ci.BigInt(c));var h=(r+n)/c;return"bigint"==typeof h&&h<Number.MAX_SAFE_INTEGER&&(h=Number(h)),h},zt=function(e){var t=yi(e,["moov","trak"]),i=[];return t.forEach(function(e){var t=yi(e,["mdia","hdlr"]),s=yi(e,["tkhd"]);t.forEach(function(e,t){var r,n,a=_i(e.subarray(8,12)),o=s[t];"vide"===a&&(n=0===(r=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0)?r.getUint32(12):r.getUint32(20),i.push(n))})}),i},Gt=function(e){var t=0===e[0]?12:20;return gi(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Wt=function(e){var t=yi(e,["moov","trak"]),i=[];return t.forEach(function(e){var t,s,r={},n=yi(e,["tkhd"])[0];n&&(s=(t=new DataView(n.buffer,n.byteOffset,n.byteLength)).getUint8(0),r.id=0===s?t.getUint32(12):t.getUint32(20));var a=yi(e,["mdia","hdlr"])[0];if(a){var o=_i(a.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=yi(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=_i(u.subarray(4,8));var c,h=yi(u,[r.codec])[0];h&&(/^[asm]vc[1-9]$/i.test(r.codec)?(c=h.subarray(78),"avcC"===_i(c.subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=fi(c[9]),r.codec+=fi(c[10]),r.codec+=fi(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=h.subarray(28),"esds"===_i(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+fi(c[19]),r.codec+="."+fi(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var d=yi(e,["mdia","mdhd"])[0];d&&(r.timescale=Gt(d)),i.push(r)}),i},Xt=function(e,t=0){return yi(e,["emsg"]).map(e=>{var i=vi.parseEmsgBox(new Uint8Array(e)),s=Ei(i.message_data);return{cueTime:vi.scaleTime(i.presentation_time,i.timescale,i.presentation_time_delta,t),duration:vi.scaleTime(i.event_duration,i.timescale),frames:s}})};var ki={findBox:yi,parseType:_i,timescale:$t,startTime:Ht,compositionStartTime:Vt,videoTrackIds:zt,tracks:Wt,getTimescaleFromMediaHeader:Gt,getEmsgID3:Xt};const{parseTrun:xi}=ui,{findBox:Ii}=ki;var Ai=mi,Di={getMdatTrafPairs:function(e){var t=Ii(e,["moof","traf"]),i=Ii(e,["mdat"]),s=[];return i.forEach(function(e,i){var r=t[i];s.push({mdat:e,traf:r})}),s},parseSamples:function(e,t,i){var s=t,r=i.defaultSampleDuration||0,n=i.defaultSampleSize||0,a=i.trackId,o=[];return e.forEach(function(e){var t=xi(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=n),e.trackId=a,e.dts=s,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof s?(e.pts=s+Ai.BigInt(e.compositionTimeOffset),s+=Ai.BigInt(e.duration)):(e.pts=s+e.compositionTimeOffset,s+=e.duration)}),o=o.concat(t)}),o}},Pi=de.discardEmulationPreventionBytes,Mi=ke.CaptionStream,Li=ti,Oi=ri,Ni=ni,{getMdatTrafPairs:Ri,parseSamples:Ui}=Di,Fi=function(e,t){for(var i=e,s=0;s<t.length;s++){var r=t[s];if(i<r.size)return r;i-=r.size}return null},Bi=function(){var e,t,i,s,r,n,a=!1;this.isInitialized=function(){return a},this.init=function(t){e=new Mi,a=!0,n=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/s,e.endTime=e.endPts/s,r.captions.push(e),r.captionStreams[e.stream]=!0}),e.on("log",function(e){r.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||i===e[0]&&s===t[i])},this.parse=function(e,n,a){var o;if(!this.isInitialized())return null;if(!n||!a)return null;if(this.isNewInit(n,a))i=n[0],s=a[i];else if(null===i||!s)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,n,a)}return(o=function(e,t,i){if(null===t)return null;var s=function(e,t){var i={};return Ri(e).forEach(function(e){var s,r=e.mdat,n=e.traf,a=Li(n,["tfhd"]),o=Ni(a[0]),l=o.trackId,u=Li(n,["tfdt"]),c=u.length>0?Oi(u[0]).baseMediaDecodeTime:0,h=Li(n,["trun"]);t===l&&h.length>0&&(s=function(e,t,i){var s,r,n,a,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=n)if(n=o.getUint32(r),r+=4,!(n<=0))switch(31&e[r]){case 6:var u=e.subarray(r+1,r+1+n),c=Fi(r,t);if(s={nalUnitType:"sei_rbsp",size:n,data:u,escapedRBSP:Pi(u),trackId:i},c)s.pts=c.pts,s.dts=c.dts,a=c;else{if(!a){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+i+". See mux.js#223."});break}s.pts=a.pts,s.dts=a.dts}l.seiNals.push(s)}return l}(r,Ui(h,c,o),l),i[l]||(i[l]={seiNals:[],logs:[]}),i[l].seiNals=i[l].seiNals.concat(s.seiNals),i[l].logs=i[l].logs.concat(s.logs))}),i}(e,t)[t]||{};return{seiNals:s.seiNals,logs:s.logs,timescale:i}}(e,i,s))&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;n?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=null,s=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()};const{parseTfdt:qi}=ui,ji=ti,{getTimescaleFromMediaHeader:$i}=ki,{parseSamples:Hi,getMdatTrafPairs:Vi}=Di;var zi=function(){let e=9e4;this.init=function(t){const i=ji(t,["moov","trak","mdia","mdhd"])[0];i&&(e=$i(i))},this.parseSegment=function(t){const i=[],s=Vi(t);let r=0;return s.forEach(function(t){const s=t.mdat,n=t.traf,a=ji(n,["tfdt"])[0],o=ji(n,["tfhd"])[0],l=ji(n,["trun"]);if(a){const e=qi(a);r=e.baseMediaDecodeTime}if(l.length&&o){const t=Hi(l,r,o);let n=0;t.forEach(function(t){const r=new TextDecoder("utf-8"),a=s.slice(n,n+t.size);ji(a,["vtte"])[0]||ji(a,["vttc"]).forEach(function(s){const n=ji(s,["payl"])[0],a=ji(s,["sttg"])[0],o=t.pts/e,l=(t.pts+t.duration)/e;let u,c;if(n)try{u=r.decode(n)}catch(e){console.error(e)}if(a)try{c=r.decode(a)}catch(e){console.error(e)}t.duration&&u&&i.push({cueText:u,start:o,end:l,settings:c})}),n+=t.size})}}),i}},Wi=xe,Gi=function(e){var t=31&e[1];return(t<<=8)|e[2]},Xi=function(e){return!!(64&e[1])},Zi=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Qi=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Ki={parseType:function(e,t){var i=Gi(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=Xi(e),i=4+Zi(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=Xi(e),s=4+Zi(e);if(i&&(s+=e[s]+1),1&e[s+5]){var r;r=3+((15&e[s+1])<<8|e[s+2])-4;for(var n=12+((15&e[s+10])<<8|e[s+11]);n<r;){var a=s+n;t[(31&e[a+1])<<8|e[a+2]]=e[a],n+=5+((15&e[a+3])<<8|e[a+4])}return t}},parsePayloadUnitStartIndicator:Xi,parsePesType:function(e,t){switch(t[Gi(e)]){case Wi.H264_STREAM_TYPE:return"video";case Wi.ADTS_STREAM_TYPE:return"audio";case Wi.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!Xi(e))return null;var t=4+Zi(e);if(t>=e.byteLength)return null;var i,s=null;return 192&(i=e[t+7])&&((s={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,s.pts*=4,s.pts+=(6&e[t+13])>>>1,s.dts=s.pts,64&i&&(s.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,s.dts*=4,s.dts+=(6&e[t+18])>>>1)),s},videoPacketContainsKeyFrame:function(e){for(var t=4+Zi(e),i=e.subarray(t),s=0,r=0,n=!1;r<i.byteLength-3;r++)if(1===i[r+2]){s=r+5;break}for(;s<i.byteLength;)switch(i[s]){case 0:if(0!==i[s-1]){s+=2;break}if(0!==i[s-2]){s++;break}r+3!==s-2&&"slice_layer_without_partitioning_rbsp_idr"===Qi(31&i[r+3])&&(n=!0);do{s++}while(1!==i[s]&&s<i.length);r=s-2,s+=3;break;case 1:if(0!==i[s-1]||0!==i[s-2]){s+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Qi(31&i[r+3])&&(n=!0),r=s-2,s+=3;break;default:s+=3}return i=i.subarray(r),s-=r,r=0,i&&i.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Qi(31&i[r+3])&&(n=!0),n}},Yi=xe,Ji=Le.handleRollover,es={};es.ts=Ki,es.aac=_t;var ts=oe.ONE_SECOND_IN_TS,is=188,ss=71,rs=function(e,t,i){for(var s,r,n,a,o=0,l=is,u=!1;l<=e.byteLength;)if(e[o]!==ss||e[l]!==ss&&l!==e.byteLength)o++,l++;else{if(s=e.subarray(o,l),"pes"===es.ts.parseType(s,t.pid)&&(r=es.ts.parsePesType(s,t.table),n=es.ts.parsePayloadUnitStartIndicator(s),"audio"===r&&n&&(a=es.ts.parsePesTime(s))&&(a.type="audio",i.audio.push(a),u=!0)),u)break;o+=is,l+=is}for(o=(l=e.byteLength)-is,u=!1;o>=0;)if(e[o]!==ss||e[l]!==ss&&l!==e.byteLength)o--,l--;else{if(s=e.subarray(o,l),"pes"===es.ts.parseType(s,t.pid)&&(r=es.ts.parsePesType(s,t.table),n=es.ts.parsePayloadUnitStartIndicator(s),"audio"===r&&n&&(a=es.ts.parsePesTime(s))&&(a.type="audio",i.audio.push(a),u=!0)),u)break;o-=is,l-=is}},ns=function(e,t,i){for(var s,r,n,a,o,l,u,c=0,h=is,d=!1,p={data:[],size:0};h<e.byteLength;)if(e[c]!==ss||e[h]!==ss)c++,h++;else{if(s=e.subarray(c,h),"pes"===es.ts.parseType(s,t.pid)&&(r=es.ts.parsePesType(s,t.table),n=es.ts.parsePayloadUnitStartIndicator(s),"video"===r&&(n&&!d&&(a=es.ts.parsePesTime(s))&&(a.type="video",i.video.push(a),d=!0),!i.firstKeyFrame))){if(n&&0!==p.size){for(o=new Uint8Array(p.size),l=0;p.data.length;)u=p.data.shift(),o.set(u,l),l+=u.byteLength;if(es.ts.videoPacketContainsKeyFrame(o)){var m=es.ts.parsePesTime(o);m?(i.firstKeyFrame=m,i.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(s),p.size+=s.byteLength}if(d&&i.firstKeyFrame)break;c+=is,h+=is}for(c=(h=e.byteLength)-is,d=!1;c>=0;)if(e[c]!==ss||e[h]!==ss)c--,h--;else{if(s=e.subarray(c,h),"pes"===es.ts.parseType(s,t.pid)&&(r=es.ts.parsePesType(s,t.table),n=es.ts.parsePayloadUnitStartIndicator(s),"video"===r&&n&&(a=es.ts.parsePesTime(s))&&(a.type="video",i.video.push(a),d=!0)),d)break;c-=is,h-=is}},as=function(e,t){var i;return(i=es.aac.isLikelyAacData(e)?function(e){for(var t,i=!1,s=0,r=null,n=null,a=0,o=0;e.length-o>=3;){switch(es.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){i=!0;break}if((a=es.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===n&&(t=e.subarray(o,o+a),n=es.aac.parseAacTimestamp(t)),o+=a;break;case"audio":if(e.length-o<7){i=!0;break}if((a=es.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+a),r=es.aac.parseSampleRate(t)),s++,o+=a;break;default:o++}if(i)return null}if(null===r||null===n)return null;var l=ts/r;return{audio:[{type:"audio",dts:n,pts:n},{type:"audio",dts:n+1024*s*l,pts:n+1024*s*l}]}}(e):function(e){var t={pid:null,table:null},i={};for(var s in function(e,t){for(var i,s=0,r=is;r<e.byteLength;)if(e[s]!==ss||e[r]!==ss)s++,r++;else{switch(i=e.subarray(s,r),es.ts.parseType(i,t.pid)){case"pat":t.pid=es.ts.parsePat(i);break;case"pmt":var n=es.ts.parsePmt(i);t.table=t.table||{},Object.keys(n).forEach(function(e){t.table[e]=n[e]})}s+=is,r+=is}}(e,t),t.table)if(t.table.hasOwnProperty(s))switch(t.table[s]){case Yi.H264_STREAM_TYPE:i.video=[],ns(e,t,i),0===i.video.length&&delete i.video;break;case Yi.ADTS_STREAM_TYPE:i.audio=[],rs(e,t,i),0===i.audio.length&&delete i.audio}return i}(e))&&(i.audio||i.video)?(function(e,t){if(e.audio&&e.audio.length){var i=t;(void 0===i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach(function(e){e.dts=Ji(e.dts,i),e.pts=Ji(e.pts,i),e.dtsTime=e.dts/ts,e.ptsTime=e.pts/ts})}if(e.video&&e.video.length){var s=t;if((void 0===s||isNaN(s))&&(s=e.video[0].dts),e.video.forEach(function(e){e.dts=Ji(e.dts,s),e.pts=Ji(e.pts,s),e.dtsTime=e.dts/ts,e.ptsTime=e.pts/ts}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=Ji(r.dts,s),r.pts=Ji(r.pts,s),r.dtsTime=r.dts/ts,r.ptsTime=r.pts/ts}}}(i,t),i):null};class os{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Zt.Transmuxer(this.options),function(e,t){t.on("data",function(t){const i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};const s=t.data;t.data=s.buffer,e.postMessage({action:"data",segment:t,byteOffset:s.byteOffset,byteLength:s.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){const i={start:{decode:oe.videoTsToSeconds(t.start.dts),presentation:oe.videoTsToSeconds(t.start.pts)},end:{decode:oe.videoTsToSeconds(t.end.dts),presentation:oe.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:oe.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=oe.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})}),t.on("audioSegmentTimingInfo",function(t){const i={start:{decode:oe.videoTsToSeconds(t.start.dts),presentation:oe.videoTsToSeconds(t.start.pts)},end:{decode:oe.videoTsToSeconds(t.end.dts),presentation:oe.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:oe.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=oe.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:oe.videoTsToSeconds(t.start),end:oe.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:oe.videoTsToSeconds(t.start),end:oe.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})}(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new Bi,this.captionParser.init());const t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],logs:i&&i.logs||[],data:t.buffer},[t.buffer])}initMp4WebVttParser(e){this.webVttParser||(this.webVttParser=new zi);const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.webVttParser.init(t)}getMp4WebVttText(e){this.webVttParser||(this.webVttParser=new zi);const t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.webVttParser.parseSegment(t);this.self.postMessage({action:"getMp4WebVttText",mp4VttCues:i||[],data:t.buffer},[t.buffer])}probeMp4StartTime({timescales:e,data:t}){const i=ki.startTime(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:t},[t.buffer])}probeMp4Tracks({data:e}){const t=ki.tracks(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){const i=ki.getEmsgID3(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:i,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){const i="number"!=typeof t||isNaN(t)?void 0:t*oe.ONE_SECOND_IN_TS,s=as(e,i);let r=null;s&&(r={hasVideo:s.video&&2===s.video.length||!1,hasAudio:s.audio&&2===s.audio.length||!1},r.hasVideo&&(r.videoStart=s.video[0].ptsTime),r.hasAudio&&(r.audioStart=s.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:r,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){const t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(oe.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(oe.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new os(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new os(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}));var Pc=xc(Dc);const Mc=e=>{const{transmuxer:t,bytes:i,audioAppendStart:s,gopsToAlignWith:r,remux:n,onData:a,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:u,onVideoSegmentTimingInfo:c,onAudioSegmentTimingInfo:h,onId3:d,onCaptions:p,onDone:m,onEndedTimeline:g,onTransmuxerLog:f,isEndOfTimeline:y,segment:_,triggerSegmentEventFn:v}=e,b={buffer:[]};let T=y;if(t.onmessage=i=>{t.currentTransmux===e&&("data"===i.data.action&&((e,t,i)=>{const{type:s,initSegment:r,captions:n,captionStreams:a,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:u}=e.data.segment;t.buffer.push({captions:n,captionStreams:a,metadata:o});const c=e.data.segment.boxes||{data:e.data.segment.data},h={type:s,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};void 0!==l&&(h.videoFrameDtsTime=l),void 0!==u&&(h.videoFramePtsTime=u),i(h)})(i,b,a),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&((e,t)=>{t.gopInfo=e.data.gopInfo})(i,b),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&u(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&c(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&h(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&d([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&p(i.data.caption),"endedtimeline"===i.data.action&&(T=!1,g()),"log"===i.data.action&&f(i.data.log),"transmuxed"===i.data.type&&(T||(t.onmessage=null,(({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)})({transmuxedData:b,callback:m}),Lc(t))))},t.onerror=()=>{const e={message:"Received an error message from the transmuxer worker",metadata:{errorType:eu.Error.StreamingFailedToTransmuxSegment,segmentInfo:dh({segment:_})}};m(null,e)},s&&t.postMessage({action:"setAudioAppendStart",appendStart:s}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==n&&t.postMessage({action:"setRemux",remux:n}),i.byteLength){const e=i instanceof ArrayBuffer?i:i.buffer,s=i instanceof ArrayBuffer?0:i.byteOffset;v({type:"segmenttransmuxingstart",segment:_}),t.postMessage({action:"push",data:e,byteOffset:s,byteLength:i.byteLength},[e])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Lc=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():Mc(e.currentTransmux))},Oc=(e,t)=>{e.postMessage({action:t}),Lc(e)};var Nc=e=>{((e,t)=>{if(!t.currentTransmux)return t.currentTransmux=e,void Oc(t,e);t.transmuxQueue.push(Oc.bind(null,t,e))})("reset",e)};const Rc=function(e){const t=e.transmuxer,i=e.endAction||e.action,s=e.callback,r=Et({},e,{endAction:null,transmuxer:null,callback:null}),n=r=>{r.data.action===i&&(t.removeEventListener("message",n),r.data.data&&(r.data.data=new Uint8Array(r.data.data,e.byteOffset||0,e.byteLength||r.data.data.byteLength),e.data&&(e.data=r.data.data)),s(r.data))};if(t.addEventListener("message",n),e.data){const i=e.data instanceof ArrayBuffer;r.byteOffset=i?0:e.data.byteOffset,r.byteLength=e.data.byteLength;const s=[i?e.data:e.data.buffer];t.postMessage(r,s)}else t.postMessage(r)},Uc=-101,Fc=-102,Bc="wvtt",qc=e=>{e.forEach(e=>{e.abort()})},jc=(e,t)=>{const{requestType:i}=t,s=Vu({requestType:i,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Uc,xhr:t,metadata:s}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Fc,xhr:t,metadata:s}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:2,xhr:t,metadata:s}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:2,xhr:t,metadata:s}:null},$c=(e,t,i,s)=>(r,n)=>{const a=n.response,o=jc(r,n);if(o)return i(o,e);if(16!==a.byteLength)return i({status:n.status,message:"Invalid HLS key at URL: "+n.uri,code:2,xhr:n},e);const l=new DataView(a),u=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=u;const c={uri:n.uri};return s({type:"segmentkeyloadcomplete",segment:e,keyInfo:c}),i(null,e)},Hc=(e,t)=>{const i=Bs(e.map.bytes);if("mp4"!==i){const s=e.map.resolvedUri||e.map.uri,r=i||"unknown";return t({internal:!0,message:`Found unsupported ${r} container for initialization segment at URL: ${s}`,code:2,metadata:{mediaType:r}})}Rc({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:i,data:s})=>(e.map.bytes=s,i.forEach(function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale),"text"===t.type&&((e,t)=>{t===Bc&&e.transmuxer.postMessage({action:"initMp4WebVttParser",data:e.map.bytes})})(e,t.codec))}),t(null))})},Vc=({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{let m=new Uint8Array(t);if(function(e){return Ts(e,["moof"]).length>0}(m)){e.isFmp4=!0;const{tracks:r}=e.map;if(r.text&&(!r.audio||!r.video))return c(e,{data:m,type:"text"}),void((e,t,i)=>{t===Bc&&Rc({action:"getMp4WebVttText",data:e.bytes,transmuxer:e.transmuxer,callback:({data:t,mp4VttCues:s})=>{e.bytes=t,i(null,e,{mp4VttCues:s})}})})(e,r.text.codec,h);const n={isFmp4:!0,hasVideo:!!r.video,hasAudio:!!r.audio};r.audio&&r.audio.codec&&"enca"!==r.audio.codec&&(n.audioCodec=r.audio.codec),r.video&&r.video.codec&&"encv"!==r.video.codec&&(n.videoCodec=r.video.codec),r.video&&r.audio&&(n.isMuxed=!0),i(e,n);const l=(t,i)=>{c(e,{data:m,type:n.hasAudio&&!n.isMuxed?"audio":"video"}),i&&i.length&&a(e,i),t&&t.length&&o(e,t),h(null,e,{})};return void Rc({action:"probeMp4StartTime",timescales:e.map.timescales,data:m,transmuxer:e.transmuxer,callback:({data:i,startTime:a})=>{t=i.buffer,e.bytes=m=i,n.hasAudio&&!n.isMuxed&&s(e,"audio","start",a),n.hasVideo&&s(e,"video","start",a),Rc({action:"probeEmsgID3",data:m,transmuxer:e.transmuxer,offset:a,callback:({emsgData:i,id3Frames:s})=>{t=i.buffer,e.bytes=m=i,r.video&&i.byteLength&&e.transmuxer?Rc({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:m,timescales:e.map.timescales,trackIds:[r.video.id],callback:i=>{t=i.data.buffer,e.bytes=m=i.data,i.logs.forEach(function(e){d(lu(e,{stream:"mp4CaptionParser"}))}),l(i.captions,s)}}):l(void 0,s)}})}})}if(e.transmuxer){if(void 0===e.container&&(e.container=Bs(m)),"ts"!==e.container&&"aac"!==e.container)return i(e,{hasAudio:!1,hasVideo:!1}),void h(null,e,{});(({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{const m=e.map&&e.map.tracks||{},g=Boolean(m.audio&&m.video);let f=s.bind(null,e,"audio","start");const y=s.bind(null,e,"audio","end");let _=s.bind(null,e,"video","start");const v=s.bind(null,e,"video","end"),b=()=>(e=>{if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Mc(e);e.transmuxer.transmuxQueue.push(e)})({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:g,onData:t=>{t.type="combined"===t.type?"video":t.type,c(e,t)},onTrackInfo:t=>{i&&(g&&(t.isMuxed=!0),i(e,t))},onAudioTimingInfo:e=>{f&&void 0!==e.start&&(f(e.start),f=null),y&&void 0!==e.end&&y(e.end)},onVideoTimingInfo:e=>{_&&void 0!==e.start&&(_(e.start),_=null),v&&void 0!==e.end&&v(e.end)},onVideoSegmentTimingInfo:t=>{const i={pts:{start:t.start.presentation,end:t.end.presentation},dts:{start:t.start.decode,end:t.end.decode}};p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:i}),r(t)},onAudioSegmentTimingInfo:t=>{const i={pts:{start:t.start.pts,end:t.end.pts},dts:{start:t.start.dts,end:t.end.dts}};p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:i}),n(t)},onId3:(t,i)=>{a(e,t,i)},onCaptions:t=>{o(e,[t])},isEndOfTimeline:l,onEndedTimeline:()=>{u()},onTransmuxerLog:d,onDone:(t,i)=>{h&&(t.type="combined"===t.type?"video":t.type,p({type:"segmenttransmuxingcomplete",segment:e}),h(i,e,t))},segment:e,triggerSegmentEventFn:p});Rc({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:s=>{e.bytes=t=s.data;const r=s.result;r&&(i(e,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:g}),i=null),b()}})})({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})}else h(null,e,{})},zc=function({id:e,key:t,encryptedBytes:i,decryptionWorker:s,segment:r,doneFn:n},a){const o=t=>{if(t.data.source===e){s.removeEventListener("message",o);const e=t.data.decrypted;a(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};let l;s.onerror=()=>{const e="An error occurred in the decryption worker",t=dh({segment:r}),i={message:e,metadata:{error:new Error(e),errorType:eu.Error.StreamingFailedToDecryptSegment,segmentInfo:t,keyInfo:{uri:r.key.resolvedUri||r.map.key.resolvedUri}}};n(i,r)},s.addEventListener("message",o),l=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),s.postMessage(dc({source:e,encrypted:i,key:l,iv:t.iv}),[i.buffer,l.buffer])},Wc=({xhr:e,xhrOptions:t,decryptionWorker:i,segment:s,abortFn:r,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:p,dataFn:m,doneFn:g,onTransmuxerLog:f,triggerSegmentEventFn:y})=>{const _=[],v=(({activeXhrs:e,decryptionWorker:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{let m=0,g=!1;return(f,y)=>{if(!g){if(f)return g=!0,qc(e),h(f,y);if(m+=1,m===e.length){const m=function(){if(y.encryptedBytes)return(({decryptionWorker:e,segment:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{p({type:"segmentdecryptionstart"}),zc({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:h},e=>{t.bytes=e,p({type:"segmentdecryptioncomplete",segment:t}),Vc({segment:t,bytes:t.bytes,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})})})({decryptionWorker:t,segment:y,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p});Vc({segment:y,bytes:y.bytes,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})};if(y.endOfAllRequests=Date.now(),y.map&&y.map.encryptedBytes&&!y.map.bytes)return p({type:"segmentdecryptionstart",segment:y}),zc({decryptionWorker:t,id:y.requestId+"-init",encryptedBytes:y.map.encryptedBytes,key:y.map.key,segment:y,doneFn:h},t=>{y.map.bytes=t,p({type:"segmentdecryptioncomplete",segment:y}),Hc(y,t=>{if(t)return qc(e),h(t,y);m()})});m()}}}})({activeXhrs:_,decryptionWorker:i,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:p,dataFn:m,doneFn:g,onTransmuxerLog:f,triggerSegmentEventFn:y});if(s.key&&!s.key.bytes){const i=[s.key];s.map&&!s.map.bytes&&s.map.key&&s.map.key.resolvedUri===s.key.resolvedUri&&i.push(s.map.key);const r=lu(t,{uri:s.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),n=$c(s,i,v,y);y({type:"segmentkeyloadstart",segment:s,keyInfo:{uri:s.key.resolvedUri}});const a=e(r,n);_.push(a)}if(s.map&&!s.map.bytes){if(s.map.key&&(!s.key||s.key.resolvedUri!==s.map.key.resolvedUri)){const i=lu(t,{uri:s.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),r=$c(s,[s.map.key],v,y);y({type:"segmentkeyloadstart",segment:s,keyInfo:{uri:s.map.key.resolvedUri}});const n=e(i,r);_.push(n)}const i=lu(t,{uri:s.map.resolvedUri,responseType:"arraybuffer",headers:lc(s.map),requestType:"segment-media-initialization"}),r=(({segment:e,finishProcessingFn:t,triggerSegmentEventFn:i})=>(s,r)=>{const n=jc(s,r);if(n)return t(n,e);const a=new Uint8Array(r.response);if(i({type:"segmentloaded",segment:e}),e.map.key)return e.map.encryptedBytes=a,t(null,e);e.map.bytes=a,Hc(e,function(i){if(i)return i.xhr=r,i.status=r.status,t(i,e);t(null,e)})})({segment:s,finishProcessingFn:v,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:s});const n=e(i,r);_.push(n)}const b=lu(t,{uri:s.part&&s.part.resolvedUri||s.resolvedUri,responseType:"arraybuffer",headers:lc(s),requestType:"segment"}),T=(({segment:e,finishProcessingFn:t,responseType:i,triggerSegmentEventFn:s})=>(r,n)=>{const a=jc(r,n);if(a)return t(a,e);s({type:"segmentloaded",segment:e});const o="arraybuffer"!==i&&n.responseText?(e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer})(n.responseText.substring(e.lastReachedChar||0)):n.response;return e.stats=(e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}))(n),e.key?e.encryptedBytes=new Uint8Array(o):e.bytes=new Uint8Array(o),t(null,e)})({segment:s,finishProcessingFn:v,responseType:b.responseType,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:s});const S=e(b,T);S.addEventListener("progress",(({segment:e,progressFn:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c})=>i=>{if(!i.target.aborted)return e.stats=lu(e.stats,(e=>{const t=e.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i})(i)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(i,e)})({segment:s,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:p,dataFn:m})),_.push(S);const w={};return _.forEach(e=>{e.addEventListener("loadend",(({loadendState:e,abortFn:t})=>i=>{i.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)})({loadendState:w,abortFn:r}))}),()=>qc(_)},Gc=ou("PlaylistSelector"),Xc=function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},Zc=function(e,t){if(!e)return"";const i=be.getComputedStyle(e);return i?i[t]:""},Qc=function(e,t){const i=e.slice();e.sort(function(e,s){const r=t(e,s);return 0===r?i.indexOf(e)-i.indexOf(s):r})},Kc=function(e,t){let i,s;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||be.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||be.Number.MAX_VALUE,i-s};let Yc=function(e){const{main:t,bandwidth:i,playerWidth:s,playerHeight:r,playerObjectFit:n,limitRenditionByPlayerDimensions:a,playlistController:o}=e;if(!t)return;const l={bandwidth:i,width:s,height:r,limitRenditionByPlayerDimensions:a};let u=t.playlists;Ru.isAudioOnly(t)&&(u=o.getAudioTrackPlaylists_(),l.audioOnly=!0);let c=u.map(e=>{let t;const i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,s=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||be.Number.MAX_VALUE,{bandwidth:t,width:i,height:s,playlist:e}});Qc(c,(e,t)=>e.bandwidth-t.bandwidth),c=c.filter(e=>!Ru.isIncompatible(e.playlist));let h=c.filter(e=>Ru.isEnabled(e.playlist));h.length||(h=c.filter(e=>!Ru.isDisabled(e.playlist)));const d=h.filter(e=>e.bandwidth*Ec.BANDWIDTH_VARIANCE<i);let p=d[d.length-1];const m=d.filter(e=>e.bandwidth===p.bandwidth)[0];if(!1===a){const e=m||h[0]||c[0];if(e&&e.playlist){let t="sortedPlaylistReps";return m&&(t="bandwidthBestRep"),h[0]&&(t="enabledPlaylistReps"),Gc(`choosing ${Xc(e)} using ${t} with options`,l),e.playlist}return Gc("could not choose a playlist with options",l),null}const g=d.filter(e=>e.width&&e.height);Qc(g,(e,t)=>e.width-t.width);const f=g.filter(e=>e.width===s&&e.height===r);p=f[f.length-1];const y=f.filter(e=>e.bandwidth===p.bandwidth)[0];let _,v,b,T;if(y||(_=g.filter(e=>"cover"===n?e.width>s&&e.height>r:e.width>s||e.height>r),v=_.filter(e=>e.width===_[0].width&&e.height===_[0].height),p=v[v.length-1],b=v.filter(e=>e.bandwidth===p.bandwidth)[0]),o.leastPixelDiffSelector){const e=g.map(e=>(e.pixelDiff=Math.abs(e.width-s)+Math.abs(e.height-r),e));Qc(e,(e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff),T=e[0]}const S=T||b||y||m||h[0]||c[0];if(S&&S.playlist){let e="sortedPlaylistReps";return T?e="leastPixelDiffRep":b?e="resolutionPlusOneRep":y?e="resolutionBestRep":m?e="bandwidthBestRep":h[0]&&(e="enabledPlaylistReps"),Gc(`choosing ${Xc(S)} using ${e} with options`,l),S.playlist}return Gc("could not choose a playlist with options",l),null};const Jc=function(){let e=this.useDevicePixelRatio&&be.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),Yc({main:this.playlists.main,bandwidth:this.systemBandwidth,playerWidth:parseInt(Zc(this.tech_.el(),"width"),10)*e,playerHeight:parseInt(Zc(this.tech_.el(),"height"),10)*e,playerObjectFit:this.usePlayerObjectFit?Zc(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})};function eh(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch(e){return""}}const th={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},ih=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),sh=(e,t,i)=>{e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,eu.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},rh=function(e,t,i){let s,r;if(i&&i.cues)for(s=i.cues.length;s--;)r=i.cues[s],r.startTime>=e&&r.endTime<=t&&i.removeCue(r)},nh=e=>"number"==typeof e&&isFinite(e),ah=1/60,oh=e=>{const{startOfSegment:t,duration:i,segment:s,part:r,playlist:{mediaSequence:n,id:a,segments:o=[]},mediaIndex:l,partIndex:u,timeline:c}=e,h=o.length-1;let d="mediaIndex/partIndex increment";e.getMediaInfoForTime?d=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(d="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(d+=` with independent ${e.independent}`);const p="number"==typeof u,m=e.segment.uri?"segment":"pre-segment",g=p?Su({preloadSegment:s})-1:0;return`${m} [${n+l}/${n+h}]`+(p?` part [${u}/${g}]`:"")+` segment start/end [${s.start} => ${s.end}]`+(p?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${t}]`+` duration [${i}]`+` timeline [${c}]`+` selected by [${d}]`+` playlist [${a}]`},lh=e=>`${e}TimingInfo`,uh=({timelineChangeController:e,currentTimeline:t,segmentTimeline:i,loaderType:s,audioDisabled:r})=>{if(t===i)return!1;if("audio"===s){const t=e.lastTimelineChange({type:"main"});return!t||t.to!==i}if("main"===s&&r){const t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==i}return!1},ch=e=>{const t=e.pendingSegment_;if(t&&uh({timelineChangeController:e.timelineChangeController_,currentTimeline:e.currentTimeline_,segmentTimeline:t.timeline,loaderType:e.loaderType_,audioDisabled:e.audioDisabled_})&&(e=>{if(!e)return!1;const t=e.pendingTimelineChange({type:"audio"}),i=e.pendingTimelineChange({type:"main"}),s=t&&i,r=s&&t.to!==i.to;return!(!s||-1===t.from||-1===i.from||!r)})(e.timelineChangeController_)){if((e=>{const t=e.timelineChangeController_.pendingTimelineChange({type:"audio"}),i=e.timelineChangeController_.pendingTimelineChange({type:"main"});return t&&i&&t.to<i.to})(e))return void e.timelineChangeController_.trigger("audioTimelineBehind");e.timelineChangeController_.trigger("fixBadTimelineChange")}},hh=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+cu,dh=({type:e,segment:t})=>{if(!t)return;const i=Boolean(t.key||t.map&&t.map.ke),s=Boolean(t.map&&!t.map.bytes),r=void 0===t.startOfSegment?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:r,duration:t.duration,isEncrypted:i,isMediaInitialization:s}};class ph extends eu.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=ou(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)}),this.sourceUpdater_.on("codecschange",e=>{this.trigger(Et({type:"codecschange"},e))}),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)}),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",e=>{this.trigger(Et({type:"timelinechange"},e)),this.hasEnoughInfoToLoad_()?this.processLoadQueue_():ch(this),this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return(e=>{const t=new Pc;t.currentTransmux=null,t.transmuxQueue=[];const i=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)),t.postMessage({action:"init",options:e}),t})({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&be.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if("WAITING"!==this.state)return this.pendingSegment_&&(this.pendingSegment_=null),void this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,be.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&Nc(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return uu();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:i,isMuxed:s}=e;if(i&&t&&!this.audioDisabled_&&!s)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const i=pc(e);let s=this.initSegments_[i];return t&&!s&&e.bytes&&(this.initSegments_[i]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),s||e}segmentKey(e,t=!1){if(!e)return null;const i=mc(e);let s=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!s&&e.bytes&&(this.keyCache_[i]=s={resolvedUri:e.resolvedUri,bytes:e.bytes});const r={resolvedUri:(s||e).resolvedUri};return s&&(r.bytes=s.bytes),r}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;if(this.playlist_&&this.playlist_.endList&&e.endList&&this.playlist_.uri===e.uri)return;const i=this.playlist_,s=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_(`playlist update [${r} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:\ncurrentTime: ${this.currentTime_()}\nbufferedEnd: ${yu(this.buffered_())}\n`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri)return null!==this.mediaIndex&&(e.endList||"number"!=typeof e.partTargetDuration?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");const n=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${n}]`),null!==this.mediaIndex)if(this.mediaIndex-=n,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){const e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}s&&(s.mediaIndex-=n,s.mediaIndex<0?(s.mediaIndex=null,s.partIndex=null):(s.mediaIndex>=0&&(s.segment=e.segments[s.mediaIndex]),s.partIndex>=0&&s.segment.parts&&(s.part=s.segment.parts[s.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(be.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&Nc(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;"hls"===this.sourceType_&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,i=()=>{},s=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let r=1;const n=()=>{r--,0===r&&i()};!s&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,n)),(s||"main"===this.loaderType_)&&(this.gopBuffer_=((e,t,i,s)=>{const r=Math.ceil((t-s)*qs.ONE_SECOND_IN_TS),n=Math.ceil((i-s)*qs.ONE_SECOND_IN_TS),a=e.slice();let o=e.length;for(;o--&&!(e[o].pts<=n););if(-1===o)return a;let l=o+1;for(;l--&&!(e[l].pts<=r););return l=Math.max(l,0),a.splice(l,o-l+1),a})(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,n));for(const i in this.inbandTextTracks_)rh(e,t,this.inbandTextTracks_[i]);rh(e,t,this.segmentMetadataTrack_),n()}monitorBuffer_(){this.checkBufferTimeout_&&be.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=be.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&be.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=be.setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();if(!e)return;const t={segmentInfo:dh({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,i=this.partIndex){if(!t||!this.mediaSource_)return!1;const s="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,n=!s||!s.parts||i+1===s.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&n}chooseNextRequest_(){const e=this.buffered_(),t=yu(e)||0,i=_u(e,this.currentTime_()),s=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),n=this.playlist_.segments;if(!n.length||s||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const a={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(a.isSyncRequest)a.mediaIndex=function(e,t,i){t=t||[];const s=[];let r=0;for(let n=0;n<t.length;n++){const a=t[n];if(e===a.timeline&&(s.push(n),r+=a.duration,r>i))return n}return 0===s.length?0:s[s.length-1]}(this.currentTimeline_,n,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${a.mediaIndex}`);else if(null!==this.mediaIndex){const e=n[this.mediaIndex],i="number"==typeof this.partIndex?this.partIndex:-1;a.startOfSegment=e.end?e.end:t,e.parts&&e.parts[i+1]?(a.mediaIndex=this.mediaIndex,a.partIndex=i+1):a.mediaIndex=this.mediaIndex+1}else{let e,i,s;const r=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:\nFor TargetTime: ${r}.\nCurrentTime: ${this.currentTime_()}\nBufferedEnd: ${t}\nFetch At Buffer: ${this.fetchAtBuffer_}\n`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const t=this.getSyncInfoFromMediaSequenceSync_(r);if(!t){const e="No sync info found while using media sequence sync";return this.error({message:e,metadata:{errorType:eu.Error.StreamingFailedToSelectNextSegment,error:new Error(e)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${t.start} --\x3e ${t.end})`),e=t.segmentIndex,i=t.partIndex,s=t.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const t=Ru.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:r,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});e=t.segmentIndex,i=t.partIndex,s=t.startTime}a.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${r}`:`currentTime ${r}`,a.mediaIndex=e,a.startOfSegment=s,a.partIndex=i,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${a.mediaIndex} `)}const o=n[a.mediaIndex];let l=o&&"number"==typeof a.partIndex&&o.parts&&o.parts[a.partIndex];if(!o||"number"==typeof a.partIndex&&!l)return null;"number"!=typeof a.partIndex&&o.parts&&(a.partIndex=0,l=o.parts[0]);const u=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&l&&!u&&!l.independent)if(0===a.partIndex){const e=n[a.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(a.mediaIndex-=1,a.partIndex=e.parts.length-1,a.independent="previous segment")}else o.parts[a.partIndex-1].independent&&(a.partIndex-=1,a.independent="previous part");const c=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return a.mediaIndex>=n.length-1&&c&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,a.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(a))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;const t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);const i=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!i)return null;if(!i.isAppended)return i;const s=this.mediaSequenceSync_.getSyncInfoForTime(i.end);return s?(s.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),s):null}generateSegmentInfo_(e){const{independent:t,playlist:i,mediaIndex:s,startOfSegment:r,isSyncRequest:n,partIndex:a,forceTimestampOffset:o,getMediaInfoForTime:l}=e,u=i.segments[s],c="number"==typeof a&&u.parts[a],h={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||u.resolvedUri,mediaIndex:s,partIndex:c?a:null,isSyncRequest:n,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:c&&c.duration||u.duration,segment:u,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},d=void 0!==o?o:this.isPendingTimestampOffset_;h.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:d});const p=yu(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(h.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(h.gopsToAlignWith=((e,t,i)=>{if(null==t||!e.length)return[];const s=Math.ceil((t-i+3)*qs.ONE_SECOND_IN_TS);let r;for(r=0;r<e.length&&!(e[r].pts>s);r++);return e.slice(r)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),h}timestampOffsetForSegment_(e){return(({segmentTimeline:e,currentTimeline:t,startOfSegment:i,buffered:s,overrideCheck:r})=>r||e!==t?e<t?i:s.length?s.end(s.length-1):i:null)(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),i=e.bandwidth,s=this.pendingSegment_.duration,r=Ru.estimateSegmentRequestTime(s,i,this.playlist_,e.bytesReceived),n=function(e,t,i=1){return((e.length?e.end(e.length-1):0)-t)/i}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(r<=n)return;const a=function(e){const{main:t,currentTime:i,bandwidth:s,duration:r,segmentDuration:n,timeUntilRebuffer:a,currentTimeline:o,syncController:l}=e,u=t.playlists.filter(e=>!Ru.isIncompatible(e));let c=u.filter(Ru.isEnabled);c.length||(c=u.filter(e=>!Ru.isDisabled(e)));const h=c.filter(Ru.hasAttribute.bind(null,"BANDWIDTH")).map(e=>{const t=l.getSyncPoint(e,r,o,i)?1:2;return{playlist:e,rebufferingImpact:Ru.estimateSegmentRequestTime(n,s,e)*t-a}}),d=h.filter(e=>e.rebufferingImpact<=0);return Qc(d,(e,t)=>Kc(t.playlist,e.playlist)),d.length?d[0]:(Qc(h,(e,t)=>e.rebufferingImpact-t.rebufferingImpact),h[0]||null)}({main:this.vhs_.playlists.main,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:s,timeUntilRebuffer:n,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!a)return;const o=r-n-a.rebufferingImpact;let l=.5;n<=cu&&(l=1),!a.playlist||a.playlist.uri===this.playlist_.uri||o<l||(this.bandwidth=a.playlist.attributes.BANDWIDTH*Ec.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${oh(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}handleTrackInfo_(e,t){const{hasAudio:i,hasVideo:s}=t,r={segmentInfo:dh({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:i,hasVideo:s}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:r}),this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;const i=Object.keys(e).sort(),s=Object.keys(t).sort();if(i.length!==s.length)return!1;for(let r=0;r<i.length;r++){const n=i[r];if(n!==s[r])return!1;if(e[n]!==t[n])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)))}handleTimingInfo_(e,t,i,s){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const r=this.pendingSegment_,n=lh(t);r[n]=r[n]||{},r[n][i]=s,this.logger_(`timinginfo: ${t} - ${i} - ${s}`),this.hasEnoughInfoToAppend_()?this.processCallQueue_():ch(this)}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));const i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),s={};t.forEach(e=>{s[e.stream]=s[e.stream]||{startTime:1/0,captions:[],endTime:0};const t=s[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)}),Object.keys(s).forEach(e=>{const{startTime:t,endTime:r,captions:n}=s[e],a=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${r} for ${e}`),function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"});let s=i;/^cc708_/.test(i)&&(s="SERVICE"+i.split("_")[1]);const r=t.textTracks().getTrackById(s);if(r)e[i]=r;else{let r=i,n=i,a=!1;const o=(t.options_.vhs&&t.options_.vhs.captionServices||{})[s];o&&(r=o.label,n=o.language,a=o.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:s,default:a,label:r,language:n},!1).track}}}(a,this.vhs_.tech_,e),rh(t,r,a[e]),function({inbandTextTracks:e,captionArray:t,timestampOffset:i}){if(!t)return;const s=be.WebKitDataCue||be.VTTCue;t.forEach(t=>{const r=t.stream;t.content?t.content.forEach(n=>{const a=new s(t.startTime+i,t.endTime+i,n.text);a.line=n.line,a.align="left",a.position=n.position,a.positionAlign="line-left",e[r].addCue(a)}):e[r].addCue(new s(t.startTime+i,t.endTime+i,t.text))})}({captionArray:n,inbandTextTracks:a,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,i){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(i,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i)))}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(e=>e())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(e=>e())}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&uh({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:i,hasVideo:s,isMuxed:r}=t;return!(s&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo||uh({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return ch(this),void this.callQueue_.push(this.handleData_.bind(this,e,t));const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[lh(t.type)].start;else{const e=this.getCurrentMediaInfo_(),t="main"===this.loaderType_&&e&&e.hasVideo;let s;t&&(s=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:t,firstVideoFrameTimeForData:s,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});const e=this.chooseNextRequest_();if(e.mediaIndex!==i.mediaIndex||e.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}updateAppendInitSegmentStatus(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:i,playlist:s}){if(i){const e=pc(i);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=s,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i},s){const r=this.sourceUpdater_.audioBuffered(),n=this.sourceUpdater_.videoBuffered();r.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+fu(r).join(", ")),n.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+fu(n).join(", "));const a=r.length?r.start(0):0,o=r.length?r.end(r.length-1):0,l=n.length?n.start(0):0,u=n.length?n.end(n.length-1):0;if(o-a<=1&&u-l<=1)return this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${i.byteLength}, audio buffer: ${fu(r).join(", ")}, video buffer: ${fu(n).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:t,bytes:i}));const c=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${c}`),this.remove(0,c,()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=be.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},1e3)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:i},s){s&&(22!==s.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",s),this.error({message:`${t} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:eu.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i}))}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:i,data:s,bytes:r}){if(!r){const e=[s];let t=s.byteLength;i&&(e.unshift(i),t+=i.byteLength),r=(e=>{let t,i=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(e=>{t.set(e,i),i+=e.byteLength})),t})({bytes:t,segments:e})}const n={segmentInfo:dh({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:n}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:r},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:r}))}handleSegmentTimingInfo_(e,t,i){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const s=this.pendingSegment_.segment,r=`${e}TimingInfo`;s[r]||(s[r]={}),s[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,s[r].transmuxedPresentationStart=i.start.presentation,s[r].transmuxedDecodeStart=i.start.decode,s[r].transmuxedPresentationEnd=i.end.presentation,s[r].transmuxedDecodeEnd=i.end.decode,s[r].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,t){const{type:i,data:s}=t;if(!s||!s.byteLength)return;if("audio"===i&&this.audioDisabled_)return;const r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:s})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_())return ch(this),void this.loadQueue_.push(()=>{const t=Et({},e,{forceTimestampOffset:!0});Et(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const t=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),s=null!==this.mediaIndex,r=e.timeline!==this.currentTimeline_&&e.timeline>0,n=i||s&&r;this.logger_(`Requesting\n${eh(e.uri)}\n${oh(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Wc({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:n,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:i,stream:s})=>{this.logger_(`${oh(e)} logged from transmuxer stream ${s} as a ${i}: ${t}`)},triggerSegmentEventFn:({type:e,segment:t,keyInfo:i,trackInfo:s,timingInfo:r})=>{const n={segmentInfo:dh({segment:t})};i&&(n.keyInfo=i),s&&(n.trackInfo=s),r&&(n.timingInfo=r),this.trigger({type:e,metadata:n})}})}trimBackBuffer_(e){const t=((e,t,i)=>{let s=t-Ec.BACK_BUFFER_LENGTH;e.length&&(s=Math.max(s,e.start(0)));const r=t-i;return Math.min(r,s)})(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,i=e.part,s=e.segment.key||e.segment.map&&e.segment.map.key,r=e.segment.map&&!e.segment.map.bytes,n={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:s,isMediaInitialization:r},a=e.playlist.segments[e.mediaIndex-1];if(a&&a.timeline===t.timeline&&(a.videoTimingInfo?n.baseStartTime=a.videoTimingInfo.transmuxedDecodeEnd:a.audioTimingInfo&&(n.baseStartTime=a.audioTimingInfo.transmuxedDecodeEnd)),t.key){const i=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=i}return t.map&&(n.map=this.initSegmentForMap(t.map)),n}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<ah)return void this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${ah}`);const i={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:i}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,i){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return;if(t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Fc)return;return this.pause(),e.code===Uc?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const s=this.pendingSegment_;this.saveBandwidthRelatedStats_(s.duration,t.stats),s.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=((e,t,i)=>{if(!t.length)return e;if(i)return t.slice();const s=t[0].pts;let r=0;for(;r<e.length&&!(e[r].pts>=s);r++);return e.slice(0,r).concat(t)})(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(s)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:i,firstVideoFrameTimeForData:s,currentVideoTimestampOffset:r,useVideoTimingInfo:n,videoTimingInfo:a,audioTimingInfo:o}){if(void 0!==e)return e;if(!n)return o.start;const l=t.segments[i-1];return 0!==i&&l&&void 0!==l.start&&l.end===s+r?a.start:s}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");const{hasAudio:i,hasVideo:s,isMuxed:r}=t,n="main"===this.loaderType_&&s,a=!this.audioDisabled_&&i&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);n&&e.waitingOnAppends++,a&&e.waitingOnAppends++,n&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=((e,t,i)=>"main"===e&&t&&i?i.hasAudio||i.hasVideo?t.hasVideo&&!i.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&i.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null)(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const t=this.getMediaInfo_(),i="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;i&&(e.timingInfo.end="number"==typeof i.end?i.end:i.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_){const e={segmentInfo:dh({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:e})}if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=((e,t)=>{if("hls"!==t)return null;const i=(e=>{let t=0;return["video","audio"].forEach(function(i){const s=e[`${i}TimingInfo`];if(!s)return;const{start:r,end:n}=s;let a;"bigint"==typeof r||"bigint"==typeof n?a=be.BigInt(n)-be.BigInt(r):"number"==typeof r&&"number"==typeof n&&(a=n-r),void 0!==a&&a>t&&(t=a)}),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t})({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!i)return null;const s=e.playlist.targetDuration,r=hh({segmentDuration:i,maxDuration:2*s}),n=hh({segmentDuration:i,maxDuration:s}),a=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${i} when the reported duration is ${e.duration} and the target duration is ${s}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return r||n?{severity:r?"warn":"info",message:a}:null})(e,this.sourceType_);if(t&&("warn"===t.severity?eu.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${oh(e)}`);this.logger_(`Appended ${oh(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const i=e.segment,s=e.part,r=i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration,n=s&&s.end&&this.currentTime_()-s.end>3*e.playlist.partTargetDuration;if(r||n)return this.logger_(`bad ${r?"segment":"part"} ${oh(e)}`),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<ah)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${ah}`);const t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,s=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(s-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,i=t.start,s=t.end;if(!nh(i)||!nh(s))return;rh(i,s,this.segmentMetadataTrack_);const r=be.WebKitDataCue||be.VTTCue,n={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:s},a=new r(i,s,JSON.stringify(n));a.value=n,this.segmentMetadataTrack_.addCue(a)}}function mh(){}const gh=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},fh=["video","audio"],yh=(e,t)=>{const i=t[`${e}Buffer`];return i&&i.updating||t.queuePending[e]},_h=(e,t)=>{if(0===t.queue.length)return;let i=0,s=t.queue[i];if("mediaSource"!==s.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!yh(e,t)){if(s.type!==e){if(i=((e,t)=>{for(let i=0;i<t.length;i++){const s=t[i];if("mediaSource"===s.type)return null;if(s.type===e)return i}return null})(e,t.queue),null===i)return;s=t.queue[i]}return t.queue.splice(i,1),t.queuePending[e]=s,s.action(e,t),s.doneFn?void 0:(t.queuePending[e]=null,void _h(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),s.action(t),s.doneFn&&s.doneFn(),_h("audio",t),_h("video",t))},vh=(e,t)=>{const i=t[`${e}Buffer`],s=gh(e);i&&(i.removeEventListener("updateend",t[`on${s}UpdateEnd_`]),i.removeEventListener("error",t[`on${s}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},bh=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),Th=(e,t,i)=>(s,r)=>{const n=r[`${s}Buffer`];if(bh(r.mediaSource,n)){r.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${s}Buffer`);try{n.appendBuffer(e)}catch(e){r.logger_(`Error with code ${e.code} `+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${s}Buffer`),r.queuePending[s]=null,i(e)}}},Sh=(e,t)=>(i,s)=>{const r=s[`${i}Buffer`];if(bh(s.mediaSource,r)){s.logger_(`Removing ${e} to ${t} from ${i}Buffer`);try{r.remove(e,t)}catch(r){s.logger_(`Remove ${e} to ${t} from ${i}Buffer failed`)}}},wh=e=>(t,i)=>{const s=i[`${t}Buffer`];bh(i.mediaSource,s)&&(i.logger_(`Setting ${t}timestampOffset to ${e}`),s.timestampOffset=e)},Ch=e=>(t,i)=>{e()},Eh=e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(e){eu.log.warn("Failed to call media source endOfStream",e)}}},kh=e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(e){eu.log.warn("Failed to set media source duration",e)}},xh=(e,t)=>i=>{const s=gh(e),r=Wt(t);i.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const n=i.mediaSource.addSourceBuffer(r);n.addEventListener("updateend",i[`on${s}UpdateEnd_`]),n.addEventListener("error",i[`on${s}Error_`]),i.codecs[e]=t,i[`${e}Buffer`]=n},Ih=e=>t=>{const i=t[`${e}Buffer`];if(vh(e,t),bh(t.mediaSource,i)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(i)}catch(t){eu.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,t)}}},Ah=e=>(t,i)=>{const s=i[`${t}Buffer`],r=Wt(e);if(!bh(i.mediaSource,s))return;const n=e.substring(0,e.indexOf(".")),a=i.codecs[t];if(a.substring(0,a.indexOf("."))===n)return;const o={codecsChangeInfo:{from:a,to:e}};i.trigger({type:"codecschange",metadata:o}),i.logger_(`changing ${t}Buffer codec from ${a} to ${e}`);try{s.changeType(r),i.codecs[t]=e}catch(e){o.errorType=eu.Error.StreamingCodecsChangeError,o.error=e,e.metadata=o,i.error_=e,i.trigger("error"),eu.log.warn(`Failed to changeType on ${t}Buffer`,e)}},Dh=({type:e,sourceUpdater:t,action:i,doneFn:s,name:r})=>{t.queue.push({type:e,action:i,doneFn:s,name:r}),_h(e,t)},Ph=(e,t)=>i=>{const s=function(e){if(0===e.length)return"Buffered Ranges are empty";let t="Buffered Ranges: \n";for(let i=0;i<e.length;i++){const s=e.start(i),r=e.end(i);t+=`${s} --\x3e ${r}. Duration (${r-s})\n`}return t}(t[`${e}Buffered`]());if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,s),t.queuePending[e]){const i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[`${e}Error_`])}_h(e,t)};class Mh extends eu.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>_h("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=ou("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=Ph("video",this),this.onAudioUpdateEnd_=Ph("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){Dh({type:"mediaSource",sourceUpdater:this,action:xh(e,t),name:"addSourceBuffer"})}abort(e){Dh({type:e,sourceUpdater:this,action:(e,t)=>{if("open"!==t.mediaSource.readyState)return;const i=t[`${e}Buffer`];if(bh(t.mediaSource,i)){t.logger_(`calling abort on ${e}Buffer`);try{i.abort()}catch(t){eu.log.warn(`Failed to abort on ${e}Buffer`,t)}}},name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?Dh({type:"mediaSource",sourceUpdater:this,action:Ih(e),name:"removeSourceBuffer"}):eu.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!eu.browser.IS_FIREFOX&&be.MediaSource&&be.MediaSource.prototype&&"function"==typeof be.MediaSource.prototype.removeSourceBuffer}static canChangeType(){return be.SourceBuffer&&be.SourceBuffer.prototype&&"function"==typeof be.SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?Dh({type:e,sourceUpdater:this,action:Ah(t),name:"changeType"}):eu.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(t=>{const i=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,i);this.canChangeType()&&this.changeType(t,i)})}appendBuffer(e,t){const{segmentInfo:i,type:s,bytes:r}=e;if(this.processedAppend_=!0,"audio"===s&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${r.length} until video append`);if(Dh({type:s,sourceUpdater:this,action:Th(r,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===s){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach(e=>{this.appendBuffer.apply(this,e)})}}audioBuffered(){return bh(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:uu()}videoBuffered(){return bh(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:uu()}buffered(){const e=bh(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=bh(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){let i=null,s=null,r=0;const n=[],a=[];if(!(e&&e.length&&t&&t.length))return uu();let o=e.length;for(;o--;)n.push({time:e.start(o),type:"start"}),n.push({time:e.end(o),type:"end"});for(o=t.length;o--;)n.push({time:t.start(o),type:"start"}),n.push({time:t.end(o),type:"end"});for(n.sort(function(e,t){return e.time-t.time}),o=0;o<n.length;o++)"start"===n[o].type?(r++,2===r&&(i=n[o].time)):"end"===n[o].type&&(r--,1===r&&(s=n[o].time)),null!==i&&null!==s&&(a.push([i,s]),i=null,s=null);return uu(a)}(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=mh){Dh({type:"mediaSource",sourceUpdater:this,action:kh(e),name:"duration",doneFn:t})}endOfStream(e=null,t=mh){"string"!=typeof e&&(e=void 0),Dh({type:"mediaSource",sourceUpdater:this,action:Eh(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,i=mh){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Dh({type:"audio",sourceUpdater:this,action:Sh(e,t),doneFn:i,name:"remove"}):i()}removeVideo(e,t,i=mh){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Dh({type:"video",sourceUpdater:this,action:Sh(e,t),doneFn:i,name:"remove"}):i()}updating(){return!(!yh("audio",this)&&!yh("video",this))}audioTimestampOffset(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Dh({type:"audio",sourceUpdater:this,action:wh(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(Dh({type:"video",sourceUpdater:this,action:wh(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&Dh({type:"audio",sourceUpdater:this,action:Ch(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&Dh({type:"video",sourceUpdater:this,action:Ch(e),name:"callback"})}dispose(){this.trigger("dispose"),fh.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>vh(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const Lh=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),Oh=new Uint8Array("\n\n".split("").map(e=>e.charCodeAt(0)));class Nh extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Rh extends ph{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return uu();const e=this.subtitlesTrack_.cues;return uu([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const i=pc(e);let s=this.initSegments_[i];if(t&&!s&&e.bytes){const t=Oh.byteLength+e.bytes.byteLength,r=new Uint8Array(t);r.set(e.bytes),r.set(Oh,e.bytes.byteLength),this.initSegments_[i]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:r}}return s||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){rh(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){const e=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};return this.syncController_.one("timestampoffset",e),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,i){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Uc&&this.handleTimeout_(),e.code===Fc?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const s=this.pendingSegment_,r=i.mp4VttCues&&i.mp4VttCues.length;r&&(s.mp4VttCues=i.mp4VttCues),this.saveBandwidthRelatedStats_(s.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const n=s.segment;if(n.map&&(n.map.bytes=t.map.bytes),s.bytes=t.bytes,"function"!=typeof be.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,i),()=>this.stopForError({message:"Error loading vtt.js"}));n.requested=!0;try{this.parseVTTCues_(s)}catch(e){return void this.stopForError({message:e.message,metadata:{errorType:eu.Error.StreamingVttParserError,error:e}})}if(r||this.updateTimeMapping_(s,this.syncController_.timelines[s.timeline],this.playlist_),s.cues.length?s.timingInfo={start:s.cues[0].startTime,end:s.cues[s.cues.length-1].endTime}:s.timingInfo={start:s.startOfSegment,end:s.startOfSegment+s.duration},s.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");s.byteLength=s.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,s.cues.forEach(e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new be.VTTCue(e.startTime,e.endTime,e.text):e)}),function(e){const t=e.cues;if(!t)return;const i={};for(let s=t.length-1;s>=0;s--){const r=t[s],n=`${r.startTime}-${r.endTime}-${r.text}`;i[n]?e.removeCue(r):i[n]=r}}(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(e,t){const i=e&&"vtt"===e.type,s=t&&"text"===t.type;i&&s&&super.handleData_(e,t)}updateTimingInfoEnd_(){}parseMp4VttCues_(e){const t=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();e.mp4VttCues.forEach(i=>{const s=i.start+t,r=i.end+t,n=new be.VTTCue(s,r,i.cueText);i.settings&&i.settings.split(" ").forEach(e=>{const t=e.split(":"),i=t[0],s=t[1];n[i]=isNaN(s)?s:Number(s)}),e.cues.push(n)})}parseVTTCues_(e){let t,i=!1;if("function"!=typeof be.WebVTT)throw new Nh;if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},e.mp4VttCues)return void this.parseMp4VttCues_(e);"function"==typeof be.TextDecoder?t=new be.TextDecoder("utf8"):(t=be.WebVTT.StringDecoder(),i=!0);const s=new be.WebVTT.Parser(be,be.vttjs,t);if(s.oncue=e.cues.push.bind(e.cues),s.ontimestampmap=t=>{e.timestampmap=t},s.onparsingerror=e=>{eu.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;i&&(t=Lh(t)),s.parse(t)}let r=e.bytes;i&&(r=Lh(r)),s.parse(r),s.flush()}updateTimeMapping_(e,t,i){const s=e.segment;if(!t)return;if(!e.cues.length)return void(s.empty=!0);const{MPEGTS:r,LOCAL:n}=e.timestampmap,a=r/qs.ONE_SECOND_IN_TS-n+t.mapping;if(e.cues.forEach(e=>{const i=e.endTime-e.startTime,s=this.handleRollover_(e.startTime+a,t.time);e.startTime=Math.max(s,0),e.endTime=Math.max(s+i,0)}),!i.syncInfo){const t=e.cues[0].startTime,r=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(t,r-s.duration)}}}handleRollover_(e,t){if(null===t)return e;let i=e*qs.ONE_SECOND_IN_TS;const s=t*qs.ONE_SECOND_IN_TS;let r;for(r=s<i?-8589934592:8589934592;Math.abs(i-s)>4294967296;)i+=r;return i/qs.ONE_SECOND_IN_TS}}const Uh=function(e,t){const i=e.cues;for(let e=0;e<i.length;e++){const s=i[e];if(t>=s.adStartTime&&t<=s.adEndTime)return s}return null};class Fh{constructor({start:e,end:t,segmentIndex:i,partIndex:s=null,appended:r=!1}){this.start_=e,this.end_=t,this.segmentIndex_=i,this.partIndex_=s,this.appended_=r}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class Bh{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(e=>e.resetAppendedStatus())}}class qh{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(e=>e.resetAppendStatus())}update(e,t){const{mediaSequence:i,segments:s}=e;if(this.isReliable_=this.isReliablePlaylist_(i,s),this.isReliable_)return this.updateStorage_(s,i,this.calculateBaseTime_(i,s,t))}getSyncInfoForTime(e){for(const{segmentSyncInfo:t,partsSyncInfo:i}of this.storage_.values())if(i.length){for(const t of i)if(t.isInRange(e))return t}else if(t.isInRange(e))return t;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}updateStorage_(e,t,i){const s=new Map;let r="\n",n=i,a=t;this.start_=n,e.forEach((e,t)=>{const i=this.storage_.get(a),o=n,l=o+e.duration,u=Boolean(i&&i.segmentSyncInfo&&i.segmentSyncInfo.isAppended),c=new Fh({start:o,end:l,appended:u,segmentIndex:t});e.syncInfo=c;let h=n;const d=(e.parts||[]).map((e,s)=>{const n=h,o=h+e.duration,l=Boolean(i&&i.partsSyncInfo&&i.partsSyncInfo[s]&&i.partsSyncInfo[s].isAppended),u=new Fh({start:n,end:o,appended:l,segmentIndex:t,partIndex:s});return h=o,r+=`Media Sequence: ${a}.${s} | Range: ${n} --\x3e ${o} | Appended: ${l}\n`,e.syncInfo=u,u});s.set(a,new Bh(c,d)),r+=`${eh(e.resolvedUri)} | Media Sequence: ${a} | Range: ${o} --\x3e ${l} | Appended: ${u}\n`,a++,n=l}),this.end_=n,this.storage_=s,this.diagnostics_=r}calculateBaseTime_(e,t,i){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;const s=Math.min(...this.storage_.keys());if(e<s){const i=s-e;let r=this.storage_.get(s).segmentSyncInfo.start;for(let e=0;e<i;e++)r-=t[e].duration;return r}return i}isReliablePlaylist_(e,t){return null!=e&&Array.isArray(t)&&t.length}}class jh extends qh{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t,i){if(!this.storage_.size){const t=this.parent_.getSyncInfoForMediaSequence(e);return t?t.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t,i)}}const $h=[{name:"VOD",run:(e,t,i,s,r)=>i!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(e,t,i,s,r,n)=>{const a=e.getMediaSequenceSync(n);if(!a)return null;if(!a.isReliable)return null;const o=a.getSyncInfoForTime(r);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}},{name:"ProgramDateTime",run:(e,t,i,s,r)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let n=null,a=null;const o=bu(t);r=r||0;for(let i=0;i<o.length;i++){const s=o[t.endList||0===r?i:o.length-(i+1)],l=s.segment,u=e.timelineToDatetimeMappings[l.timeline];if(!u||!l.dateTimeObject)continue;let c=l.dateTimeObject.getTime()/1e3+u;if(l.parts&&"number"==typeof s.partIndex)for(let e=0;e<s.partIndex;e++)c+=l.parts[e].duration;const h=Math.abs(r-c);if(null!==a&&(0===h||a<h))break;a=h,n={time:c,segmentIndex:s.segmentIndex,partIndex:s.partIndex}}return n}},{name:"Segment",run:(e,t,i,s,r)=>{let n=null,a=null;r=r||0;const o=bu(t);for(let e=0;e<o.length;e++){const i=o[t.endList||0===r?e:o.length-(e+1)],l=i.segment,u=i.part&&i.part.start||l&&l.start;if(l.timeline===s&&void 0!==u){const e=Math.abs(r-u);if(null!==a&&a<e)break;(!n||null===a||a>=e)&&(a=e,n={time:u,segmentIndex:i.segmentIndex,partIndex:i.partIndex})}}return n}},{name:"Discontinuity",run:(e,t,i,s,r)=>{let n=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length){let i=null;for(let s=0;s<t.discontinuityStarts.length;s++){const a=t.discontinuityStarts[s],o=t.discontinuitySequence+s+1,l=e.discontinuities[o];if(l){const e=Math.abs(r-l.time);if(null!==i&&i<e)break;(!n||null===i||i>=e)&&(i=e,n={time:l.time,segmentIndex:a,partIndex:null})}}}return n}},{name:"Playlist",run:(e,t,i,s,r)=>t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}];class Hh extends eu.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const t=new qh,i=new jh(t),s=new jh(t);this.mediaSequenceStorage_={main:t,audio:i,vtt:s},this.logger_=ou("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,i,s,r){if(t!==1/0)return $h.find(({name:e})=>"VOD"===e).run(this,e,t);const n=this.runStrategies_(e,t,i,s,r);if(!n.length)return null;for(const t of n){const{syncPoint:i,strategy:r}=t,{segmentIndex:n,time:a}=i;if(n<0)continue;const o=a,l=o+e.segments[n].duration;if(this.logger_(`Strategy: ${r}. Current time: ${s}. selected segment: ${n}. Time: [${o} -> ${l}]}`),s>=o&&s<l)return this.logger_("Found sync point with exact match: ",i),i}return this.selectSyncPoint_(n,{key:"time",value:s})}getExpiredTime(e,t){if(!e||!e.segments)return null;const i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;const s=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return s.segmentIndex>0&&(s.time*=-1),Math.abs(s.time+ku({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:s.segmentIndex,endIndex:0}))}runStrategies_(e,t,i,s,r){const n=[];for(let a=0;a<$h.length;a++){const o=$h[a],l=o.run(this,e,t,i,s,r);l&&(l.strategy=o.name,n.push({strategy:o.name,syncPoint:l}))}return n}selectSyncPoint_(e,t){let i=e[0].syncPoint,s=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy;for(let n=1;n<e.length;n++){const a=Math.abs(e[n].syncPoint[t.key]-t.value);a<s&&(s=a,i=e[n].syncPoint,r=e[n].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${r}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+("number"==typeof i.partIndex?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpiredSegmentInfo(e,t){const i=t.mediaSequence-e.mediaSequence;if(i>86400)eu.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);else for(let s=i-1;s>=0;s--){const i=e.segments[s];if(i&&void 0!==i.start){t.syncInfo={mediaSequence:e.mediaSequence+s,time:i.start},this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),s=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:s.start}));const r=s.dateTimeObject;s.discontinuity&&t&&r&&(this.timelineToDatetimeMappings[s.timeline]=-r.getTime()/1e3)}timestampOffsetForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].time}mappingForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,i){const s=e.segment,r=e.part;let n,a,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${o.time}] [mapping: ${o.mapping}]`)),n=e.startOfSegment,a=t.end+o.mapping;else{if(!o)return!1;n=t.start+o.mapping,a=t.end+o.mapping}return r&&(r.start=n,r.end=a),(!s.start||n<s.start)&&(s.start=n),s.end=a,!0}saveDiscontinuitySyncInfo_(e){const t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let s=0;s<t.discontinuityStarts.length;s++){const r=t.discontinuityStarts[s],n=t.discontinuitySequence+s+1,a=r-e.mediaIndex,o=Math.abs(a);if(!this.discontinuities[n]||this.discontinuities[n].accuracy>o){let s;s=a<0?i.start-ku({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+ku({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[n]={time:s,accuracy:o}}}}dispose(){this.trigger("dispose"),this.off()}}class Vh extends eu.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:i}){return"number"==typeof t&&"number"==typeof i&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:i}){if("number"==typeof t&&"number"==typeof i){this.lastTimelineChanges_[e]={type:e,from:t,to:i},delete this.pendingTimelineChanges_[e];const s={timelineChangeInfo:{from:t,to:i}};this.trigger({type:"timelinechange",metadata:s})}return this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const zh=Ic(Ac(function(){var e=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,s=0;s<i;++s)t[s].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),n=t.length,a=0;a<n;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();let t=null;class i{constructor(e){let i,s,r;t||(t=function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],s=t[4],r=i[4];let n,a,o;const l=[],u=[];let c,h,d,p,m,g;for(n=0;n<256;n++)u[(l[n]=n<<1^283*(n>>7))^n]=n;for(a=o=0;!s[a];a^=c||1,o=u[o]||1)for(p=o^o<<1^o<<2^o<<3^o<<4,p=p>>8^255&p^99,s[a]=p,r[p]=a,d=l[h=l[c=l[a]]],g=16843009*d^65537*h^257*c^16843008*a,m=257*l[p]^16843008*p,n=0;n<4;n++)t[n][a]=m=m<<24^m>>>8,i[n][p]=g=g<<24^g>>>8;for(n=0;n<5;n++)t[n]=t[n].slice(0),i[n]=i[n].slice(0);return e}()),this._tables=[[t[0][0].slice(),t[0][1].slice(),t[0][2].slice(),t[0][3].slice(),t[0][4].slice()],[t[1][0].slice(),t[1][1].slice(),t[1][2].slice(),t[1][3].slice(),t[1][4].slice()]];const n=this._tables[0][4],a=this._tables[1],o=e.length;let l=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");const u=e.slice(0),c=[];for(this._key=[u,c],i=o;i<4*o+28;i++)r=u[i-1],(i%o===0||8===o&&i%o===4)&&(r=n[r>>>24]<<24^n[r>>16&255]<<16^n[r>>8&255]<<8^n[255&r],i%o===0&&(r=r<<8^r>>>24^l<<24,l=l<<1^283*(l>>7))),u[i]=u[i-o]^r;for(s=0;i;s++,i--)r=u[3&s?i:i-4],c[s]=i<=4||s<4?r:a[0][n[r>>>24]]^a[1][n[r>>16&255]]^a[2][n[r>>8&255]]^a[3][n[255&r]]}decrypt(e,t,i,s,r,n){const a=this._key[1];let o,l,u,c=e^a[0],h=s^a[1],d=i^a[2],p=t^a[3];const m=a.length/4-2;let g,f=4;const y=this._tables[1],_=y[0],v=y[1],b=y[2],T=y[3],S=y[4];for(g=0;g<m;g++)o=_[c>>>24]^v[h>>16&255]^b[d>>8&255]^T[255&p]^a[f],l=_[h>>>24]^v[d>>16&255]^b[p>>8&255]^T[255&c]^a[f+1],u=_[d>>>24]^v[p>>16&255]^b[c>>8&255]^T[255&h]^a[f+2],p=_[p>>>24]^v[c>>16&255]^b[h>>8&255]^T[255&d]^a[f+3],f+=4,c=o,h=l,d=u;for(g=0;g<4;g++)r[(3&-g)+n]=S[c>>>24]<<24^S[h>>16&255]<<16^S[d>>8&255]<<8^S[255&p]^a[f++],o=c,c=h,h=d,d=p,p=o}}class s extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const r=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},n=function(e,t,s){const n=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),a=new i(Array.prototype.slice.call(t)),o=new Uint8Array(e.byteLength),l=new Int32Array(o.buffer);let u,c,h,d,p,m,g,f,y;for(u=s[0],c=s[1],h=s[2],d=s[3],y=0;y<n.length;y+=4)p=r(n[y]),m=r(n[y+1]),g=r(n[y+2]),f=r(n[y+3]),a.decrypt(p,m,g,f,l,y),l[y]=r(l[y]^u),l[y+1]=r(l[y+1]^c),l[y+2]=r(l[y+2]^h),l[y+3]=r(l[y+3]^d),u=p,c=m,h=g,d=f;return o};class a{constructor(e,t,i,n){const o=a.STEP,l=new Int32Array(e.buffer),u=new Uint8Array(e.byteLength);let c=0;for(this.asyncStream_=new s,this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+o),t,i,u)),c=o;c<l.length;c+=o)i=new Uint32Array([r(l[c-4]),r(l[c-3]),r(l[c-2]),r(l[c-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+o),t,i,u));this.asyncStream_.push(function(){n(null,function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}(u))})}static get STEP(){return 32e3}decryptChunk_(e,t,i,s){return function(){const r=n(e,t,i);s.set(r,e.byteOffset)}}}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=("undefined"!=typeof window?window:void 0!==o?o:"undefined"!=typeof self?self:{}).BigInt||Number;l("0x1"),l("0x100"),l("0x10000"),l("0x1000000"),l("0x100000000"),l("0x10000000000"),l("0x1000000000000"),l("0x100000000000000"),l("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();self.onmessage=function(e){const t=e.data,i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),s=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new a(i,s,r,function(e,i){self.postMessage(function(e){const t={};return Object.keys(e).forEach(i=>{const s=e[i];!function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer}(s)?t[i]=s:t[i]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}}),t}({source:t.source,decrypted:i}),[i.buffer])})}}));var Wh=xc(zh);const Gh=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Xh=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Zh=(e,t)=>{t.activePlaylistLoader=e,e.load()},Qh={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:i},excludePlaylist:s}=t,r=i.activeTrack(),n=i.activeGroup(),a=(n.filter(e=>e.default)[0]||n[0]).id,o=i.tracks[a];if(r!==o){eu.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const e in i.tracks)i.tracks[e].enabled=i.tracks[e]===o;i.onTrackChanged()}else s({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:i}}=t;eu.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const s=i.activeTrack();s&&(s.mode="disabled"),i.onTrackChanged()}},Kh={AUDIO:(e,t,i)=>{if(!t)return;const{tech:s,requestOptions:r,segmentLoaders:{[e]:n}}=i;t.on("loadedmetadata",()=>{const e=t.media();n.playlist(e,r),(!s.paused()||e.endList&&"none"!==s.preload())&&n.load()}),t.on("loadedplaylist",()=>{n.playlist(t.media(),r),s.paused()||n.load()}),t.on("error",Qh[e](e,i))},SUBTITLES:(e,t,i)=>{const{tech:s,requestOptions:r,segmentLoaders:{[e]:n},mediaTypes:{[e]:a}}=i;t.on("loadedmetadata",()=>{const e=t.media();n.playlist(e,r),n.track(a.activeTrack()),(!s.paused()||e.endList&&"none"!==s.preload())&&n.load()}),t.on("loadedplaylist",()=>{n.playlist(t.media(),r),s.paused()||n.load()}),t.on("error",Qh[e](e,i))}},Yh={AUDIO:(e,t)=>{const{vhs:i,sourceType:s,segmentLoaders:{[e]:r},requestOptions:n,main:{mediaGroups:a},mediaTypes:{[e]:{groups:o,tracks:l,logger_:u}},mainPlaylistLoader:c}=t,h=Nu(c.main);a[e]&&0!==Object.keys(a[e]).length||(a[e]={main:{default:{default:!0}}},h&&(a[e].main.default.playlists=c.main.playlists));for(const r in a[e]){o[r]||(o[r]=[]);for(const d in a[e][r]){let p,m=a[e][r][d];if(h?(u(`AUDIO group '${r}' label '${d}' is a main playlist`),m.isMainPlaylist=!0,p=null):p="vhs-json"===s&&m.playlists?new nc(m.playlists[0],i,n):m.resolvedUri?new nc(m.resolvedUri,i,n):m.playlists&&"dash"===s?new Cc(m.playlists[0],i,n,c):null,m=lu({id:d,playlistLoader:p},m),Kh[e](e,m.playlistLoader,t),o[r].push(m),void 0===l[d]){const e=new eu.AudioTrack({id:d,kind:Gh(m),enabled:!1,language:m.language,default:m.default,label:d});l[d]=e}}}r.on("error",Qh[e](e,t))},SUBTITLES:(e,t)=>{const{tech:i,vhs:s,sourceType:r,segmentLoaders:{[e]:n},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[e]:{groups:l,tracks:u}},mainPlaylistLoader:c}=t;for(const n in o[e]){l[n]||(l[n]=[]);for(const h in o[e][n]){if(!s.options_.useForcedSubtitles&&o[e][n][h].forced)continue;let d,p=o[e][n][h];if("hls"===r)d=new nc(p.resolvedUri,s,a);else if("dash"===r){if(!p.playlists.filter(e=>e.excludeUntil!==1/0).length)return;d=new Cc(p.playlists[0],s,a,c)}else"vhs-json"===r&&(d=new nc(p.playlists?p.playlists[0]:p.resolvedUri,s,a));if(p=lu({id:h,playlistLoader:d},p),Kh[e](e,p.playlistLoader,t),l[n].push(p),void 0===u[h]){const e=i.addRemoteTextTrack({id:h,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:h},!1).track;u[h]=e}}}n.on("error",Qh[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:i,main:{mediaGroups:s},mediaTypes:{[e]:{groups:r,tracks:n}}}=t;for(const t in s[e]){r[t]||(r[t]=[]);for(const a in s[e][t]){const o=s[e][t][a];if(!/^(?:CC|SERVICE)/.test(o.instreamId))continue;const l=i.options_.vhs&&i.options_.vhs.captionServices||{};let u={label:a,language:o.language,instreamId:o.instreamId,default:o.default&&o.autoselect};if(l[u.instreamId]&&(u=lu(u,l[u.instreamId])),void 0===u.default&&delete u.default,r[t].push(lu({id:a},o)),void 0===n[a]){const e=i.addRemoteTextTrack({id:u.instreamId,kind:"captions",default:u.default,language:u.language,label:u.label},!1).track;n[a]=e}}}}},Jh=(e,t)=>{for(let i=0;i<e.length;i++){if(Lu(t,e[i]))return!0;if(e[i].playlists&&Jh(e[i].playlists,t))return!0}return!1},ed={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if(i[e].enabled)return i[e];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if("showing"===i[e].mode||"hidden"===i[e].mode)return i[e];return null}};class td{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=nu(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(e=>[e.ID,e])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class id extends eu.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new td,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=ou("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const i=t.serverUri||t.serverURL;if(!i)return this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),void this.trigger("error");i.startsWith("data:")?this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1)):(this.steeringManifest.reloadUri=nu(e,i),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const i=e?t:this.getRequestURI(t);if(!i)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();const s={contentSteeringInfo:{uri:i}};this.trigger({type:"contentsteeringloadstart",metadata:s}),this.request_=this.xhr_({uri:i,requestType:"content-steering-manifest"},(e,t)=>{if(e){if(410===t.status)return this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),void this.excludedSteeringManifestURLs.add(i);if(429===t.status){const i=t.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${i} seconds.`),void this.startTTLTimeout_(parseInt(i,10))}return this.logger_(`manifest failed to load ${e}.`),void this.startTTLTimeout_()}let r;this.trigger({type:"contentsteeringloadcomplete",metadata:s});try{r=JSON.parse(this.request_.responseText)}catch(e){const t={errorType:eu.Error.StreamingContentSteeringParserError,error:e};this.trigger({type:"error",metadata:t})}this.assignSteeringProperties_(r);const n={contentSteeringInfo:s.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:n}),this.startTTLTimeout_()})}setProxyServerUrl_(e){const t=new be.URL(e),i=new be.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const t=JSON.parse(be.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new be.URL(e),i=this.getPathway(),s=this.getBandwidth_();if(i){const e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,i)}if(s){const e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,s)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const t=(e=>{for(const t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){const i=this.setProxyServerUrl_(e);if(!t(i))return i}const i=this.setSteeringParams_(e);return t(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=be.setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){be.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new td}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(nu(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let sd;const rd=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],nd=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]};class ad extends eu.EventTarget{constructor(e){super(),this.fastQualityChange_=(e=>{let t=null;return(...i)=>{clearTimeout(t),t=setTimeout(()=>{e.apply(null,i)},100)}})(this.fastQualityChange_.bind(this));const{src:t,withCredentials:i,tech:s,bandwidth:r,externVhs:n,useCueTags:a,playlistExclusionDuration:o,enableLowInitialPlaylist:l,sourceType:u,cacheEncryptionKeys:c,bufferBasedABR:h,leastPixelDiffSelector:d,captionServices:p,experimentalUseMMS:m}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:g}=e;null==g&&(g=1/0),sd=n,this.bufferBasedABR=Boolean(h),this.leastPixelDiffSelector=Boolean(d),this.withCredentials=i,this.tech_=s,this.vhs_=s.vhs,this.player_=e.player_,this.sourceType_=u,this.useCueTags_=a,this.playlistExclusionDuration=o,this.maxPlaylistRetries=g,this.enableLowInitialPlaylist=l,this.usingManagedMediaSource_=!1,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:g,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=(()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:mh,activeTrack:mh,getActiveGroup:mh,onGroupChanged:mh,onTrackChanged:mh,lastTrack_:null,logger_:ou(`MediaGroups[${t}]`)}}),e})(),m&&be.ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new be.ManagedMediaSource,this.usingManagedMediaSource_=!0,eu.log("Using ManagedMediaSource")):be.MediaSource&&(this.mediaSource=new be.MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.load=this.load.bind(this),this.pause=this.pause.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.mediaSource.addEventListener("startstreaming",this.load),this.mediaSource.addEventListener("endstreaming",this.pause),this.seekable_=uu(),this.hasPlayed_=!1,this.syncController_=new Hh(e),this.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.segmentMetadataTrack_.mode="hidden",this.decrypter_=new Wh,this.sourceUpdater_=new Mh(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Vh,this.keyStatusMap_=new Map;const f={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:p,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:r,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:c,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new Cc(t,this.vhs_,lu(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new nc(t,this.vhs_,lu(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new ph(lu(f,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new ph(lu(f,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new Rh(lu(f,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((e,t)=>{function i(){s.off("vttjserror",r),e()}function r(){s.off("vttjsloaded",i),t()}s.one("vttjsloaded",i),s.one("vttjserror",r),s.addWebVttScript_()})}),e),this.contentSteeringController_=new id(this.vhs_.xhr,()=>this.mainSegmentLoader_.bandwidth),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),rd.forEach(e=>{this[e+"_"]=nd.bind(this,e)}),this.logger_=ou("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const y="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(y,()=>{const e=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,i){const s=this.media(),r=s&&(s.id||s.uri),n=e&&(e.id||e.uri);if(r&&r!==n){this.logger_(`switch media ${r} -> ${n} from ${t}`);const i={renditionInfo:{id:n,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t};this.trigger({type:"renditionselected",metadata:i}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})}this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{const t=this.mediaTypes_[e],i=t?t.activeGroup():null,s=this.contentSteeringController_.getPathway();if(i&&s){const t=(i.length?i[0].playlists:i.playlists).filter(e=>e.attributes.serviceLocation===s);t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=be.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(be.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const i=e.mediaGroups.AUDIO,s=Object.keys(i);let r;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)r=this.mediaTypes_.AUDIO.activeTrack();else{const e=i.main||s.length&&i[s[0]];for(const t in e)if(e[t].default){r={label:t};break}}if(!r)return t;const n=[];for(const t in i)if(i[t][r.label]){const s=i[t][r.label];if(s.playlists&&s.playlists.length)n.push.apply(n,s.playlists);else if(s.uri)n.push(s);else if(e.playlists.length)for(let i=0;i<e.playlists.length;i++){const s=e.playlists[i];s.attributes&&s.attributes.AUDIO&&s.attributes.AUDIO===t&&n.push(s)}}return n.length?n:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;Mu(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),(e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{Yh[t](t,e)});const{mediaTypes:t,mainPlaylistLoader:i,tech:s,vhs:r,segmentLoaders:{AUDIO:n,main:a}}=e;["AUDIO","SUBTITLES"].forEach(i=>{t[i].activeGroup=((e,t)=>i=>{const{mainPlaylistLoader:s,mediaTypes:{[e]:{groups:r}}}=t,n=s.media();if(!n)return null;let a=null;n.attributes[e]&&(a=r[n.attributes[e]]);const o=Object.keys(r);if(!a)if("AUDIO"===e&&o.length>1&&Nu(t.main))for(let e=0;e<o.length;e++){const t=r[o[e]];if(Jh(t,n)){a=t;break}}else r.main?a=r.main:1===o.length&&(a=r[o[0]]);return void 0===i?a:null!==i&&a&&a.filter(e=>e.id===i.id)[0]||null})(i,e),t[i].activeTrack=ed[i](i,e),t[i].onGroupChanged=((e,t)=>()=>{const{segmentLoaders:{[e]:i,main:s},mediaTypes:{[e]:r}}=t,n=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;a&&l&&a.id===l.id||(r.lastGroup_=a,r.lastTrack_=n,Xh(i,r),a&&!a.isMainPlaylist&&(a.playlistLoader?(i.resyncLoader(),Zh(a.playlistLoader,r)):o&&s.resetEverything()))})(i,e),t[i].onGroupChanging=((e,t)=>()=>{const{segmentLoaders:{[e]:i},mediaTypes:{[e]:s}}=t;s.lastGroup_=null,i.abort(),i.pause()})(i,e),t[i].onTrackChanged=((e,t)=>()=>{const{mainPlaylistLoader:i,segmentLoaders:{[e]:s,main:r},mediaTypes:{[e]:n}}=t,a=n.activeTrack(),o=n.getActiveGroup(),l=n.activePlaylistLoader,u=n.lastTrack_;if((!u||!a||u.id!==a.id)&&(n.lastGroup_=o,n.lastTrack_=a,Xh(s,n),o)){if(o.isMainPlaylist){if(!a||!u||a.id===u.id)return;const e=t.vhs.playlistController_,s=e.selectPlaylist();if(e.media()===s)return;return n.logger_(`track change. Switching main audio from ${u.id} to ${a.id}`),i.pause(),r.resetEverything(),void e.fastQualityChange_(s)}if("AUDIO"===e){if(!o.playlistLoader)return r.setAudio(!0),void r.resetEverything();s.setAudio(!0),r.setAudio(!1)}l!==o.playlistLoader?(s.track&&s.track(a),s.resetEverything(),Zh(o.playlistLoader,n)):Zh(o.playlistLoader,n)}})(i,e),t[i].getActiveGroup=((e,{mediaTypes:t})=>()=>{const i=t[e].activeTrack();return i?t[e].activeGroup(i):null})(i,e)});const o=t.AUDIO.activeGroup();if(o){const e=(o.filter(e=>e.default)[0]||o[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),n.setAudio(!0)):a.setAudio(!0)}i.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanged())}),i.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanging())});const l=()=>{t.AUDIO.onTrackChanged(),s.trigger({type:"usage",name:"vhs-audio-change"})};s.audioTracks().addEventListener("change",l),s.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",()=>{s.audioTracks().removeEventListener("change",l),s.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),s.clearTracks("audio");for(const e in t.AUDIO.tracks)s.audioTracks().addTrack(t.AUDIO.tracks[e])})({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t))return;if(this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial"),"vhs-json"!==this.sourceType_||!this.initialMedia_.segments)return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;Mu(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.isPaused&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(e=>{this.mainPlaylistLoader_.on(e,e=>{this.player_.trigger(Et({},e))})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const i=e.mediaGroups||{};let s=!0;const r=Object.keys(i.AUDIO);for(const e in i.AUDIO)for(const t in i.AUDIO[e])i.AUDIO[e][t].uri||(s=!1);s&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),sd.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),r.length&&Object.keys(i.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),s=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function({currentPlaylist:e,buffered:t,currentTime:i,nextPlaylist:s,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:a,bufferBasedABR:o,log:l}){if(!s)return eu.log.warn("We received no playlist to switch to. Please check your stream."),!1;const u=`allowing switch ${e&&e.id||"null"} -> ${s.id}`;if(!e)return l(`${u} as current playlist is not set`),!0;if(s.id===e.id)return!1;const c=Boolean(pu(t,i).length);if(!e.endList)return c||"number"!=typeof e.partTargetDuration?(l(`${u} as current playlist is live`),!0):(l(`not ${u} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const h=_u(t,i),d=o?Ec.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Ec.MAX_BUFFER_LOW_WATER_LINE;if(a<d)return l(`${u} as duration < max low water line (${a} < ${d})`),!0;const p=s.attributes.BANDWIDTH,m=e.attributes.BANDWIDTH;if(p<m&&(!o||h<n)){let e=`${u} as next bandwidth < current bandwidth (${p} < ${m})`;return o&&(e+=` and forwardBuffer < bufferHighWaterLine (${h} < ${n})`),l(e),!0}if((!o||p>m)&&h>=r){let e=`${u} as forwardBuffer >= bufferLowWaterLine (${h} >= ${r})`;return o&&(e+=` and next bandwidth > current bandwidth (${p} > ${m})`),l(e),!0}return l(`not ${u} as no switching criteria met`),!1}({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:s,bufferHighWaterLine:r,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.timelineChangeController_.on("audioTimelineBehind",()=>{const e=this.audioSegmentLoader_.pendingSegment_;if(!e||!e.segment||!e.segment.syncInfo)return;const t=e.segment.syncInfo.end+.01;this.tech_.setCurrentTime(t)}),this.timelineChangeController_.on("fixBadTimelineChange",()=>{this.logger_("Fix bad timeline change. Restarting al segment loaders..."),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}),this.mainSegmentLoader_.on("earlyabort",e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(e=>{this.mainSegmentLoader_.on(e,e=>{this.player_.trigger(Et({},e))}),this.audioSegmentLoader_.on(e,e=>{this.player_.trigger(Et({},e))}),this.subtitleSegmentLoader_.on(e,e=>{this.player_.trigger(Et({},e))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}pause(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const i=t.end(0);let s=i;if(e.start){const r=e.start.timeOffset;s=r<0?Math.max(i+r,t.start(0)):Math.min(i,r)}this.trigger("firstplay"),this.tech_.setCurrentTime(s)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,e=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;const i=sd.Playlist.playlistEnd(e,t),s=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return i-s<=hu;const n=r.end(r.length-1);return n-s<=hu&&i-n<=hu}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const s=this.mainPlaylistLoader_.main.playlists,r=s.filter(Du),n=1===r.length&&r[0]===e;if(1===s.length&&i!==1/0)return eu.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(n);if(n){if(this.main().contentSteering){const t=this.pathwayAttribute_(e),i=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),void setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(t)},i)}let t=!1;s.forEach(i=>{if(i===e)return;const s=i.excludeUntil;void 0!==s&&s!==1/0&&(t=!0,delete i.excludeUntil)}),t&&(eu.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let a;a=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*i,e.excludeUntil=a,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const o=this.selectPlaylist();if(!o)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");const l=t.internal?this.logger_:eu.log.warn,u=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${u} Switching to playlist ${o.id}.`),o.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),o.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const c=o.targetDuration/2*1e3||5e3,h="number"==typeof o.lastRequest&&Date.now()-o.lastRequest<=c;return this.switchMedia_(o,"exclude",n||h)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const i=[],s="all"===e;(s||"main"===e)&&i.push(this.mainPlaylistLoader_);const r=[];(s||"audio"===e)&&r.push("AUDIO"),(s||"subtitle"===e)&&(r.push("CLOSED-CAPTIONS"),r.push("SUBTITLES")),r.forEach(e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)}),["main","audio","subtitle"].forEach(t=>{const s=this[`${t}SegmentLoader_`];!s||e!==t&&"all"!==e||i.push(s)}),i.forEach(e=>t.forEach(t=>{"function"==typeof e[t]&&e[t]()}))}setCurrentTime(e){const t=pu(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:sd.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}getSeekableRange_(e,t){const i=e.media();if(!i)return null;const s=this.syncController_.getMediaSequenceSync(t);if(s&&s.isReliable){const e=s.start,t=s.end;if(!isFinite(e)||!isFinite(t))return null;const r=sd.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i);return uu([[e,Math.max(e,t-r)]])}const r=this.syncController_.getExpiredTime(i,this.duration());if(null===r)return null;const n=sd.Playlist.seekable(i,r,sd.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i));return n.length?n:null}computeFinalSeekable_(e,t){if(!t)return e;const i=e.start(0),s=e.end(0),r=t.start(0),n=t.end(0);return r>s||i>n?e:uu([[Math.max(i,r),Math.min(s,n)]])}onSyncInfoUpdate_(){if(!this.mainPlaylistLoader_)return;const e=this.getSeekableRange_(this.mainPlaylistLoader_,"main");if(!e)return;let t;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,"audio"),!t))return;const i=this.seekable_;if(this.seekable_=this.computeFinalSeekable_(e,t),!this.seekable_)return;if(i&&i.length&&this.seekable_.length&&i.start(0)===this.seekable_.start(0)&&i.end(0)===this.seekable_.end(0))return;this.logger_(`seekable updated [${gu(this.seekable_)}]`);const s={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:s}),this.tech_.trigger("seekablechanged")}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){const e=this.seekable();if(!e.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1)))}const t=this.tech_.buffered();let i=sd.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(i=Math.max(i,t.end(t.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const t=this.mediaTypes_[e].groups;for(const e in t)t[e].forEach(e=>{e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=Qu(this.main(),t),s={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(s.video=i.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(s.video+=`,${i.audio||e.main.audioCodec||Zt}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(s.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||Zt,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!s.audio&&!s.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const n=(e,t)=>e?Gt(t,this.usingManagedMediaSource_):Xt(t),a={};let o;if(["video","audio"].forEach(function(t){if(s.hasOwnProperty(t)&&!n(e[t].isFmp4,s[t])){const i=e[t].isFmp4?"browser":"muxer";a[i]=a[i]||[],a[i].push(s[t]),"audio"===t&&(o=i)}}),r&&o&&t.attributes.AUDIO){const e=t.attributes.AUDIO;this.main().playlists.forEach(i=>{(i.attributes&&i.attributes.AUDIO)===e&&i!==t&&(i.excludeUntil=1/0)}),this.logger_(`excluding audio group ${e} as ${o} does not support codec(s): "${s.audio}"`)}if(Object.keys(a).length){const e=Object.keys(a).reduce((e,t)=>(e&&(e+=", "),e+`${t} does not support codec(s): "${a[t].join(",")}"`),"")+".";return void this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0})}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach(t=>{const i=(Vt(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(Vt(s[t]||"")[0]||{}).type;i&&r&&i.toLowerCase()!==r.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${s[t]}"`)}),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return s}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())return;if(!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach(i=>{const s=e[i];if(-1!==t.indexOf(s.id))return;t.push(s.id);const r=Qu(this.main,s),n=[];!r.audio||Xt(r.audio)||Gt(r.audio,this.usingManagedMediaSource_)||n.push(`audio codec ${r.audio}`),!r.video||Xt(r.video)||Gt(r.video,this.usingManagedMediaSource_)||n.push(`video codec ${r.video}`),r.text&&"stpp.ttml.im1t"===r.text&&n.push(`text codec ${r.text}`),n.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id} for unsupported: ${n.join(", ")}`))})}excludeIncompatibleVariants_(e){const t=[],i=this.main().playlists,s=Xu(Vt(e)),r=Zu(s),n=s.video&&Vt(s.video)[0]||null,a=s.audio&&Vt(s.audio)[0]||null;Object.keys(i).forEach(e=>{const s=i[e];if(-1!==t.indexOf(s.id)||s.excludeUntil===1/0)return;t.push(s.id);const o=[],l=Qu(this.mainPlaylistLoader_.main,s),u=Zu(l);if(l.audio||l.video){if(u!==r&&o.push(`codec count "${u}" !== "${r}"`),!this.sourceUpdater_.canChangeType()){const e=l.video&&Vt(l.video)[0]||null,t=l.audio&&Vt(l.audio)[0]||null;e&&n&&e.type.toLowerCase()!==n.type.toLowerCase()&&o.push(`video codec "${e.type}" !== "${n.type}"`),t&&a&&t.type.toLowerCase()!==a.type.toLowerCase()&&o.push(`audio codec "${t.type}" !== "${a.type}"`)}o.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id}: ${o.join(" && ")}`))}})}updateAdCues_(e){let t=0;const i=this.seekable();i.length&&(t=i.start(0)),function(e,t,i=0){if(!e.segments)return;let s,r=i;for(let i=0;i<e.segments.length;i++){const n=e.segments[i];if(s||(s=Uh(t,r+n.duration/2)),s){if("cueIn"in n){s.endTime=r,s.adEndTime=r,r+=n.duration,s=null;continue}if(r<s.endTime){r+=n.duration;continue}s.endTime+=n.duration}else if("cueOut"in n&&(s=new be.VTTCue(r,r+n.duration,n.cueOut),s.adStartTime=r,s.adEndTime=r+parseFloat(n.cueOut),t.addCue(s)),"cueOutCont"in n){const[e,i]=n.cueOutCont.split("/").map(parseFloat);s=new be.VTTCue(r,r+n.duration,""),s.adStartTime=r-e,s.adEndTime=s.adStartTime+i,t.addCue(s)}r+=n.duration}}(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=Ec.GOAL_BUFFER_LENGTH,i=Ec.GOAL_BUFFER_LENGTH_RATE,s=Math.max(t,Ec.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,s)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=Ec.BUFFER_LOW_WATER_LINE,i=Ec.BUFFER_LOW_WATER_LINE_RATE,s=Math.max(t,Ec.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,Ec.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?r:s)}bufferHighWaterLine(){return Ec.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){sh(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:e,dateRanges:t})=>{const i=e.metadataTrack_;if(!i)return;const s=be.WebKitDataCue||be.VTTCue;t.forEach(e=>{for(const t of Object.keys(e)){if(ih.has(t))continue;const r=new s(e.startTime,e.endTime,"");r.id=e.id,r.type="com.apple.quicktime.HLS",r.value={key:th[t],data:e[t]},"scte35Out"!==t&&"scte35In"!==t||(r.value.data=new Uint8Array(r.value.data.match(/[\da-f]{2}/gi)).buffer),i.addCue(r)}e.processDateRange()})})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,i){const s=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();sh(this.inbandTextTracks_,e,this.tech_),(({inbandTextTracks:e,metadataArray:t,timestampOffset:i,videoDuration:s})=>{if(!t)return;const r=be.WebKitDataCue||be.VTTCue,n=e.metadataTrack_;if(!n)return;if(t.forEach(e=>{const t=e.cueTime+i;!("number"!=typeof t||be.isNaN(t)||t<0)&&t<1/0&&e.frames&&e.frames.length&&e.frames.forEach(e=>{const i=new r(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,function(e){Object.defineProperties(e.frame,{id:{get:()=>(eu.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(eu.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(eu.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})}(i),n.addCue(i)})}),!n.cues||!n.cues.length)return;const a=n.cues,o=[];for(let e=0;e<a.length;e++)a[e]&&o.push(a[e]);const l=o.reduce((e,t)=>{const i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),u=Object.keys(l).sort((e,t)=>Number(e)-Number(t));u.forEach((e,t)=>{const i=l[e],r=isFinite(s)?s:e,n=Number(u[t+1])||r;i.forEach(e=>{e.endTime=n})})})({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:s,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart?this.contentSteeringController_.requestSteeringManifest(!0):this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.contentSteeringController_.on(e,e=>{this.trigger(Et({},e))})}),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const t=this.contentSteeringController_.getAvailablePathways(),i=[];for(const s of e.playlists){const e=s.attributes.serviceLocation;if(e&&(i.push(e),!t.has(e)))return!0}return!(i.length||!t.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const t=this.main().playlists,i=new Set;let s=!1;Object.keys(t).forEach(r=>{const n=t[r],a=this.pathwayAttribute_(n),o=a&&e!==a;n.excludeUntil===1/0&&"content-steering"===n.lastExcludeReason_&&!o&&(delete n.excludeUntil,delete n.lastExcludeReason_,s=!0);const l=!n.excludeUntil&&n.excludeUntil!==1/0;!i.has(n.id)&&o&&l&&(i.add(n.id),n.excludeUntil=1/0,n.lastExcludeReason_="content-steering",this.logger_(`excluding ${n.id} for ${n.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(t=>{const i=this.mediaTypes_[t];if(i.activePlaylistLoader){const t=i.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(s=!0)}}),s&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main().playlists,t=this.contentSteeringController_.currentPathwayClones,i=this.contentSteeringController_.nextPathwayClones;if(t&&t.size||i&&i.size){for(const[e,s]of t.entries())i.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(s),this.contentSteeringController_.excludePathway(e));for(const[s,r]of i.entries()){const i=t.get(s);i?this.equalPathwayClones_(i,r)||(this.mainPlaylistLoader_.updateOrDeleteClone(r,!0),this.contentSteeringController_.addAvailablePathway(s)):(e.filter(e=>e.attributes["PATHWAY-ID"]===r["BASE-ID"]).forEach(e=>{this.mainPlaylistLoader_.addClonePathway(r,e)}),this.contentSteeringController_.addAvailablePathway(s))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...i])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,s=t["URI-REPLACEMENT"].PARAMS;for(const e in i)if(i[e]!==s[e])return!1;for(const e in s)if(i[e]!==s[e])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(i=>{const s=this.mainPlaylistLoader_.getKeyIdSet(i);s&&s.size&&s.forEach(s=>{const r="usable",n=this.keyStatusMap_.has(s)&&this.keyStatusMap_.get(s)===r,a=i.lastExcludeReason_===t&&i.excludeUntil===1/0;n?n&&a&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${s} is ${r}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==t&&(i.excludeUntil=1/0,i.lastExcludeReason_=t,this.logger_(`excluding playlist ${i.id} because the key ID ${s} doesn't exist in the keyStatusMap or is not ${r}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(e=>{const i=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,s=e.excludeUntil===1/0&&e.lastExcludeReason_===t;i&&s&&(delete e.excludeUntil,eu.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){const i=("string"==typeof e?e:(e=>{const t=new Uint8Array(e);return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")})(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${i} added to the keyStatusMap`),this.keyStatusMap_.set(i,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}class od{constructor(e,t,i){const{playlistController_:s}=e,r=s.fastQualityChange_.bind(s);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=Qu(s.main(),t),this.playlist=t,this.id=i,this.enabled=((e,t,i)=>s=>{const r=e.main.playlists[t],n=Au(r),a=Du(r);if(void 0===s)return a;s?delete r.disabled:r.disabled=!0;const o={renditionInfo:{id:t,bandwidth:r.attributes.BANDWIDTH,resolution:r.attributes.RESOLUTION,codecs:r.attributes.CODECS},cause:"fast-quality"};return s===a||n||(s?(i(r),e.trigger({type:"renditionenabled",metadata:o})):e.trigger({type:"renditiondisabled",metadata:o})),s})(e.playlists,t.id,r)}}const ld=["seeking","seeked","pause","playing","error"];class ud extends eu.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=ou("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),s=()=>this.techWaiting_(),r=()=>this.resetTimeUpdate_(),n=this.playlistController_,a=["main","subtitle","audio"],o={};a.forEach(e=>{o[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},n[`${e}SegmentLoader_`].on("appendsdone",o[e].updateend),n[`${e}SegmentLoader_`].on("playlistupdate",o[e].reset),this.tech_.on(["seeked","seeking"],o[e].reset)});const l=e=>{["main","audio"].forEach(t=>{n[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),l("off"))},this.clearSeekingAppendCheck_=()=>l("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),l("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",s),this.tech_.on(ld,r),this.tech_.on("canplay",i),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",s),this.tech_.off(ld,r),this.tech_.off("canplay",i),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),a.forEach(e=>{n[`${e}SegmentLoader_`].off("appendsdone",o[e].updateend),n[`${e}SegmentLoader_`].off("playlistupdate",o[e].reset),this.tech_.off(["seeked","seeking"],o[e].reset)}),this.checkCurrentTimeTimeout_&&be.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&be.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=be.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){const t=this.playlistController_,i=t[`${e}SegmentLoader_`],s=i.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(let i=0;i<e.length;i++)if(e.start(i)!==t.start(i)||e.end(i)!==t.end(i))return!0;return!1}(this[`${e}Buffered_`],s);if(this[`${e}Buffered_`]=s,r){const i={bufferedRanges:s};return t.trigger({type:"bufferedrangeschanged",metadata:i}),void this.resetSegmentDownloads_(e)}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:fu(s)}),this[`${e}StalledDownloads_`]<10||(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+hu>=t.end(t.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(uu([this.lastRecordedTime,e]));const t={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:t}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const e=this.seekable(),t=this.tech_.currentTime();let i;if(this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(i=e.end(e.length-1)),this.beforeSeekableWindow_(e,t)){const t=e.start(0);i=t+(t===e.end(0)?0:hu)}if(void 0!==i)return this.logger_(`Trying to seek outside of seekable at time ${t} with seekable range ${gu(e)}. Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0;const s=this.playlistController_.sourceUpdater_,r=this.tech_.buffered(),n=s.audioBuffer?s.audioBuffered():null,a=s.videoBuffer?s.videoBuffered():null,o=this.media(),l=o.partTargetDuration?o.partTargetDuration:2*(o.targetDuration-cu),u=[n,a];for(let e=0;e<u.length;e++)if(u[e]&&_u(u[e],t)<l)return!1;const c=mu(r,t);return 0!==c.length&&(i=c.start(0)+hu,this.logger_(`Buffered region starts (${c.start(0)}) just beyond seek point (${t}). Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),i=pu(t,e);return i.length&&e+3<=i.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const i=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${i}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,s=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const r=mu(s,t);return r.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${r.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,i,s=!1){if(!e.length)return!1;let r=e.end(e.length-1)+hu;const n=!i.endList,a="number"==typeof i.partTargetDuration;return n&&(a||s)&&(r=e.end(e.length-1)+3*i.targetDuration),t>r}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:i}){if(!e)return;let s;if(e.length&&t.length){const r=pu(e,i-3),n=pu(e,i),a=pu(t,i);a.length&&!n.length&&r.length&&(s={start:r.end(0),end:a.end(0)})}else mu(e,i).length||(s=this.gapFromVideoUnderflow_(e,i));return!!s&&(this.logger_(`Encountered a gap in video from ${s.start} to ${s.end}. Seeking to current time ${i}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),i=this.tech_.currentTime(),s=mu(t,i);if(this.resetTimeUpdate_(),0===s.length||i!==e)return;this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",s.start(0)),this.tech_.setCurrentTime(s.start(0)+cu);const r={gapInfo:{from:i,to:s.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:r}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,t){const i=function(e){if(e.length<2)return uu();const t=[];for(let i=1;i<e.length;i++){const s=e.end(i-1),r=e.start(i);t.push([s,r])}return uu(t)}(e);for(let e=0;e<i.length;e++){const s=i.start(e),r=i.end(e);if(t-s<4&&t-s>2)return{start:s,end:r}}return null}}const cd={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},hd=function(e,t){let i=0,s=0;const r=lu(cd,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const n=function(){s&&e.currentTime(s)},a=function(t){null!=t&&(s=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",n),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},o=function(){if(Date.now()-i<1e3*r.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(r.getSource&&"function"==typeof r.getSource)return i=Date.now(),r.getSource.call(e,a);eu.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},l=function(){e.off("loadedmetadata",n),e.off("error",o),e.off("dispose",l)};e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=function(t){l(),hd(e,t)}};var dd="3.17.0";const pd={PlaylistLoader:nc,Playlist:Ru,utils:fc,STANDARD_PLAYLIST_SELECTOR:Jc,INITIAL_PLAYLIST_SELECTOR:function(){const e=this.playlists.main.playlists.filter(Ru.isEnabled);return Qc(e,(e,t)=>Kc(e,t)),e.filter(e=>!!Qu(this.playlists.main,e).video)[0]||null},lastBandwidthSelector:Jc,movingAverageBandwidthSelector:function(e){let t=-1,i=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let s=this.useDevicePixelRatio&&be.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(s=this.customPixelRatio),t<0&&(t=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(t=e*this.systemBandwidth+(1-e)*t,i=this.systemBandwidth),Yc({main:this.playlists.main,bandwidth:t,playerWidth:parseInt(Zc(this.tech_.el(),"width"),10)*s,playerHeight:parseInt(Zc(this.tech_.el(),"height"),10)*s,playerObjectFit:this.usePlayerObjectFit?Zc(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})}},comparePlaylistBandwidth:Kc,comparePlaylistResolution:function(e,t){let i,s;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||be.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||be.Number.MAX_VALUE,i===s&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-s},xhr:oc()};Object.keys(Ec).forEach(e=>{Object.defineProperty(pd,e,{get:()=>(eu.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),Ec[e]),set(t){eu.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0?eu.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):Ec[e]=t}})});const md="videojs-vhs",gd=function(e,t){const i=t.media();let s=-1;for(let t=0;t<e.length;t++)if(e[t].id===i.id){s=t;break}e.selectedIndex_=s,e.trigger({selectedIndex:s,type:"change"})};pd.canPlaySource=function(){return eu.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const fd=()=>{if(!be.localStorage)return null;const e=be.localStorage.getItem(md);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},yd=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},_d=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},vd=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},bd=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};pd.supportsNativeHls=function(){if(!Je||!Je.createElement)return!1;const e=Je.createElement("video");return!!eu.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),pd.supportsNativeDash=!!(Je&&Je.createElement&&eu.getTech("Html5").isSupported())&&/maybe|probably/i.test(Je.createElement("video").canPlayType("application/dash+xml")),pd.supportsTypeNatively=e=>"hls"===e?pd.supportsNativeHls:"dash"===e&&pd.supportsNativeDash,pd.isSupported=function(){return eu.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},pd.xhr.onRequest=function(e){yd(pd.xhr,e)},pd.xhr.onResponse=function(e){_d(pd.xhr,e)},pd.xhr.offRequest=function(e){vd(pd.xhr,e)},pd.xhr.offResponse=function(e){bd(pd.xhr,e)};const Td=eu.getComponent("Component");class Sd extends Td{constructor(e,t,i){if(super(t,i.vhs),"number"==typeof i.initialBandwidth&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=ou("VhsHandler"),t.options_&&t.options_.playerId){const e=eu.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(Je,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],e=>{const t=Je.fullscreenElement||Je.webkitFullscreenElement||Je.mozFullScreenElement||Je.msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=lu(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.usePlayerObjectFit=this.options_.usePlayerObjectFit||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=void 0===this.options_.useNetworkInformationApi||this.options_.useNetworkInformationApi,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const e=fd();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Ec.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Ec.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","usePlayerObjectFit","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(e=>{void 0!==this.source_[e]&&(this.options_[e]=this.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio,this.usePlayerObjectFit=this.options_.usePlayerObjectFit;const t=this.options_.customPixelRatio;"number"==typeof t&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=(e=>0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e)(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=pd,this.options_.sourceType=Yt(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.options_.player_=this.player_,this.playlistController_=new ad(this.options_);const i=lu({liveRangeSafeTimeDelta:hu},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new ud(i),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{const e=eu.players[this.tech_.options_.playerId];let t=this.playlistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});const s=this.options_.bufferBasedABR?pd.movingAverageBandwidthSelector(.55):pd.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.playlistController_.selectInitialPlaylist=pd.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth;const t=be.navigator.connection||be.navigator.mozConnection||be.navigator.webkitConnection,i=1e7;if(this.options_.useNetworkInformationApi&&t){const s=1e3*t.downlink*1e3;e=s>=i&&e>=i?Math.max(e,s):s}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const e=1/(this.bandwidth||1);let t;return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set(){eu.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>fu(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>fu(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&(e=>{if(!be.localStorage)return!1;let t=fd();t=t?lu(t,e):e;try{be.localStorage.setItem(md,JSON.stringify(t))}catch(e){return!1}})({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{!function(e){e.representations=()=>{const t=e.playlistController_.main(),i=Nu(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter(e=>!Au(e)).map((t,i)=>new od(e,t,t.id)):[]}}(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=be.URL.createObjectURL(this.playlistController_.mediaSource),(eu.browser.IS_ANY_SAFARI||eu.browser.IS_IOS)&&this.options_.overrideNative&&"hls"===this.options_.sourceType&&"function"==typeof this.tech_.addSourceElement?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),(({player:e,sourceKeySystems:t,audioMedia:i,mainPlaylists:s})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=((e,t)=>e.reduce((e,i)=>{if(!i.contentProtection)return e;const s=t.reduce((e,t)=>{const s=i.contentProtection[t];return s&&s.pssh&&(e[t]={pssh:s.pssh}),e},{});return Object.keys(s).length&&e.push(s),e},[]))(i?s.concat([i]):s,Object.keys(t)),n=[],a=[];return r.forEach(t=>{a.push(new Promise((t,i)=>{e.tech_.one("keysessioncreated",t)})),n.push(new Promise((i,s)=>{e.eme.initializeMediaKeys({keySystems:t},e=>{e?s(e):i()})}))}),Promise.race([Promise.all(n),Promise.race(a)])})({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=(({player:e,sourceKeySystems:t,media:i,audioMedia:s})=>{const r=((e,t,i)=>{if(!e)return e;let s={};t&&t.attributes&&t.attributes.CODECS&&(s=Xu(Vt(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(s.audio=i.attributes.CODECS);const r=Wt(s.video),n=Wt(s.audio),a={};for(const i in e)a[i]={},n&&(a[i].audioContentType=n),r&&(a[i].videoContentType=r),t.contentProtection&&t.contentProtection[i]&&t.contentProtection[i].pssh&&(a[i].pssh=t.contentProtection[i].pssh),"string"==typeof e[i]&&(a[i].url=e[i]);return lu(e,a)})(t,i,s);return!(!r||(e.currentSource().keySystems=r,r&&!e.eme&&(eu.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1)))})({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=eu.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{!function(e,t){t.representations().forEach(t=>{e.addQualityLevel(t)}),gd(e,t.playlists)}(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{gd(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":dd,"mux.js":"7.1.0","mpd-parser":"1.3.1","m3u8-parser":"7.2.0","aes-decrypter":"4.0.2"}}version(){return this.constructor.version()}canChangeType(){return Mh.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&be.URL.revokeObjectURL&&(be.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return(({playlist:e,time:t,callback:i})=>{if(!i)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===t)return i({message:"getProgramTime: playlist and time must be provided"});const s=((e,t)=>{if(!t||!t.segments||0===t.segments.length)return null;let i,s=0;for(let r=0;r<t.segments.length&&(i=t.segments[r],s=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:s+i.duration,!(e<=s));r++);const r=t.segments[t.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>s){if(e>s+.25*r.duration)return null;i=r}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:s-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}})(t,e);if(!s)return i({message:"valid programTime was not found"});if("estimate"===s.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});const r={mediaSeconds:t},n=((e,t)=>{if(!t.dateTimeObject)return null;const i=t.videoTimingInfo.transmuxerPrependedSeconds,s=e-(t.videoTimingInfo.transmuxedPresentationStart+i);return new Date(t.dateTimeObject.getTime()+1e3*s)})(t,s.segment);return n&&(r.programDateTime=n.toISOString()),i(null,r)})({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,i=!0,s=2){return yc({programTime:e,playlist:this.playlistController_.media(),retryCount:s,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{yd(this.xhr,e)},this.xhr.onResponse=e=>{_d(this.xhr,e)},this.xhr.offRequest=e=>{vd(this.xhr,e)},this.xhr.offResponse=e=>{bd(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.playlistController_.on(e,e=>{this.player_.trigger(Et({},e))})}),["gapjumped","playedrangeschanged"].forEach(e=>{this.playbackWatcher_.on(e,e=>{this.player_.trigger(Et({},e))})})}}const wd={name:"videojs-http-streaming",VERSION:dd,canHandleSource(e,t={}){const i=lu(eu.options,t);return!(!i.vhs.experimentalUseMMS&&!Gt("avc1.4d400d,mp4a.40.2",!1))&&wd.canPlayType(e.type,i)},handleSource(e,t,i={}){const s=lu(eu.options,i);return t.vhs=new Sd(e,t,s),t.vhs.xhr=oc(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const i=Yt(e);if(!i)return"";const s=wd.getOverrideNative(t);return!pd.supportsTypeNatively(i)||s?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,i=!(eu.browser.IS_ANY_SAFARI||eu.browser.IS_IOS),{overrideNative:s=i}=t;return s}};Gt("avc1.4d400d,mp4a.40.2",!0)&&eu.getTech("Html5").registerSourceHandler(wd,0),eu.VhsHandler=Sd,eu.VhsSourceHandler=wd,eu.Vhs=pd,eu.use||eu.registerComponent("Vhs",pd),eu.options.vhs=eu.options.vhs||{},eu.getPlugin&&eu.getPlugin("reloadSourceOnError")||eu.registerPlugin("reloadSourceOnError",function(e){hd(this,e)});let Cd=class extends q.A{constructor(){super(...arguments),this._controllerConfigs={autoplay:!1,autoSetup:!1,controls:!1,defaultVolume:.3,disablePictureInPicture:!0,enableDocumentPictureInPicture:!1,enableSmoothSeeking:!0,html5:{nativeAudioTracks:!1,nativeVideoTracks:!1,vhs:{llhls:!0,overrideNative:!0}},inactivityTimeout:0,liveTracker:{liveTolerance:10,trackingThreshold:15},loop:!1,muted:!1,nativeControlsForTouch:!1,normalizeAutoplay:!0,preload:"auto"},this._prevPlayingState=!1,this._retryCount=0,this._qualityLevels=[],this.autoplay=!1,this.currentMetadata=null,this.element=null,this.isLive=!1,this.mimeType=null,this.sensorModel=null,this.started=!1,this.state="not-ready",this.waitingTimestamp=null,this._initController=async()=>{if(!this._controller&&this.playerUrl)try{const e={...this._controllerConfigs};this.element=document.createElement("video"),eu.log.level("off"),this._controller=eu(this.element,e),this._controller.muted(this.muted),this._controller.loop(this.loop),this._controller.playbackRate(this.rate),this._controller.qualityLevels().on("addqualitylevel",e=>this._handleQualityLevel(e)),this._controller.ready(this._handleReady),this._controller.one("play",this._handleFirstPlay),this._controller.on("canplay",this._handleCanPlay),this._controller.on("durationchange",this._handleDurationChange),this._controller.on("ended",this._handleEnded),this._controller.on("error",this._handleError),this._controller.on("loadeddata",this._handleDataLoaded),this._controller.on("loadedmetadata",this._handleLoadedMetadata),this._controller.on("loadstart",this._handleLoadStart),this._controller.on("play",this._handlePlay),this._controller.on("playing",this._handlePlaying),this._controller.on("stalled",this._handleStalled),this._controller.on("timeupdate",this._handleTimeUpdate),this._controller.on("waiting",this._handleWaiting),this._controller.on("xhr-hooks-ready",this._handleXHRhooksReady),this._controller?.liveTracker.on("seekableendchange",()=>this.notifyChange("livestreamStatus")),this._controller?.liveTracker.on("liveedgechange",()=>this.notifyChange("livestreamStatus"))}catch(e){l.A.getLogger(this).error("Unable to initialize the player."),this._controller&&this._controller.dispose()}},this._handleQualityLevel=e=>{if(!e?.qualityLevel)return;const t=e.qualityLevel;this._qualityLevels.push(t),t?.enabled&&(this._set("videoWidth",t?.width??0),this._set("videoHeight",t?.height??0))},this._handleReady=()=>{this.state="ready"},this._handleFirstPlay=()=>{this._set("started",!0)},this._handleCanPlay=async()=>{if(this._prevPlayingState="playing"===this.state,this.state="can-play",this.autoplay&&!this.started)try{this.muted=!0,await this.play()}catch(e){l.A.getLogger(this).info("Unable to auto start playback. Blocked by the browser.")}},this._handleCueChange=()=>{if(!this.subtitleTrack?.activeCues?.length)return;const e=this.subtitleTrack?.activeCues,t=function(e,t=1e4){if(!e||!e.length)return[];let i=[],s=[];for(let t=0;t<e.length;t++){const s=e[t],r=s?.text?JSON.parse(s.text):null;"EsriVideoServer"===r?.source&&(i=[...r.data])}const r=i.find(e=>e.tagId===t);return Array.isArray(r?.value)&&(s=[...r.value]),s}(e);if(!t?.length)return;const i=new Map;for(const e of t)Array.isArray(e.value)?90064===e.tagId?i.set(e.tagId,e):e.value.forEach(e=>{i.set(e.tagId,e)}):i.set(e.tagId,e);i.set(he,{name:"Video Width",tagId:he,value:this._controller?.videoWidth()}),i.set(de,{name:"Video Height",tagId:de,value:this._controller?.videoHeight()}),this.currentMetadata=new Map(i)},this._handleDataLoaded=()=>{this._set("videoWidth",this._controller?.videoWidth()),this._set("videoHeight",this._controller?.videoHeight())},this._handleDurationChange=()=>{0!==this._controller?.duration()&&(this.notifyChange("duration"),this.isLive=this._controller?.duration()===1/0||!1,this._setLivestreamStatus(),this.started&&this._controller?.duration()===this._controller?.currentTime()&&this._controller?.trigger("ended"))},this._handleEnded=()=>{this._controller?.ended()&&this.notifyChange("ended")},this._handleError=()=>{const e=this._controller?.error()??null;if("number"==typeof e?.code&&e?.code<3&&0===this._retryCount)this._retryCount++,setTimeout(()=>{this._controller?.src({type:this.mimeType,src:this.playerUrl}),this._controller?.load()},2e3);else{const t=new o.A("Media Error",e?.message??"");l.A.getLogger(this).error(t),this.reset()}},this._handleLoadStart=()=>{this.state="can-play"},this._handleLoadedMetadata=()=>{this.state="can-play",this.notifyChange("buffered"),this.notifyChange("subtitleTrack")},this._handlePlay=()=>{this.notifyChange("ended")},this._handlePlaying=()=>{this.state="playing",this._retryCount=0,this.notifyChange("ended")},this._handleStalled=()=>{l.A.getLogger(this).warn("Playback is stalled and awaiting data")},this._handleTimeUpdate=()=>{this._setLivestreamStatus(),this.notifyChange("currentTime"),this.notifyChange("buffered"),this.notifyChange("bufferedPercent"),this._set("videoWidth",this._controller?.videoWidth()),this._set("videoHeight",this._controller?.videoHeight())},this._handleWaiting=()=>{this.waitingTimestamp=this._controller?.currentTime(),this.state="waiting"},this._handleXHRhooksReady=()=>{this._controller?.tech(!0)?.vhs.xhr.onRequest(e=>(e.xhr=new X,e))},this._updateSensorModel=()=>{this.currentMetadata?.size&&(this.sensorModel?this.sensorModel.updateSensorModel(this.currentMetadata):this.sensorModel=new ge({videoMetadata:this.currentMetadata}))},this._setLivestreamStatus=()=>{if(!this.isLive)return void(this.livestreamStatus=null);this._controller?.liveTracker.isTracking()||this._controller?.liveTracker.startTracking();const e={atLiveEdge:this._controller?.liveTracker.atLiveEdge()??null,behindLiveEdge:this._controller?.liveTracker.behindLiveEdge()??null,liveCurrentTime:this._controller?.liveTracker?.liveCurrentTime()??null,liveWindow:this._controller?.liveTracker?.liveWindow()??null,pastSeekEnd:this._controller?.liveTracker?.pastSeekEnd()??null,seekableEnd:this._controller?.liveTracker?.seekableEnd()??null,seekableStart:this._controller?.liveTracker?.seekableStart()??null};this.livestreamStatus={...e},this.notifyChange("livestreamStatus"),this._controller?.liveTracker.handlePlay(),this._controller?.liveTracker.handleFirstTimeupdate()}}initialize(){this.addHandles([(0,d.wB)(()=>this.playerUrl,e=>{e&&this._initController().then(()=>{this.mimeType=function(e){if(!e)return re;const t=e.match(/\.(\w{3,4})(?:$|\?)/i);if(!t)return re;switch(t[1].toLowerCase()){case"mp4":return"video/mp4";case"webm":return"video/webm";default:return re}}(e),this._controller?.src({src:this.playerUrl,type:this.mimeType})})},d.Vh),(0,d.wB)(()=>this.subtitleTrack,()=>{this.subtitleTrack&&(this.subtitleTrack.mode="showing")},d.Vh),(0,d.wB)(()=>this.isLive,e=>{e&&this._controller?.liveTracker.startTracking()}),(0,d.wB)(()=>this.currentMetadata,()=>this._updateSensorModel())]),this.addHandles((0,d.on)(()=>this.subtitleTrack,"cuechange",this._handleCueChange),d.Vh)}destroy(){this.removeAllHandles(),this._controller?.dispose()}get buffered(){return this._controller?.bufferedEnd()??0}get bufferedPercent(){return this._controller?.bufferedPercent()??0}get crossOrigin(){return this._controller?.crossOrigin()??this._get("crossOrigin")}set crossOrigin(e){this._controller?.crossOrigin(e),this._set("crossOrigin",e)}get currentTime(){return this._controller?.currentTime()??0}get duration(){return this._controller?.duration()??0}get ended(){return this._controller?.ended()??this._get("ended")??!0}set ended(e){this._controller?.trigger("ended"),this._set("ended",e)}get loop(){return this._controller?.loop()??this._get("loop")??!1}set loop(e){this._controller?.loop(e),this._set("loop",e)}get muted(){return this._controller?.muted()??this._get("muted")??!1}set muted(e){this._controller?.muted(e),this._set("muted",e)}get playerUrl(){return this._controller?.src()||""}set playerUrl(e){this._set("playerUrl",e)}get playing(){return!this.ended&&("can-play"===this.state?this._prevPlayingState:"playing"===this.state)}get playsInline(){const e=this._controller?.playsinline();return e??this._get("playsInline")??!1}set playsInline(e){this._controller?.playsinline(e),this._set("playsInline",e)}get rate(){return this._controller?.playbackRate()??this._get("rate")??1}set rate(e){this._controller?.playbackRate(e),this._set("rate",e)}get subtitleTrack(){const e=this._controller?.textTracks();return e?.length?Array.from(e).find(e=>"subtitles"===e.kind):null}get volume(){return this._controller?.volume()??0}set volume(e){const t=(0,u.qE)(e,0,1);isNaN(t)||this._controller?.volume(t)}get waiting(){return!(this.waitingTimestamp||this.waitingTimestamp!==this.currentTime&&(this.waitingTimestamp=null,1))}pause(){this._controller?.pause(),this.state="paused"}async play(){try{!this.started&&this.isLive&&this._controller?.muted(!0),await(this._controller?.play()),this.state="playing"}catch(e){}}reset(){this._controller&&(this._prevPlayingState=!1,this._retryCount=0,this._set("started",!1),this.setCurrentTime(0),this.notifyChange("buffered"),this.notifyChange("currentTime"),this.notifyChange("duration"),this.notifyChange("waiting"),this._controller?.trigger("can-play"),this.autoplay||this._controller?.pause())}seekToLiveEdge(){this.isLive?"playing"===this.state&&this._controller?.liveTracker.isTracking()&&this._controller?.liveTracker.seekToLiveEdge():l.A.getLogger(this).info("seekToLiveEdge method is only available for livestream playback.")}setCurrentTime(e){const t=(0,u.qE)(e,0,this.duration);this._controller?.currentTime(t),this.notifyChange("currentTime")}};(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"autoplay",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"buffered",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"bufferedPercent",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"crossOrigin",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"currentTime",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"currentMetadata",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"duration",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"element",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"ended",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"isLive",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"livestreamStatus",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"loop",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"mimeType",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"muted",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"playerUrl",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"playing",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"playsInline",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"rate",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"sensorModel",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"started",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"state",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"subtitleTrack",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"videoHeight",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"videoWidth",void 0),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"volume",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Cd.prototype,"waiting",null),(0,s.Cg)([(0,p.MZ)()],Cd.prototype,"waitingTimestamp",void 0),Cd=(0,s.Cg)([(0,f.$)("esri.layers.video.VideoController")],Cd);var Ed=i(40863),kd=i(58592),xd=i(94985),Id=i(31593),Ad=i(53930),Dd=i(20378),Pd=i(73838);function Md(e,t){return{ignoreOrigin:this.originIdOf(t)<3}}let Ld=[];const Od=new r.A([255,127,0]),Nd=new r.A([0,0,0,.05]),Rd=new Ad.A({angle:0,color:Od,size:10,style:"cross"}),Ud=new xd.A({color:Nd,outline:new Id.A({color:Od,width:2})}),Fd=new Id.A({color:Od,width:1}),Bd=new Ad.A({angle:0,color:Od,outline:{color:[255,255,255],width:1.33},size:10,style:"circle"}),qd=new Id.A({color:Od,width:1}),jd={types:{base:Dd.A,key:"type",typeMap:{"simple-marker":Ad.A,"picture-marker":kd.A,cim:Ed.A}},json:{name:"drawingInfo.sensorSymbol",write:{writer:Pd.M9,overridePolicy:Md}}};function $d(e,t){return{type:t,json:{name:e,write:{overridePolicy:Md}}}}let Hd=class extends((0,S.dM)((0,k.j)((0,T.b)((0,C.q)((0,E.A)((0,c.P)((0,w.d)(b.A)))))))){constructor(e){super(e),this.capabilities=null,this.codecs=null,this.connectionInfo=null,this.controller=new Cd,this.copyright=null,this.created=null,this.customParameters=null,this.description=null,this.elevationSource=null,this.frame=null,this.frameCenterSymbol=Rd.clone(),this.frameCount=null,this.frameEffect=null,this.frameOpacity=1,this.frameOutlineSymbol=Ud.clone(),this.fullExtent=null,this.initialExtent=null,this.layerId=null,this.operationalLayerType="ArcGISVideoLayer",this.playbackInfo=null,this.posterUrl=null,this.qualities=null,this.sensorSymbolOrientation={source:"platformHeading",symbolOffset:0},this.sensorSymbol=Bd.clone(),this.sensorSightLineSymbol=Fd.clone(),this.sensorTrailSymbol=qd.clone(),this.serviceItemId=null,this.sourceJSON=null,this.sourceQuality=null,this.sourceType=null,this.spatialReference=v.A.WGS84,this.start=0,this.telemetryDisplay=new B,this.type="video",this.url=null,this.version=null,this.videoLayersInfo=null}initialize(){this.addHandles([(0,d.wB)(()=>this.metadata,()=>{this.notifyChange("telemetry"),this.notifyChange("groundControlPoints"),this.notifyChange("frameHorizonPoints")}),(0,d.wB)(()=>this.telemetry?.sensorLocation,e=>this._setSensorTrail(e),d.Vh)]),(0,d.C_)(()=>this.loaded&&"can-play"===this.state&&this.duration>0).then(()=>{this.start>=0&&this.start<=this.duration&&this.setCurrentTime(this.start)})}destroy(){this.removeAllHandles(),this.controller&&this.controller.destroy()}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Video Service"],supportsData:!1},e).catch(h.QP).then(()=>this._fetchService(t));return this.addResolvingPromise(i),Promise.resolve(this)}get autoplay(){return this.controller?.autoplay??!1}set autoplay(e){this.controller.autoplay=e}get buffered(){return this.controller.buffered}readCapabilitiesFromService(e,t){return(0,O.d)(t)}readConnectionInfo(e,t){const i=Object.values(t.connectionUrl);return i?.length&&(this.controller.playerUrl=i[0]),t.connectionUrl}get currentTime(){return this.controller.currentTime}get duration(){return this.controller.duration}get ended(){return this.controller.ended}get frameHorizonPoints(){return e=this.metadata,e?.size?e.get(90063)?.value??null:null;var e}get groundControlPoints(){return e=this.metadata,e?.size?e.get(90064)?.value??null??null:null;var e}get isLive(){return this.controller?.isLive??!1}get livestreamStatus(){return this.controller?.livestreamStatus}get loop(){return this.controller.loop}set loop(e){this.controller.loop=e}get metadata(){return this.controller?.currentMetadata}get mimeType(){return this.controller?.mimeType}get muted(){return this.controller.muted}set muted(e){this.controller.muted=e}get parsedUrl(){return(0,A.h)(this)}get playbackRate(){return this.controller.rate}set playbackRate(e){this.controller.rate=e}get playerUrl(){return this.controller.playerUrl}get playing(){return this.controller.playing}get started(){return this.controller?.started??!1}get state(){return this.controller.state}get telemetry(){return function(e){if(!e?.size)return new U;const t=function(e){if(!e?.size)return null;if(e.has(90061)){const t=e.get(90061)?.value;if(t)return N.A.fromJSON(t.geometry)}return e.has(ae)&&e.has(ne)?new N.A({x:e.get(ae)?.value,y:e.get(ne)?.value,z:e.get(oe)?.value}):null}(e),i=function(e){return function(e){return e&&e.has(90050)&&e.has(90051)?new N.A({x:e.get(90051).value,y:e.get(90050).value,z:e.get(10078)?.value??e.get(ce)?.value}):null}(e)??function(e){return e&&e.has(le)&&e.has(ue)?new N.A({x:e.get(ue)?.value,y:e.get(le)?.value,z:e.get(ce)?.value}):null}(e)}(e),s=function(e){if(!e)return null;const t=e.get(90060)?.value;return t?R.A.fromJSON(t.geometry):function(e){if(!(e.has(90052)&&e.has(90053)&&e.has(90054)&&e.has(90055)&&e.has(90056)&&e.has(90057)&&e.has(90058)&&e.has(90059)))return null;const t=[e.get(90053)?.value,e.get(90052)?.value],i=[e.get(90055)?.value,e.get(90054)?.value],s=[e.get(90057)?.value,e.get(90056)?.value],r=[e.get(90059)?.value,e.get(90058)?.value];return new R.A({rings:[[t,i,s,r]]})}(e)??function(e){if(!(e.has(10026)&&e.has(10027)&&e.has(10028)&&e.has(10029)&&e.has(10030)&&e.has(10031)&&e.has(10032)&&e.has(10033)&&e.has(le)&&e.has(ue)))return null;const t=e.get(le)?.value,i=e.get(ue)?.value,s=t+e.get(10026)?.value,r=i+e.get(10027)?.value,n=t+e.get(10028)?.value,a=i+e.get(10029)?.value,o=t+e.get(10030)?.value,l=i+e.get(10031)?.value,u=t+e.get(10032)?.value,c=i+e.get(10033)?.value;return new R.A({rings:[[[r,s],[a,n],[l,o],[c,u]]]})}(e)}(e),r=function(e,t){if(!e||!t)return null;const i=[e.x,e.y,e.z??0],s=[t.x,t.y,t.z??0];return new _.A({paths:[[i,s]]})}(t,i);return new U({frameCenter:i,frameOutline:s,lineOfSight:r,sensorLocation:t})}(this.metadata)}readTitleFromService(e,{name:t}){return this.url?(0,x.yG)(this.url,t):t}get videoElement(){return this.controller?.element}get videoHeight(){return this.controller?.videoHeight}readLayerInfosFromService(e,t){return function(e){const t=e?.layers;return t?.length?t.map(e=>({layerId:e.id,posterUrl:e.poster,sourceType:e.serviceType,title:e.name,type:e.type||"Video Layer"})):[]}(t)}get videoTimeExtent(){return(0,a.Lx)(l.A.getLogger(this),"videoTimeExtent",{replacement:"fullTimeExtent",version:"4.33",warnOnce:!0}),this.fullTimeExtent}get videoWidth(){return this.controller?.videoWidth}get volume(){return this.controller?.volume??0}set volume(e){this.controller.volume=e}get waiting(){return this.controller.waiting}play(){this.controller.play()}pause(){this.controller.pause()}reset(){Ld=[],this.controller.reset()}setCurrentTime(e){if(this.duration<0)return;const t=(0,u.qE)(e,0,this.duration);this.controller.setCurrentTime(t)}toGround(e,t){return this.controller?.sensorModel?.metadataSupportsTransforms?this.controller.sensorModel.transformImageToGeo(e,t):null}toVideo(e){if(!this.controller?.sensorModel?.metadataSupportsTransforms)return null;const t=this.controller.sensorModel.transformGeoToImage(e.x,e.y,e.z);return{x:t[0],y:t[1]}}updateTelemetryColor(e){this.frameCenterSymbol=pe(this.frameCenterSymbol,e)??Rd,this.frameOutlineSymbol=pe(this.frameOutlineSymbol,e,Nd)??Ud,this.sensorSightLineSymbol=pe(this.sensorSightLineSymbol,e)??Fd,this.sensorTrailSymbol=pe(this.sensorTrailSymbol,e)??qd,this.sensorSymbol=pe(this.sensorSymbol,e)??Bd}write(e,t){return null==this.layerId?(t?.messages?.push(new o.A("layer:unsupported",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' cannot be saved to a web map, web scene, or portal item. The ArcGIS server version must be greater than 11.2.`)),null):super.write(e,t)}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:i}=await(0,n.A)(this.url,{query:{f:"json",...this.parsedUrl.query,...this.customParameters},signal:e});if(i&&(this.url=this.url.replace(/^http:/i,"https:")),!t?.currentVersion)return t.currentVersion="11.2",this.sourceJSON=t,void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});if(this.layerId??=t.layers?.[0]?.id??null,null==this.layerId)throw new o.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");const{data:s}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters},signal:e});this.sourceJSON={...t,...s},this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl})}_setSensorTrail(e){if(!e)return;const t=function(e,t){const i=[...t],s=i.findIndex(t=>t.equals(e));return s>-1&&i.splice(s),i.push(e),i}(e,Ld);Ld=[...t];const i=Ld.map(e=>e.toArray()),s=new _.A({hasZ:e.hasZ,paths:[i]});this.telemetry.sensorTrail=s.clone()}};(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],Hd.prototype,"autoplay",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"buffered",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"cameraInfo",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],Hd.prototype,"capabilities",void 0),(0,s.Cg)([(0,g.w)("service","capabilities",["supportsAppend","supportsCoverageQuery","supportsExportClip","supportsExportFrameset","supportsMensuration","supportsPreviews","supportsUpdate"])],Hd.prototype,"readCapabilitiesFromService",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"codecs",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"connectionInfo",void 0),(0,s.Cg)([(0,g.w)("connectionInfo",["connectionUrl"])],Hd.prototype,"readConnectionInfo",null),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"controller",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],Hd.prototype,"copyright",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:Date})],Hd.prototype,"created",void 0),(0,s.Cg)([(0,p.MZ)({type:Number})],Hd.prototype,"currentTime",null),(0,s.Cg)([(0,p.MZ)({json:{write:!1}})],Hd.prototype,"customParameters",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],Hd.prototype,"description",void 0),(0,s.Cg)([(0,p.MZ)({type:Number})],Hd.prototype,"duration",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"elevationSource",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean})],Hd.prototype,"ended",null),(0,s.Cg)([(0,p.MZ)({type:V})],Hd.prototype,"frame",void 0),(0,s.Cg)([(0,p.MZ)($d("drawingInfo.frameCenterSymbol",Ad.A))],Hd.prototype,"frameCenterSymbol",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:m.jz})],Hd.prototype,"frameCount",void 0),(0,s.Cg)([(0,p.MZ)(S.LF)],Hd.prototype,"frameEffect",void 0),(0,s.Cg)([(0,p.MZ)(I.ke)],Hd.prototype,"frameOpacity",void 0),(0,s.Cg)([(0,p.MZ)($d("drawingInfo.frameOutlineSymbol",xd.A))],Hd.prototype,"frameOutlineSymbol",void 0),(0,s.Cg)([(0,p.MZ)({type:y.A})],Hd.prototype,"fullExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"frameHorizonPoints",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:{reader:function(e){const{duration:t,end:i,start:s,timezone:r="UTC"}=e||{};return"number"!=typeof t?null:new W({duration:t||null,end:"number"==typeof i?new Date(i):null,start:"number"==typeof s?new Date(s):null,timezone:r})},source:"time"}},type:W})],Hd.prototype,"fullTimeExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"groundControlPoints",null),(0,s.Cg)([(0,p.MZ)(I.id)],Hd.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({type:y.A})],Hd.prototype,"initialExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"isLive",null),(0,s.Cg)([(0,p.MZ)({type:m.jz,json:{read:!1,origins:{service:{read:{source:"id"}}}}})],Hd.prototype,"layerId",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"livestreamStatus",null),(0,s.Cg)([(0,p.MZ)({type:Boolean})],Hd.prototype,"loop",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"metadata",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"mimeType",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],Hd.prototype,"muted",null),(0,s.Cg)([(0,p.MZ)({type:["ArcGISVideoLayer"]})],Hd.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"parsedUrl",null),(0,s.Cg)([(0,p.MZ)({type:L})],Hd.prototype,"playbackInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:Number})],Hd.prototype,"playbackRate",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:String})],Hd.prototype,"playerUrl",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"playing",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:{source:"poster"}}})],Hd.prototype,"posterUrl",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"qualities",void 0),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"sensorSymbolOrientation",void 0),(0,s.Cg)([(0,p.MZ)(jd)],Hd.prototype,"sensorSymbol",void 0),(0,s.Cg)([(0,p.MZ)($d("drawingInfo.sensorSightLineSymbol",Id.A))],Hd.prototype,"sensorSightLineSymbol",void 0),(0,s.Cg)([(0,p.MZ)($d("drawingInfo.sensorTrailSymbol",Id.A))],Hd.prototype,"sensorTrailSymbol",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"serviceItemId",void 0),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"sourceQuality",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{name:"serviceType"}})],Hd.prototype,"sourceType",void 0),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Hd.prototype,"start",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"started",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:String})],Hd.prototype,"state",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:U})],Hd.prototype,"telemetry",null),(0,s.Cg)([(0,p.MZ)({type:B,nonNullable:!0,json:{write:{ignoreOrigin:!0}}})],Hd.prototype,"telemetryDisplay",void 0),(0,s.Cg)([(0,g.w)("service","title",["name"])],Hd.prototype,"readTitleFromService",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)((0,A.b)())],Hd.prototype,"url",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:Number,json:{read:{source:"currentVersion"}}})],Hd.prototype,"version",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"videoElement",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"videoHeight",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],Hd.prototype,"videoLayersInfo",void 0),(0,s.Cg)([(0,g.w)("service","videoLayersInfo",["id","name","poster","serviceType","type"])],Hd.prototype,"readLayerInfosFromService",null),(0,s.Cg)([(0,p.MZ)({type:W,readOnly:!0})],Hd.prototype,"videoTimeExtent",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"videoWidth",null),(0,s.Cg)([(0,p.MZ)()],Hd.prototype,"volume",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Hd.prototype,"waiting",null),Hd=(0,s.Cg)([(0,f.$)("esri.layers.VideoLayer")],Hd);const Vd=Hd},92071:(e,t,i)=>{i.d(t,{P:()=>_,L:()=>v});var s=i(31635),r=i(65008),n=i(76953),a=i(4718),o=i(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(o.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,i=this._originStores[0];i&&i.forEach((e,i)=>{t.set(i,(0,a.o8)(e),0)});for(let i=2;i<o.AU;i++){const s=this._originStores[i];s&&s.forEach((s,r)=>{e&&e.has(r)||t.set(r,(0,a.o8)(s),i)})}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=7){let s=this._originStores[i];if(s||(s=new Map,this._originStores[i]=s),s.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=i){const s=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),s!==t}return!1}delete(e,t=7){const i=this._originStores[t];if(!i)return;const s=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return s}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],s=i?.get(e),r=this._values.get(e);return this._values.set(e,s),this._propertyOriginMap.set(e,t),r!==s}originOf(e){return this._propertyOriginMap.get(e)||0}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var u=i(45917),c=i(88620),h=i(40608);const d=e=>{const t=e;let i=class extends t{constructor(...e){super(...e);const t=(0,c.oY)(this),i=t.store,s=new l;t.store=s,(0,n.k)(t,i,s)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const i=p(this),s=(0,o.aB)(t);if("string"==typeof e)return i.get(e,s);const r={};return e.forEach(e=>{r[e]=i.get(e,s)}),r}originOf(e){return(0,o.OL)(this.originIdOf(e))}originIdOf(e){return p(this).originOf(e)}revert(e,t){const i=p(this),s=(0,o.aB)(t),r=(0,c.oY)(this);let n;n="string"==typeof e?"*"===e?i.keys(s):[e]:e,n.forEach(e=>{r.invalidate(e),i.revert(e,s),r.commit(e)})}};return i=(0,s.Cg)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],i),i};function p(e){return(0,c.oY)(e).store}d(r.A);var m=i(16649),g=i(49422);const f=e=>{const t=e;let i=class extends t{constructor(...e){super(...e)}clear(e,t="user"){(0,c.oY)(this).clearOrigin(e,(0,o.aB)(t))}write(e,t){return(0,g.M)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,c.oY)(this).setAtOrigin(e,t,(0,o.aB)(i))}removeOrigin(e){const t=y(this),i=(0,o.aB)(e),s=t.keys(i);for(const e of s)t.originOf(e)===i&&t.set(e,t.get(e,i),7)}updateOrigin(e,t){const i=y(this),s=(0,o.aB)(t),r=(0,m.Jt)(this,e);for(let t=s+1;t<o.AU;++t)i.delete(e,t);i.set(e,r,s)}toJSON(e){return this.write({},e)}};return i=(0,s.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],i),i.prototype.toJSON.isDefaultToJSON=!0,i};function y(e){return(0,c.oY)(e).store}const _=e=>{const t=f(d(e));let i=class extends t{};return i=(0,s.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport")],i),i},v=_(r.A)},98764:(e,t,i)=>{i.d(t,{Y0:()=>u,lO:()=>c});var s=i(73941),r=i(16930),n=i(21325);const a=new r.A(s.fv),o=new r.A(s.FY),l=new r.A(s.LJ),u=new r.A(s.Ro);function c(e){const t=h.get(e);if(t)return t;let i=a;if(e)if(e===o)i=o;else if(e===l)i=l;else{const t=e.wkid,s=e.latestWkid;if(null!=t||null!=s)(0,n.tl)(t)||(0,n.tl)(s)?i=o:((0,n.ZL)(t)||(0,n.ZL)(s))&&(i=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?i=o:e===p&&(i=l)}}}return h.set(e,i),i}const h=new Map,d=o.wkt.toUpperCase(),p=l.wkt.toUpperCase()}}]);